567ec3065e10f0118783dc3841a1ec63d89d30b3
[gnulib.git] / ChangeLog
1 2012-04-22  Bruno Haible  <bruno@clisp.org>
2
3         doc: Mention reason for replacement on glibc/Linux systems.
4         * doc/posix-functions/dprintf.texi: Mention the problem with special
5         'long double' values.
6         * doc/posix-functions/fprintf.texi: Likewise.
7         * doc/posix-functions/printf.texi: Likewise.
8         * doc/posix-functions/snprintf.texi: Likewise.
9         * doc/posix-functions/sprintf.texi: Likewise.
10         * doc/posix-functions/vdprintf.texi: Likewise.
11         * doc/posix-functions/vfprintf.texi: Likewise.
12         * doc/posix-functions/vprintf.texi: Likewise.
13         * doc/posix-functions/vsnprintf.texi: Likewise.
14         * doc/posix-functions/vsprintf.texi: Likewise.
15         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
16         platforms with F_DUPFD_CLOEXEC problems.
17         * doc/posix-functions/glob.texi: Mention which platforms are affected
18         by the problem with symbolic links.
19         * doc/posix-functions/linkat.texi: Mention the problem with
20         AT_SYMLINK_FOLLOW on Linux.
21
22 2012-04-22  Bruno Haible  <bruno@clisp.org>
23
24         pwrite: Don't replace on all platforms.
25         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
26
27 2012-04-22  Bruno Haible  <bruno@clisp.org>
28
29         rint* tests: Avoid gcc warnings.
30         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
31         * tests/test-rintf.c (INFINITY, NAN): Likewise.
32         * tests/test-rintl.c (INFINITY, NAN): Likewise.
33
34 2012-04-21  Bruno Haible  <bruno@clisp.org>
35
36         users.txt: Update.
37         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38         switched from CVS to git, bzr, or svn.
39
40 2012-04-21  Bruno Haible  <bruno@clisp.org>
41
42         Large File Support for native Windows platforms.
43
44         * m4/largefile.m4 (gl_LARGEFILE): New macro.
45         * modules/largefile (configure.ac): Require gl_LARGEFILE.
46
47         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
48         type.
49         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
50         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
51         * doc/posix-headers/sys_types.texi: Mention the effect of the
52         'largefile' module.
53
54         * lib/fcntl.in.h: Add comments about off_t.
55         * modules/fcntl-h (Depends-on): Add sys_types.
56
57         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
58         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
59         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
60         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
61         * modules/unistd (Depends-on): Add sys_types.
62         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
63
64         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
65         instead of lseek.
66         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
67         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
68         * modules/lseek (Depends-on): Add sys_types.
69
70         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
71         msvc-nothrow.h.
72         (SetFileSize): New function.
73         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
74         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
75         if Large File Support is requested.
76         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
77         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
78
79         * lib/stdio.in.h: Add comments about off_t.
80         * modules/stdio (Depends-on): Add sys_types.
81
82         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
83         instead of ftello.
84         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
85         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
86         (gl_PREREQ_FTELLO): New macro.
87         * modules/ftello (Depends-on): Add sys_types.
88         (configure.ac): Incoke gl_PREREQ_FTELLO.
89
90         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
91         instead of fseeko.
92         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
93         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
94         (gl_PREREQ_FSEEKO): New macro.
95         * modules/fseeko (Depends-on): Add sys_types.
96         (configure.ac): Invoke gl_PREREQ_FSEEKO.
97
98         * lib/sys_stat.in.h: Add comments about off_t.
99         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
100         64-bit integer for st_size in 'struct stat'.
101         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
102         Define _GL_WINDOWS_64_BIT_ST_SIZE.
103         * modules/sys_stat (Depends-on): Add sys_types.
104         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
105
106         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
107         instead of stat or _stat.
108
109         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
110         'struct _stati64' instead of fstat and 'struct stat'.
111         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
112         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
113
114         Reported by Ray Satiro <raysatiro@yahoo.com>.
115
116 2012-04-19  Eric Blake  <eblake@redhat.com>
117
118         bootstrap: accommodate older libtool
119         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
120         Reported by Daniel P. Berrange.
121
122 2012-04-19  Jim Meyering  <meyering@redhat.com>
123
124         announce-gen: avoid failure due to lack of Digest::SHA1
125         Even with the preferred Digest::SHA available, this script
126         would fail when the backup module, Digest::SHA1, was not installed.
127         * build-aux/announce-gen: Quote the conditional use of "use".
128         Reported by Reuben Thomas in:
129         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
130
131         bootstrap: don't let a user's CDPATH setting affect this script
132         When CDPATH is set, cd will sometimes generate output.
133         When "cd" is run in a subshell whose output matters, that
134         surprising-to-some output can cause malfunction.
135         Unsetting CDPATH turns off this shell "feature."
136         * build-aux/bootstrap (CDPATH): Unset.
137         Reported by Reuben Thomas in:
138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
139         and inspired by his patch here:
140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
141
142 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
143         and Jim Meyering  <meyering@redhat.com>
144
145         maint.mk: catch "see @xref{}" and similar
146         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
147         prohibit "See also @xref{", "Also see @pxref{", and similar.
148
149 2012-04-16  Jim Meyering  <meyering@redhat.com>
150
151         bootstrap: really use gnulib's po/Makefile.in.in
152         * build-aux/bootstrap: Correct the source file name in previous change.
153         Reported by Akim Demaille.
154
155         configmake: correct minor inconsistency in Makefile rule
156         * modules/configmake (Makefile.am): All other rules like this one
157         run the final "mv -f ..." in the same backslash-continued command
158         as the one that does everything else.  This one put the mv -f ...
159         command on a separate, non-backslash-continued line.
160         Make it like the others.
161
162         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
163         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
164         the one from gettext.  Reported by Akim Demaille.
165
166 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
167
168         Fix recursion of install-* into po directories.
169         Bison's install-pdf bug reported by Hans Aberg at
170         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
171         * build-aux/po/Makefile.in.in (install-dvi, install-html)
172         (install-info, install-pdf, install-ps): New targets.
173
174 2012-04-16  Jim Meyering  <meyering@redhat.com>
175
176         maint: avoid spurious "make sc_maint" failure
177         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
178         exempt all *.class file names, for lib/javaversion.class.
179
180 2012-04-15  Bruno Haible  <bruno@clisp.org>
181
182         lseek: Make configure test independent of environment.
183         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
184         Windows, we know that lseek() on pipes is broken; skip the runtime
185         test.
186
187 2012-04-14  Bruno Haible  <bruno@clisp.org>
188
189         stat: Bypass buggy override in mingw64.
190         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
191         * lib/stat.c (stat) [mingw64]: Define to _stat.
192         * doc/posix-functions/stat.texi: Mention mingw64 bug.
193
194 2012-04-14  Bruno Haible  <bruno@clisp.org>
195
196         pathmax: Fix compilation error on MSVC 9.
197         * modules/pathmax (Depends-on): Add unistd.
198
199 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
200
201         README: document pointer comparison assumption
202         * README (Portability guidelines): Document assumption about
203         pointer comparisons, in response to a recent bug-gnulib comment by
204         Jeffrey Kegler.
205
206 2012-04-12  Bruno Haible  <bruno@clisp.org>
207
208         Tests for module 'getrusage'.
209         * modules/getrusage-tests: New file.
210         * tests/test-getrusage.c: New file.
211
212         New module 'getrusage'.
213         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
214         warn-on-use.h.
215         (getrusage): New declaration.
216         * lib/getrusage.c: New file.
217         * m4/getrusage.m4: New file.
218         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
219         is declared.
220         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
221         HAVE_GETRUSAGE.
222         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
223         snippet/c++defs, snippet/warn-on-use.
224         (Makefile.am): Update generation of sys/resource.h. Substitute
225         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
226         * modules/getrusage: New file.
227         * doc/posix-functions/getrusage.texi: Mention the new module.
228
229 2012-04-12  Bruno Haible  <bruno@clisp.org>
230
231         Tests for module 'sys_resource'.
232         * modules/sys_resource-tests: New file.
233         * tests/test-sys_resource.c: New file.
234
235         New module 'sys_resource'.
236         * lib/sys_resource.in.h: New file.
237         * m4/sys_resource_h.m4: New file.
238         * modules/sys_resource: New file.
239         * doc/posix-headers/sys_resource.texi: Mention the new module.
240
241 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
242
243         ioctl: Fix compilation error on mingw.
244         * lib/ioctl.c: Include <windows.h>.
245         Also reported by Ray Satiro <raysatiro@yahoo.com>.
246
247 2012-04-04  Jim Meyering  <meyering@redhat.com>
248
249         regex: correct #pragma guard expression
250         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
251         not 4.3.  Correct its cpp guard expression.
252
253 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
254
255         regex: remove unnecessary type punning
256         Problem reported by Vladimir Serbinenko in
257         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
258         * lib/regex.h (struct re_pattern_buffer): Change the type of
259         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
260         Fix comment to match code.
261         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
262         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
263         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
264         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
265         (set_regs):
266         Omit no-longer-necessary casts.
267
268 2012-04-03  Bruno Haible  <bruno@clisp.org>
269
270         Tests for module 'ilogbl'.
271         * modules/ilogbl-tests: New file.
272         * tests/test-ilogbl.c: New file.
273
274         New module 'ilogbl'.
275         * lib/math.in.h (ilogbl): New declaration.
276         * lib/ilogbl.c: New file.
277         * m4/ilogbl.m4: New file.
278         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
280         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
281         Split sed invocation, to avoid the limit of 100 substitutions of
282         HP-UX 'sed'.
283         * modules/ilogbl: New file.
284         * tests/test-math-c++.cc: Check the declaration of ilogbl.
285         * doc/posix-functions/ilogbl.texi: Mention the new module.
286
287 2012-04-03  Bruno Haible  <bruno@clisp.org>
288
289         Tests for module 'ilogbf'.
290         * modules/ilogbf-tests: New file.
291         * tests/test-ilogbf.c: New file.
292
293         New module 'ilogbf'.
294         * lib/math.in.h (ilogbf): New declaration.
295         * lib/ilogbf.c: New file.
296         * m4/ilogbf.m4: New file.
297         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
299         REPLACE_ILOGBF.
300         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
301         REPLACE_ILOGBF.
302         * modules/ilogbf: New file.
303         * tests/test-math-c++.cc: Check the declaration of ilogbf.
304         * doc/posix-functions/ilogbf.texi: Mention the new module.
305
306 2012-04-03  Bruno Haible  <bruno@clisp.org>
307
308         Tests for module 'ilogb'.
309         * modules/ilogb-tests: New file.
310         * tests/test-ilogb.c: New file.
311         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
312         tests/test-logb-ieee.h.
313
314         New module 'ilogb'.
315         * lib/math.in.h (ilogb): New declaration.
316         * lib/ilogb.c: New file.
317         * m4/ilogb.m4: New file.
318         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
320         REPLACE_ILOGB.
321         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
322         REPLACE_ILOGB.
323         * modules/ilogb: New file.
324         * tests/test-math-c++.cc: Check the declaration of ilogb.
325         * doc/posix-functions/ilogb.texi: Mention the new module.
326
327 2012-04-03  Bruno Haible  <bruno@clisp.org>
328
329         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
330         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
331         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
332         (main): Check their values.
333         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
334         problem.
335
336 2012-04-03  Bruno Haible  <bruno@clisp.org>
337
338         Tests for module 'logbl-ieee'.
339         * modules/logbl-ieee-tests: New file.
340         * tests/test-logbl-ieee.c: New file.
341
342         New module 'logbl-ieee'.
343         * modules/logbl-ieee: New file.
344
345         Tests for module 'logb-ieee'.
346         * modules/logb-ieee-tests: New file.
347         * tests/test-logb-ieee.c: New file.
348
349         New module 'logb-ieee'.
350         * modules/logb-ieee: New file.
351
352         Tests for module 'logbf-ieee'.
353         * modules/logbf-ieee-tests: New file.
354         * tests/test-logbf-ieee.c: New file.
355         * tests/test-logb-ieee.h: New file.
356
357         New module 'logbf-ieee'.
358         * modules/logbf-ieee: New file.
359
360 2012-04-03  Bruno Haible  <bruno@clisp.org>
361
362         Tests for module 'logbl'.
363         * modules/logbl-tests: New file.
364         * tests/test-logbl.c: New file.
365
366         New module 'logbl'.
367         * lib/math.in.h (logbl): New declaration.
368         * lib/logbl.c: New file.
369         * m4/logbl.m4: New file.
370         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
372         REPLACE_LOGBL.
373         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
374         REPLACE_LOGBL.
375         * modules/logbl: New file.
376         * tests/test-math-c++.cc: Check the declaration of logbl.
377         * doc/posix-functions/logbl.texi: Mention the new module.
378
379 2012-04-02  Bruno Haible  <bruno@clisp.org>
380
381         Tests for module 'logbf'.
382         * modules/logbf-tests: New file.
383         * tests/test-logbf.c: New file.
384
385         New module 'logbf'.
386         * lib/math.in.h (logbf): New declaration.
387         * lib/logbf.c: New file.
388         * m4/logbf.m4: New file.
389         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
391         REPLACE_LOGBF.
392         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
393         REPLACE_LOGBF.
394         * modules/logbf: New file.
395         * tests/test-math-c++.cc: Check the declaration of logbf.
396         * doc/posix-functions/logbf.texi: Mention the new module.
397
398 2012-04-02  Bruno Haible  <bruno@clisp.org>
399
400         logb tests: More tests.
401         * tests/test-logb.h: New file, based on tests/test-logb.c and
402         tests/test-frexp.h.
403         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
404         (main): Just invoke test_function.
405         * modules/logb-tests (Files): Add tests/test-logb.h,
406         tests/minus-zero.h, tests/randomd.c.
407         (Makefile.am): Add randomd.c to test_logb_SOURCES.
408
409         logb: Provide replacement and workarounds.
410         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
411         is 1.
412         * lib/logb.c: New file.
413         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
414         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
416         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
417         * modules/logb (Files): Add lib/logb.c.
418         (Depends-on): Add isfinite, frexp, isnand.
419         (configure.ac): Compile the replacement code logb.c if needed.
420         * tests/test-math-c++.cc: Check the declaration of logb.
421         * doc/posix-functions/logb.texi: Mention the replacement and the bug
422         with subnormal numbers.
423
424 2012-04-02  Bruno Haible  <bruno@clisp.org>
425
426         log10* tests: Speed up.
427         * tests/test-log10.h (test_function): Reduce amount of random numbers
428         to test.
429
430 2012-04-01  Bruno Haible  <bruno@clisp.org>
431
432         logf-ieee: Fix test whether logf works.
433         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
434
435 2012-04-01  Bruno Haible  <bruno@clisp.org>
436
437         log10l: Work around log10l-ieee test failure on IRIX 6.5.
438         * lib/log10l.c: Include <float.h>
439         (log10l): On IRIX, normalize the +Infinity value.
440         * modules/log10l (Depends-on): Add 'float'.
441         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
442         +Infinity.
443
444         log10f-ieee: Work around test failure on NetBSD 5.1.
445         * m4/log10f-ieee.m4: New file.
446         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
447         test whether log10f works with a negative argument. Replace it if not.
448         * lib/log10f.c (log10f): For negative arguments, return NaN.
449         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
450         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
451         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
452
453         log10f-ieee: Work around test failure on Solaris 9.
454         * modules/log10f-ieee (Depends-on): Add log10-ieee.
455         (configure.ac): Require gl_FUNC_LOG10F.
456
457         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
458         * m4/log10-ieee.m4: New file.
459         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
460         whether log10 works with a negative argument. Replace it if not.
461         * lib/log10.c (log10): For negative arguments, return NaN.
462         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
463         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
464         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
465
466         Tests for module 'log10l-ieee'.
467         * modules/log10l-ieee-tests: New file.
468         * tests/test-log10l-ieee.c: New file.
469
470         New module 'log10l-ieee'.
471         * modules/log10l-ieee: New file.
472
473         Tests for module 'log10-ieee'.
474         * modules/log10-ieee-tests: New file.
475         * tests/test-log10-ieee.c: New file.
476
477         New module 'log10-ieee'.
478         * modules/log10-ieee: New file.
479
480         Tests for module 'log10f-ieee'.
481         * modules/log10f-ieee-tests: New file.
482         * tests/test-log10f-ieee.c: New file.
483         * tests/test-log10-ieee.h: New file.
484
485         New module 'log10f-ieee'.
486         * modules/log10f-ieee: New file.
487
488 2012-04-01  Bruno Haible  <bruno@clisp.org>
489
490         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
491         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
492         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
493         workaround.
494         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
495         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
497         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
498         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
499         (Depends-on): Update conditions.
500         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
501         IRIX 6.5, OSF/1 5.1 problems.
502
503 2012-04-01  Bruno Haible  <bruno@clisp.org>
504
505         log10f: Work around OSF/1 5.1 bug.
506         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
507         * lib/log10f.c (log10f): If logf exists, use it and provide just the
508         workaround.
509         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
510         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
512         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
513         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
514         (Depends-on): Update conditions.
515         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
516
517 2012-04-01  Bruno Haible  <bruno@clisp.org>
518
519         log10: Work around OSF/1 5.1 bug.
520         * lib/math.in.h (log10): New declaration.
521         * lib/log10.c: New file.
522         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
523         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
524         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
526         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
527         * modules/log10 (Files): Add lib/log10.c.
528         (Depends-on): Add math.
529         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
530         * tests/test-math-c++.cc: Check the declaration of log10.
531         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
532
533 2012-03-31  Bruno Haible  <bruno@clisp.org>
534
535         log10l tests: More tests.
536         * modules/log10l-tests (Files): Add tests/test-log10l.h,
537         tests/minus-zero.h, tests/randoml.c.
538         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
539         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
540         (main): Invoke test_function.
541
542         log10f tests: More tests.
543         * modules/log10f-tests (Files): Add tests/test-log10.h,
544         tests/minus-zero.h, tests/randomf.c.
545         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
546         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
547         (main): Invoke test_function.
548
549         log10 tests: More tests.
550         * tests/test-log10.h: New file.
551         * modules/log10-tests (Files): Add tests/test-log10.h,
552         tests/minus-zero.h, tests/randomd.c.
553         (Makefile.am): Add randomd.c to test_log10_SOURCES.
554         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
555         (main): Invoke test_function.
556
557 2012-03-31  Simon Josefsson  <simon@josefsson.org>
558
559         fflush: Fix syntax error.
560         * lib/fflush.c: Include unused-parameter.h, needed for
561         _GL_UNUSED_PARAMETER.
562         * modules/fflush (Depends-on): Add snippet/unused-parameter.
563
564 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
565
566         regex: pacify GCC when compiling GRUB
567         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
568         a diagnostic.  Reported by Vladimir Serbinenko in
569         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
570
571 2012-03-29  Eric Blake  <eblake@redhat.com>
572
573         stdio: don't assume gets any more
574         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
575         support.
576         * modules/stdio (Makefile.am): Likewise.
577         * lib/stdio-read.c (gets): Likewise.
578         * tests/test-stdio-c++.cc: Likewise.
579         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
580         * lib/stdio.in.h (gets): Make warning occur in more places.
581         * doc/posix-functions/gets.texi (gets): Update documentation.
582         Reported by Christer Solskogen.
583
584         maint.mk: fix syntax checks without exclusions
585         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
586         Reported by Daniel P. Berrange.
587
588         strerror_r: avoid compiler warning
589         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
590         level.
591
592         fflush: avoid compiler warning
593         * lib/fflush.c (update_fpos_cache): Mark variables that are
594         potentially unused.
595
596 2012-03-25  Bruno Haible  <bruno@clisp.org>
597
598         Tests for module 'localeconv'.
599         * modules/localeconv-tests: New file.
600         * tests/test-localeconv.c: New file.
601
602         New module 'localeconv'.
603         * lib/locale.in.h (localeconv): New declaration.
604         * lib/localeconv.c: New file.
605         * m4/localeconv.m4: New file.
606         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
607         REPLACE_LOCALECONV.
608         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
609         REPLACE_LOCALECONV.
610         * modules/localeconv: New file.
611         * modules/nl_langinfo (Depends-on): Add localeconv.
612         * modules/human (Depends-on): Likewise.
613         * doc/posix-functions/localeconv.texi: Mention the new module.
614
615 2012-03-25  Bruno Haible  <bruno@clisp.org>
616
617         locale: Provide a complete 'struct lconv'.
618         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
619         'struct lconv' does not contain int_p_cs_precedes.
620         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
621         * doc/posix-headers/locale.texi: Update.
622
623         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
624         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
625         * doc/posix-headers/locale.texi: Update.
626
627         locale: Provide a working 'struct lconv'.
628         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
629         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
630         'struct lconv' does not even contain decimal_point.
631         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
632         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
633         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
634         * doc/posix-headers/locale.texi: Mention the problems with
635         'struct lconv'.
636         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
637
638 2012-03-24  Bruno Haible  <bruno@clisp.org>
639
640         Enable common subexpression optimization in GCC.
641         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
642         macros.
643         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
644         GCC attribute 'const'.
645         (uc_locale_language): Declare with GCC attribute 'pure'.
646         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
647         with GCC attribute 'const'.
648         * lib/unictype.in.h (uc_is_general_category_withtable,
649         uc_combining_class, uc_combining_class_name,
650         uc_combining_class_long_name, uc_bidi_class_name,
651         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
652         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
653         uc_decimal_value, uc_digit_value, uc_numeric_value,
654         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
655         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
656         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
657         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
658         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
659         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
660         Declare with GCC attribute 'const'.
661         (uc_general_category_name, uc_general_category_long_name,
662         uc_general_category_byname, uc_general_category,
663         uc_is_general_category, uc_combining_class_byname,
664         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
665         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
666         Declare with GCC attribute 'pure'.
667         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
668         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
669         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
670         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
671         with GCC attribute 'pure'.
672         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
673         'const'.
674         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
675         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
676         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
677         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
678         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
679         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
680         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
681         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
682         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
683         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
684         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
685         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
686         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
687         GCC attribute 'pure'.
688         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
689         'const'.
690         * lib/uniwidth.in.h (uc_width): Simplify declaration.
691         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
692         u32_strwidth): Declare with GCC attribute 'pure'.
693
694         Enable common subexpression optimization in GCC.
695         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
696         (alphasort): Declare with GCC attribute 'pure'.
697         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
698         (atoll): Declare with GCC attribute 'pure'.
699         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
700         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
701         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
702         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
703         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
704         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
705         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
706
707 2012-03-24  Bruno Haible  <bruno@clisp.org>
708
709         gnulib-tool: Avoid unintended error output from 'cmp'.
710         * gnulib-tool (func_add_file, func_update_file, func_import): Use
711         "cmp -s", not "cmp > /dev/null".
712
713 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
714
715         gnulib-tool: fix imprecise comments w.r.t. an automake bug
716
717         It's not just Automake versions < 1.9b that creates an empty
718         pkgdatadir at installation time if pkgdata_DATA is specified
719         to empty; modern automake versions do this as well, at least
720         until automake 1.11.4 (not yet released at the moment of writing,
721         but soon to appear).  That behaviour was generally considered a
722         feature rather than a bug, at least until this discussion:
723         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
724
725         See also automake bugs #10997 and #11030.
726
727         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
728         reference to relevant automake bug numbers.
729         (func_emit_tests_Makefile_am): Likewise.
730
731 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
732
733         announce-gen: use Digest::SHA when possible
734         * build-aux/announce-gen: Use Digest::SHA when possible, falling
735         back to Digest::SHA1 if necessary.
736
737 2012-03-20  Jim Meyering  <meyering@redhat.com>
738
739         tests: avoid gcc warnings about argv vs. const initializers
740         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
741         warnings about discarding 'const' qualifier from pointer target type.
742         * tests/test-posix_spawn2.c (main): Likewise.
743
744 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
745
746         README-release: simplify slightly
747         * top/README-release: Run "git checkout master" only once.
748
749 2012-03-15  Mark Wielaard  <mark@klomp.org>
750
751         git-merge-changelog: add specific example on how to use with hg.
752         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
753
754 2012-03-18  Mark Wielaard  <mark@klomp.org>
755
756         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
757
758 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
759
760         git-version-gen: don't let "prefix" envvar cause trouble
761         * build-aux/git-version-gen (prefix): Initialize properly,
762         so as not to use a value specified via the environment.
763         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
764
765 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
766
767         regex: diagnose too-large repeat counts in EREs
768         Previously, the code did not diagnose the too-large repeat count
769         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
770         as if it were 'b\{1000000000}', which is unexpected.
771         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
772         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
773         is a reasonable one for this problem.  Another option would be to
774         create a new REG_OVERFLOW error for repeat counts that are too large.
775         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
776         count is too large, so that the caller can distinguish the two cases.
777         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
778         "Too large" return code, and that repeat counts are one example of this.
779
780 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
781
782         doc: some glibc x32 integer width issues
783         * doc/posix-headers/sys_types.texi (sys/types.h):
784         * doc/posix-headers/time.texi (time.h):
785         Mention that glibc x32 does not conform to POSIX in a couple of
786         areas related to integer widths.
787
788 2012-03-15  Bruno Haible  <bruno@clisp.org>
789
790         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
791         * lib/fma.c (VOLATILE): New macro.
792         (FUNC): Use it to work around a GCC compiler bug.
793
794 2012-03-13  Bruno Haible  <bruno@clisp.org>
795
796         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
797         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
798         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
799         REPLACE_HYPOTL to 1.
800         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
801
802 2012-03-13  Bruno Haible  <bruno@clisp.org>
803
804         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
805         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
806         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
807         REPLACE_REMAINDERL to 1.
808         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
809         bug.
810
811 2012-03-13  Bruno Haible  <bruno@clisp.org>
812
813         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
814         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
815         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
816         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
817         too big rounding errors.
818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
819         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
820         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
821         (Depends-on): Update conditions.
822         * tests/test-sqrtl.c (my_ldexpl): New function.
823         (main): Add test of a particular value.
824         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
825
826 2012-03-13  Pádraig Brady  <P@draigBrady.com>
827
828         doc: Update timer_* platform portability notes.
829         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
830         that always return ENOSYS.
831         * doc/posix-functions/timer_delete.texi: Likewise.
832         * doc/posix-functions/timer_gettime.texi: Likewise.
833         * doc/posix-functions/timer_settime.texi: Likewise.
834
835 2012-03-13  Bruno Haible  <bruno@clisp.org>
836
837         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
838         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
839         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
840         REPLACE_CBRTL to 1.
841         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
842
843 2012-03-13  Bruno Haible  <bruno@clisp.org>
844
845         remainderl: Avoid compilation error on AIX >= 5.2.
846         * lib/math.in.h (remainderl): Undefine macro from the system header.
847
848 2012-03-13  Bruno Haible  <bruno@clisp.org>
849
850         Avoid compilation errors with MSVC option -fp:strict.
851         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
852         * lib/cbrtf.c: Likewise.
853         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
854
855 2012-03-12  Bruno Haible  <bruno@clisp.org>
856
857         uninorm: Don't crash in out-of-memory conditions.
858         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
859         gracefully.
860         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
861         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
862
863 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
864
865         quote: fix syntax-check
866         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
867         also exports quote_quoting_options.
868
869 2012-03-12  Simon Josefsson  <simon@josefsson.org>
870
871         Collapse list of copyright years to ranges.  See
872         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
873         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
874         build-aux/csharpexec.sh.in, build-aux/gnupload,
875         build-aux/install-reloc, build-aux/javacomp.sh.in,
876         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
877         build-aux/move-if-change, build-aux/reloc-ldflags,
878         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
879
880 2012-03-11  Bruno Haible  <bruno@clisp.org>
881
882         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
883         * m4/log2f-ieee.m4: New file.
884         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
885         whether log2f works with a minus zero argument. Replace it if not.
886         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
887         (Depends-on): Add log2-ieee.
888         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
889         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
890
891         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
892         * m4/log2-ieee.m4: New file.
893         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
894         whether log2 works with a minus zero argument. Replace it if not.
895         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
896         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
897         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
898
899         Tests for module 'log2l-ieee'.
900         * modules/log2l-ieee-tests: New file.
901         * tests/test-log2l-ieee.c: New file.
902
903         New module 'log2l-ieee'.
904         * modules/log2l-ieee: New file.
905
906         Tests for module 'log2-ieee'.
907         * modules/log2-ieee-tests: New file.
908         * tests/test-log2-ieee.c: New file.
909
910         New module 'log2-ieee'.
911         * modules/log2-ieee: New file.
912
913         Tests for module 'log2f-ieee'.
914         * modules/log2f-ieee-tests: New file.
915         * tests/test-log2f-ieee.c: New file.
916         * tests/test-log2-ieee.h: New file.
917
918         New module 'log2f-ieee'.
919         * modules/log2f-ieee: New file.
920
921 2012-03-11  Bruno Haible  <bruno@clisp.org>
922
923         Tests for module 'log2l'.
924         * modules/log2l-tests: New file.
925         * tests/test-log2l.c: New file.
926
927         New module 'log2l'.
928         * lib/math.in.h (log2l): New declaration.
929         * lib/log2l.c: New file.
930         * m4/log2l.m4: New file.
931         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
933         REPLACE_LOG2L.
934         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
935         REPLACE_LOG2L.
936         * modules/log2l: New file.
937         * tests/test-math-c++.cc: Check the declaration of log2l.
938         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
939         and OSF/1 problems.
940
941 2012-03-11  Bruno Haible  <bruno@clisp.org>
942
943         Tests for module 'log2f'.
944         * modules/log2f-tests: New file.
945         * tests/test-log2f.c: New file.
946
947         New module 'log2f'.
948         * lib/math.in.h (log2f): New declaration.
949         * lib/log2f.c: New file.
950         * m4/log2f.m4: New file.
951         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
953         REPLACE_LOG2F.
954         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
955         REPLACE_LOG2F.
956         * modules/log2f: New file.
957         * tests/test-math-c++.cc: Check the declaration of log2f.
958         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
959         and OSF/1 and Cygwin problems.
960
961 2012-03-11  Bruno Haible  <bruno@clisp.org>
962
963         Tests for module 'log2'.
964         * modules/log2-tests: New file.
965         * tests/test-log2.c: New file.
966         * tests/test-log2.h: New file.
967
968         New module 'log2'.
969         * lib/math.in.h (log2): New declaration.
970         * lib/log2.c: New file.
971         * m4/log2.m4: New file.
972         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
974         REPLACE_LOG2.
975         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
976         REPLACE_LOG2.
977         * modules/log2: New file.
978         * tests/test-math-c++.cc: Check the declaration of log2.
979         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
980         and OSF/1 and Cygwin problems.
981
982 2012-03-11  Bruno Haible  <bruno@clisp.org>
983
984         exp2* tests: More tests.
985         * tests/test-exp2.h (test_function): Test all integral arguments that
986         don't need to overflow or denormalized numbers.
987         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
988         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
989         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
990
991 2012-03-10  Bruno Haible  <bruno@clisp.org>
992
993         log1pl-ieee: Work around test failure on AIX 7.1.
994         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
995
996         log1pl-ieee: Work around test failure on IRIX 6.5.
997         * m4/log1pl-ieee.m4: New file.
998         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
999         test whether log1pl works with a minus zero argument. Replace it if
1000         not.
1001         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1003         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1004         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1005         (Depends-on): Update conditions.
1006         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1007         m4/signbit.m4.
1008         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1009         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1010
1011         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1012         * m4/log1pf-ieee.m4: New file.
1013         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1014         test whether log1pf works with a minus zero argument. Replace it if
1015         not.
1016         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1017         m4/signbit.m4.
1018         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1019         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1020
1021         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1022         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1023         (configure.ac): Require gl_FUNC_LOG1PF.
1024
1025         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1026         * m4/log1p-ieee.m4: New file.
1027         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1028         whether log1p works with a minus zero argument. Replace it if not.
1029         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1031         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1032         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1033         (Depends-on): Update conditions.
1034         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1035         m4/signbit.m4.
1036         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1037         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1038
1039         Tests for module 'log1pl-ieee'.
1040         * modules/log1pl-ieee-tests: New file.
1041         * tests/test-log1pl-ieee.c: New file.
1042
1043         New module 'log1pl-ieee'.
1044         * modules/log1pl-ieee: New file.
1045
1046         Tests for module 'log1p-ieee'.
1047         * modules/log1p-ieee-tests: New file.
1048         * tests/test-log1p-ieee.c: New file.
1049
1050         New module 'log1p-ieee'.
1051         * modules/log1p-ieee: New file.
1052
1053         Tests for module 'log1pf-ieee'.
1054         * modules/log1pf-ieee-tests: New file.
1055         * tests/test-log1pf-ieee.c: New file.
1056         * tests/test-log1p-ieee.h: New file.
1057
1058         New module 'log1pf-ieee'.
1059         * modules/log1pf-ieee: New file.
1060
1061 2012-03-10  Bruno Haible  <bruno@clisp.org>
1062
1063         Tests for module 'log1pl'.
1064         * modules/log1pl-tests: New file.
1065         * tests/test-log1pl.c: New file.
1066
1067         New module 'log1pl'.
1068         * lib/math.in.h (log1pl): New declaration.
1069         * lib/log1pl.c: New file.
1070         * m4/log1pl.m4: New file.
1071         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1073         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1074         * modules/log1pl: New file.
1075         * tests/test-math-c++.cc: Check the declaration of log1pl.
1076         * doc/posix-functions/log1pl.texi: Mention the new module.
1077
1078 2012-03-10  Bruno Haible  <bruno@clisp.org>
1079
1080         Tests for module 'log1pf'.
1081         * modules/log1pf-tests: New file.
1082         * tests/test-log1pf.c: New file.
1083
1084         New module 'log1pf'.
1085         * lib/math.in.h (log1pf): New declaration.
1086         * lib/log1pf.c: New file.
1087         * m4/log1pf.m4: New file.
1088         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1090         REPLACE_LOG1PF.
1091         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1092         REPLACE_LOG1PF.
1093         * modules/log1pf: New file.
1094         * tests/test-math-c++.cc: Check the declaration of log1pf.
1095         * doc/posix-functions/log1pf.texi: Mention the new module.
1096
1097 2012-03-10  Bruno Haible  <bruno@clisp.org>
1098
1099         log1p tests: More tests.
1100         * tests/test-log1p.h: New file.
1101         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1102         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1103         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1104         (main): Invoke test_function.
1105
1106         log1p: Provide replacement for Minix and MSVC.
1107         * lib/math.in.h (log1p): New declaration.
1108         * lib/log1p.c: New file.
1109         * m4/log1p.m4: New file.
1110         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1112         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1113         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1114         (Depends-on): Add math, isnand, log, round.
1115         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1116         HAVE_LOG1P is 0.
1117         * tests/test-math-c++.cc: Check the declaration of log1p.
1118         * doc/posix-functions/log1p.texi: Mention the replacement.
1119
1120 2012-03-10  Bruno Haible  <bruno@clisp.org>
1121
1122         math tests: Small simplification.
1123         * tests/test-exp.h (test_function): Use the same err_bound for
1124         'double' on platforms with sizeof (long double) == sizeof (double)
1125         than on platforms with sizeof (long double) > sizeof (double).
1126         * tests/test-exp2.h (test_function): Likewise.
1127         * tests/test-expm1.h (test_function): Likewise.
1128         * tests/test-log.h (test_function): Likewise.
1129
1130 2012-03-10  Bruno Haible  <bruno@clisp.org>
1131
1132         Fix some comments.
1133         * lib/expl.c: Fix an ambiguous comment.
1134         * lib/expm1.c: Likewise.
1135         * lib/expm1l.c: Likewise.
1136         * lib/exp2.c: Likewise.
1137         * lib/exp2l.c: Likewise.
1138
1139 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1140
1141         regex: allow inclusion of <regex.h> before <limits.h>
1142         Without this patch, portable programs had to include <limits.h> before
1143         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1144         I ran into this problem with a test version of GNU grep on Solaris 8.
1145         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1146         This is done conditionally so that this change can be merged
1147         back to glibc.
1148         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1149         using the included regex.
1150
1151         fts: depend on fdopendir
1152         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1153         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1154         problem was introduced when fdopendir was split out.
1155
1156 2012-03-10  Bruno Haible  <bruno@clisp.org>
1157
1158         Remove unused variables.
1159         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1160         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1161
1162 2012-03-10  Bruno Haible  <bruno@clisp.org>
1163
1164         isnanf-nolibm: Fix last commit.
1165         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1166
1167         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1168         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1169
1170 2012-03-10  Bruno Haible  <bruno@clisp.org>
1171
1172         logf-ieee: Work around test failure on NetBSD 5.1.
1173         * m4/logf-ieee.m4: New file.
1174         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1175         whether logf works with a negative argument. Replace it if not.
1176         * lib/logf.c (logf): For negative arguments, return NaN.
1177         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1178         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1179         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1180
1181         logf-ieee: Work around test failure on Solaris 9.
1182         * modules/logf-ieee (Depends-on): Add log-ieee.
1183         (configure.ac): Require gl_FUNC_LOGF.
1184
1185         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1186         * m4/log-ieee.m4: New file.
1187         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1188         log works with a negative argument. Replace it if not.
1189         * lib/log.c (log): For negative arguments, return NaN.
1190         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1191         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1192         * doc/posix-functions/log.texi: Mention the log-ieee module.
1193
1194         Tests for module 'logl-ieee'.
1195         * modules/logl-ieee-tests: New file.
1196         * tests/test-logl-ieee.c: New file.
1197
1198         New module 'logl-ieee'.
1199         * modules/logl-ieee: New file.
1200
1201         Tests for module 'log-ieee'.
1202         * modules/log-ieee-tests: New file.
1203         * tests/test-log-ieee.c: New file.
1204
1205         New module 'log-ieee'.
1206         * modules/log-ieee: New file.
1207
1208         Tests for module 'logf-ieee'.
1209         * modules/logf-ieee-tests: New file.
1210         * tests/test-logf-ieee.c: New file.
1211         * tests/test-log-ieee.h: New file.
1212
1213         New module 'logf-ieee'.
1214         * modules/logf-ieee: New file.
1215
1216 2012-03-10  Bruno Haible  <bruno@clisp.org>
1217
1218         log: Fix bug introduced on 2012-03-09.
1219         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1220
1221 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1222
1223         timer-time: link explicitly with pthreads on glibc
1224         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1225         to support static linking, when newer glibc is
1226         detected, as that contains pthread emulation of
1227         POSIX timer functions where required.
1228         * modules/timer-time: Depend on threadlib to
1229         pull in the appropriate library to link.
1230
1231 2012-03-10  Bruno Haible  <bruno@clisp.org>
1232
1233         log* tests: More tests.
1234         * tests/test-log.h: New file.
1235         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1236         (main): Invoke test_function.
1237         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1238         (main): Invoke test_function.
1239         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1240         (main): Invoke test_function.
1241         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1242         tests/randomd.c.
1243         (Makefile.am): Add randomd.c to test_log_SOURCES.
1244         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1245         tests/randomf.c.
1246         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1247         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1248         tests/randoml.c.
1249         (Depends-on): Add 'float'.
1250         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1251
1252 2012-03-09  Bruno Haible  <bruno@clisp.org>
1253
1254         logl: Work around OSF/1 5.1 bug.
1255         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1256         * lib/logl.c (logl): If logl exists, use it and provide just the
1257         workaround.
1258         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1259         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1261         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1262         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1263         (Depends-on): Update conditions.
1264         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1265
1266 2012-03-09  Bruno Haible  <bruno@clisp.org>
1267
1268         logf: Work around OSF/1 5.1 bug.
1269         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1270         * lib/logf.c (logf): If logf exists, use it and provide just the
1271         workaround.
1272         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1273         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1275         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1276         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1277         (Depends-on): Update conditions.
1278         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1279
1280 2012-03-09  Bruno Haible  <bruno@clisp.org>
1281
1282         log: Work around OSF/1 5.1 bug.
1283         * lib/math.in.h (log): New declaration.
1284         * lib/log.c: New file.
1285         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1286         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1287         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1289         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1290         * modules/log (Files): Add lib/log.c.
1291         (Depends-on): Add math.
1292         (configure.ac): If REPLACE_LOG is 1, compile an override.
1293         * tests/test-math-c++.cc: Check the declaration of log.
1294         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1295
1296 2012-03-09  Jim Meyering  <meyering@redhat.com>
1297
1298         readtokens.c: adjust wording in a comment
1299         * lib/readtokens.c: Insert omitted "that" in a comment.
1300
1301 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1302
1303         modechange: add notations +40, 00440, etc.
1304         * lib/modechange.c (mode_compile): Support new notations
1305         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1306
1307 2012-03-08  Bruno Haible  <bruno@clisp.org>
1308
1309         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1310         * m4/exp2l-ieee.m4: New file.
1311         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1312         test whether exp2l works with a NaN argument and with a negative
1313         infinity argument. Replace it if not.
1314         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1316         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1317         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1318         (Depends-on): Update conditions.
1319         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1320         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1321         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1322
1323         Tests for module 'exp2l-ieee'.
1324         * modules/exp2l-ieee-tests: New file.
1325         * tests/test-exp2l-ieee.c: New file.
1326
1327         New module 'exp2l-ieee'.
1328         * modules/exp2l-ieee: New file.
1329
1330         Tests for module 'exp2-ieee'.
1331         * modules/exp2-ieee-tests: New file.
1332         * tests/test-exp2-ieee.c: New file.
1333
1334         New module 'exp2-ieee'.
1335         * modules/exp2-ieee: New file.
1336
1337         Tests for module 'exp2f-ieee'.
1338         * modules/exp2f-ieee-tests: New file.
1339         * tests/test-exp2f-ieee.c: New file.
1340         * tests/test-exp2-ieee.h: New file.
1341
1342         New module 'exp2f-ieee'.
1343         * modules/exp2f-ieee: New file.
1344
1345 2012-03-08  Bruno Haible  <bruno@clisp.org>
1346
1347         Tests for module 'exp2l'.
1348         * modules/exp2l-tests: New file.
1349         * tests/test-exp2l.c: New file.
1350
1351         New module 'exp2l'.
1352         * lib/math.in.h (exp2l): New declaration.
1353         * lib/exp2l.c: New file.
1354         * lib/expl-table.c: New file, extracted from lib/expl.c.
1355         * lib/expl.c (gl_expl_table): New declaration.
1356         (expl): Remove expl_table. Update reference.
1357         * m4/exp2l.m4: New file.
1358         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1360         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1361         * modules/exp2l: New file.
1362         * modules/expl (Files): Add lib/expl-table.c.
1363         (configure.ac): Compile also expl-table.c.
1364         * tests/test-math-c++.cc: Check the declaration of exp2l.
1365         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1366         problem.
1367
1368 2012-03-08  Bruno Haible  <bruno@clisp.org>
1369
1370         Tests for module 'exp2f'.
1371         * modules/exp2f-tests: New file.
1372         * tests/test-exp2f.c: New file.
1373
1374         New module 'exp2f'.
1375         * lib/math.in.h (exp2f): New declaration.
1376         * lib/exp2f.c: New file.
1377         * m4/exp2f.m4: New file.
1378         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1380         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1381         * modules/exp2f: New file.
1382         * tests/test-math-c++.cc: Check the declaration of exp2f.
1383         * doc/posix-functions/exp2f.texi: Mention the new module and the
1384         IRIX problem.
1385
1386 2012-03-08  Bruno Haible  <bruno@clisp.org>
1387
1388         Tests for module 'exp2'.
1389         * modules/exp2-tests: New file.
1390         * tests/test-exp2.c: New file.
1391         * tests/test-exp2.h: New file.
1392
1393         New module 'exp2'.
1394         * lib/math.in.h (exp2): New declaration.
1395         * lib/exp2.c: New file.
1396         * m4/exp2.m4: New file.
1397         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1399         REPLACE_EXP2.
1400         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1401         REPLACE_EXP2.
1402         * modules/exp2: New file.
1403         * tests/test-math-c++.cc: Check the declaration of exp2.
1404         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1405         and OpenBSD problems.
1406
1407 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         savedir: fix comment typo
1410         * lib/savedir.c (savedirstream): Fix typo in comment.
1411
1412 2012-03-08  Bruno Haible  <bruno@clisp.org>
1413
1414         test-readtokens.c: use const; remove unwarranted cast
1415         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1416
1417 2012-03-08  Bruno Haible  <bruno@clisp.org>
1418
1419         fmal: Avoid compilation error on AIX.
1420         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1421         AIX 5.2..7.1.
1422
1423 2012-03-08  Bruno Haible  <bruno@clisp.org>
1424
1425         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1426         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1427         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1428         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1429         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1430         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1431         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1432
1433 2012-03-08  Bruno Haible  <bruno@clisp.org>
1434
1435         remainderf: Override buggy system function on IRIX 6.5.
1436         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1437         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1438         when it exists.
1439         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1440
1441 2012-03-08  Jim Meyering  <meyering@redhat.com>
1442
1443         test-readtokens.c: avoid const-related compilation warnings
1444         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1445
1446 2012-03-07  Jim Meyering  <meyering@redhat.com>
1447             Bruno Haible  <bruno@clisp.org>
1448
1449         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1450         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1451         tests/randomd.c.
1452         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1453         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1454         tests/randoml.c.
1455         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1456
1457 2012-03-07  Bruno Haible  <bruno@clisp.org>
1458
1459         expm1l: Avoid compilation error on AIX.
1460         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1461         AIX 5.2..7.1.
1462
1463 2012-03-07  Bruno Haible  <bruno@clisp.org>
1464
1465         expm1l: Don't override undeclared system function on IRIX 6.5.
1466         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1467         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1468         it exists. Set HAVE_DECL_EXPM1L.
1469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1470         HAVE_EXPM1L.
1471         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1472         HAVE_EXPM1L.
1473         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1474
1475 2012-03-07  Bruno Haible  <bruno@clisp.org>
1476
1477         remainderl: Don't override undeclared system function on IRIX 6.5.
1478         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1479         HAVE_REMAINDERL.
1480         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1481         declared when it exists. Set HAVE_DECL_REMAINDERL.
1482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1483         not HAVE_REMAINDERL.
1484         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1485         HAVE_REMAINDERL.
1486         * doc/posix-functions/remainderl.texi: Mention missing declaration
1487         problem.
1488
1489 2012-03-07  Bruno Haible  <bruno@clisp.org>
1490
1491         rintf: Don't override undeclared system function on IRIX 6.5.
1492         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1493         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1494         exists. Set HAVE_DECL_RINTF.
1495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1496         HAVE_RINTF.
1497         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1498         HAVE_RINTF.
1499         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1500
1501 2012-03-07  Bruno Haible  <bruno@clisp.org>
1502
1503         roundl: Avoid compilation error on AIX.
1504         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1505         AIX 5.2..7.1.
1506
1507 2012-03-07  Bruno Haible  <bruno@clisp.org>
1508
1509         roundl: Don't override undeclared system function on IRIX 6.5.
1510         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1511         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1512         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1513         * modules/roundl (configure.ac): For replacement code, test
1514         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1515         (Depends-on): Update conditions.
1516         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1517
1518 2012-03-07  Bruno Haible  <bruno@clisp.org>
1519
1520         roundf: Don't override undeclared system function on IRIX 6.5.
1521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1522         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1523         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1524         * modules/roundf (configure.ac): For replacement code, test
1525         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1526         (Depends-on): Update conditions.
1527         * modules/roundf-ieee (Depends-on): Update conditions.
1528         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1529
1530 2012-03-07  Bruno Haible  <bruno@clisp.org>
1531
1532         round: Don't override undeclared system function on IRIX 6.5.
1533         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1534         argument.
1535         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1536         also when it is not declared. Set HAVE_ROUND. For replacement code,
1537         test HAVE_ROUND, not HAVE_DECL_ROUND.
1538         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1539         not HAVE_DECL_ROUND.
1540         (Depends-on): Update conditions.
1541         * modules/round-ieee (Depends-on): Update conditions.
1542         * doc/posix-functions/round.texi: Mention the IRIX problem.
1543
1544 2012-03-07  Bruno Haible  <bruno@clisp.org>
1545
1546         copysignf: Don't override undeclared system function on IRIX 6.5.
1547         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1548         HAVE_COPYSIGNF.
1549         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1550         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1552         not HAVE_COPYSIGNF.
1553         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1554         HAVE_COPYSIGNF.
1555         * doc/posix-functions/copysignf.texi: Mention missing declaration
1556         problem.
1557
1558 2012-03-07  Jim Meyering  <meyering@redhat.com>
1559
1560         readtokens: add tests
1561         * modules/readtokens-tests: New file.
1562         * tests/test-readtokens.c: New file.
1563
1564 2012-03-07  Jim Meyering  <meyering@redhat.com>
1565
1566         quotearg: the module must now include quote.h
1567         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1568         So must the module.
1569         * modules/quotearg (Files): Add quote.h.
1570
1571 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1572
1573         readtokens: avoid core dumps with unusual calling patterns
1574         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1575         * lib/readtokens.c: Include limits.h.
1576         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1577         (readtoken): Don't cache the delimiters; the cache code was buggy
1578         if !delim && saved_delim, or if the new n_delim differs from the old.
1579         Also, it wasn't thread-safe.
1580
1581 2012-03-07  Bruno Haible  <bruno@clisp.org>
1582
1583         quote: Adhere to common module description layout.
1584         * modules/quote (Makefile.am): Add back empty section.
1585
1586 2012-03-06  Akim Demaille  <demaille@gostai.com>
1587
1588         quote: fuse into quotearg
1589         This patch is made for the benefit of Bison.
1590         quote does not leave the choice of the quoting style to the user.
1591         quoting_style provides poor customizability, yet quoting_options,
1592         which is very rich, is hidden inside quotearg.c.  So in order to
1593         allow quote customization, move its implementation to quotearg.c.
1594         * lib/quote.c: Remove.
1595         * modules/quote: Adjust.
1596         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1597         warning: provide all the members of literal structs.
1598         (quote_quoting_options): New.
1599         (quote, quote_n): Import implementation from quote.c.
1600         * lib/quote.h: Import the comments from quote.c.
1601         (quote_quoting_options): New.
1602
1603 2012-03-06  Bruno Haible  <bruno@clisp.org>
1604
1605         Tests for module 'expm1l-ieee'.
1606         * modules/expm1l-ieee-tests: New file.
1607         * tests/test-expm1l-ieee.c: New file.
1608
1609         New module 'expm1l-ieee'.
1610         * modules/expm1l-ieee: New file.
1611
1612         Tests for module 'expm1f-ieee'.
1613         * modules/expm1f-ieee-tests: New file.
1614         * tests/test-expm1f-ieee.c: New file.
1615
1616         New module 'expm1f-ieee'.
1617         * modules/expm1f-ieee: New file.
1618
1619         Tests for module 'expm1-ieee'.
1620         * modules/expm1-ieee-tests: New file.
1621         * tests/test-expm1-ieee.c: New file.
1622         * tests/test-expm1-ieee.h: New file.
1623
1624         New module 'expm1-ieee'.
1625         * modules/expm1-ieee: New file.
1626         * m4/expm1-ieee.m4: New file.
1627         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1628         whether expm1 works with a minus zero argument. Replace it if not.
1629         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1631         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1632         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1633         (Depends-on): Update conditions.
1634         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1635         AIX problem.
1636
1637 2012-03-06  Bruno Haible  <bruno@clisp.org>
1638
1639         Work around expm1f bug on IRIX 6.5.
1640         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1641         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1642         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1643         not work.
1644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1645         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1646         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1647         (Depends-on): Update conditions.
1648         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1649
1650 2012-03-06  Bruno Haible  <bruno@clisp.org>
1651
1652         Tests for module 'expm1l'.
1653         * modules/expm1l-tests: New file.
1654         * tests/test-expm1l.c: New file.
1655
1656         New module 'expm1l'.
1657         * lib/math.in.h (expm1l): New declaration.
1658         * lib/expm1l.c: New file.
1659         * m4/expm1l.m4: New file.
1660         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1662         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1663         * modules/expm1l: New file.
1664         * tests/test-math-c++.cc: Check the declaration of expm1l.
1665         * doc/posix-functions/expm1l.texi: Mention the new module.
1666
1667 2012-03-06  Bruno Haible  <bruno@clisp.org>
1668
1669         Tests for module 'expm1f'.
1670         * modules/expm1f-tests: New file.
1671         * tests/test-expm1f.c: New file.
1672
1673         New module 'expm1f'.
1674         * lib/math.in.h (expm1f): New declaration.
1675         * lib/expm1f.c: New file.
1676         * m4/expm1f.m4: New file.
1677         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1679         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1680         * modules/expm1f: New file.
1681         * tests/test-math-c++.cc: Check the declaration of expm1f.
1682         * doc/posix-functions/expm1f.texi: Mention the new module.
1683
1684 2012-03-06  Bruno Haible  <bruno@clisp.org>
1685
1686         Tests for module 'expm1'.
1687         * modules/expm1-tests: New file.
1688         * tests/test-expm1.c: New file.
1689         * tests/test-expm1.h: New file.
1690
1691         New module 'expm1'.
1692         * lib/math.in.h (expm1): New declaration.
1693         * lib/expm1.c: New file.
1694         * m4/expm1.m4: New file.
1695         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1697         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1698         * modules/expm1: New file.
1699         * tests/test-math-c++.cc: Check the declaration of expm1.
1700         * doc/posix-functions/expm1.texi: Mention the new module.
1701
1702 2012-03-06  Bruno Haible  <bruno@clisp.org>
1703
1704         math: Ensure declarations of math functions.
1705         * modules/acosf (Depends-on): Add 'extensions'.
1706         * modules/asinf (Depends-on): Likewise.
1707         * modules/atan2f (Depends-on): Likewise.
1708         * modules/atanf (Depends-on): Likewise.
1709         * modules/cbrt (Depends-on): Likewise.
1710         * modules/cbrtf (Depends-on): Likewise.
1711         * modules/cbrtl (Depends-on): Likewise.
1712         * modules/copysignf (Depends-on): Likewise.
1713         * modules/copysignl (Depends-on): Likewise.
1714         * modules/cosf (Depends-on): Likewise.
1715         * modules/coshf (Depends-on): Likewise.
1716         * modules/expf (Depends-on): Likewise.
1717         * modules/fabsf (Depends-on): Likewise.
1718         * modules/fabsl (Depends-on): Likewise.
1719         * modules/fmaf (Depends-on): Likewise.
1720         * modules/fmal (Depends-on): Likewise.
1721         * modules/fmodf (Depends-on): Likewise.
1722         * modules/fmodl (Depends-on): Likewise.
1723         * modules/frexpf (Depends-on): Likewise.
1724         * modules/frexpl (Depends-on): Likewise.
1725         * modules/hypot (Depends-on): Likewise.
1726         * modules/hypotf (Depends-on): Likewise.
1727         * modules/hypotl (Depends-on): Likewise.
1728         * modules/ldexpf (Depends-on): Likewise.
1729         * modules/ldexpl (Depends-on): Likewise.
1730         * modules/log10f (Depends-on): Likewise.
1731         * modules/log10l (Depends-on): Likewise.
1732         * modules/log1p (Depends-on): Likewise.
1733         * modules/logb (Depends-on): Likewise.
1734         * modules/logf (Depends-on): Likewise.
1735         * modules/modff (Depends-on): Likewise.
1736         * modules/modfl (Depends-on): Likewise.
1737         * modules/powf (Depends-on): Likewise.
1738         * modules/remainderf (Depends-on): Likewise.
1739         * modules/remainderl (Depends-on): Likewise.
1740         * modules/rintf (Depends-on): Likewise.
1741         * modules/rintl (Depends-on): Likewise.
1742         * modules/sinf (Depends-on): Likewise.
1743         * modules/sinhf (Depends-on): Likewise.
1744         * modules/sqrtf (Depends-on): Likewise.
1745         * modules/tanf (Depends-on): Likewise.
1746         * modules/tanhf (Depends-on): Likewise.
1747         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1748         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1749         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1750         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1751         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1752         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1753         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1754         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1755         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1756         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1757         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1758         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1759         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1760         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1761         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1762         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1763         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1764         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1765         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1766         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1767         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1768         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1769         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1770         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1771         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1772         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1773         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1774         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1775         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1776         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1777         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1778         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1779         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1780         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1781         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1782         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1783         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1784         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1785         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1786         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1787         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1788
1789 2012-03-06  Bruno Haible  <bruno@clisp.org>
1790
1791         math: Update module names in warnings.
1792         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1793         tanl): Use specific module name in warn-on-use warning.
1794
1795 2012-03-06  Bruno Haible  <bruno@clisp.org>
1796
1797         expl: Simplify computation.
1798         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1799
1800 2012-03-05  Bruno Haible  <bruno@clisp.org>
1801
1802         exp* tests: More tests.
1803         * tests/test-exp.h: New file.
1804         * tests/test-exp.c: Include <float.h> and test-exp.h.
1805         (main): Invoke test_function.
1806         * tests/test-expf.c: Include <float.h> and test-exp.h.
1807         (main): Invoke test_function.
1808         * tests/test-expl.c: Include <float.h> and test-exp.h.
1809         (main): Invoke test_function.
1810         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1811         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1812         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1813         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1814         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1815         (Depends-on): Add 'float'.
1816         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1817
1818         expl: Fix precision of computed result.
1819         * lib/expl.c: Completely rewritten.
1820         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1821         (Maintainer): Add me.
1822         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1823
1824 2012-03-05  Bruno Haible  <bruno@clisp.org>
1825
1826         cbrt* tests: More tests.
1827         * tests/test-cbrt.h: New file.
1828         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1829         (main): Invoke test_function.
1830         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1831         (main): Invoke test_function.
1832         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1833         (main): Invoke test_function.
1834         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1835         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1836         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1837         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1838         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1839         (Depends-on): Add 'float'.
1840         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1841
1842 2012-03-05  Bruno Haible  <bruno@clisp.org>
1843
1844         hypot* tests: More tests.
1845         * tests/test-hypot.h: New file, partially extracted from
1846         tests/test-hypotl.c.
1847         * tests/test-hypot.c: Include test-hypot.h.
1848         (main): Invoke test_function.
1849         * tests/test-hypotf.c: Include test-hypot.h.
1850         (main): Invoke test_function.
1851         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1852         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1853         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1854         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1855         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1856         tests/randomf.c.
1857         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1858         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1859         tests/randoml.c.
1860         (Depends-on): Add 'fpucw', 'float'.
1861         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1862
1863 2012-03-05  Bruno Haible  <bruno@clisp.org>
1864
1865         fpucw: Doc about FreeBSD.
1866         * lib/fpucw.h: Mention FreeBSD in comments.
1867
1868 2012-03-04  Bruno Haible  <bruno@clisp.org>
1869
1870         sqrt* tests: More tests.
1871         * tests/test-sqrt.h: New file.
1872         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1873         (main): Invoke test_function.
1874         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1875         (main): Invoke test_function.
1876         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1877         (main): Invoke test_function.
1878         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1879         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1880         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1881         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1882         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1883         (Depends-on): Add 'float'.
1884         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1885
1886 2012-03-04  Bruno Haible  <bruno@clisp.org>
1887
1888         remainder* tests: More tests.
1889         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1890         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1891         (main): Invoke test_function.
1892         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1893         (main): Invoke test_function.
1894         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1895         (main): Invoke test_function.
1896         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1897         tests/randomd.c.
1898         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1899         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1900         tests/randomf.c.
1901         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1902         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1903         tests/randoml.c.
1904         (Depends-on): Add 'float'.
1905         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1906
1907 2012-03-04  Bruno Haible  <bruno@clisp.org>
1908
1909         remainder, remainderf, remainderl: Fix computation for large quotients.
1910         * lib/remainder.c: Completely rewritten.
1911         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1912         USE_FLOAT.
1913         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1914         USE_LONG_DOUBLE.
1915         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1916         isnand, isinf. Remove round, fma.
1917         * modules/remainderf (Files): Add lib/remainder.c.
1918         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1919         Remove roundf, fmaf.
1920         * modules/remainderl (Files): Add lib/remainder.c.
1921         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1922         isinf. Remove roundl, fmal.
1923         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1924         REMAINDER_LIBM.
1925         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1926         REMAINDERF_LIBM.
1927         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1928         REMAINDERL_LIBM.
1929
1930 2012-03-04  Bruno Haible  <bruno@clisp.org>
1931
1932         fmod* tests: More tests.
1933         * tests/test-fmod.h (my_ldexp): New function.
1934         (test_function): Reduce amount of random numbers to test. Add tests
1935         of very large quotients x / y.
1936         * tests/test-fmod.c (MAX_EXP): New macro.
1937         * tests/test-fmodf.c (MAX_EXP): Likewise.
1938         * tests/test-fmodl.c (MAX_EXP): Likewise.
1939
1940 2012-03-04  Bruno Haible  <bruno@clisp.org>
1941
1942         fmod, fmodl: Fix computation for large quotients x / y.
1943         * lib/fmod.c: Completely rewritten.
1944         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1945         USE_LONG_DOUBLE.
1946         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1947         isnand. Remove fma.
1948         * modules/fmodl (Files): Add lib/fmod.c.
1949         (Depends-on): Add float, isfinite, signbit, fabsl,
1950         frexpl, ldexpl, isnanl. Remove fma.
1951         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1952         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1953
1954 2012-03-03  Bruno Haible  <bruno@clisp.org>
1955
1956         fmod* tests: More tests.
1957         * tests/test-fmod.h: New file.
1958         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1959         (main): Invoke test_function.
1960         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1961         (main): Invoke test_function.
1962         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1963         (main): Invoke test_function.
1964         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1965         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1966         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1967         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1968         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1969         (Depends-on): Add 'float'.
1970         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1971
1972 2012-03-03  Bruno Haible  <bruno@clisp.org>
1973
1974         rint* tests: More tests.
1975         * tests/test-rint.h: New file, partially extracted from
1976         tests/test-rintl.c.
1977         * tests/test-rint.c: Include test-rint.h.
1978         (main): Invoke test_function.
1979         * tests/test-rintf.c: Include test-rint.h.
1980         (main): Invoke test_function.
1981         * tests/test-rintl.c: Include test-rint.h.
1982         (main): Invoke test_function.
1983         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1984         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1985         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1986         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1987         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1988         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1989
1990 2012-03-03  Bruno Haible  <bruno@clisp.org>
1991
1992         modf* tests: More tests.
1993         * tests/test-modf.h: New file.
1994         * tests/test-modf.c: Include <float.h> and test-modf.h.
1995         (main): Invoke test_function.
1996         * tests/test-modff.c: Include <float.h> and test-modf.h.
1997         (main): Invoke test_function.
1998         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1999         (main): Invoke test_function.
2000         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2001         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2002         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2003         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2004         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2005         (Depends-on): Add 'float'.
2006         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2007
2008 2012-03-03  Bruno Haible  <bruno@clisp.org>
2009
2010         fabs* tests: More tests.
2011         * tests/test-fabs.h: New file, partially extracted from
2012         tests/test-fabsl.c.
2013         * tests/test-fabs.c (RANDOM): New macro.
2014         * tests/test-fabsf.c (RANDOM): New macro.
2015         * tests/test-fabsl.c (RANDOM): New macro.
2016         * modules/fabs-tests (Files): Add tests/randomd.c.
2017         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2018         * modules/fabsf-tests (Files): Add tests/randomf.c.
2019         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2020         * modules/fabsl-tests (Files): Add tests/randoml.c.
2021         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2022
2023 2012-03-03  Bruno Haible  <bruno@clisp.org>
2024
2025         ldexp* tests: More tests.
2026         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2027         * tests/test-ldexp.c (RANDOM): New macro.
2028         * tests/test-ldexpf.c (RANDOM): New macro.
2029         * tests/test-ldexpl.c (RANDOM): New macro.
2030         * modules/ldexp-tests (Files): Add tests/randomd.c.
2031         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2032         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2033         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2034         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2035         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2036
2037 2012-03-03  Bruno Haible  <bruno@clisp.org>
2038
2039         frexp* tests: More tests.
2040         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2041         * tests/test-frexp.c (RANDOM): New macro.
2042         * tests/test-frexpf.c (RANDOM): New macro.
2043         * tests/test-frexpl.c (RANDOM): New macro.
2044         * modules/frexp-tests (Files): Add tests/randomd.c.
2045         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2046         * modules/frexpf-tests (Files): Add tests/randomf.c.
2047         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2048         * modules/frexpl-tests (Files): Add tests/randoml.c.
2049         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2050
2051 2012-03-03  Bruno Haible  <bruno@clisp.org>
2052
2053         Support for pseudo-random numbers in tests.
2054         * tests/randomf.c: New file.
2055         * tests/randomd.c: New file.
2056         * tests/randoml.c: New file.
2057         * tests/macros.h (randomf, randomd, randoml): New declarations.
2058
2059 2012-03-03  Bruno Haible  <bruno@clisp.org>
2060
2061         frexp* tests: Refactor.
2062         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2063         * tests/test-frexp.c: Include and use it.
2064         * tests/test-frexpf.c: Likewise.
2065         * tests/test-frexpl.c: Likewise.
2066         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2067         * modules/frexpf-tests (Files): Likewise.
2068         * modules/frexpl-tests (Files): Likewise.
2069
2070 2012-03-02  Jim Meyering  <meyering@redhat.com>
2071
2072         maint: don't specify XZ_OPT=-9ev in dist-related rule
2073         Using xz's -9 option is warranted only if you have a very large
2074         tarball (see xz's documentation for the sizes vs. presets), and
2075         requires 64MiB of memory at decompression time.
2076         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2077         Automake's default of just "-e" is fine.  Override on a
2078         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2079
2080 2012-03-01  Eric Blake  <eblake@redhat.com>
2081
2082         maint.mk: allow announcement for non-gnulib project
2083         * maint.mk (announcement): Skip gnulib version if not used.
2084
2085 2012-03-01  Jim Meyering  <meyering@redhat.com>
2086
2087         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2088         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2089         envvar settings cannot interfere.  Otherwise, setting envvars like
2090         prohibit=foo require=bar, etc. would cause spurious test failures.
2091
2092 2012-03-01  Eric Blake  <eblake@redhat.com>
2093
2094         maint.mk: add per-line exclusions to prohibitions
2095         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2096         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2097         (sc_const_long_option): Use it.
2098
2099 2012-03-01  Bruno Haible  <bruno@clisp.org>
2100
2101         Tests for module 'expl-ieee'.
2102         * modules/expl-ieee-tests: New file.
2103         * tests/test-expl-ieee.c: New file.
2104
2105         New module 'expl-ieee'.
2106         * modules/expl-ieee: New file.
2107
2108         Tests for module 'exp-ieee'.
2109         * modules/exp-ieee-tests: New file.
2110         * tests/test-exp-ieee.c: New file.
2111
2112         New module 'exp-ieee'.
2113         * modules/exp-ieee: New file.
2114
2115         Tests for module 'expf-ieee'.
2116         * modules/expf-ieee-tests: New file.
2117         * tests/test-expf-ieee.c: New file.
2118         * tests/test-exp-ieee.h: New file.
2119
2120         New module 'expf-ieee'.
2121         * modules/expf-ieee: New file.
2122
2123 2012-02-29  Bruno Haible  <bruno@clisp.org>
2124
2125         cbrtl-ieee: Work around test failure on IRIX 6.5.
2126         * m4/cbrtl-ieee.m4: New file.
2127         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2128         test whether cbrtl works with a minus zero argument. Replace it if not.
2129         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2131         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2132         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2133         (Depends-on): Update conditions.
2134         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2135         m4/signbit.m4.
2136         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2137         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2138         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2139
2140         Tests for module 'cbrtl-ieee'.
2141         * modules/cbrtl-ieee-tests: New file.
2142         * tests/test-cbrtl-ieee.c: New file.
2143
2144         New module 'cbrtl-ieee'.
2145         * modules/cbrtl-ieee: New file.
2146
2147         Tests for module 'cbrt-ieee'.
2148         * modules/cbrt-ieee-tests: New file.
2149         * tests/test-cbrt-ieee.c: New file.
2150
2151         New module 'cbrt-ieee'.
2152         * modules/cbrt-ieee: New file.
2153
2154         Tests for module 'cbrtf-ieee'.
2155         * modules/cbrtf-ieee-tests: New file.
2156         * tests/test-cbrtf-ieee.c: New file.
2157         * tests/test-cbrt-ieee.h: New file.
2158
2159         New module 'cbrtf-ieee'.
2160         * modules/cbrtf-ieee: New file.
2161
2162 2012-02-29  Bruno Haible  <bruno@clisp.org>
2163
2164         cbrtf: Work around bug in IRIX 6.5 system function.
2165         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2166         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2167         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2168         work.
2169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2170         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2171         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2172         (Depends-on): Update conditions.
2173         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2174
2175 2012-02-29  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests for module 'cbrtl'.
2178         * modules/cbrtl-tests: New file.
2179         * tests/test-cbrtl.c: New file.
2180
2181         New module 'cbrtl'.
2182         * lib/math.in.h (cbrtl): New declaration.
2183         * lib/cbrtl.c: New file.
2184         * m4/cbrtl.m4: New file.
2185         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2187         HAVE_DECL_CBRTL.
2188         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2189         HAVE_DECL_CBRTL.
2190         * modules/cbrtl: New file.
2191         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2192         * doc/posix-functions/cbrtl.texi: Mention the new module.
2193
2194 2012-02-29  Bruno Haible  <bruno@clisp.org>
2195
2196         Tests for module 'cbrtf'.
2197         * modules/cbrtf-tests: New file.
2198         * tests/test-cbrtf.c: New file.
2199
2200         New module 'cbrtf'.
2201         * lib/math.in.h (cbrtf): New declaration.
2202         * lib/cbrtf.c: New file.
2203         * m4/cbrtf.m4: New file.
2204         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2206         HAVE_DECL_CBRTF.
2207         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2208         HAVE_DECL_CBRTF.
2209         * modules/cbrtf: New file.
2210         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2211         * doc/posix-functions/cbrtf.texi: Mention the new module.
2212
2213 2012-02-29  Bruno Haible  <bruno@clisp.org>
2214
2215         cbrt: Provide replacement on MSVC and Minix.
2216         * lib/math.in.h (cbrt): New declaration.
2217         * lib/cbrt.c: New file.
2218         * m4/cbrt.m4: New file.
2219         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2221         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2222         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2223         (Depends-on): Add dependencies.
2224         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2225         * tests/test-math-c++.cc: Check the declaration of cbrt.
2226         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2227         replacement.
2228
2229 2012-02-29  Bruno Haible  <bruno@clisp.org>
2230
2231         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2232         * m4/hypotl-ieee.m4: New file.
2233         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2234         test whether hypotl works with mixed NaN and Infinity arguments.
2235         Replace it if not.
2236         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2238         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2239         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2240         (Depends-on): Update conditions.
2241         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2242         (Depends-on): Add hypot-ieee.
2243         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2244         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2245
2246         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2247         * m4/hypotf-ieee.m4: New file.
2248         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2249         test whether hypotf works with mixed NaN and Infinity arguments.
2250         Replace it if not.
2251         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2252         (Depends-on): Add hypot-ieee.
2253         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2254         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2255
2256         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2257         * lib/math.in.h (hypot): New declaration.
2258         * lib/hypot.c: New file.
2259         * m4/hypot-ieee.m4: New file.
2260         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2261         whether hypot works with mixed NaN and Infinity arguments. Replace it
2262         if not.
2263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2264         REPLACE_HYPOT.
2265         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2266         * modules/hypot (Files): Add lib/hypot.c.
2267         (Depends-on): Add dependencies.
2268         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2269         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2270         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2271         * tests/test-math-c++.cc: Check the declaration of hypot.
2272         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2273
2274         Tests for module 'hypotl-ieee'.
2275         * modules/hypotl-ieee-tests: New file.
2276         * tests/test-hypotl-ieee.c: New file.
2277
2278         New module 'hypotl-ieee'.
2279         * modules/hypotl-ieee: New file.
2280
2281         Tests for module 'hypot-ieee'.
2282         * modules/hypot-ieee-tests: New file.
2283         * tests/test-hypot-ieee.c: New file.
2284
2285         New module 'hypot-ieee'.
2286         * modules/hypot-ieee: New file.
2287
2288         Tests for module 'hypotf-ieee'.
2289         * modules/hypotf-ieee-tests: New file.
2290         * tests/test-hypotf-ieee.c: New file.
2291         * tests/test-hypot-ieee.h: New file.
2292
2293         New module 'hypotf-ieee'.
2294         * modules/hypotf-ieee: New file.
2295
2296 2012-02-29  Bruno Haible  <bruno@clisp.org>
2297
2298         Remove unused variables.
2299         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2300         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2301         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2302         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2303
2304 2012-02-29  Eric Blake  <eblake@redhat.com>
2305
2306         termios: fix pid_t always, not just for tcgetsid
2307         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2308         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2309         just when building tcgetsid.
2310
2311 2012-02-29  Bruno Haible  <bruno@clisp.org>
2312
2313         Tests for module 'hypotl'.
2314         * modules/hypotl-tests: New file.
2315         * tests/test-hypotl.c: New file.
2316
2317         New module 'hypotl'.
2318         * lib/math.in.h (hypotl): New declaration.
2319         * lib/hypotl.c: New file.
2320         * m4/hypotl.m4: New file.
2321         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2323         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2324         * modules/hypotl: New file.
2325         * tests/test-math-c++.cc: Check the hypotl declaration.
2326         * doc/posix-functions/hypotl.texi: Mention the new module.
2327
2328 2012-02-29  Eric Blake  <eblake@redhat.com>
2329
2330         tcgetsid: fix cygwin header bug
2331         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2332
2333         docs: update cygwin progress
2334         * doc/posix-functions/llround.texi (llround): Added in cygwin
2335         1.7.8.
2336         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2337         * doc/glibc-functions/program_invocation_name.texi
2338         (program_invocation_name): Likewise.
2339         * doc/glibc-functions/program_invocation_short_name.texi
2340         (program_invocation_short_name): Likewise.
2341         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2342         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2343         Likewise.
2344         * doc/posix-functions/pthread_spin_destroy.texi
2345         (pthread_spin_destroy): Added in cygwin 1.7.10.
2346         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2347         Likewise.
2348         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2349         Likewise.
2350         * doc/posix-functions/pthread_spin_trylock.texi
2351         (pthread_spin_trylock): Likewise.
2352         * doc/posix-functions/pthread_spin_unlock.texi
2353         (pthread_spin_unlock): Likewise.
2354         * doc/posix-functions/pthread_setschedprio.texi
2355         (pthread_setschedprio): Likewise.
2356         * doc/posix-functions/pthread_attr_getstack.texi
2357         (pthread_attr_getstack): Likewise.
2358         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2359         (pthread_attr_getstackaddr): Likewise.
2360         * doc/glibc-functions/pthread_getattr_np.texi
2361         (pthread_getattr_np): Likewise.
2362         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2363         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2364         * doc/posix-functions/clock_settime.texi (clock_settime):
2365         Likewise.
2366         * doc/posix-functions/pthread_attr_getguardsize.texi
2367         (pthread_attr_getguardsize): Likewise.
2368         * doc/posix-functions/pthread_attr_setguardsize.texi
2369         (pthread_attr_setguardsize): Likewise.
2370         * doc/posix-functions/pthread_attr_setstack.texi
2371         (pthread_attr_setstack): Likewise.
2372         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2373         (pthread_attr_setstackaddr): Likewise.
2374         * doc/posix-functions/clock_getcpuclockid.texi
2375         (clock_getcpuclockid): Likewise.
2376         * doc/posix-functions/pthread_getcpuclockid.texi
2377         (pthread_getcpuclockid): Likewise.
2378         * doc/glibc-functions/error.texi (error): Likewise.
2379         * doc/glibc-functions/error_at_line.texi (error_at_line):
2380         Likewise.
2381         * doc/glibc-functions/error_message_count.texi
2382         (error_message_count): Likewise.
2383         * doc/glibc-functions/error_one_per_line.texi
2384         (error_one_per_line): Likewise.
2385         * doc/glibc-functions/error_print_progname.texi
2386         (error_print_progname): Likewise.
2387         * doc/posix-functions/pthread_condattr_getclock.texi
2388         (pthread_condattr_getclock): Likewise.
2389         * doc/posix-functions/pthread_condattr_setclock.texi
2390         (pthread_condattr_setclock): Likewise.
2391         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2392         Likewise.
2393         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2394         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2395         * doc/glibc-functions/get_current_dir_name.texi
2396         (get_current_dir_name): Likewise.
2397         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2398         Likewise.
2399         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2400         wrong return type.
2401         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2402         1.7.11.
2403
2404 2012-02-29  Bruno Haible  <bruno@clisp.org>
2405
2406         Tests for module 'hypotf'.
2407         * modules/hypotf-tests: New file.
2408         * tests/test-hypotf.c: New file.
2409
2410         New module 'hypotf'.
2411         * lib/math.in.h (hypotf): New declaration.
2412         * lib/hypotf.c: New file.
2413         * m4/hypotf.m4: New file.
2414         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2416         REPLACE_HYPOTF.
2417         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2418         REPLACE_HYPOTF.
2419         * modules/hypotf: New file.
2420         * tests/test-math-c++.cc: Check the hypotf declaration.
2421         * doc/posix-functions/hypotf.texi: Mention the new module.
2422
2423         hypot: Prepare for hypotf module.
2424         * m4/hypot.m4: New file.
2425         * modules/hypot (Files): Add m4/hypot.m4.
2426         (configure.ac): Invoke gl_FUNC_HYPOT.
2427
2428 2012-02-29  Bruno Haible  <bruno@clisp.org>
2429
2430         hypot tests: More tests.
2431         * tests/test-hypot.c: Include <float.h>.
2432         (main): Add tests about overflow and underflow.
2433
2434 2012-02-29  Bruno Haible  <bruno@clisp.org>
2435
2436         math code: Add comments.
2437         * lib/acosl.c: Add comment about related glibc source files.
2438         * lib/asinl.c: Likewise.
2439         * lib/atanl.c: Likewise.
2440         * lib/expl.c: Likewise.
2441         * lib/logl.c: Likewise.
2442         * lib/sincosl.c: Likewise.
2443         * lib/sinl.c: Likewise.
2444         * lib/tanl.c: Likewise.
2445         * lib/trigl.c: Likewise.
2446         * lib/cosl.c: Likewise. Fix comments.
2447
2448 2012-02-28  Bruno Haible  <bruno@clisp.org>
2449
2450         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2451         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2452         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2453         HUGE_VALL are defined.
2454         (numeric_equald): Renamed from numeric_equal.
2455         (numeric_equalf, numeric_equall): New functions.
2456         (main): Check also HUGE_VALF, HUGE_VALL.
2457         * modules/math-tests (Files): Add tests/macros.h.
2458         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2459         HUGE_VALL.
2460
2461 2012-02-28  Bruno Haible  <bruno@clisp.org>
2462
2463         doc: Move ISO C11 feature notes into POSIX chapters.
2464         * doc/posix-functions/aligned_alloc.texi: Renamed from
2465         doc/glibc-functions/aligned_alloc.texi.
2466         * doc/posix-functions/quick_exit.texi: Renamed from
2467         doc/glibc-functions/quick_exit.texi.
2468         * doc/posix-headers/uchar.texi: Renamed from
2469         doc/glibc-headers/uchar.texi.
2470         * doc/posix-functions/c16rtomb.texi: Renamed from
2471         doc/glibc-functions/c16rtomb.texi.
2472         * doc/posix-functions/c32rtomb.texi: Renamed from
2473         doc/glibc-functions/c32rtomb.texi.
2474         * doc/posix-functions/mbrtoc16.texi: Renamed from
2475         doc/glibc-functions/mbrtoc16.texi.
2476         * doc/posix-functions/mbrtoc32.texi: Renamed from
2477         doc/glibc-functions/mbrtoc32.texi.
2478         * doc/gnulib.texi: Update.
2479         (Glibc uchar.h): Remove section.
2480         Suggested by Eric Blake.
2481
2482 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         stdnoreturn: port to MSVC better
2485         MSVC standard headers use __declspec(noreturn), so #define noreturn
2486         to empty on that platform.  Reported by Bruno Haible in
2487         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2488         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2489         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2490
2491 2012-02-28  Bruno Haible  <bruno@clisp.org>
2492
2493         doc: Mention new glibc headers and functions.
2494         * doc/glibc-headers/uchar.texi: New file.
2495         * doc/glibc-functions/aligned_alloc.texi: New file.
2496         * doc/glibc-functions/c16rtomb.texi: New file.
2497         * doc/glibc-functions/c32rtomb.texi: New file.
2498         * doc/glibc-functions/clock_adjtime.texi: New file.
2499         * doc/glibc-functions/fanotify_init.texi: New file.
2500         * doc/glibc-functions/fanotify_mark.texi: New file.
2501         * doc/glibc-functions/inet6_opt_append.texi: New file.
2502         * doc/glibc-functions/inet6_opt_find.texi: New file.
2503         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2504         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2505         * doc/glibc-functions/inet6_opt_init.texi: New file.
2506         * doc/glibc-functions/inet6_opt_next.texi: New file.
2507         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2508         * doc/glibc-functions/inet6_rth_add.texi: New file.
2509         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2510         * doc/glibc-functions/inet6_rth_init.texi: New file.
2511         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2512         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2513         * doc/glibc-functions/inet6_rth_space.texi: New file.
2514         * doc/glibc-functions/login.texi: New file.
2515         * doc/glibc-functions/mbrtoc16.texi: New file.
2516         * doc/glibc-functions/mbrtoc32.texi: New file.
2517         * doc/glibc-functions/name_to_handle_at.texi: New file.
2518         * doc/glibc-functions/ntp_gettimex.texi: New file.
2519         * doc/glibc-functions/open_by_handle_at.texi: New file.
2520         * doc/glibc-functions/prlimit.texi: New file.
2521         * doc/glibc-functions/process_vm_readv.texi: New file.
2522         * doc/glibc-functions/process_vm_writev.texi: New file.
2523         * doc/glibc-functions/recvmmsg.texi: New file.
2524         * doc/glibc-functions/scandirat.texi: New file.
2525         * doc/glibc-functions/sendmmsg.texi: New file.
2526         * doc/glibc-functions/setns.texi: New file.
2527         * doc/glibc-functions/timespec_get.texi: New file.
2528         * doc/gnulib.texi: Include them.
2529         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2530         sections.
2531         Reported by Eric Blake.
2532
2533 2012-02-28  Bruno Haible  <bruno@clisp.org>
2534
2535         Avoid compilation errors with MSVC option -fp:strict.
2536         * lib/floor.c: Use MSVC specific pragma fenv_access.
2537         * lib/ceil.c: Likewise.
2538         * lib/trunc.c: Likewise.
2539         * lib/round.c: Likewise.
2540         * lib/rint.c: Likewise.
2541         * lib/fma.c: Likewise.
2542         * lib/integer_length.c: Likewise.
2543         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2544         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2545         * tests/test-floor2.c: Likewise.
2546         * tests/test-floorf2.c: Likewise.
2547         * tests/test-ceil2.c: Likewise.
2548         * tests/test-ceilf2.c: Likewise.
2549         * tests/test-trunc2.c: Likewise.
2550         * tests/test-truncf2.c: Likewise.
2551         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2552
2553 2012-02-27  Bruno Haible  <bruno@clisp.org>
2554
2555         Tests for module 'sqrtl-ieee'.
2556         * modules/sqrtl-ieee-tests: New file.
2557         * tests/test-sqrtl-ieee.c: New file.
2558
2559         New module 'sqrtl-ieee'.
2560         * modules/sqrtl-ieee: New file.
2561
2562         Tests for module 'sqrt-ieee'.
2563         * modules/sqrt-ieee-tests: New file.
2564         * tests/test-sqrt-ieee.c: New file.
2565
2566         New module 'sqrt-ieee'.
2567         * modules/sqrt-ieee: New file.
2568
2569         Tests for module 'sqrtf-ieee'.
2570         * modules/sqrtf-ieee-tests: New file.
2571         * tests/test-sqrtf-ieee.c: New file.
2572         * tests/test-sqrt-ieee.h: New file.
2573
2574         New module 'sqrtf-ieee'.
2575         * modules/sqrtf-ieee: New file.
2576
2577 2012-02-27  Bruno Haible  <bruno@clisp.org>
2578
2579         remainderl-ieee: Work around test failure on OSF/1.
2580         * m4/remainderl-ieee.m4: New file.
2581         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2582         present, test whether remainderl works with a zero second argument.
2583         Replace it if not.
2584         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2586         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2587         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2588         (Depends-on): Update conditions.
2589         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2590         (Depends-on): Add remainder-ieee.
2591         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2592         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2593         module.
2594
2595         remainderf-ieee: Work around test failure on OSF/1.
2596         * m4/remainderf-ieee.m4: New file.
2597         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2598         present, test whether remainderf works with a zero second argument.
2599         Replace it if not.
2600         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2602         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2603         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2604         (Depends-on): Update conditions.
2605         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2606         (Depends-on): Add remainder-ieee.
2607         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2608         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2609         module.
2610
2611         remainder-ieee: Work around test failure on OSF/1.
2612         * m4/remainder-ieee.m4: New file.
2613         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2614         present, test whether remainder works with a zero second argument.
2615         Replace it if not.
2616         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2618         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2619         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2620         (Depends-on): Update dependencies.
2621         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2622         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2623         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2624
2625         Tests for module 'remainderl-ieee'.
2626         * modules/remainderl-ieee-tests: New file.
2627         * tests/test-remainderl-ieee.c: New file.
2628
2629         New module 'remainderl-ieee'.
2630         * modules/remainderl-ieee: New file.
2631
2632         Tests for module 'remainder-ieee'.
2633         * modules/remainder-ieee-tests: New file.
2634         * tests/test-remainder-ieee.c: New file.
2635
2636         New module 'remainder-ieee'.
2637         * modules/remainder-ieee: New file.
2638
2639         Tests for module 'remainderf-ieee'.
2640         * modules/remainderf-ieee-tests: New file.
2641         * tests/test-remainderf-ieee.c: New file.
2642         * tests/test-remainder-ieee.h: New file.
2643
2644         New module 'remainderf-ieee'.
2645         * modules/remainderf-ieee: New file.
2646
2647 2012-02-27  Bruno Haible  <bruno@clisp.org>
2648
2649         modff, modfl: Fix configure syntax error.
2650         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2651         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2652
2653 2012-02-27  Bruno Haible  <bruno@clisp.org>
2654
2655         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2656         * m4/fmodl-ieee.m4: New file.
2657         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2658         whether fmodl works with zero arguments. Replace it if not.
2659         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2660         (Depends-on): Add fmod-ieee.
2661         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2662         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2663
2664         fmodf-ieee: Work around test failure on OSF/1.
2665         * m4/fmodf-ieee.m4: New file.
2666         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2667         whether fmodf works with zero arguments. Replace it if not.
2668         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2670         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2671         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2672         (Depends-on): Update dependencies.
2673         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2674         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2675         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2676
2677         fmodf-ieee: Work around test failure on MSVC 9.
2678         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2679         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2680
2681         fmod-ieee: Work around test failures on OSF/1, mingw.
2682         * m4/fmod-ieee.m4: New file.
2683         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2684         whether fmod works with zero arguments. Replace it if not.
2685         * lib/math.in.h (fmod): New declaration.
2686         * lib/fmod.c: New file.
2687         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2689         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2690         * modules/fmod (Files): Add lib/fmod.c.
2691         (Depends-on): Add math, isinf, trunc, fma.
2692         (configure.ac): Arrange to compile lib/fmod.c if needed.
2693         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2694         m4/signbit.m4.
2695         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2696         * tests/test-math-c++.cc: Check the declaration of fmod.
2697         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2698
2699         fmodl-ieee: Fix test failures.
2700         * lib/fmodl.c (fmodl): Treat Inf specially.
2701         * modules/fmodl (Depends-on): Add isinf.
2702
2703         Tests for module 'fmodl-ieee'.
2704         * modules/fmodl-ieee-tests: New file.
2705         * tests/test-fmodl-ieee.c: New file.
2706
2707         New module 'fmodl-ieee'.
2708         * modules/fmodl-ieee: New file.
2709
2710         Tests for module 'fmod-ieee'.
2711         * modules/fmod-ieee-tests: New file.
2712         * tests/test-fmod-ieee.c: New file.
2713
2714         New module 'fmod-ieee'.
2715         * modules/fmod-ieee: New file.
2716
2717         Tests for module 'fmodf-ieee'.
2718         * modules/fmodf-ieee-tests: New file.
2719         * tests/test-fmodf-ieee.c: New file.
2720         * tests/test-fmod-ieee.h: New file.
2721
2722         New module 'fmodf-ieee'.
2723         * modules/fmodf-ieee: New file.
2724
2725 2012-02-27  Bruno Haible  <bruno@clisp.org>
2726
2727         Tests for module 'rintl-ieee'.
2728         * modules/rintl-ieee-tests: New file.
2729         * tests/test-rintl-ieee.c: New file.
2730
2731         New module 'rintl-ieee'.
2732         * modules/rintl-ieee: New file.
2733
2734         Tests for module 'rint-ieee'.
2735         * modules/rint-ieee-tests: New file.
2736         * tests/test-rint-ieee.c: New file.
2737
2738         New module 'rint-ieee'.
2739         * modules/rint-ieee: New file.
2740
2741         Tests for module 'rintf-ieee'.
2742         * modules/rintf-ieee-tests: New file.
2743         * tests/test-rintf-ieee.c: New file.
2744         * tests/test-rint-ieee.h: New file.
2745
2746         New module 'rintf-ieee'.
2747         * modules/rintf-ieee: New file.
2748
2749 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         regex: re_search etc. should return -2 when memory exhausted
2752         This bug was uncovered when testing 'grep'.  Without the fix,
2753         re_search and friends return -1 when memory is exhausted, but -1
2754         means no match, and this causes grep to falsely report no-match
2755         instead of memory-exhaustion.  See
2756         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2757         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2758         trouble; this can occur if re_search_internal ran out of memory.
2759
2760 2012-02-26  Bruno Haible  <bruno@clisp.org>
2761
2762         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2763         * m4/modfl-ieee.m4: New file.
2764         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2765         whether modfl works with Inf. Replace it if not.
2766         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2768         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2769         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2770         (Depends-on): Update dependencies.
2771         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2772         m4/signbit.m4.
2773         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2774         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2775
2776         modfl-ieee: Fix dependencies.
2777         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2778
2779         modfl-ieee: Fix test failures.
2780         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2781         * modules/modfl (Depends-on): Add isfinite, isinf.
2782
2783         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2784         * m4/modff-ieee.m4: New file.
2785         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2786         whether modff works with NaN and Inf. Replace it if not.
2787         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2789         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2790         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2791         (Depends-on): Update dependencies.
2792         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2793         m4/signbit.m4.
2794         (Depends-on): Add modf-ieee.
2795         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2796         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2797
2798         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2799         * m4/modf-ieee.m4: New file.
2800         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2801         whether modf works with NaN and Inf. Replace it if not.
2802         * lib/math.in.h (modf): New declaration.
2803         * lib/modf.c: New file.
2804         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2806         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2807         * modules/modf (Files): Add lib/modf.c.
2808         (Depends-on): Add math, isfinite, trunc, isinf.
2809         (configure.ac): Addrange to compile lib/modf.c if needed.
2810         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2811         m4/signbit.m4.
2812         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2813         * tests/test-math-c++.cc: Check the declaration of modf.
2814         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2815
2816         Tests for module 'modfl-ieee'.
2817         * modules/modfl-ieee-tests: New file.
2818         * tests/test-modfl-ieee.c: New file.
2819
2820         New module 'modfl-ieee'.
2821         * modules/modfl-ieee: New file.
2822
2823         Tests for module 'modf-ieee'.
2824         * modules/modf-ieee-tests: New file.
2825         * tests/test-modf-ieee.c: New file.
2826
2827         New module 'modf-ieee'.
2828         * modules/modf-ieee: New file.
2829
2830         Tests for module 'modff-ieee'.
2831         * modules/modff-ieee-tests: New file.
2832         * tests/test-modff-ieee.c: New file.
2833         * tests/test-modf-ieee.h: New file.
2834
2835         New module 'modff-ieee'.
2836         * modules/modff-ieee: New file.
2837
2838 2012-02-26  Bruno Haible  <bruno@clisp.org>
2839
2840         Tests for module 'fabsl-ieee'.
2841         * modules/fabsl-ieee-tests: New file.
2842         * tests/test-fabsl-ieee.c: New file.
2843
2844         New module 'fabsl-ieee'.
2845         * modules/fabsl-ieee: New file.
2846
2847         Tests for module 'fabs-ieee'.
2848         * modules/fabs-ieee-tests: New file.
2849         * tests/test-fabs-ieee.c: New file.
2850
2851         New module 'fabs-ieee'.
2852         * modules/fabs-ieee: New file.
2853
2854         Tests for module 'fabsf-ieee'.
2855         * modules/fabsf-ieee-tests: New file.
2856         * tests/test-fabsf-ieee.c: New file.
2857         * tests/test-fabs-ieee.h: New file.
2858
2859         New module 'fabsf-ieee'.
2860         * modules/fabsf-ieee: New file.
2861
2862 2012-02-26  Bruno Haible  <bruno@clisp.org>
2863
2864         Tests for module 'fmal-ieee'.
2865         * modules/fmal-ieee-tests: New file.
2866         * tests/test-fmal-ieee.c: New file.
2867
2868         New module 'fmal-ieee'.
2869         * modules/fmal-ieee: New file.
2870
2871         Tests for module 'fma-ieee'.
2872         * modules/fma-ieee-tests: New file.
2873         * tests/test-fma-ieee.c: New file.
2874
2875         New module 'fma-ieee'.
2876         * modules/fma-ieee: New file.
2877
2878         Tests for module 'fmaf-ieee'.
2879         * modules/fmaf-ieee-tests: New file.
2880         * tests/test-fmaf-ieee.c: New file.
2881         * tests/test-fma-ieee.h: New file.
2882
2883         New module 'fmaf-ieee'.
2884         * modules/fmaf-ieee: New file.
2885
2886 2012-02-26  Bruno Haible  <bruno@clisp.org>
2887
2888         Tests for module 'ldexpl-ieee'.
2889         * modules/ldexpl-ieee-tests: New file.
2890         * tests/test-ldexpl-ieee.c: New file.
2891
2892         New module 'ldexpl-ieee'.
2893         * modules/ldexpl-ieee: New file.
2894
2895         Tests for module 'ldexp-ieee'.
2896         * modules/ldexp-ieee-tests: New file.
2897         * tests/test-ldexp-ieee.c: New file.
2898
2899         New module 'ldexp-ieee'.
2900         * modules/ldexp-ieee: New file.
2901
2902         Tests for module 'ldexpf-ieee'.
2903         * modules/ldexpf-ieee-tests: New file.
2904         * tests/test-ldexpf-ieee.c: New file.
2905         * tests/test-ldexp-ieee.h: New file.
2906
2907         New module 'ldexpf-ieee'.
2908         * modules/ldexpf-ieee: New file.
2909
2910 2012-02-26  Bruno Haible  <bruno@clisp.org>
2911
2912         Refactor frexp*-ieee tests.
2913         * tests/test-frexp-ieee.h: New file.
2914         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2915         (main): Just call test_function.
2916         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2917         (main): Just call test_function.
2918         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2919         (main): Just call test_function.
2920         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2921         * modules/frexp-ieee-tests (Files): Likewise.
2922         * modules/frexpl-ieee-tests (Files): Likewise.
2923
2924         Tests for module 'frexpl-ieee'.
2925         * modules/frexpl-ieee-tests: New file.
2926         * tests/test-frexpl-ieee.c: New file.
2927
2928         New module 'frexpl-ieee'.
2929         * modules/frexpl-ieee: New file.
2930
2931         Tests for module 'frexp-ieee'.
2932         * modules/frexp-ieee-tests: New file.
2933         * tests/test-frexp-ieee.c: New file.
2934
2935         New module 'frexp-ieee'.
2936         * modules/frexp-ieee: New file.
2937
2938         Tests for module 'frexpf-ieee'.
2939         * modules/frexpf-ieee-tests: New file.
2940         * tests/test-frexpf-ieee.c: New file.
2941
2942         New module 'frexpf-ieee'.
2943         * modules/frexpf-ieee: New file.
2944
2945 2012-02-26  Bruno Haible  <bruno@clisp.org>
2946
2947         roundl-ieee tests: More tests.
2948         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2949         (main): Add tests for [MX] shaded specification in POSIX.
2950         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2951         (Depends-on): Add isnanl-nolibm.
2952
2953         round-ieee tests: More tests.
2954         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2955         (main): Add tests for [MX] shaded specification in POSIX.
2956         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2957         (Depends-on): Add isnand-nolibm.
2958
2959         roundf-ieee tests: More tests.
2960         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2961         (main): Add tests for [MX] shaded specification in POSIX.
2962         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2963         (Depends-on): Add isnanf-nolibm.
2964
2965         truncl-ieee tests: More tests.
2966         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2967         (main): Add tests for [MX] shaded specification in POSIX.
2968         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2969         (Depends-on): Add isnanl-nolibm.
2970
2971         trunc-ieee tests: More tests.
2972         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2973         (main): Add tests for [MX] shaded specification in POSIX.
2974         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2975         (Depends-on): Add isnand-nolibm.
2976
2977         truncf-ieee tests: More tests.
2978         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2979         (main): Add tests for [MX] shaded specification in POSIX.
2980         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2981         (Depends-on): Add isnanf-nolibm.
2982
2983         ceill-ieee tests: More tests.
2984         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2985         (main): Add tests for [MX] shaded specification in POSIX.
2986         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2987         (Depends-on): Add isnanl-nolibm.
2988
2989         ceil-ieee tests: More tests.
2990         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2991         (main): Add tests for [MX] shaded specification in POSIX.
2992         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2993         (Depends-on): Add isnand-nolibm.
2994
2995         ceilf-ieee tests: More tests.
2996         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2997         (main): Add tests for [MX] shaded specification in POSIX.
2998         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2999         (Depends-on): Add isnanf-nolibm.
3000
3001         floorl-ieee tests: More tests.
3002         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3003         (main): Add tests for [MX] shaded specification in POSIX.
3004         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3005         (Depends-on): Add isnanl-nolibm.
3006
3007         floor-ieee tests: More tests.
3008         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3009         (main): Add tests for [MX] shaded specification in POSIX.
3010         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3011         (Depends-on): Add isnand-nolibm.
3012
3013         floorf-ieee tests: More tests.
3014         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3015         (main): Add tests for [MX] shaded specification in POSIX.
3016         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3017         (Depends-on): Add isnanf-nolibm.
3018
3019 2012-02-26  Bruno Haible  <bruno@clisp.org>
3020
3021         fpieee: More comments.
3022         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3023
3024 2012-02-25  Bruno Haible  <bruno@clisp.org>
3025
3026         Tests for module 'log10l'.
3027         * modules/log10l-tests: New file.
3028         * tests/test-log10l.c: New file.
3029         * tests/test-math-c++.cc: Check the declaration of log10l.
3030
3031         New module 'log10l'.
3032         * lib/math.in.h (log10l): New declaration.
3033         * lib/log10l.c: New file.
3034         * m4/log10l.m4: New file.
3035         * modules/log10l: New file.
3036         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3038         HAVE_DECL_LOG10L.
3039         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3040         HAVE_DECL_LOG10L.
3041         * doc/posix-functions/log10l.texi: Mention the new module.
3042
3043 2012-02-25  Bruno Haible  <bruno@clisp.org>
3044
3045         fmodl, remainder*: Avoid wrong results due to rounding errors.
3046         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3047         expected bounds.
3048         * lib/remainderf.c (remainderf): Likewise.
3049         * lib/remainder.c (remainder): Likewise.
3050         * lib/remainderl.c (remainderl): Likewise.
3051
3052 2012-02-25  Bruno Haible  <bruno@clisp.org>
3053
3054         Tests for module 'remainderl'.
3055         * modules/remainderl-tests: New file.
3056         * tests/test-remainderl.c: New file.
3057         * tests/test-math-c++.cc: Check the declaration of remainderl.
3058
3059         New module 'remainderl'.
3060         * lib/math.in.h (remainderl): New declaration.
3061         * lib/remainderl.c: New file.
3062         * m4/remainderl.m4: New file.
3063         * modules/remainderl: New file.
3064         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3066         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3067         HAVE_REMAINDERL.
3068         * doc/posix-functions/remainderl.texi: Mention the new module.
3069
3070 2012-02-25  Bruno Haible  <bruno@clisp.org>
3071
3072         Tests for module 'remainderf'.
3073         * modules/remainderf-tests: New file.
3074         * tests/test-remainderf.c: New file.
3075         * tests/test-math-c++.cc: Check the declaration of remainderf.
3076
3077         New module 'remainderf'.
3078         * lib/math.in.h (remainderf): New declaration.
3079         * lib/remainderf.c: New file.
3080         * m4/remainderf.m4: New file.
3081         * modules/remainderf: New file.
3082         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3084         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3085         HAVE_REMAINDERF.
3086         * doc/posix-functions/remainderf.texi: Mention the new module.
3087
3088 2012-02-25  Bruno Haible  <bruno@clisp.org>
3089
3090         remainder: Support for MSVC.
3091         * lib/math.in.h (remainder): New declaration.
3092         * lib/remainder.c: New file.
3093         * m4/remainder.m4: New file.
3094         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3095         (Depends-on): Add math, round, fma.
3096         (configure.ac): Use results of gl_FUNC_REMAINDER.
3097         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3099         HAVE_DECL_REMAINDER.
3100         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3101         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3102         * tests/test-math-c++.cc: Check the declaration of remainder.
3103         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3104         problems are fixed.
3105
3106 2012-02-25  Bruno Haible  <bruno@clisp.org>
3107
3108         Tests for module 'fmodl'.
3109         * modules/fmodl-tests: New file.
3110         * tests/test-fmodl.c: New file.
3111         * tests/test-math-c++.cc: Check the declaration of fmodl.
3112
3113         New module 'fmodl'.
3114         * lib/math.in.h (fmodl): New declaration.
3115         * lib/fmodl.c: New file.
3116         * m4/fmodl.m4: New file.
3117         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3119         REPLACE_FMODL.
3120         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3121         REPLACE_FMODL.
3122         * modules/fmodl: New file.
3123         * doc/posix-functions/fmodl.texi: Mention the new module.
3124
3125 2012-02-25  Bruno Haible  <bruno@clisp.org>
3126
3127         Tests for module 'modfl'.
3128         * modules/modfl-tests: New file.
3129         * tests/test-modfl.c: New file.
3130         * tests/test-math-c++.cc: Check the declaration of modfl.
3131
3132         New module 'modfl'.
3133         * lib/math.in.h (modfl): New declaration.
3134         * lib/modfl.c: New file.
3135         * m4/modfl.m4: New file.
3136         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3138         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3139         * modules/modfl: New file.
3140         * doc/posix-functions/modfl.texi: Mention the new module.
3141
3142 2012-02-25  Bruno Haible  <bruno@clisp.org>
3143
3144         Tests for module 'fabsl'.
3145         * modules/fabsl-tests: New file.
3146         * tests/test-fabsl.c: New file.
3147         * tests/test-math-c++.cc: Check the declaration of fabsl.
3148
3149         New module 'fabsl'.
3150         * lib/math.in.h (fabsl): New declaration.
3151         * lib/fabsl.c: New file.
3152         * m4/fabsl.m4: New file.
3153         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3155         REPLACE_FABSL.
3156         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3157         REPLACE_FABSL.
3158         * modules/fabsl: New file.
3159         * doc/posix-functions/fabsl.texi: Mention the new module.
3160
3161 2012-02-25  Bruno Haible  <bruno@clisp.org>
3162
3163         fabs tests: More tests.
3164         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3165         (zero): New variable.
3166         (main): Add tests for signed zero.
3167         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3168
3169         fabsf tests: More tests.
3170         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3171         (zero): New variable.
3172         (main): Add tests for signed zero.
3173         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3174
3175 2012-02-24  Bruno Haible  <bruno@clisp.org>
3176
3177         atanl: Provide function definition on MSVC.
3178         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3179         function pointer.
3180         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3181
3182 2012-02-24  Bruno Haible  <bruno@clisp.org>
3183
3184         acosl: Provide function definition on MSVC.
3185         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3186         function pointer.
3187         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3188
3189 2012-02-24  Bruno Haible  <bruno@clisp.org>
3190
3191         asinl: Provide function definition on MSVC.
3192         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3193         function pointer.
3194         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3195
3196 2012-02-24  Bruno Haible  <bruno@clisp.org>
3197
3198         tanl: Provide function definition on MSVC.
3199         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3200         function pointer.
3201         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3202
3203 2012-02-24  Bruno Haible  <bruno@clisp.org>
3204
3205         cosl: Provide function definition on MSVC.
3206         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3207         function pointer.
3208         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3209
3210 2012-02-24  Bruno Haible  <bruno@clisp.org>
3211
3212         sinl: Provide function definition on MSVC.
3213         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3214         function pointer.
3215         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3216
3217 2012-02-24  Bruno Haible  <bruno@clisp.org>
3218
3219         logl: Provide function definition on MSVC.
3220         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3221         function pointer.
3222         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3223
3224 2012-02-24  Bruno Haible  <bruno@clisp.org>
3225
3226         expl: Provide function definition on MSVC.
3227         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3228         function pointer.
3229         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3230
3231 2012-02-24  Bruno Haible  <bruno@clisp.org>
3232
3233         sqrtl: Provide function definition on MSVC.
3234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3235         a function pointer.
3236         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3237
3238 2012-02-24  Bruno Haible  <bruno@clisp.org>
3239
3240         ceill: Provide function definition on MSVC.
3241         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3242         used as a function pointer.
3243         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3244
3245 2012-02-24  Bruno Haible  <bruno@clisp.org>
3246
3247         floorl: Provide function definition on MSVC.
3248         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3249         used as a function pointer.
3250         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3251
3252 2012-02-24  Bruno Haible  <bruno@clisp.org>
3253
3254         ceilf: Provide function definition on MSVC.
3255         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3256         used as a function pointer.
3257         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3258
3259 2012-02-24  Bruno Haible  <bruno@clisp.org>
3260
3261         floorf: Provide function definition on MSVC.
3262         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3263         used as a function pointer.
3264         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3265
3266 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3267
3268         stdnoreturn: new module
3269         This implements a replacement for C11's <stdnoreturn.h>.
3270         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3271         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3272         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3273         * tests/test-stdnoreturn.c: New files.
3274
3275 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3276
3277         regex: fix false multibyte matches in some regular expressions
3278         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3279         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3280         * lib/regex_internal.c (re_string_skip_chars):
3281         Fix miscomputation of remain_len that may cause incomplete
3282         multi-byte character and false match.
3283
3284 2012-02-24  Jim Meyering  <meyering@redhat.com>
3285
3286         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3287         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3288         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3289         Remove now-unnecessary str''cmp obfuscation.
3290         Suggested by Akim Demaille.
3291
3292 2012-02-24  Bruno Haible  <bruno@clisp.org>
3293
3294         streq: Rename macro.
3295         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3296         * NEWS: Mention the change.
3297         * lib/mbrtowc.c (mbrtowc): Update.
3298         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3299         * lib/wcwidth.c (wcwidth): Update.
3300         Suggested by Akim Demaille and Jim Meyering.
3301
3302 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3303
3304         regex: fix typo in definition of MIN
3305         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3306         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3307
3308 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3309             Bruno Haible  <bruno@clisp.org>
3310
3311         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3312         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3313         entries into a stack-allocated buffer directly.
3314         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3315
3316 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3317             Bruno Haible  <bruno@clisp.org>
3318
3319         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3320
3321          - There were several instances of this pattern:
3322
3323              for (;;) {
3324                n = acl (f, GETACLCNT, 0, NULL);
3325                [ allocate an array A of size N ]
3326                if (acl (f, GETACL, n, a) == n)
3327                  break;
3328              }
3329
3330            This loop might never terminate if some other process is constantly
3331            manipulating the file's ACL.  The loop should be rewritten to
3332            terminate.
3333
3334          - The acl (... GETACLNT ...) call is merely an optimization; its value
3335            is merely a hint as to how big to make the array.  A better
3336            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3337            and just guess a reasonably-big size, growing the size and trying
3338            again if it's not large enough.  This guarantees termination, and
3339            saves a system call.
3340
3341         * lib/acl-internal.h: Include <limits.h>.
3342         (MIN, SIZE_MAX): New macros.
3343         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3344         a stack-allocated buffer, and use malloc if it does not fit. Don't
3345         use GETACLCNT.
3346         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3347
3348 2012-02-19  Bruno Haible  <bruno@clisp.org>
3349
3350         acl: Fix endless loop on Solaris with vxfs.
3351         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3352         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3353         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3354         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3355         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3356         Reported by Bill Jones in
3357         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3358
3359 2012-02-19  Bruno Haible  <bruno@clisp.org>
3360
3361         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3362         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3363         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3364         that this function returns 0 in some more cases.
3365
3366 2012-02-19  Bruno Haible  <bruno@clisp.org>
3367
3368         acl: Update doc references.
3369         * doc/acl-resources.txt: Update links to Solaris documentation.
3370
3371 2012-02-19  Bruno Haible  <bruno@clisp.org>
3372
3373         Fix test failure in many locales on Solaris 11.
3374         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3375         'tr' arguments.
3376         * tests/test-pipe-filter-ii1.c (main): Likewise.
3377         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3378         expressions in the C locale.
3379         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3380         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3381
3382 2012-02-19  Bruno Haible  <bruno@clisp.org>
3383
3384         gnulib-tool: Improve usage message.
3385         * gnulib-tool (func_usage): Move doc of --help and --version to the
3386         section "Operation modes".
3387
3388 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3389
3390         README-release: make it easier to execute commands
3391         * top/README-release: break commands out on to separate lines.
3392
3393 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3394
3395         GNUmakefile: simplify detection of unconfigured trees
3396         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3397         whether the tree make is being run from is already configured or
3398         not.  Related simplifications.
3399
3400 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3401
3402         * gnulib-tool (func_usage): Document --help and --version.
3403
3404 2012-02-11  Jim Meyering  <meyering@redhat.com>
3405
3406         bootstrap: don't exit 0 upon gnulib-tool failure
3407         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3408         its exit status, not 0.
3409
3410 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3411
3412         README-release: various improvements
3413         * top/README-release: Give a command to push changes for the
3414         release.  Add "distcheck" to list of other pre-release checks.
3415         Fix instance of "make stable" which should be "make TYPE".
3416
3417 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3418
3419         maint: replace FSF snail-mail addresses with URLs
3420         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3421         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3422         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3423         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3424         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3425         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3426         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3427         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3428         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3429         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3430         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3431         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3432         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3433         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3434         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3435         * lib/glthread/thread.c, lib/glthread/thread.h:
3436         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3437         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3438         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3439         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3440         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3441         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3442         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3443         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3444         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3445         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3446         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3447         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3448         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3449         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3450         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3451         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3452         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3453         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3454         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3455         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3456         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3457         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3458         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3459         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3460         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3461         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3462         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3463         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3464         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3465         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3466         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3467         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3468         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3469         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3470         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3471         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3472         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3473         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3474         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3475         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3476         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3477         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3478         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3479         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3480         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3481         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3482         * tests/test-poll.c, tests/test-quotearg-simple.c:
3483         * tests/test-quotearg.c, tests/test-quotearg.h:
3484         * tests/test-round-ieee.c, tests/test-round1.c:
3485         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3486         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3487         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3488         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3489         * tests/test-strerror.c, tests/test-strerror_r.c:
3490         * tests/test-strsignal.c, tests/test-strverscmp.c:
3491         * tests/test-xmemdup0.c:
3492         Replace FSF snail mail addresses with URLs, as per GNU coding
3493         standards.  See glibc bug
3494         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3495
3496 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3497
3498         README-release: capitalize a word and split a line
3499         * top/README-release: Fix punctuation and spacing.
3500
3501 2012-02-08  Akim Demaille  <demaille@gostai.com>
3502
3503         fatal-signal: use C prototypes (with explicit void).
3504         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3505         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3506
3507 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3508
3509         regex: spelling fix
3510         * lib/regexec.c: spelling fix
3511
3512         regex: rely on stdint.h for SIZE_MAX
3513         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3514
3515 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         regex: merge glibc changes
3518
3519         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3520         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3521         (init_word_char): Work even if bitset words are not exactly 32 or
3522         64 bits wide.  Don't assume there are no padding bits.
3523         * lib/regex.c [_LIBC]: Do not include <config.h>.
3524         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3525         and -Wtype-limits.
3526         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3527         needless disagreement with glibc.  All uses changed.  Define it to
3528         1 only if _GNU_SOURCE, to match glibc.
3529         (_REG_RM_NAME): Remove; no longer needed, since the names in
3530         question are now all protected by __USE_GNU.
3531         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3532         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3533         * lib/regex_internal.h (MIN): New macro.
3534
3535         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3536         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3537
3538         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3539         * lib/regex_internal.c (re_string_fetch_byte_case):
3540         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3541         is miscompiled, and it turns out it is because of an incorrect
3542         attribute on re_string_fetch_byte_case.  Unlike
3543         re_string_peek_byte_case, this one is really not pure, it modifies
3544         memory (increments pstr->cur_idx), and with the pure attribute GCC
3545         assumed it doesn't and it cached the presumed value of
3546         regexp->cur_idx in a variable across the
3547          for (;; ++i)
3548            {
3549              if (i >= BRACKET_NAME_BUF_SIZE)
3550                return REG_EBRACK;
3551              if (token->type == OP_OPEN_CHAR_CLASS)
3552                ch = re_string_fetch_byte_case (regexp);
3553              else
3554                ch = re_string_fetch_byte (regexp);
3555              if (re_string_eoi(regexp))
3556                return REG_EBRACK;
3557              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3558                break;
3559              elem->opr.name[i] = ch;
3560            }
3561
3562         2011-11-29 Andreas Schwab <schwab@redhat.com>
3563         * lib/regcomp.c (build_equiv_class):
3564         Fix access after end of search string in regex matcher.
3565
3566         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3567         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3568
3569         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3570         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3571
3572         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3573         * lib/regcomp.c (parse_branch, parse_sub_exp):
3574         More regex memory leak fixes and tests.
3575         (parse_sub_exp, parse_bracket_exp):
3576         Fix memory leak for some invalid regular expressions.
3577
3578         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3579         * lib/regex_internal.c, lib/regexec.c:
3580         Fix unnecessary overallocation due to incomplete character.  When
3581         incomplete characters are found at the end of a string the code
3582         ran amok and allocated lots of memory.  Stricter limits are now in
3583         place.
3584
3585         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3586         * lib/regex.h: Update documentation.
3587
3588         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3589         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3590
3591         2010-05-05 Andreas Schwab <schwab@redhat.com>
3592         * lib/regexec.c (find_collation_sequence_value):
3593         Fix lookup of collation sequence value during regexp matching.
3594
3595         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3596         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3597
3598         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3599         * lib/regex.h: Cleanup namespace.
3600
3601         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3602         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3603
3604         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3605         * lib/regex_internal.h: Prevent some declarations and definitions
3606         to be seen when used in tests.
3607
3608         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3609         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3610         __libc_lock_* macros if not _LIBC.
3611         (struct re_dfa_t): Add lock.
3612
3613 2012-02-07  Eric Blake  <eblake@redhat.com>
3614
3615         maint.mk: also prohibit lower-case @var@
3616         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3617         lower case, like @top_srcdir@.
3618
3619 2012-02-04  Eric Blake  <eblake@redhat.com>
3620
3621         canonicalize: avoid uninitialized memory use
3622         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3623         random '/' left in dest.
3624         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3625
3626 2012-02-04  Bruno Haible  <bruno@clisp.org>
3627
3628         isatty: Fix test failure of ptsname_r on native Windows.
3629         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3630         and don't set errno.
3631         (isatty): Test first whether fd is valid. Set errno when returning 0.
3632
3633 2012-02-04  Bruno Haible  <bruno@clisp.org>
3634
3635         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3636         * tests/test-spawn-pipe-main.c: Include progname.h.
3637         (main): Invoke set_program_name.
3638         * modules/spawn-pipe-tests (Depends-on): Add progname.
3639
3640         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3641         * tests/test-nonblocking-socket-main.c: Include progname.h.
3642         (main): Invoke set_program_name.
3643         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3644
3645         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3646         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3647         (main): Invoke set_program_name.
3648         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3649
3650 2012-02-04  Eric Blake  <eblake@redhat.com>
3651
3652         canonicalize-lgpl: fix // handling
3653         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3654
3655         canonicalize: fix // handling
3656         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3657         /// to //, since only // is special.
3658
3659 2012-02-04  Bruno Haible  <bruno@clisp.org>
3660
3661         ioctl: Fix test failure on native Windows.
3662         * lib/ioctl.c: Include msvc-nothrow.h.
3663         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3664
3665 2012-02-04  Bruno Haible  <bruno@clisp.org>
3666
3667         fsync: Avoid test failure on native Windows.
3668         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3669         read-only.
3670
3671 2012-02-04  Bruno Haible  <bruno@clisp.org>
3672
3673         sys_select: Avoid syntax error on OpenBSD 5.0.
3674         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3675         currently being included, just include the system's <sys/select.h>.
3676
3677 2012-02-04  Bruno Haible  <bruno@clisp.org>
3678
3679         sys_select: Avoid syntax error on OpenBSD 5.0.
3680         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3681         <sys/select.h>, not before.
3682         Reported by Jiri B <jirib@devio.us>.
3683
3684 2012-02-04  Bruno Haible  <bruno@clisp.org>
3685
3686         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3687         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3688         global variables.
3689         * tests/test-get-rusage-data.c (main): Likewise.
3690         Reported by Jim Meyering.
3691
3692 2012-02-04  Bruno Haible  <bruno@clisp.org>
3693
3694         stdioext: Fix last commit.
3695         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3696
3697 2012-02-03  Bruno Haible  <bruno@clisp.org>
3698
3699         stdioext: Add tentative support for Plan9.
3700         * lib/stdio-impl.h: Include <errno.h>.
3701         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3702         * lib/freadable.c (freadable): Likewise.
3703         * lib/fwritable.c (fwritable): Likewise.
3704         * lib/fbufmode.c (fbufmode): Likewise.
3705         * lib/freading.c (freading): Likewise.
3706         * lib/fwriting.c (fwriting): Likewise.
3707         * lib/freadptr.c (freadptr): Likewise.
3708         * lib/freadseek.c (freadptrinc): Likewise.
3709         * lib/freadahead.c (freadahead): Likewise.
3710         * lib/fpurge.c (fpurge): Likewise.
3711         * lib/fseeko.c (rpl_fseeko): Likewise.
3712         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3713         Reported by Jens Staal <staal1978@gmail.com>.
3714
3715 2012-02-02  Jim Meyering  <meyering@redhat.com>
3716
3717         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3718         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3719         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3720         not even to try to add the attribute.  Instead, add a pragma to suppress
3721         the suggestion/warning.
3722
3723 2012-01-31  Karl Berry  <karl@gnu.org>
3724
3725         setstate doc: typo.
3726         * doc/posix-functions/setstate.texi (setstate): { not (.
3727
3728 2012-01-31  Bruno Haible  <bruno@clisp.org>
3729
3730         popen: Make more robust on Windows.
3731         * lib/popen.c: On native Windows, use the _popen based code even if
3732         HAVE_POPEN is set.
3733         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3734         environment variable on native Windows.
3735
3736 2012-01-30  Bruno Haible  <bruno@clisp.org>
3737
3738         pclose: Fix typo.
3739         * lib/stdio.in.h (pclose): Fix typo in warning message.
3740
3741 2012-01-30  Bruno Haible  <bruno@clisp.org>
3742
3743         doc about getlogin_r, setstate.
3744         * doc/posix-functions/getlogin_r.texi: List the incompatible
3745         declaration problem under "not fixed by gnulib".
3746         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3747         problem on Solaris 11 and other platforms.
3748
3749 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3750             Bruno Haible  <bruno@clisp.org>
3751
3752         poll tests: Make test more robust.
3753         * tests/test-poll.c: Include macros.h.
3754         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3755         return value of various I/O operations.
3756         * modules/poll-tests (Files): Add tests/macros.h.
3757
3758 2012-01-30  Bruno Haible  <bruno@clisp.org>
3759
3760         sys_stat: Fix support for mingw64 and MSVC.
3761         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3762         header files already do it.
3763         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3764         stat itself.
3765         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3766
3767 2012-01-30  Bruno Haible  <bruno@clisp.org>
3768
3769         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3771         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3772
3773 2012-01-29  Bruno Haible  <bruno@clisp.org>
3774
3775         quotearg: Fix test failure on MacOS X 10.5.
3776         * tests/test-quotearg-simple.c: Include localcharset.h.
3777         (main): If the locale encoding is not ASCII, bypass the tests of
3778         locale_quoting_style and clocale_quoting_style.
3779         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3780
3781 2012-01-29  Jim Meyering  <meyering@redhat.com>
3782
3783         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3784         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3785         detect uses of canonicalize_file_name.
3786
3787 2012-01-28  Bruno Haible  <bruno@clisp.org>
3788
3789         test-framework-sh: Fix test failure with AIX 7.1 diff.
3790         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3791         in column 1, like 'diff -c' does.
3792         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3793         whether 'diff -u' is used. Instead, test whether the output contains
3794         some '@' character.
3795
3796 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3797
3798         strtoimax: eliminate need for stdint.h, inttypes.h checks
3799         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3800         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3801         the prerequisites for a recently-introduced strtoimax test.
3802         I guess this might cause strtoimax to be replaced when not
3803         strictly necessary on older hosts, but this shouldn't introduce
3804         any bugs and it should make Emacs 'configure' faster on typical
3805         modern hosts.  Problem discovered when importing the latest gnulib
3806         to an Emacs test version.
3807         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3808
3809 2012-01-28  Bruno Haible  <bruno@clisp.org>
3810
3811         sys_time: Override 'struct timeval' on some native Windows platforms.
3812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3813         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3814         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3815         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3816         needs to be overridden.
3817         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3818         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3819         * tests/test-sys_select.c: Check that the tv_sec member has the same
3820         size as a 'time_t'.
3821         * tests/test-sys_time.c: Likewise.
3822         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3823         is set, set also REPLACE_GETTIMEOFDAY.
3824         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3825         convert the resulting 'struct timeval' before returning.
3826         * lib/select.c: Include <sys/time.h>.
3827         (select, timeval): Undefine at the right place.
3828         * modules/select (Depends-on): Add sys_time.
3829         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3830         some Windows platforms.
3831         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3832
3833 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3834
3835         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3836         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3837         an integer.
3838         * lib/fcntl.c (dupfd): Likewise.
3839         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3840
3841 2012-01-28  Bruno Haible  <bruno@clisp.org>
3842
3843         fcntl: Avoid compilation error on native Windows.
3844         * modules/fcntl (Depends-on): Add 'close'.
3845
3846 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3847
3848         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3849         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3850         pointer to an integer.
3851         * lib/poll.c (IsConsoleHandle): Likewise.
3852         * lib/isatty.c (IsConsoleHandle): Likewise.
3853
3854 2012-01-28  Jim Meyering  <meyering@redhat.com>
3855
3856         doc: clarify README-release
3857         * top/README-release: Clarify: you should make a point to have
3858         the latest stable versions of build tools in your PATH, and the
3859         reference to buildreq is solely for its list of tool names, not
3860         for its minimal-functional version numbers.
3861         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3862
3863         maint.mk: use more readable (yet functionally equivalent) quoting
3864         It is common to quote a single quote in a single quoted string like
3865         this:  '...'\''...'.  Unless you know the idiom, that looks like
3866         gibberish, so prefer to double-quote the string when possible.
3867         Then you can use a more readable, lone single quote: "...'..."
3868         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3869         "don't" is more readable than the equivalent 'don'\''t'.
3870         (sc_cast_of_x_alloc_return_value): Likewise.
3871         (sc_cast_of_alloca_return_value): Likewise.
3872         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3873         rather than '\'':'\''.
3874
3875 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3876
3877         stdalign: relax _Alignof and tighten _Alignas test
3878         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3879         as it was too strict: alignof must divide offsetof, but it need
3880         not equal offsetof.  Inspired by Joseph S. Myers's comment
3881         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3882         Conversely, tighten the _Alignas test a bit, as the resulting
3883         alignment must be exactly 8.
3884
3885 2012-01-27  Bruno Haible  <bruno@clisp.org>
3886
3887         stdalign: Document the last change.
3888         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3889
3890 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         stdalign: check that alignof and offsetof are consistent
3893         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3894         Problem reported for gnulib by Richard W.M. Jones in
3895         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3896
3897 2012-01-27  Jim Meyering  <meyering@redhat.com>
3898
3899         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3900         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3901         convert a sequence with gaps to the minimal containing range.
3902         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3903         * tests/test-update-copyright.sh: Test for this.
3904         The FSF confirmed it is ok to do this, assuming there is at
3905         least one significant change per year in the affected range:
3906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3907
3908 2012-01-26  Bruno Haible  <bruno@clisp.org>
3909
3910         pipe2: refine doc about thread-safety
3911         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3912         multithread-safety problem.
3913         * doc/glibc-functions/accept4.texi: Likewise.
3914
3915 2012-01-26  Bruno Haible  <bruno@clisp.org>
3916
3917         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3918         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3919         In the test program, include <fcntl.h>, for O_RDONLY.
3920
3921 2012-01-26  Eric Blake  <eblake@redhat.com>
3922
3923         pipe2: document lack of thread-safety in replacement
3924         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3925         issue in replacement.
3926         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3927         Based on a report by Eric Wong.
3928
3929 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3930             Bruno Haible  <bruno@clisp.org>
3931
3932         malloca: Avoid warnings on x86_64 mingw64.
3933         * lib/malloca.c: Include <stdint.h>.
3934         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3935         * modules/malloca (Depends-on): Add stdint.
3936         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3937
3938 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3939
3940         obstack: remove __STDC__ conditionals
3941         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3942         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3943         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3944         m4/include_next.m4 as the only gnulib-maintained places that still
3945         refer to __STDC__.
3946
3947 2012-01-24  Bruno Haible  <bruno@clisp.org>
3948
3949         havelib: Modern quoting.
3950         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3951         the recent change to the GNU coding standards.
3952
3953 2012-01-24  Bruno Haible  <bruno@clisp.org>
3954
3955         stdint: Improve support for Android.
3956         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3957         Reported by Simon Josefsson <simon@josefsson.org>.
3958
3959 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3960
3961         doc: omit trailing empty lines from INSTALL etc.
3962         * doc/Makefile (INSTALL): Omit trailing empty lines.
3963         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3964         omit trailing empty lines.  This simplifies the build procedure.
3965
3966 2012-01-23  Jim Meyering  <meyering@redhat.com>
3967
3968         tests: avoid spurious warnings about gl_sockets_startup
3969         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3970         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3971         reporting a "statement with no effect".
3972         * tests/test-accept.c (main): Mark as "(void)".
3973         * tests/test-accept4.c (main): Likewise.
3974         * tests/test-bind.c (main): Likewise.
3975         * tests/test-connect.c (main): Likewise.
3976         * tests/test-getpeername.c (main): Likewise.
3977         * tests/test-getsockname.c (main): Likewise.
3978         * tests/test-getsockopt.c (main): Likewise.
3979         * tests/test-listen.c (main): Likewise.
3980         * tests/test-recv.c (main): Likewise.
3981         * tests/test-recvfrom.c (main): Likewise.
3982         * tests/test-send.c (main): Likewise.
3983         * tests/test-sendto.c (main): Likewise.
3984         * tests/test-setsockopt.c (main): Likewise.
3985         * tests/test-shutdown.c (main): Likewise.
3986
3987 2012-01-21  Bruno Haible  <bruno@clisp.org>
3988
3989         locale-fr.m4: Fix for Android.
3990         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3991         failure of the test program on Bionic libc.
3992
3993 2012-01-21  Jim Meyering  <meyering@redhat.com>
3994
3995         bootstrap: fail when bootstrap_post_import_hook fails
3996         Otherwise, it's far too easy to miss diagnostics emitted
3997         between gnulib-tool's output and that of running configure.
3998         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3999
4000 2012-01-17  Jim Meyering  <meyering@redhat.com>
4001
4002         maint: enable sc_trailing_blank
4003         * build-aux/pmccabe.css: Remove trailing blanks.
4004         * doc/acl-cygwin.txt: Likewise.
4005         * doc/gnu-oids.texi: Likewise
4006         * cfg.mk: Enable sc_trailing_blank.
4007         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4008
4009 2012-01-17  Jim Meyering  <meyering@redhat.com>
4010
4011         maint: enable sc_prohibit_openat_without_use
4012         * cfg.mk: Enable sc_prohibit_openat_without_use.
4013         Exempt lib/selinux-at.c.
4014
4015 2012-01-17  Jim Meyering  <meyering@redhat.com>
4016
4017         maint: enable sc_prohibit_cloexec_without_use
4018         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4019         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4020
4021 2012-01-17  Jim Meyering  <meyering@redhat.com>
4022
4023         maint: enable sc_prohibit_intprops_without_use
4024         * cfg.mk: Enable sc_prohibit_intprops_without_use
4025         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4026
4027 2012-01-17  Jim Meyering  <meyering@redhat.com>
4028
4029         maint: enable sc_prohibit_hash_pjw_without_use
4030         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4031         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4032         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4033         following " (".
4034
4035 2012-01-17  Jim Meyering  <meyering@redhat.com>
4036
4037         maint: enable double-word-prohibiting rule
4038         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4039         Exempt three files.
4040
4041 2012-01-17  Jim Meyering  <meyering@redhat.com>
4042
4043         maint: remove empty lines at EOF, but excluding modules/*
4044         Apply syntax rules at home as well as abroad.  Most changes
4045         were induced by running this:
4046           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4047             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4048             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4049         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4050         Exempt modules/* and two binary files.
4051         Also exempt doc/INSTALL*, per request from Bruno Haible.
4052         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4053         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4054         * doc/Copyright/request-assign.future: Likewise.
4055         * doc/Copyright/request-disclaim.changes: Likewise.
4056         * doc/INSTALL: Likewise.
4057         * doc/INSTALL.ISO: Likewise.
4058         * doc/INSTALL.UTF-8: Likewise.
4059         * doc/acl-cygwin.txt: Likewise.
4060         * doc/acl-resources.txt: Likewise.
4061         * doc/fdl-1.2.texi: Likewise.
4062         * doc/fdl-1.3.texi: Likewise.
4063         * doc/fdl.texi: Likewise.
4064         * lib/argp-pin.c: Likewise.
4065         * lib/round.c: Likewise.
4066         * lib/unicase/u16-totitle.c: Likewise.
4067         * lib/unictype/block_test.c: Likewise.
4068         * lib/uninorm/canonical-decomposition.c: Likewise.
4069         * m4/README: Likewise.
4070         * m4/relocatable-lib.m4: Likewise.
4071         * tests/test-isnand-nolibm.c: Likewise.
4072         * tests/test-isnand.c: Likewise.
4073         * tests/uninorm/NormalizationTest.txt: Likewise.
4074
4075 2012-01-17  Jim Meyering  <meyering@redhat.com>
4076
4077         maint: add framework to run syntax-check rules against gnulib sources
4078         * cfg.mk: New file, to disable all currently-failing tests.
4079         We'll enable them one by one, as they are made to pass.
4080         * Makefile (sc_maint): New rule.
4081
4082 2012-01-21  Bruno Haible  <bruno@clisp.org>
4083
4084         stdint: Add support for Android.
4085         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4086         include the system's <stdint.h>.
4087         Reported by Simon Josefsson <simon@josefsson.org>.
4088
4089 2012-01-19  Jim Meyering  <meyering@redhat.com>
4090
4091         bootstrap: add bootstrap_post_import_hook
4092         Bison does still need something like the gnulib_mk_hook whose
4093         invocation I had to remove along with slurp in commit 767ccd40.
4094         Technically, we could get along without it, but doing so would
4095         have required living with a warning and a mandatory post-bootstrap
4096         automake rerun.
4097         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4098         (bootstrap_post_import_hook): New function.
4099         Invoke it after gnulib-tool --import and before autoreconf.
4100
4101 2012-01-18  Jim Meyering  <meyering@redhat.com>
4102
4103         gitlog-to-changelog: don't use "no_"-prefixed variable name
4104         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4105         to enable both --cluster and --no-cluster.  Change variable name,
4106         s/\$no_cluster/$cluster/, and reverse usage to match.
4107
4108         gitlog-to-changelog: use "||", not "or" in expressions
4109         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4110         expressions.
4111
4112 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4113
4114         gitlog-to-changelog: new option --no-cluster
4115         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4116         clustering of adjacent commit messages.
4117
4118 2012-01-17  Jim Meyering  <meyering@redhat.com>
4119
4120         maint: spell file systems with two words, not one
4121         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4122         two words, not one.
4123
4124 2012-01-16  Jim Meyering  <meyering@redhat.com>
4125
4126         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4127         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4128
4129 2012-01-16  Eric Blake  <eblake@redhat.com>
4130
4131         bootstrap: cater to autoconf 2.59
4132         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4133         is not available.
4134
4135         bootstrap: properly check for libtool
4136         * build-aux/bootstrap (libtoolize): Also run libtool when older
4137         usage is detected.
4138
4139 2012-01-15  Bruno Haible  <bruno@clisp.org>
4140
4141         Improve support for MSVC 9.
4142         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4143         clashes on MSVC.
4144         * lib/fcntl.in.h: Likewise.
4145         * lib/stdlib.in.h: Likewise.
4146         * lib/sys_stat.in.h: Likewise.
4147
4148 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4149
4150         gnupload: we hold the master copy of this script now
4151         For motivation and more information, see:
4152         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4153         * build-aux/gnupload: Make it clear in the heading comments that the
4154         master copy of this file is maintained by gnulib.  Since we are at
4155         it, bump its copyright year and ...
4156         ($scriptversion): ... the date in its version.
4157         ($usage): Patches and bug reports should be sent to the gnulib list,
4158         not the automake one.
4159         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4160         anymore.
4161
4162 2012-01-15  Bruno Haible  <bruno@clisp.org>
4163
4164         Fix module 'random'.
4165         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4166         initstate, setstate are declared.
4167
4168 2012-01-14  Bruno Haible  <bruno@clisp.org>
4169
4170         Tests for module 'random'.
4171         * modules/random-tests: New file.
4172         * tests/test-random.c: New file, based on tests/test-random_r.c.
4173
4174         New module 'random'.
4175         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4176         declarations.
4177         * lib/random.c: New file, based on glibc/stdlib/random.c.
4178         * m4/random.m4: New file.
4179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4180         HAVE_RANDOM.
4181         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4182         * modules/random: New file.
4183         * config/srclist.txt: Add an entry for random.c.
4184         * doc/posix-functions/random.texi: Mention the 'random' module.
4185         * doc/posix-functions/initstate.texi: Likewise.
4186         * doc/posix-functions/setstate.texi: Likewise.
4187         * doc/posix-functions/srandom.texi: Likewise.
4188
4189 2012-01-12  Bruno Haible  <bruno@clisp.org>
4190
4191         random_r: Use common idioms.
4192         * lib/random_r.c: Include <stdlib.h> first.
4193
4194         random_r: Override incompatible API on AIX, OSF/1.
4195         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4196         Override the system function if REPLACE_RANDOM_R is 1.
4197         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4198         and OSF/1, set REPLACE_RANDOM_R.
4199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4200         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4201         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4202         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4203         * doc/glibc-functions/random_r.texi: Likewise.
4204         * doc/glibc-functions/setstate_r.texi: Likewise.
4205
4206         random_r: Support for MSVC 9.
4207         * lib/random_r.c: Include stdint.h, not inttypes.h.
4208
4209 2012-01-12  Eric Blake  <eblake@redhat.com>
4210
4211         inet_ntop: guard extra work by IF_LINT
4212         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4213         better code generation when not checking for warnings.
4214         Suggested by Paul Eggert and Jim Meyering.
4215
4216         strptime: fix regression on mingw
4217         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4218         Fix regression.  Reported by Bruno Haible.
4219
4220 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4221             Bruno Haible  <bruno@clisp.org>
4222
4223         copy-file: add error-code-returning variant.
4224         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4225         (qcopy_file_preserving): New declaration.
4226         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4227         copy_file_preserving. Change return type to 'int'. Don't emit an error
4228         message here.
4229         (copy_file_preserving): New function.
4230         * tests/test-copy-file.c: Include <stdlib.h>.
4231         (main): Test qcopy_file_preserving if the environment variable
4232         NO_STDERR_OUTPUT is set.
4233         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4234         with NO_STDERR_OUTPUT
4235         * tests/test-copy-file-2.sh: Likewise.
4236
4237 2012-01-10  Bruno Haible  <bruno@clisp.org>
4238
4239         copy-file: Use 'quote' module consistently.
4240         * lib/copy-file.c (copy_file_preserving): Use quote().
4241
4242         copy-file: Refactor.
4243         * lib/copy-file.c: Include quote.h.
4244         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4245         message here.
4246         * modules/copy-file (Depends-on): Add quote.
4247
4248         acl: Export qcopy_acl.
4249         * lib/acl.h (qcopy_acl): New declaration.
4250         * lib/copy-acl.c (qcopy_acl): Make non-static.
4251
4252         acl: Rename a local variable.
4253         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4254
4255         acl: Align return values of copy_acl and qcopy_acl.
4256         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4257         maybe < -1.
4258
4259 2012-01-11  Eric Blake  <eblake@redhat.com>
4260
4261         strptime: silence gcc warnings
4262         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4263         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4264         Reported by Daniel P. Berrange.
4265
4266         inet_ntop: silence gcc warning
4267         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4268         Reported by Daniel P. Berrange.
4269
4270 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4271
4272         getloadavg test: skip the test on GNU/Linux without /proc mounted
4273         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4274         file.  When /proc is not mounted, it always fails with ENOENT.
4275         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4276         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4277
4278 2012-01-10  Bruno Haible  <bruno@clisp.org>
4279
4280         regex: Avoid link error on MSVC 9.
4281         * modules/regex (Depends-on): Add wctype.
4282
4283 2012-01-10  Bruno Haible  <bruno@clisp.org>
4284
4285         doc: Mention --with-tests option.
4286         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4287         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4288         --with-tests.
4289         Reported by Reuben Thomas.
4290
4291 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4292
4293         users.txt: order package names lexicographically.
4294         * users.txt: Order package names lexicographically.
4295
4296 2012-01-10  Jim Meyering  <meyering@redhat.com>
4297
4298         maint.mk: fix description in comment
4299         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4300
4301         ignore-value: remove deprecated ignore_ptr function
4302         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4303         * NEWS: Note this.
4304
4305 2012-01-09  Jim Meyering  <meyering@redhat.com>
4306
4307         test-init.sh: avoid a subshell
4308         * tests/test-init.sh: Remove protective subshell.
4309         Suggested by Bernhard Voelker.  While a subshell is normally
4310         required to protect against older shells (Solaris, FreeBSD) that
4311         warn about a missing program before performing redirection, the
4312         shell-selection tests performed by init.sh probably exclude any
4313         offending shell.
4314
4315 2012-01-08  Bruno Haible  <bruno@clisp.org>
4316
4317         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4318         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4319         variable.
4320
4321 2012-01-08  Bruno Haible  <bruno@clisp.org>
4322
4323         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4324         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4325         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4326         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4327         macro.
4328         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4329         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4330         * lib/spawn_faction_addopen.c: Add workaround implementation if
4331         HAVE_WORKING_POSIX_SPAWN.
4332         * modules/spawn (Makefile): Substitute
4333         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4334         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4335         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4336         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4337         (Depends-on): Update conditions.
4338         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4339         the Solaris 11 bug.
4340
4341 2012-01-08  Bruno Haible  <bruno@clisp.org>
4342
4343         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4344         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4345         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4346         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4347         macro.
4348         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4349         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4350         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4351         HAVE_WORKING_POSIX_SPAWN.
4352         * modules/spawn (Makefile): Substitute
4353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4354         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4355         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4356         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4357         (Depends-on): Update conditions.
4358         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4359         the Solaris 11 bug.
4360
4361 2012-01-08  Bruno Haible  <bruno@clisp.org>
4362
4363         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4364         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4365         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4367         HAVE_WORKING_POSIX_SPAWN.
4368         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4369         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4370         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4371         * lib/spawn_faction_addclose.c: Add workaround implementation if
4372         HAVE_WORKING_POSIX_SPAWN.
4373         * modules/spawn (Makefile): Substitute
4374         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4375         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4376         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4377         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4378         (Depends-on): Update conditions.
4379         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4380         the Solaris 11 bug.
4381
4382 2012-01-08  Bruno Haible  <bruno@clisp.org>
4383
4384         doc: Update for Solaris 11 2011-11.
4385         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4386         * m4/printf.m4: Update comments.
4387
4388 2012-01-08  Bruno Haible  <bruno@clisp.org>
4389
4390         mktime: Avoid compilation error on Solaris 11.
4391         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4392
4393 2012-01-08  Bruno Haible  <bruno@clisp.org>
4394
4395         doc: Small fix.
4396         * doc/posix-headers/nl_types.texi: Correct platforms list.
4397
4398 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4399
4400         Add lgpl-3.0 module.
4401         * MODULES.html.sh (Support for building documentation): Add
4402         lgpl-3.0.
4403         * modules/lgpl-3.0: New file.
4404
4405 2012-01-08  Jim Meyering  <meyering@redhat.com>
4406
4407         select.c: indent with spaces, not TABs
4408         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4409
4410 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4411
4412         quotearg: do not use grave accent for left quote
4413         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4414         locale_quoting_style.
4415         (quotearg_buffer_restyled): Fix example.
4416         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4417
4418 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4419
4420         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4421         Most programs do not have translation catalogs for English and much
4422         less separate catalogs for British and American English.  Drop the
4423         suggestion to translators about these two, and provide it
4424         automatically for Unicode locales.  Like most programs, even those
4425         using American English, we use single quotation marks.  This conflicts
4426         with the American typographic convention, but works better when you
4427         cite the entire error message within double quotes.  It also tries not
4428         to clash with established practice and with what non-gnulib programs
4429         will usually do.
4430         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4431         using an UTF-8 or GB-18030 locale.  The list of other locales with
4432         quotes was provided by Bruno Haible.
4433         (quotearg_buffer_restyled): Adjust instructions to translators.
4434         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4435         text, since this would be wrong when using Unicode.
4436         * modules/quotearg: Depend on c-strcaseeq.
4437
4438 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4439
4440         quotearg: fix Wikipedia link
4441         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4442
4443 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4444
4445         Fix for mingw with MSVC9.
4446         * m4/ld-version-script.m4: Check that compiler rejects version
4447         scripts with syntax errors.  Reported by Bruno Haible
4448         <bruno@clisp.org>.
4449
4450 2012-01-06  Bruno Haible  <bruno@clisp.org>
4451
4452         Talk about "native Windows API", not "Woe32".
4453         * lib/accept4.c: Update comments to mention native Windows.
4454         * lib/execute.c: Likewise.
4455         * lib/fatal-signal.c: Likewise.
4456         * lib/localcharset.c: Likewise.
4457         * lib/nanosleep.c: Likewise.
4458         * lib/nl_langinfo.c: Likewise.
4459         * lib/pclose.c: Likewise.
4460         * lib/pipe-filter-gi.c: Likewise.
4461         * lib/pipe-filter-ii.c: Likewise.
4462         * lib/pipe.c: Likewise.
4463         * lib/pipe2.c: Likewise.
4464         * lib/popen.c: Likewise.
4465         * lib/progreloc.c: Likewise.
4466         * lib/relocatable.c: Likewise.
4467         * lib/sigaction.c: Likewise.
4468         * lib/sigprocmask.c: Likewise.
4469         * lib/spawn-pipe.h: Likewise.
4470         * lib/spawn-pipe.c: Likewise.
4471         * lib/spawni.c: Likewise.
4472         * lib/stat-time.h: Likewise.
4473         * lib/w32spawn.h: Likewise.
4474         * tests/test-isatty.c: Likewise.
4475         * lib/config.charset: More comments.
4476         * doc/gnulib-intro.texi: Mention native Windows.
4477         * doc/posix-functions/_Exit_C99.texi: Likewise.
4478         * doc/posix-headers/fcntl.texi: Likewise.
4479
4480 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4481
4482         argp: Avoid crash if translator uses % characters in a translation.
4483         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4484         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4485
4486 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4487
4488         doc: C11 and C++11 are now official
4489         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4490         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4491         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4492         * modules/stdalign:
4493         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4494
4495 2012-01-06  Bruno Haible  <bruno@clisp.org>
4496
4497         uc-is-grapheme-break tests: Tweak.
4498         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4499         message.
4500
4501 2012-01-06  Bruno Haible  <bruno@clisp.org>
4502
4503         test-init.sh: correct the test for diff -u
4504         * tests/test-init.sh: Also redirect stdout to /dev/null.
4505
4506 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4507
4508         Use ', not `, for quoting output.
4509         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4510         (print_changelog_deltas, get_tool_versions, main program):
4511         * build-aux/git-version-gen:
4512         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4513         * build-aux/move-if-change (help):
4514         * build-aux/useless-if-before-free (usage, main program):
4515         * check-module (parse_module_file, usage)
4516         (find_included_lib_files, check_module):
4517         * lib/argmatch.c (main) [TEST]:
4518         * lib/argp-help.c (_help):
4519         * lib/getopt1.c (main) [TEST]:
4520         * lib/git-merge-changelog.c (usage):
4521         * lib/xstrtol-error.c (xstrtol_error):
4522         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4523         * m4/argz.m4 (gl_FUNC_ARGZ):
4524         * m4/bison.m4 (gl_BISON):
4525         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4526         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4527         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4528         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4529         * m4/gc-random.m4 (gl_GC_RANDOM):
4530         * m4/intl.m4 (gt_CHECK_DECL):
4531         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4532         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4533         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4535         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4536         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4537         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4538         * tests/test-dirname.c (main):
4539         * tests/test-getpass.c (main):
4540         * tests/test-iconvme.c (main):
4541         * tests/test-parse-datetime.c (LOG):
4542         * tests/test-xstrtoimax.sh:
4543         * tests/test-xstrtol.sh:
4544         * tests/test-xstrtoll.sh:
4545         * tests/test-xstrtoumax.sh:
4546         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4547         * top/GNUmakefile (abort-due-to-no-makefile):
4548         Quote 'like this', not `like this', as per the recent change to
4549         the GNU coding standards.
4550
4551 2012-01-05  Bruno Haible  <bruno@clisp.org>
4552
4553         strtoimax: Don't force a replacement on systems where intmax_t is int.
4554         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4555         'intmax_t' is not larger than 'int'.
4556         Reported by Pádraig Brady <P@draigBrady.com>.
4557
4558 2012-01-05  Bruno Haible  <bruno@clisp.org>
4559
4560         doc: Mention NetBSD bugs.
4561         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4562         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4563
4564 2012-01-05  Bruno Haible  <bruno@clisp.org>
4565
4566         strtoumax tests: Enhance tests.
4567         * tests/test-strtoumax.c (main): Add tests for large values.
4568
4569 2012-01-05  Bruno Haible  <bruno@clisp.org>
4570
4571         strtoimax: Work around AIX 5.1 bug.
4572         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4573         definition.
4574         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4575         Set HAVE_STRTOIMAX.
4576         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4577         REPLACE_STRTOIMAX.
4578         * modules/inttypes-incomplete (Makefile.am): Substitute
4579         REPLACE_STRTOIMAX.
4580         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4581         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4582         (Depends-on): Update conditions.
4583         * tests/test-strtoimax.c (main): Add tests for large values.
4584         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4585
4586 2012-01-05  Bruno Haible  <bruno@clisp.org>
4587
4588         inttypes: Modernize.
4589         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4590         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4591         (Makefile.am): Update inttypes.h rule.
4592
4593 2012-01-05  Jim Meyering  <meyering@redhat.com>
4594
4595         init.sh: don't waste a subshell just to redirect stderr
4596         * tests/init.sh: In testing for diff -u and diff -c, use a
4597         stderr-redirecting exec inside `...` rather than a subshell.
4598
4599         test-init.sh: avoid failure on HP-UX 11.00
4600         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4601         resolves to diff -c or cmp.  Reported by Bruno Haible.
4602
4603 2012-01-05  Bruno Haible  <bruno@clisp.org>
4604
4605         Tests for module 'strtoull'.
4606         * modules/strtoull-tests: New file.
4607         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4608
4609 2012-01-05  Bruno Haible  <bruno@clisp.org>
4610
4611         Tests for module 'strtoll'.
4612         * modules/strtoll-tests: New file.
4613         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4614
4615 2012-01-05  Bruno Haible  <bruno@clisp.org>
4616
4617         Tests for module 'strtoul'.
4618         * modules/strtoul-tests: New file.
4619         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4620
4621 2012-01-05  Bruno Haible  <bruno@clisp.org>
4622
4623         Tests for module 'strtol'.
4624         * modules/strtol-tests: New file.
4625         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4626
4627 2012-01-04  Jim Meyering  <meyering@redhat.com>
4628
4629         test-init.sh: accommodate Solaris 5.10's different diff -u output
4630         * tests/test-init.sh: Also exempt @@ lines from the comparison
4631         of diff output, since Solaris 5.10 and GNU diff formats differ.
4632         Reported by Stefano Lattarini.
4633
4634 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4635
4636         test-posixtm: don't assume signed integer wraparound
4637         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4638         after signed integer overflow.  Inspired by (though it may not
4639         fix) Bruno Haible's bug report in
4640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4641
4642         Spell out "Windows 9x" and "Windows XP".
4643         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4644         "Windows 9x" and "WinXP" with "Windows XP".
4645
4646 2012-01-04  Jim Meyering  <meyering@redhat.com>
4647
4648         test-vc-list-files-cvs.sh: remove obsolete comment
4649         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4650         double exit.  Now that's all encapsulated via skip_ and Exit.
4651
4652 2012-01-04  Bruno Haible  <bruno@clisp.org>
4653
4654         Talk about "native Windows API", not "Win32".
4655         * lib/classpath.c: Update comments to mention native Windows.
4656         * lib/csharpexec.c: Likewise.
4657         * lib/dup2.c: Likewise.
4658         * lib/error.c: Likewise.
4659         * lib/fcntl.c: Likewise.
4660         * lib/filename.h: Likewise.
4661         * lib/findprog.c: Likewise.
4662         * lib/get-rusage-as.c: Likewise.
4663         * lib/get-rusage-data.c: Likewise.
4664         * lib/getpagesize.c: Likewise.
4665         * lib/javaexec.c: Likewise.
4666         * lib/msvc-inval.c: Likewise.
4667         * lib/msvc-nothrow.c: Likewise.
4668         * lib/nanosleep.c: Likewise.
4669         * lib/nonblocking.c: Likewise.
4670         * lib/printf-parse.c: Likewise.
4671         * lib/setlocale.c: Likewise.
4672         * lib/sigaction.c: Likewise.
4673         * lib/strerror_r.c: Likewise.
4674         * lib/tmpdir.c: Likewise.
4675         * lib/vasnprintf.c: Likewise.
4676         * lib/w32spawn.h: Likewise.
4677         * lib/waitpid.c: Likewise.
4678         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4679         * m4/locale-ar.m4: Likewise.
4680         * m4/locale-fr.m4: Likewise.
4681         * m4/locale-ja.m4: Likewise.
4682         * m4/locale-tr.m4: Likewise.
4683         * m4/locale-zh.m4: Likewise.
4684         * m4/printf.m4: Likewise.
4685         * tests/test-cloexec.c: Likewise.
4686         * tests/test-copy-acl.sh: Likewise.
4687         * tests/test-copy-file.sh: Likewise.
4688         * tests/test-file-has-acl.sh: Likewise.
4689         * tests/test-set-mode-acl.sh: Likewise.
4690         * tests/test-dup-safer.c: Likewise.
4691         * tests/test-dup2.c: Likewise.
4692         * tests/test-dup3.c: Likewise.
4693         * tests/test-fcntl.c: Likewise.
4694         * tests/test-nonblocking-pipe.h: Likewise.
4695         * tests/test-nonblocking-socket.h: Likewise.
4696         * tests/test-pipe.c: Likewise.
4697         * tests/test-pipe2.c: Likewise.
4698         * tests/test-spawn-pipe-child.c: Likewise.
4699         * doc/acl-resources.txt: Likewise.
4700         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4701         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4702         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4703         * lib/localcharset.c: Update comments to mention native Windows.
4704         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4705         * lib/localename.c: Likewise.
4706         * lib/progreloc.c: Likewise.
4707         * lib/relocatable.c: Likewise.
4708         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4709         (windows_compute_revents): Renamed from win32_compute_revents.
4710         (windows_compute_revents_socket): Renamed from
4711         win32_compute_revents_socket.
4712         * lib/select.c: Update comments to mention native Windows.
4713         (windows_poll_handle): Renamed from win32_poll_handle.
4714         * m4/threadlib.m4: Update comments to mention native Windows.
4715         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4716         --enable-threads=windows instead of --enable-threads=win32. Set
4717         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4718         * lib/glthread/lock.h: Update comments to mention native Windows.
4719         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4720         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4721         USE_WIN32_THREADS.
4722         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4723         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4724         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4725         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4726         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4727         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4728         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4729         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4730         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4731         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4732         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4733         * tests/test-tls.c: Likewise.
4734         Rationale:
4735         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4736         on both 32-bit and 64-bit Windows systems.
4737         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4738         line of distinction is between "native Windows" on one side and Unix/
4739         POSIX systems on the other side. More details in
4740         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4741         Suggested by Paul Eggert.
4742
4743 2012-01-03  Bruno Haible  <bruno@clisp.org>
4744
4745         isatty: Support for MSVC 9.
4746         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4747         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4748         (_isatty_nothrow): New function.
4749         (isatty): Use it instead of _isatty.
4750         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4751         * lib/poll.c (IsConsoleHandle): Likewise.
4752         * lib/select.c (IsConsoleHandle): Likewise.
4753         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4754         (gl_PREREQ_ISATTY): New macro.
4755         * modules/isatty (Depends-on): Add msvc-inval.
4756         (configure.ac): Invoke gl_PREREQ_ISATTY.
4757
4758 2012-01-03  Jim Meyering  <meyering@redhat.com>
4759
4760         maint.mk: remove temporary transition aid from over 1.5 years ago
4761         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4762         purpose was to aid in the transition (avoiding silent malfunction)
4763         from that old name to the new _sc_search_regexp.  This shim was
4764         added by commit 219c504b.
4765
4766         init.sh: do not try to accommodate compare arguments starting with "-"
4767         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4768         compare arguments that start with "-".  Besides, we do not worry
4769         about this when invoking diff or cmp; why start now with sed?
4770         Using "--" to separate options from argument would trigger sed
4771         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4772         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4773
4774 2012-01-02  Bruno Haible  <bruno@clisp.org>
4775
4776         Enhance tests for module 'isatty'.
4777         * modules/isatty-tests (Depends-on): Add pipe-posix.
4778         * tests/test-isatty.c: Include <fcntl.h>.
4779         (DEV_NULL): New macro.
4780         (main): Test the resut of isatty() also on regular files, pipes, and
4781         /dev/null.
4782
4783         New module 'isatty'.
4784         * lib/unistd.in.h (isatty): New declaration.
4785         * lib/isatty.c: New file, based on an idea of
4786         Bastien Roucariès <roucaries.bastien@gmail.com>.
4787         * m4/isatty.m4: New file.
4788         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4789         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4790         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4791         REPLACE_ISATTY.
4792         * modules/isatty: New file.
4793         * doc/posix-functions/isatty.texi: Mention the new module.
4794         Suggested by Paolo Bonzini.
4795
4796 2012-01-02  Bruno Haible  <bruno@clisp.org>
4797
4798         canonicalize: Tweak 2011-12-29 commit.
4799         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4800         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4801
4802 2012-01-02  Jim Meyering  <meyering@redhat.com>
4803
4804         gitlog-to-changelog: describe input syntax in --help output
4805         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4806
4807         gitlog-to-changelog: fix typo in --help: show backslash before email @
4808         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4809         in sources, but not in actual output.
4810
4811 2011-12-30  Jim Meyering  <meyering@redhat.com>
4812
4813         gitlog-to-changelog: don't malfunction when name contains %-directive
4814         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4815         in a name string cause trouble.  E.g., with a user name of "%s",
4816         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4817
4818 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4819
4820         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4821         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4822         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4823         the "  (tiny change)" notation that is appended to the standard
4824         ChangeLog "date  name  email" header line.
4825
4826 2012-01-01  Jim Meyering  <meyering@redhat.com>
4827
4828         test-framework-sh: init.sh: fix "make dist" failure
4829         When using gnulib-tool's --with-tests option and any module that
4830         depends on test-framework-sh, "make dist" would fail due to the
4831         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4832         in the gltests directory, and not in the gllib/ directory.
4833         One way to work around that is to move the EXTRA_DIST += init.sh
4834         from the primary module to the -tests one:
4835         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4836         * modules/test-framework-sh (Makefile.am): ...not here.
4837         Reported by Tom G. Christensen in
4838         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4839
4840         version-etc: update copyright year reported by --version
4841         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4842
4843 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4844
4845         canonicalize: only stat() if required
4846         * lib/canonicalize.c (canonicalize_filename_mode):
4847         Avoid calling l?stat() when both CAN_MISSING,
4848         and CAN_NOLINKS are set, as we neither need
4849         to resolve symlinks or test component existence.
4850
4851 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4852
4853         doc: cover st_ino issues once; add OpenVMS etc.
4854         * doc/posix-functions/stat.texi (stat):
4855         * doc/posix-functions/lstat.texi (lstat):
4856         * doc/posix-functions/fstatat.texi (fstatat):
4857         * doc/posix-functions/fstat.texi (fstat):
4858         Move general 'struct stat' stuff to sys_stat.texi,
4859         leaving behind a pointer.
4860         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4861         Merge duplicate info about 'struct stat' problems into here.
4862         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4863         and suggest partial workarounds.
4864
4865         same-inode: port to OpenVMS
4866         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4867         three st_ino values.
4868
4869 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4870
4871         canonicalize: fix references to stat() and lstat()
4872         * lib/canonicalize.c (canonicalize_filename_mode):
4873         Ensure references always resolve to a replacement
4874         function if required (even via a macro).
4875
4876 2011-12-30  Jim Meyering  <meyering@redhat.com>
4877
4878         gitlog-to-changelog: remove a little duplication
4879         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4880         rather than twice.
4881
4882 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4883
4884         canonicalize: add support for not resolving symlinks
4885         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4886         indicate we don't want to follow symlinks.  Also
4887         provide CAN_MODE_MASK to aid setting these existing
4888         mutually exclusive values.
4889         * lib/canonicalize.c (canonicalize_filename_mode):
4890         Extract the flags from can_mode parameter, which
4891         are currently just used to select between stat()
4892         and lstat().  Also ensure that mutually exclusive
4893         values are flagged immediately as invalid.
4894         * tests/test-canonicalize.c: Verify symlinks are
4895         not followed, and that invalid flag combinations
4896         are diagnosed.
4897
4898 2011-12-25  Jim Meyering  <meyering@redhat.com>
4899
4900         gitlog-to-changelog: do not clump multi-paragraph entries
4901         Identical header lines (date,name,email+coauthors) are suppressed,
4902         thus putting all entries with those same characteristics under
4903         a single header.  However, when a log entry consists of two or
4904         more paragraphs, it may not be clear where it starts and ends.
4905         This change makes it so that such an entry is always separated
4906         from others by a header line, even when that header would
4907         otherwise be suppressed.
4908         * build-aux/gitlog-to-changelog: Implement the above.
4909         Inspired by a related request from Stefano Lattarini in
4910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4911
4912 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4913
4914         announce-gen: fix `cmd' typo in diagnostic
4915         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4916         diagnostic: a missing '$' meant that the command was not output.
4917
4918 2011-12-23  Jim Meyering  <meyering@redhat.com>
4919
4920         test-framework-sh: distribute init.sh
4921         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4922         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4923         fail due to the lack of init.sh.
4924
4925         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4926         * modules/atexit-tests: Rather than listing tests/init.sh,
4927         now that there's a module for it, simply depend on that new module.
4928         * modules/closein-tests: Likewise.
4929         * modules/exclude-tests: Likewise.
4930         * modules/getcwd-tests: Likewise.
4931         * modules/perror-tests: Likewise.
4932         * modules/pread-tests: Likewise.
4933         * modules/pwrite-tests: Likewise.
4934         * modules/vc-list-files-tests: Likewise.
4935         * modules/verify-tests: Likewise.
4936         * modules/xalloc-die-tests: Likewise.
4937         * modules/xstrtoimax-tests: Likewise.
4938         * modules/xstrtol-tests: Likewise.
4939         * modules/xstrtoll-tests: Likewise.
4940         * modules/xstrtoumax-tests: Likewise.
4941         * modules/yesno-tests: Likewise.
4942
4943 2011-12-22  Jim Meyering  <meyering@redhat.com>
4944
4945         test-framework-sh: add minimal tests of init.sh's compare function
4946         * modules/test-framework-sh-tests: New file.
4947         * tests/test-init.sh: New file.
4948
4949         test-framework-sh: new module
4950         * modules/test-framework-sh: New file.
4951         * MODULES.html.sh (Support for maintaining and releasing projects):
4952         List it.
4953
4954         init.sh: do not emit simulated diff output to stderr
4955         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4956
4957 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4958
4959         .gitignore: ignore gnulib.dvi and regex.info
4960         * doc/.gitignore:add gnulib.dvi and regex.info
4961
4962 2011-12-22  Jim Meyering  <meyering@redhat.com>
4963
4964         init.sh: correct previous change
4965         * tests/init.sh (compare): My previous change was wrong.
4966         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4967
4968         init.sh: avoid unwarranted test failure when using "set -e"
4969         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4970         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4971         a use like "compare exp out" would get evoke an unconditional failure.
4972
4973 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4974
4975         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4976         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4977         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4978         autoreconf that did not.
4979         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4980         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4981
4982 2011-12-17  Jim Meyering  <meyering@redhat.com>
4983
4984         bootstrap: remove some now-unneeded code
4985         This script arose back when gnulib-tool was young.
4986         Since then, it has seen improvements that render much of this
4987         script unnecessary.  In particular, it can now make symlinks
4988         to the files it uses.  Also, I no longer see as much value in
4989         marking files as read-only via comments.
4990         If you relied on the symlink-creation feature of the preceding
4991         version of this script, you can get most of that functionality
4992         by adding the --symlink option to the definition of
4993         gnulib_tool_option_extras in your bootstrap.conf file.
4994         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4995         Run autopoint and libtoolize *before* gnulib-tool.
4996         After it, run an abbreviated autoreconf, rather than a loop around
4997         all tools.
4998         (slirp, bt_mark_as_generated): Remove functions.
4999
5000 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         ftoastr: fix typo
5003         * lib/ftoastr.h: Fix misspelling in comment.
5004
5005 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5006
5007         * top/README-release: fix punctuation.
5008
5009 2011-12-17  Jim Meyering  <meyering@redhat.com>
5010
5011         bootstrap: correct the recent buildreq change
5012         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5013         had no effect.
5014         * build-aux/bootstrap (buildreq): Bracket each search term with
5015         "*...*", so that the shell "case" statement works as intended.
5016         Add comments.
5017
5018 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5019
5020         build: let bootstrap resort to wget when downloading .po files
5021         * build-aux/bootstrap (download_po_files): Fallback to wget when
5022         downloading the .po files via rsync fails.  This is necessary to
5023         bootstrap from behind a strict firewall.
5024
5025 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         stdint: don't assume C++11 when compiling with g++
5028         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5030         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5031         work also in C++ before C++11, as that improperly inhibits
5032         generating a substitute stdint.h for that case.
5033
5034 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5035
5036         alloca: protect comment from gnulib-tool
5037         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5038         that gnulib-tool doesn't think it's a license, and munge it to
5039         say "GCC version 3".
5040
5041 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5042
5043         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5044         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5045         $(abs_top_builddir) instead of $(top_builddir).
5046
5047 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5048
5049         strftime-tests: also test nanoseconds
5050         * tests/test-strftime.c (T): Add a test of %N.
5051
5052 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5053
5054         inttypes, stdint: add C++11 support
5055         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5056         when including inttypes.h and stdint.h.  Support this change to
5057         the standard.
5058         * doc/posix-headers/inttypes.texi (inttypes.h):
5059         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5060         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5061         Define if not defined already, for the benefit of pre-C++11 hosts.
5062         Define the standard format macros (e.g., PRId8) always.
5063         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5064         Likewise, if __cpluspus.  Define the standard constant and limit
5065         macros (e.g., INT8_C, INT8_MAX) always.
5066         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5067         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5068         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5069         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5070         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5071         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5072         Likewise.
5073
5074 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         nonblocking tests: Fix test failure on Linux/PPC.
5077         Suggested by Prerna Saxena in
5078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5079         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5080         Set to 1100000.
5081
5082 2011-12-12  Jim Meyering  <meyering@redhat.com>
5083
5084         argmatch: don't hard-code `' when listing valid option arguments
5085         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5086         use the quote function to add quotes.  Use fputs rather than
5087         fprintf for the format string with no format directive.
5088
5089 2011-12-07  Eric Blake  <eblake@redhat.com>
5090
5091         bootstrap: detect tools required by gnulib-tool
5092         * build-aux/bootstrap (buildreq): Provide minimum implicit
5093         dependencies.
5094         * DEPENDENCIES: Mention patch as a prereq.
5095
5096 2011-12-04  Bruno Haible  <bruno@clisp.org>
5097
5098         sethostname: Port to Windows platforms.
5099         * lib/sethostname.c: Provide an alternate implementation for Windows
5100         platforms.
5101         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5102         (main): Skip the test if sethostname() fails with EPERM. On Windows
5103         platforms, don't check the result of gethostname().
5104
5105 2011-12-04  Bruno Haible  <bruno@clisp.org>
5106             Jim Meyering  <meyering@redhat.com>
5107
5108         tests: Avoid spurious error message on platforms without mktemp program.
5109         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5110
5111 2011-12-04  Bruno Haible  <bruno@clisp.org>
5112
5113         sethostname: Fix documentation.
5114         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5115         "not fixed" section.
5116
5117 2011-12-03  Bruno Haible  <bruno@clisp.org>
5118
5119         gnulib-tool: Verify that the License field is present and non-empty.
5120         * gnulib-tool (func_get_license_raw): New function, extracted from
5121         func_get_license.
5122         (func_get_license): Use it. Warn if the module is not a test module and
5123         has no license.
5124         Suggested by Jim Meyering.
5125
5126 2011-12-03  Bruno Haible  <bruno@clisp.org>
5127
5128         sethostname tests: Fix link error on mingw.
5129         * tests/test-sethostname1.c: New file, extracted from
5130         tests/test-sethostname.c.
5131         * tests/test-sethostname2.c: New file, extracted from
5132         tests/test-sethostname.c.
5133         * tests/test-sethostname.c: Remove file.
5134         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5135         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5136         (Depends-on): Add gethostname.
5137         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5138         Link the latter with $(GETHOSTNAME_LIB).
5139
5140         sethostname tests: Fix compilation error on mingw.
5141         * tests/test-sethostname.c: Don't include <sys/types.h>.
5142         (geteuid): Use a dummy value without uid_t.
5143         * modules/sethostname-tests (Depends-on): Remove sys_types.
5144
5145         sethostname tests: Avoid a gcc warning.
5146         * tests/test-sethostname.c (main): Remove an unused variable.
5147
5148         Tweak last commit.
5149         * modules/sethostname-tests (Files): Sort by decreasing importance.
5150         (configure.ac): Check for geteuid.
5151         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5152         the test when there's nothing to test. Drop an unnecessary cast.
5153         Improve an error message. Verify that the final sethostname() call
5154         succeeds.
5155
5156 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5157
5158         Add a test suite for the sethostname module.
5159         * modules/sethostname-tests: New file.  A test program
5160         for the sethostname module.
5161         * tests/test-sethostname.c: Likewise.
5162
5163 2011-12-03  Bruno Haible  <bruno@clisp.org>
5164
5165         Tweak last commit.
5166         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5167         Fix preprocessor directives indentation. Fix typos.
5168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5169         * modules/unistd (Makefile): Likewise.
5170
5171 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5172
5173         Integrate the sethostname module into unistd.
5174         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5175         into the unistd.h header.
5176         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5177         preprocessor directives.
5178         * modules/unistd: Setup the Makefile substitutions of the
5179         SETHOSTNAME preprocessor directives.
5180
5181 2011-12-03  Bruno Haible  <bruno@clisp.org>
5182
5183         Tweak last commit.
5184         * lib/sethostname.c: Don't include <string.h>.
5185         (sethostname): No need to copy the argument string to the stack. Don't
5186         call clearerr. Preserve errno when fprintf failed.
5187         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5188         Don't invoke AC_REPLACE_FUNCS.
5189         * modules/sethostname (Link): Remove empty section.
5190         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5191         failure problem.
5192
5193 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5194
5195         New module 'sethostname'.
5196         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5197         for systems that lack it.
5198         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5199         sethostname declaration and function.
5200         * modules/sethostname: New file.  Define the sethostname module.
5201
5202 2011-12-03  Bruno Haible  <bruno@clisp.org>
5203
5204         Tweak last commit.
5205         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5206
5207 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5208
5209         Split the HOST_NAME_MAX detection into a separate m4 macro.
5210         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5211         macro so it can be used by the pending sethostname module.
5212
5213 2011-12-03  Bruno Haible  <bruno@clisp.org>
5214
5215         Fix module descriptions syntax.
5216         * modules/argv-iter (License): Fix syntax.
5217         * modules/di-set (License): Likewise.
5218         * modules/ino-map (License): Likewise.
5219         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5220
5221 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5222
5223         stdalign: port to Clang 3.0
5224         Problem reported by Simon Josefsson in
5225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5226         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5227         which has <stdalign.h> but which does not define alignof.
5228         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5229
5230 2011-12-01  Eric Blake  <eblake@redhat.com>
5231
5232         mktempd: silence dd usage
5233         * build-aux/mktempd (rand_bytes): Silence dd.
5234
5235 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5236
5237         manywarnings: Don't mention gcc version in docstring.
5238         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5239         Jim Meyering <meyering@redhat.com>.
5240
5241 2011-11-30  Jim Meyering  <meyering@redhat.com>
5242
5243         hash: mark a few floating point constants with "f" suffix
5244         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5245         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5246         floating point constants with "f", since they're destined to be
5247         saved/used as "float"s.
5248
5249 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5250
5251         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5252         * tests/test-float.c (test_long_double): Correct and re-enable the
5253         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5254
5255 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5256
5257         Avoid subtracting two pointers that don't point into the same block.
5258         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5259         only pointers into the same memory block are subtracted. We cannot
5260         assume that sizeof (ptrdiff_t) == sizeof (void *).
5261
5262 2011-11-29  Eric Blake  <eblake@redhat.com>
5263
5264         maint.mk: add syntax check for use of compare from init.sh
5265         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5266         moved here from coreutils.
5267
5268         manywarnings: drop -Wunsuffixed-float-constants
5269         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5270         '1.0D', which is the only way to silence this warning for 'double'.
5271
5272 2011-11-29  Jim Meyering  <meyering@redhat.com>
5273
5274         hash: mark compute_bucket_size with the pure attribute
5275         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5276
5277         quotearg, propername: correct pragma guard expression
5278         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5279         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5280
5281 2011-11-28  Jim Meyering  <meyering@redhat.com>
5282
5283         propername: do not mark proper_name with the const attribute
5284         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5285         since it examines data pointed to by its parameter.
5286         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5287         the suggestion from -Wsuggest-attribute=const.
5288
5289         propername: mark one more function as const
5290         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5291
5292 2011-11-27  Jim Meyering  <meyering@redhat.com>
5293
5294         mark functions with const and pure attributes
5295
5296         Mark functions per suggestions from gcc-4.6 when using these options:
5297         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5298         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5299         Follow these guidelines: when possible, apply the attribute to
5300         an extern declaration, not to its definition.  Apply it to the
5301         definition only when the definition is static.
5302         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5303         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5304         * lib/base64.h (isbase64): Likewise.
5305         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5306         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5307         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5308         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5309         (c_tolower, c_toupper): Likewise.
5310         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5311         * lib/chdir-long.c (find_non_slash): Likewise.
5312         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5313         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5314         * lib/file-type.h (file_type): Likewise.
5315         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5316         * lib/filevercmp.c (verrevcmp): Likewise.
5317         * lib/freadahead.h (freadahead): Likewise.
5318         * lib/fts.c (fts_maxarglen): Likewise.
5319         * lib/hash-pjw.h (hash_pjw): Likewise.
5320         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5321         * lib/hash.c (is_prime, next_prime): Likewise.
5322         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5323         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5324         (hash_table_ok, hash_get_first, hash_string): Likewise.
5325         (compute_bucket_size): Likewise.
5326         * lib/i-ring.h (i_ring_empty): Likewise.
5327         * lib/isnan.c (isnanl): Likewise.
5328         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5329         * lib/memcasecmp.h (memcasecmp): Likewise.
5330         * lib/memchr2.h (memchr2): Likewise.
5331         * lib/memcmp2.h (memcmp2): Likewise.
5332         * lib/parse-datetime.y (lookup_zone): Likewise.
5333         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5334         [!WINDOWS_SOCKETS]: Likewise.
5335         * lib/strnlen1.h (strnlen1): Likewise.
5336         * lib/uniwidth.in.h (uc_width): Likewise.
5337         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5338         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5339         (quoting_options_from_style): Add a comment.
5340         * lib/propername.h (proper_name): Add a comment.
5341
5342 2011-11-27  Bruno Haible  <bruno@clisp.org>
5343
5344         Remove unused macros from !_LIBC code in glibc-borrowed files.
5345         * lib/fnmatch.c (STRCOLL): Remove macro.
5346         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5347         * lib/glob.c (__stat, __readdir64): Remove macros.
5348         * lib/tempname.c (__open64, __xstat64): Remove macros.
5349         Suggested by Paul Eggert.
5350
5351 2011-11-27  Bruno Haible  <bruno@clisp.org>
5352
5353         getcwd: Fix link error on MSVC 9.
5354         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5355
5356 2011-11-27  Bruno Haible  <bruno@clisp.org>
5357
5358         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5359         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5360         HAVE_OPENDIR is 0.
5361         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5362         HAVE_CLOSEDIR is 0.
5363         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5364         is 0.
5365         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5366
5367 2011-11-27  Bruno Haible  <bruno@clisp.org>
5368
5369         getcwd: Fix bug from 2011-08-17.
5370         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5371         platforms that need it.
5372         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5373         code of 4 to be a failure, not a success. This ensures that
5374         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5375
5376 2011-11-27  Bruno Haible  <bruno@clisp.org>
5377
5378         binary-io tests: Avoid test failure on mingw when libtool is used.
5379         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5380         Don't verify the size of t-bin-out1.tmp here.
5381         * tests/test-binary-io.sh: Verify it here.
5382         Reported by Simon Josefsson.
5383
5384 2011-11-26  Bruno Haible  <bruno@clisp.org>
5385
5386         Fix conflict between two instantiations of module 'unistd'.
5387         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5388         ${include_guard_prefix} also in the autoconf snippet.
5389         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5391         GNULIB_UNISTD_H_GETOPT.
5392         * modules/getopt-posix (configure.ac): Set the
5393         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5394         * modules/getopt-gnu (configure.ac): Likewise.
5395         * modules/unistd (Makefile.am): Change the substitution value of
5396         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5397         Reported by Simon Josefsson.
5398
5399 2011-11-25  Bruno Haible  <bruno@clisp.org>
5400
5401         pagealign_alloc: Doc and comments.
5402         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5403         module.
5404         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5405
5406 2011-11-25  Jim Meyering  <meyering@redhat.com>
5407
5408         test-update-copyright.sh: avoid false-positive failure
5409         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5410         around false positive failure on Cygwin/Windows.  The latter was
5411         matching erroneously-created files with names like
5412         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5413
5414 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5415
5416         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5417         * m4/valgrind-tests.m4: Check that the parameters that will be
5418         used works, not just a subset of them.  Reported by Bruno Haible
5419         <bruno@clisp.org>.
5420
5421 2011-11-24  Jim Meyering  <meyering@redhat.com>
5422
5423         test-stdalign.c: comment out long double tests
5424         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5425         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5426         error: '_Alignas' specifiers cannot reduce alignment of \
5427         'static_longdouble_alignas'.
5428
5429 2011-11-22  Jim Meyering  <meyering@redhat.com>
5430
5431         init.sh: make "compare /dev/null FILE" output more readable
5432         * tests/init.sh (compare_): Document the preferred order of arguments.
5433         (emit_diff_u_header_): New function.
5434         (compare_dev_null_): Emit a simulated diff, rather than just the
5435         contents of the unexpected file.  Suggestion from Bruno Haible.
5436
5437 2011-11-21  Jim Meyering  <meyering@redhat.com>
5438             Eric Blake  <eblake@redhat.com>
5439
5440         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5441         * tests/init.sh: Make our compare function slightly more portable.
5442         Reported by Bruno Haible in
5443         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5444
5445 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5446
5447         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5448         before using it, in code that ends up in config.h.
5449
5450 2011-11-20  Bruno Haible  <bruno@clisp.org>
5451
5452         getcwd: Work around getcwd bug on AIX 5..7.
5453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5454         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5455         Use a different value for gl_cv_func_getcwd_path_max. Move the
5456         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5457         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5458         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5459         Define HAVE_MINIMALLY_WORKING_GETCWD.
5460         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5461         where it is not even minimally working, that is, on AIX.
5462         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5463         m4/getcwd-path-max.m4.
5464         (main): Update exit code computation.
5465         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5466         getcwd does not handle long file names.
5467
5468 2011-11-20  Bruno Haible  <bruno@clisp.org>
5469
5470         getcwd: Fix bug from 2009-09-10.
5471         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5472         like "no".
5473
5474 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5475
5476         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5477
5478 2011-11-20  Bruno Haible  <bruno@clisp.org>
5479
5480         fma tests: Avoid shadowing local variables.
5481         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5482         expected.
5483
5484 2011-11-20  Bruno Haible  <bruno@clisp.org>
5485
5486         copysignf tests: Fix.
5487         * tests/test-copysignf.c: Fix signature check.
5488
5489 2011-11-20  Bruno Haible  <bruno@clisp.org>
5490
5491         fma: Remove unused code.
5492         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5493         unused macros.
5494
5495 2011-11-20  Bruno Haible  <bruno@clisp.org>
5496
5497         sethostname: Fix doc about AIX.
5498         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5499         sethostname; it has it.
5500
5501         sethostname: Mention more portability problems.
5502         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5503         problem.
5504         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5505
5506 2011-11-19  Bruno Haible  <bruno@clisp.org>
5507
5508         Depend on module fcntl-h when AT_FDCWD is used.
5509         * modules/utimens (Depends-on): Add fcntl-h.
5510         * modules/areadlinkat (Depends-on): Likewise.
5511         * modules/areadlinkat-with-size (Depends-on): Likewise.
5512         * modules/faccessat (Depends-on): Likewise.
5513         * modules/fchmodat (Depends-on): Likewise.
5514         * modules/fchownat (Depends-on): Likewise.
5515         * modules/getcwd (Depends-on): Likewise.
5516         * modules/mkdirat (Depends-on): Likewise.
5517         * modules/mkfifoat (Depends-on): Likewise.
5518         * modules/readlinkat (Depends-on): Likewise.
5519         * modules/symlinkat (Depends-on): Likewise.
5520         * modules/dup2-tests (Depends-on): Likewise.
5521         * modules/fdutimensat-tests (Depends-on): Likewise.
5522         * modules/futimens-tests (Depends-on): Likewise.
5523
5524 2011-11-19  Bruno Haible  <bruno@clisp.org>
5525
5526         euidaccess: Update a comment.
5527         * lib/euidaccess.c: Update comment about platforms with faccessat.
5528
5529 2011-11-19  Bruno Haible  <bruno@clisp.org>
5530
5531         openat: Fix file list.
5532         * modules/openat (Files): Remove lib/at-func.c.
5533
5534 2011-11-19  Bruno Haible  <bruno@clisp.org>
5535
5536         fstatat: Simplify.
5537         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5538         gnulib should define rpl_fstatat, there is a
5539         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5540
5541 2011-11-19  Bruno Haible  <bruno@clisp.org>
5542
5543         Ensure 'inline' can be used in tests/test-utimens-common.h.
5544         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5545         * modules/futimens-tests (configure.ac): Likewise.
5546         * modules/utimens-tests (configure.ac): Likewise.
5547         * modules/utimensat-tests (configure.ac): Likewise.
5548
5549 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5550
5551         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5552         not hash_insert0.
5553         (hash_insert_if_absent): Doc fix.
5554
5555 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5556
5557         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5558
5559 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5560
5561         test-getcwd: disambiguate exit status
5562         * tests/test-getcwd.c (test_long_name): Return 0..7.
5563         (main): Exit with an unambiguous exit status.  The old
5564         code yielded a mysterious mixture of two failure codes.
5565
5566         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5567         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5568         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5569         rpl_fstatat or fstatat.  This should fix the other problem
5570         reported by Kai Habel in
5571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5572         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5574         and I reproduced it on a Solaris 8 host we still have in production.
5575
5576 2011-11-18  Jim Meyering  <meyering@redhat.com>
5577
5578         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5579         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5580         Add a sentence to the comment.
5581         (hash_insert0): New function that simply calls hash_insert_if_absent.
5582         * lib/hash.h (hash_insert_if_absent): Declare it.
5583         (hash_insert0): Add deprecation attribute.
5584         (_GL_ATTRIBUTE_DEPRECATED): Define.
5585         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5586         not hash_insert0.
5587         * NEWS: Mention it, even though it's not really an incompatible change.
5588
5589 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5590
5591         openat: avoid compilation failure due to lack of <errno.h> inclusion
5592         * lib/openat.c: Include <errno.h>.
5593
5594 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5595
5596         * modules/getcwd (Depends-on): Add fdopendir.
5597         This fixes one of the two problems reported by Kai Habel in
5598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5599
5600         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5601         stdalign problem reported by Ian Beckwith in
5602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5603         * modules/crypto/gc-arcfour (Depends-on):
5604         Depend conditionally on crypto/arcfour.
5605         * modules/crypto/gc-arctwo (Depends-on):
5606         Depend conditionally on crypto/arctwo.
5607         * modules/crypto/gc-des (Depends-on):
5608         Depend conditionally on crypto/des.
5609         * modules/crypto/gc-hmac-md5 (Depends-on):
5610         Depend conditionally on crypto/hmac-md5.
5611         * modules/crypto/gc-hmac-sha1 (Depends-on):
5612         Depend conditionally on crypto/hmac-sha1.
5613         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5614         * modules/crypto/gc-md4 (Depends-on):
5615         Depend conditionally on crypto/md4.
5616         * modules/crypto/gc-md5 (Depends-on):
5617         Depend conditionally on crypto/md5.
5618         * modules/crypto/gc-rijndael (Depends-on):
5619         Depend conditionally on crypto/rijndael.
5620         * modules/crypto/gc-sha1 (Depends-on):
5621         Depend conditionally on crypto/sha1.
5622         * modules/crypto/gc-arcfour:
5623         * modules/crypto/gc-arctwo:
5624         * modules/crypto/gc-des:
5625         * modules/crypto/gc-hmac-md5:
5626         * modules/crypto/gc-hmac-sha1:
5627         * modules/crypto/gc-md2:
5628         * modules/crypto/gc-md4:
5629         * modules/crypto/gc-md5:
5630         * modules/crypto/gc-rijndael:
5631         * modules/crypto/gc-sha1:
5632         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5633         now that the conditional dependencies do the work for us.
5634
5635 2011-11-17  Jim Meyering  <meyering@redhat.com>
5636
5637         tests: factor st_ctime-comparison out of two headers
5638         * tests/test-utimens-common.h (ctime_compare): Define.
5639         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5640         * tests/test-lutimens.h (test_lutimens): Likewise.
5641         * tests/test-utimens.h (test_utimens): Likewise.
5642
5643         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5644         Invoke the test program via an init.sh-using wrapper.
5645         * tests/test-getcwd.sh: New file.
5646         * modules/getcwd-tests (Files): Add it.
5647         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5648
5649 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5650
5651         gitlog-to-changelog: support multi-author commits.
5652         The FSF cares about keeping track of all authors of patches to its
5653         projects, but Git doesn't provide obvious support for multi-author
5654         changesets. Consensus seems to be forming around the use of extra
5655         Signed-off-by inspired lines in the log message formatted as
5656         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5657         multi-author commits between version control systems.
5658         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5659         log message and output in standard ChangeLog multi-author format.
5660         Reported by Peter Rosin <peda@lysator.liu.se>
5661
5662 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5663             Bruno Haible  <bruno@clisp.org>
5664
5665         Fix some modules' file list.
5666         * modules/fstatat (Files): Add m4/lstat.m4.
5667         * modules/openat (Files): Likewise.
5668         * modules/unlinkat (Files): Likewise.
5669
5670 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5671
5672         maint.mk: fix tight-scope.mk generation in VPATH builds.
5673         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5674         reference with $(srcdir) so that the file is found correctly even
5675         when running `make syntax-check' in a VPATH build.
5676
5677 2011-11-13  Bruno Haible  <bruno@clisp.org>
5678             Jim Meyering  <meyering@redhat.com>
5679
5680         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5681         * tests/init.sh (compare): Remove "No differences encountered" or
5682         synonymous output from the 'diff' program.
5683
5684 2011-11-13  Bruno Haible  <bruno@clisp.org>
5685
5686         Makefile: Tweak indentation.
5687         * Makefile: Use tab as first character in every line that contains rule
5688         commands.
5689
5690 2011-11-13  Bruno Haible  <bruno@clisp.org>
5691
5692         Syntax check for copyright statements.
5693         * check-copyright: New file.
5694         * Makefile (sc_check_copyright): New rule.
5695
5696 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5697
5698         * build-aux/git-version-gen: Add --prefix to configure the tag
5699         match string.
5700
5701 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5702
5703         * build-aux/git-version-gen: Add --help and --version.
5704
5705 2011-11-12  Jim Meyering  <meyering@redhat.com>
5706
5707         revamp the other test-exclude?.sh scripts to use init.sh, too
5708         * tests/test-exclude1.sh: Use init.sh.
5709         * tests/test-exclude2.sh: Likewise.
5710         * tests/test-exclude3.sh: Likewise.
5711         * tests/test-exclude4.sh: Likewise.
5712         * tests/test-exclude5.sh: Likewise.
5713         * tests/test-exclude6.sh: Likewise.
5714         * tests/test-exclude7.sh: Likewise.
5715         * tests/test-exclude8.sh: Likewise.
5716         * modules/exclude-tests (Files): List init.sh.
5717
5718         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5719         These shell scripts ignored failure of the binary test-exclude,
5720         so making the latter return 77 didn't cause them to be skipped.
5721         * tests/test-exclude5.sh: Exit with test-exclude's error status
5722         when that program fails.  Revamp to use init.sh.
5723         * tests/test-exclude2.sh: Likewise.
5724
5725         test-exclude: fix a typo
5726         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5727
5728 2011-11-11  Bruno Haible  <bruno@clisp.org>
5729
5730         obstack: Fix compilation error on MSVC 9.
5731         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5732
5733 2011-11-11  Jim Meyering  <meyering@redhat.com>
5734
5735         test-exclude: skip tests rather than failing on deficient systems
5736         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5737         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5738         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5739         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5740
5741 2011-11-10  Bruno Haible  <bruno@clisp.org>
5742
5743         ptsname_r test: Avoid gcc warning on glibc systems.
5744         * tests/test-ptsname_r.c (null_ptr): New function.
5745         (test_errors): Use it.
5746
5747 2011-11-10  Bruno Haible  <bruno@clisp.org>
5748
5749         ptsname_r: Avoid compilation error on OSF/1 5.1.
5750         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5752         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5753         function is not declared or incompatibly declared.
5754         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5755         * modules/ptsname_r (Depends-on, configure.ac): Update.
5756         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5757
5758 2011-11-10  Bruno Haible  <bruno@clisp.org>
5759
5760         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5761         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5762         When cross-compiling, guess yes on all platforms except AIX.
5763         Reported by Ludovic Courtès <ludo@gnu.org>.
5764
5765 2011-11-09  Bruno Haible  <bruno@clisp.org>
5766
5767         ptsname_r tests: Fix bugs.
5768         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5769         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5770
5771 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5772
5773         fstatat: work with cross-compilation
5774         Problem reported by Ludovic Courtès in
5775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5776         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5777         "cross-compiling" and assume the bug is present.  Replace
5778         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5779         an inverted sense, to be more conservative about our assumptions.
5780         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5781
5782 2011-11-09  Bruno Haible  <bruno@clisp.org>
5783
5784         Improve MODULES.html output.
5785         * modules/mkfifoat (Description): Use the word "function".
5786         * modules/readlinkat (Description): Likewise.
5787         * modules/symlinkat (Description): Likewise.
5788
5789 2011-11-09  Eric Blake  <eblake@redhat.com>
5790
5791         ptsname_r-tests: new test module
5792         * modules/ptsname_r-tests: New module.
5793         * tests/test-ptsname_r.c: New file.
5794
5795         ptsname_r: new module
5796         * modules/ptsname_r: New module.
5797         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5798         * lib/ptsname.c (__ptsname_r): Split...
5799         * lib/ptsname_r.c: ...into new file.
5800         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5801         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5802         * modules/stdlib (Makefile.am): Substitute witnesses.
5803         * lib/stdlib.in.h (ptsname_r): Declare it.
5804         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5805         * MODULES.html.sh (Misc): Likewise.
5806         * modules/ptsname (Depends-on): Alter dependency.
5807         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5808
5809 2011-11-09  Jim Meyering  <meyering@redhat.com>
5810
5811         announce-gen: be more concise when there's only one URL+tarball
5812         * build-aux/announce-gen (get_tool_versions): When you distribute
5813         only one type of tarball, combine the first two "Here are..."
5814         sections and make the key-checking grammar independent of
5815         how many tarballs there are.
5816
5817 2011-11-09  Eric Blake  <eblake@redhat.com>
5818
5819         openpty: provide a stub on mingw
5820         * lib/pty.in.h (includes): Provide forward declarations.
5821         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5822
5823         raise: fix mingw handling of SIGPIPE
5824         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5825
5826 2011-11-08  Bruno Haible  <bruno@clisp.org>
5827
5828         More conditional dependencies.
5829         * modules/faccessat (Depends-on): Add conditions.
5830         * modules/fchmodat (Depends-on): Likewise.
5831         * modules/fchownat (Depends-on): Likewise.
5832         * modules/fstatat (Depends-on): Likewise.
5833         * modules/mkfifoat (Depends-on): Likewise.
5834         * modules/readlinkat (Depends-on): Likewise.
5835         * modules/symlinkat (Depends-on): Likewise.
5836         * modules/unlinkat (Depends-on): Likewise.
5837         * modules/utimensat (Depends-on): Likewise.
5838         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5839         * modules/linkat (Depends-on): Refine the conditions.
5840         * modules/renameat (Depends-on): Likewise.
5841
5842 2011-11-08  Bruno Haible  <bruno@clisp.org>
5843
5844         faccessat: Move AC_LIBOBJ invocation to module description.
5845         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5846         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5847         invocation from here...
5848         * modules/faccessat (configure.ac): ... to here. Invoke
5849         gl_PREREQ_FACCESSAT.
5850
5851 2011-11-08  Bruno Haible  <bruno@clisp.org>
5852
5853         faccessat: Simplify autoconf macro.
5854         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5855         gl_FUNC_EUIDACCESS.
5856
5857 2011-11-08  Bruno Haible  <bruno@clisp.org>
5858
5859         renameat: Fix dependencies.
5860         * modules/renameat (Depends-on): Add stdbool.
5861
5862 2011-11-08  Bruno Haible  <bruno@clisp.org>
5863
5864         mkfifoat: Fix module description.
5865         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5866         not gl_UNISTD_MODULE_INDICATOR.
5867
5868 2011-11-08  Bruno Haible  <bruno@clisp.org>
5869
5870         fstatat: Remove unused dependency.
5871         * modules/fstatat (Depends-on): Remove fstat.
5872
5873 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5874
5875         GNUmakefile: behave when Makefile is missing.
5876         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5877
5878 2011-11-08  Bruno Haible  <bruno@clisp.org>
5879
5880         openat: Conditionalize dependencies.
5881         * lib/openat.c: Reduce the scope of some #includes.
5882         * modules/openat (Depends-on): Add conditions.
5883
5884 2011-11-07  Jim Meyering  <meyering@redhat.com>
5885
5886         maint.mk: extract GPG key ID without using a temporary file
5887         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5888         without using a temporary file.  Based on a suggestion from Werner Koch
5889         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5890
5891 2011-11-07  Eric Blake  <eblake@redhat.com>
5892
5893         grantpt: fix typo
5894         * lib/stdlib.in.h (grantpt): Check correct function.
5895
5896         maint.mk: silence new syntax check
5897         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5898
5899 2011-11-06  Bruno Haible  <bruno@clisp.org>
5900
5901         Doc about floating-point and math API.
5902         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5903         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5904
5905 2011-11-06  Bruno Haible  <bruno@clisp.org>
5906
5907         stdalign tests: Skip the test when compiled by Sun C.
5908         * tests/test-stdalign.c (main): Skip the test on Sun C.
5909
5910 2011-11-06  Bruno Haible  <bruno@clisp.org>
5911
5912         ansi-c++-opt: Complete the 2011-06-05 change.
5913         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5914         does not support namespaces, set the variable to "no", not to ":".
5915
5916 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5917
5918         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5919
5920 2011-11-06  Bruno Haible  <bruno@clisp.org>
5921
5922         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5923         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5924         (minus_zerol) [HP-UX]: New macro.
5925         (unary_minus) [HP-UX]: New function.
5926         (copysignl) [HP-UX]: Use unary_minus function.
5927
5928 2011-11-06  Bruno Haible  <bruno@clisp.org>
5929
5930         ldexp, ldexpf, ldexpl: Enhance tests.
5931         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5932         and tests/test-ldexpl.c.
5933         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5934         LDEXP, MIN_EXP, MAX_EXP): New macros.
5935         Include test-ldexp.h.
5936         (main): Just call test_function.
5937         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5938         infinity.h, nan.h.
5939         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5940         MAX_EXP): New macros.
5941         Include test-ldexp.h.
5942         (x, y): Remove variables.
5943         (main): Just call test_function.
5944         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5945         infinity.h, nan.h.
5946         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5947         MAX_EXP): New macros.
5948         Include test-ldexp.h.
5949         (x, y): Remove variables.
5950         (main): Just call test_function.
5951         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5952         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5953         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5954         (Depends-on): Add isnand-nolibm, signbit, float.
5955         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5956         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5957         (Depends-on): Add isnanf-nolibm, signbit, float.
5958
5959 2011-11-06  Bruno Haible  <bruno@clisp.org>
5960
5961         math tests: Cosmetics.
5962         * tests/test-math-c++.cc: Reorder declarations.
5963
5964 2011-11-05  Bruno Haible  <bruno@clisp.org>
5965
5966         fma*: Simplify test.
5967         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5968         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5969
5970         Tests for module 'fmal'.
5971         * modules/fmal-tests: New file.
5972         * tests/test-fmal1.c: New file.
5973         * tests/test-fmal2.c: New file.
5974
5975         New module 'fmal'.
5976         * lib/math.in.h (fmal): New declaration.
5977         * lib/fmal.c: New file.
5978         * m4/fmal.m4: New file.
5979         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5981         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5982         REPLACE_FMAL.
5983         * modules/fmal: New file.
5984         * doc/posix-functions/fmal.texi: Mention the new module and the various
5985         bugs.
5986
5987         Tests for module 'fmaf'.
5988         * modules/fmaf-tests: New file.
5989         * tests/test-fmaf1.c: New file.
5990         * tests/test-fmaf2.c: New file.
5991
5992         New module 'fmaf'.
5993         * lib/math.in.h (fmaf): New declaration.
5994         * lib/fmaf.c: New file.
5995         * m4/fmaf.m4: New file.
5996         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5998         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5999         REPLACE_FMAF.
6000         * modules/fmaf: New file.
6001         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6002         bugs.
6003
6004         Tests for module 'fma'.
6005         * modules/fma-tests: New file.
6006         * tests/test-fma1.c: New file.
6007         * tests/test-fma1.h: New file.
6008         * tests/test-fma2.c: New file.
6009         * tests/test-fma2.h: New file.
6010
6011         New module 'fma'.
6012         * lib/math.in.h (fma): New declaration.
6013         * lib/fma.c: New file.
6014         * m4/fma.m4: New file.
6015         * m4/fegetround.m4: New file.
6016         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6018         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6019         REPLACE_FMA.
6020         * modules/fma: New file.
6021         * doc/posix-functions/fma.texi: Mention the new module and the various
6022         bugs.
6023
6024         Extend gl_MATHFUNC.
6025         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6026         Support 'void' as argument type.
6027         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6028
6029 2011-11-05  Jim Meyering  <meyering@redhat.com>
6030
6031         maint.mk: also prohibit inclusion of dirent.h without use
6032         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6033
6034 2011-11-05  Bruno Haible  <bruno@clisp.org>
6035
6036         ldexpl tests: Avoid test failure on MSVC 9.
6037         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6038         value. Needed in order to enforce the conversion from a value greater
6039         than LDBL_MAX to Infinity.
6040
6041 2011-11-05  Bruno Haible  <bruno@clisp.org>
6042
6043         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6044         * modules/at-internal: New file, extracted from modules/openat.
6045         * modules/openat-h: New file.
6046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6047         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6048         * modules/openat (Description): Add reference to POSIX function.
6049         (Files): Remove lib/openat.h, lib/openat-proc.c.
6050         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6051         intprops, unistd.
6052         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6053         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6054         gl_FCNTL_MODULE_INDICATOR.
6055         (Include): Remove unistd.h, openat.h.
6056         * modules/areadlinkat (Files): Add lib/at-func.c.
6057         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6058         openat-die, openat-h, save-cwd.
6059         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6060         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6061         openat-die, openat-h, save-cwd, unistd.
6062         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6063         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6064         openat-h, save-cwd. Remove fcntl-h, openat.
6065         * modules/fchmodat (Files): Remove lib/openat.h.
6066         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6067         openat, stdbool, unistd.
6068         * modules/fchownat (Files): Remove lib/openat.h.
6069         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6070         openat, stdbool, sys_stat.
6071         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6072         lib/openat-proc.c.
6073         (Depends-on): Add at-internal.
6074         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6075         * modules/fstatat (Files): Remove lib/openat.h.
6076         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6077         stdbool, unistd.
6078         * modules/fts (Depends-on): Add openat-h.
6079         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6080         openat.
6081         * modules/mkdirat (Files): Remove lib/openat.h.
6082         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6083         openat, stdbool, sys_stat.
6084         * modules/mkfifoat (Files): Add lib/at-func.c.
6085         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6086         openat-h, save-cwd. Remove fcntl-h, openat.
6087         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6088         * modules/readlinkat (Files): Add lib/at-func.c.
6089         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6090         openat-h, save-cwd. Remove fcntl-h, openat.
6091         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6092         openat.
6093         * modules/selinux-at (Files): Add lib/at-func.c.
6094         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6095         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6096         * modules/symlinkat (Files): Add lib/at-func.c.
6097         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6098         openat-h, save-cwd. Remove fcntl-h, openat.
6099         * modules/unlinkat (Files): Remove lib/openat.h.
6100         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6101         stdbool.
6102         * modules/utimensat (Files): Add lib/at-func.c.
6103         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6104         openat-die, openat-h, save-cwd.
6105         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6106         * modules/fdutimensat-tests (Depends-on): Add openat.
6107         * modules/fstatat-tests (Depends-on): Add openat-h.
6108         * modules/readlinkat-tests (Depends-on): Add openat.
6109         * modules/symlinkat-tests (Depends-on): Add openat.
6110
6111 2011-11-05  Bruno Haible  <bruno@clisp.org>
6112
6113         openat: Include <stdbool.h>.
6114         * lib/openat.c: Include <stdbool.h>.
6115
6116 2011-11-04  Bruno Haible  <bruno@clisp.org>
6117
6118         fchownat, renameat, unlinkat: Fix dependencies.
6119         * modules/fchownat (Depends-on): Add fstatat.
6120         * modules/renameat (Depends-on): Likewise.
6121         * modules/unlinkat (Depends-on): Likewise.
6122
6123 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6124
6125         openat: remove direct dependency on dirent
6126         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6127         and hasn't been needed ever since fdopendir was split into its own
6128         module on 2009-08-31.
6129         * modules/openat (Depends-on): Remove dirent.
6130
6131 2011-11-04  Bruno Haible  <bruno@clisp.org>
6132
6133         renameat: Optimize code size.
6134         * modules/renameat (configure.ac): Don't compile at-func2.c if
6135         REPLACE_RENAMEAT is 1.
6136
6137 2011-11-04  Bruno Haible  <bruno@clisp.org>
6138
6139         openat tests: Fix file list.
6140         * modules/openat-tests (Files): Add tests/test-open.h.
6141
6142 2011-11-04  Bruno Haible  <bruno@clisp.org>
6143
6144         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6145         * modules/fchmodat (Depends-on): Add openat-die.
6146         * modules/fchownat (Depends-on): Likewise.
6147         * modules/linkat (Depends-on): Likewise.
6148         * modules/renameat (Depends-on): Likewise.
6149         * modules/openat (Depends-on): Add dirent.
6150
6151 2011-11-04  Jim Meyering  <meyering@redhat.com>
6152
6153         at-func*.c: fix comments
6154         * lib/at-func2.c: Correct/improve first-line comment.
6155         * lib/at-func.c: Correct grammar in first-line comment.
6156
6157 2011-11-04  Bruno Haible  <bruno@clisp.org>
6158
6159         New module 'mkdirat', split off from module 'openat'.
6160         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6161         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6162         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6163         * modules/mkdirat: New file, extracted from modules/openat.
6164         * modules/openat (Files): Remove lib/mkdirat.c.
6165         (Depends-on): Remove mkdir.
6166         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6167         (Include): Remove <sys/stat.h>.
6168         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6169         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6170         tests/test-mkdir.h.
6171         (Depends-on): Remove ignore-value.
6172         (Makefile.am): Remove rules for test-mkdirat.
6173         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6174         of module 'openat'.
6175         * NEWS: Mention the change.
6176
6177 2011-11-04  Bruno Haible  <bruno@clisp.org>
6178
6179         closedir: Avoid warning on mingw.
6180         * lib/closedir.c: Include <unistd.h>.
6181
6182 2011-11-04  Bruno Haible  <bruno@clisp.org>
6183
6184         New module 'fstatat', split off from module 'openat'.
6185         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6186         defined.
6187         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6188         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6189         gl_FUNC_FSTATAT.
6190         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6191         * modules/fstatat: New file, extracted from modules/openat.
6192         * modules/openat (Files): Remove lib/fstatat.c.
6193         (Depends-on): Remove lstat.
6194         (configure.ac): Remove AC_LIBOBJ of fstatat.
6195         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6196         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6197         tests/test-lstat.h, tests/test-stat.h.
6198         (Depends-on): Remove getcwd-lgpl.
6199         (Makefile.am): Remove rules for test-fstatat.
6200         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6201         of module 'openat'.
6202         * NEWS: Mention the change.
6203         * modules/getcwd (Depends-on): Add fstatat.
6204         * modules/linkat (Depends-on): Likewise.
6205         * modules/mkfifoat-tests (Depends-on): Likewise.
6206         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6207
6208 2011-11-03  Bruno Haible  <bruno@clisp.org>
6209
6210         New module 'unlinkat', split off from module 'openat'.
6211         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6212         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6213         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6214         * modules/unlinkat: New file, extracted from modules/openat. Correct
6215         the dependency conditions.
6216         * modules/openat (Files): Remove lib/unlinkat.c.
6217         (Depends-on): Remove rmdir, unlink.
6218         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6219         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6220         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6221         tests/test-rmdir.h, tests/test-unlink.h.
6222         (Depends-on): Remove unlinkdir.
6223         (Makefile.am): Remove rules for test-unlinkat.
6224         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6225         of module 'openat'.
6226         * NEWS: Mention the change.
6227         * modules/linkat-tests (Depends-on): Add unlinkat.
6228         * modules/mkfifoat-tests (Depends-on): Likewise.
6229         * modules/readlinkat-tests (Depends-on): Likewise.
6230
6231 2011-11-02  Bruno Haible  <bruno@clisp.org>
6232
6233         New module 'fchmodat', split off from module 'openat'.
6234         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6235         defined.
6236         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6237         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6238         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6239         * modules/fchmodat: New file, extracted from modules/openat.
6240         * modules/openat (Files): Remove lib/fchmodat.c.
6241         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6242         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6243         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6244         (Makefile.am): Remove rules for test-fchmodat.
6245         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6246         of module 'openat'.
6247         * NEWS: Mention the change.
6248
6249 2011-11-02  Jim Meyering  <meyering@redhat.com>
6250
6251         putenv: indent #definition of "environ" to placate cppi
6252         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6253
6254         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6255         Git logs are often treated as immutable, because editing them
6256         changes the SHA1 checksums of all descendants.  Thus, errors in
6257         git logs tend to stay there forever.  However, when we generate
6258         a ChangeLog file -- typically for distribution -- from that git log,
6259         we can actually make corrections in the generated file.  The key
6260         lies in recording in machine-readable/applicable form the desired
6261         corrections.  See --help for description and an example.
6262         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6263         (usage): Describe it; alphabetize option descriptions.
6264         (main): Honor the new option, carefully.
6265
6266 2011-11-01  Jim Meyering  <meyering@redhat.com>
6267
6268         gitlog-to-changelog: avoid an infloop
6269         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6270         that ends up being empty.
6271
6272 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6273
6274         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6275         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6276         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6277         contains (possibly-quoted) backslashes.  This should avoid
6278         all-too-common shell bugs if COMPLICATED contains backslashes in
6279         the "wrong" places.  Reported by David Evans in
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6281         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6282         because we want ASCII ranges.  Is there some reason we don't use
6283         the C locale everywhere in this script?
6284         (func_module, top level): Avoid unwanted pathname expansion when
6285         $repo_url_prefix or $repo_url_suffix_repl contain shell
6286         metacharacters like '?' and '*'.
6287
6288 2011-11-01  Bruno Haible  <bruno@clisp.org>
6289
6290         fchownat: Improve description.
6291         * modules/fchownat (Description): Add link to function.
6292
6293 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6296         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6298         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6299
6300 2011-11-01  Bruno Haible  <bruno@clisp.org>
6301
6302         alignof: Avoid collision with stdalign module.
6303         * lib/alignof.h (alignof): Remove macro.
6304         * NEWS: Mention the change.
6305         Reported by Paul Eggert.
6306
6307 2011-11-01  Bruno Haible  <bruno@clisp.org>
6308
6309         New module 'fchownat', split off from module 'openat'.
6310         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6311         defined.
6312         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6313         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6314         invoke gl_FUNC_FCHOWNAT.
6315         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6316         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6317         * modules/fchownat: New file, extracted from modules/openat.
6318         * modules/openat (Files): Remove lib/fchownat.c.
6319         (Depends-on): Remove lchown.
6320         (configure.ac): Remove AC_LIBOBJ of fchownat.
6321         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6322         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6323         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6324         (Depends-on): Remove mgetgroups, usleep, stat-time.
6325         (configure.ac): Remove test for getegid.
6326         (Makefile.am): Remove rules for test-fchownat.
6327         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6328         of module 'openat'.
6329         * NEWS: Mention the change.
6330
6331 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6332
6333         stdalign: port better to MSVC and to Sun C 5.11
6334         This fixes some of the problems reported by Bruno Haible in
6335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6336         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6337         shortcomings of MSVC and of Sun C 5.11.
6338         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6339         around __declspec arg.
6340         * modules/stdalign-tests (Files): Add tests/macros.h.
6341         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6342         Include macros.h, for ASSERT.
6343         (DECLARE_ALIGNED): Remove.
6344         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6345         to catch bug), and to 1 if not (simplifies the rest of the code).
6346         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6347         (CHECK_AUTO): Remove.
6348         (CHECK_ALIGNED): Check only the alignment of the static vars,
6349         since auto var alignment isn't supported by Sun C 5.11.
6350         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6351         ASSERT failures are easier to diagnose.
6352
6353 2011-10-31  Bruno Haible  <bruno@clisp.org>
6354
6355         doc about some IRIX 5.3 problems.
6356         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6357         on IRIX 5.3.
6358         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6359         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6360         5.3.
6361         * doc/posix-functions/grantpt.texi: Likewise.
6362         * doc/posix-functions/unlockpt.texi: Likewise.
6363         * doc/posix-functions/lgamma.texi: Likewise.
6364         * doc/posix-functions/nextafter.texi: Likewise.
6365         * doc/posix-functions/remainder.texi: Likewise.
6366         * doc/posix-functions/select.texi: Mention misplaced declaration on
6367         IRIX 5.3.
6368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6369
6370 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6371
6372         gitlog-to-changelog: fix git-log invocation.
6373         git-log mishandles date strings before 1970-01-01 UTC, and there is
6374         no use to specify --since=1970-01-01 by default anyway.
6375         * build-aux/gitlog-to-changelog: By default, when no --since option
6376         was given, do not specify explicit --since option to git-log.
6377
6378 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6379
6380         gitlog-to-changelog: new option --append-dot.
6381         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6382         first non-blank line of each commit message terminated with a dot.
6383
6384 2011-10-30  Bruno Haible  <bruno@clisp.org>
6385
6386         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6387         * lib/ffsl.h: Include <config.h>.
6388         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6389
6390 2011-10-30  Jim Meyering  <meyering@redhat.com>
6391
6392         GNUmakefile: reenable "make syntax-check" for most projects
6393         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6394         build-aux variable", "syntax-check" would do nothing but succeed with
6395         the "No version control files detected..." diagnostic (unless you
6396         happened to override _build-aux via cfg.mk).
6397         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6398         to precede inclusion of maint.mk.  Otherwise, these variables would
6399         be used undefined in any project that does not override the default.
6400
6401 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6402
6403         gitlog-to-changelog: treat a message with only blank lines as empty.
6404         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6405         trailing blank lines before the code that issues a warning about an
6406         empty commit message.
6407
6408 2011-10-30  Jim Meyering  <meyering@redhat.com>
6409
6410         test-parse-datetime.c: avoid new DST-related false positive test failure
6411         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6412         based on the time/date we'll convert, not the current time.
6413         Otherwise, the moment we cross a DST boundary like today's in
6414         Europe, (CEST to CET), that offset ends up being one hour off.
6415
6416 2011-10-27  Bruno Haible  <bruno@clisp.org>
6417
6418         fstat: Tweak documentation.
6419         * modules/fstat (Description): More precise description.
6420
6421 2011-10-27  Bruno Haible  <bruno@clisp.org>
6422
6423         Update documentation regarding 'largefile' module.
6424         * doc/posix-functions/fstat.texi: Tweak wording.
6425         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6426         problems with huge directories and/or small ino_t types.
6427         * doc/posix-functions/readdir.texi: Likewise.
6428         * doc/posix-functions/rewinddir.texi: Likewise.
6429
6430 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6431
6432         maint.mk: don't maintain a second build-aux variable.
6433         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6434         depends on GNUmakefile, which already maintains a cfg.mk
6435         overridable $(_build-aux) for projects with a non-standard
6436         build-aux directory location, although without the $(srcdir)
6437         prefix.  Use that variable consistently instead of introducing a
6438         second one.  Adjust all call sites.
6439
6440 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6441
6442         Add stdalign module and use it in other modules.
6443         This is based on a previous proposal by Bruno Haible
6444         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6445
6446         stdalign: new module
6447         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6448         * modules/stdalign: New files.
6449         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6450         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6451
6452         stdalign-tests: new module
6453         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6454
6455         argp: use stdalign
6456         * lib/argp-parse.c: Include <stdalign.h>.
6457         (alignof): Remove.
6458         * modules/argp (Depends-on): Add stdalign.
6459
6460         crypto libraries: use stdalign
6461         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6462         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6463         Do not include <stdlib.h> twice, in md4.c.
6464         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6465         because we are accessing a pointer's bit-pattern, not a size.
6466         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6467         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6468         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6469         * modules/crypto/sha512: Likewise.
6470
6471         sys_socket: use stdalign, not alignof
6472         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6473         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6474
6475 2011-10-27  Bruno Haible  <bruno@clisp.org>
6476
6477         raise test: Avoid a test failure on Linux/MIPS.
6478         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6479         because 99 is a valid signal on Linux/MIPS.
6480
6481 2011-10-27  Bruno Haible  <bruno@clisp.org>
6482
6483         nonblocking tests: Fix test failure on Linux/MIPS.
6484         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6485         Set to 270000.
6486
6487 2011-10-27  Bruno Haible  <bruno@clisp.org>
6488
6489         utimensat: Work around problem on Linux/hppa.
6490         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6491         values.
6492         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6493
6494 2011-10-25  Jim Meyering  <meyering@redhat.com>
6495
6496         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6497         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6498         after symbols like NULL, size_t, etc.
6499         Reported by Alfred M. Szmidt.
6500
6501         maint.mk: exempt ENODATA from a syntax-check rule
6502         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6503         from the sc_prohibit_always-defined_macros syntax-check rule.
6504         Add a comment.  See this for more details:
6505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6506
6507 2011-10-23  Jim Meyering  <meyering@redhat.com>
6508
6509         fts: close parent dir FD before returning from post-traversal fts_read
6510         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6511         unlink A, even though an FD open on A remained.  This is suboptimal
6512         (holding a file descriptor open longer than needed), but otherwise not
6513         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6514         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6515         that represents a real problem: it causes the removal of A to fail
6516         with e.g., "rm: cannot remove `A': Device or resource busy"
6517
6518         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6519         directory file descriptors.  After completing the final, FTS_DP,
6520         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6521         cache, but then proceeded to add a new FD to it via the subsequent
6522         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6523         final file descriptor would be closed only via fts_close's call to
6524         fd_ring_clear.  Now, it is usually closed earlier, via the final
6525         FTS_DP-returning fts_read call.
6526         * lib/fts.c (restore_initial_cwd): New function, converted from
6527         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6528         Update callers.
6529         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6530         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6531
6532 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6533             Bruno Haible  <bruno@clisp.org>
6534             Jim Meyering  <jim@meyering.net>
6535
6536         readme-release: improve safety of release prep instructions.
6537         * README-release: Don't git pull all branches when only master
6538         is needed for the release process.
6539         Run make maintainer-clean before changing trees and merging.
6540         Don't try to run ./configure right after git pull in case files
6541         that influence the bootstrap process have changed, move the
6542         ./configure step to after running ./bootstrap.
6543         Don't bootstrap "one last time"... it's the first time!
6544
6545 2011-10-22  Bruno Haible  <bruno@clisp.org>
6546
6547         errno, strerror-override: Support for MSVC 10.
6548         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6549         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6550         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6551         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6552         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6553         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6554         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6555         Assign values compatible with MSVC 10.
6556         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6557         New macros.
6558         (GNULIB_defined_EWINSOCK): New macro.
6559         * lib/strerror-override.c (strerror_override): Update accordingly.
6560         * lib/strerror-override.h: Likewise.
6561         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6562         longer equal to the corresponding errno value.
6563         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6564
6565 2011-10-22  Bruno Haible  <bruno@clisp.org>
6566
6567         perror: Recognize when test program crashes.
6568         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6569         strerror, set gl_cv_func_perror_works to no.
6570         Reported by Daniel Richard G. <skunk@iskunk.org>.
6571
6572         perror: Fix indentation.
6573         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6574
6575 2011-10-22  Bruno Haible  <bruno@clisp.org>
6576
6577         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6578         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6579         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6580         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6581         functions, not as a macro.
6582         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6583         macros.
6584         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6585         absence of macro.
6586         Suggested by Eric Blake.
6587         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6588
6589 2011-10-21  Bruno Haible  <bruno@clisp.org>
6590
6591         relocatable-prog-wrapper: Don't leave object files behind.
6592         * build-aux/install-reloc: Re-synchronize list of .o files to be
6593         removed with list of compilation units.
6594
6595 2011-10-20  Bruno Haible  <bruno@clisp.org>
6596
6597         openpty, posix_openpt: Remove code duplication.
6598         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6599         * lib/openpty.c: Include <stdlib.h>.
6600         (openpty): Use posix_openpt on all platforms except IRIX.
6601         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6602
6603 2011-10-20  Bruno Haible  <bruno@clisp.org>
6604
6605         unlockpt: Detect invalid argument.
6606         * lib/unlockpt.c: Include <fcntl.h>.
6607         (unlockpt): Check whether fd is valid, using fcntl().
6608         * modules/unlockpt (Depends-on): Add fcntl-h.
6609
6610 2011-10-20  Bruno Haible  <bruno@clisp.org>
6611
6612         openpty: Avoid compilation error on AIX 6.1.
6613         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6614
6615 2011-10-20  Bruno Haible  <bruno@clisp.org>
6616
6617         posix_openpt: Support for OpenBSD.
6618         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6619         (posix_openpt) [OpenBSD]: New code.
6620         * lib/grantpt.c: Include <fcntl.h>.
6621         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6622         * modules/grantpt (Depends-on): Add fcntl-h.
6623
6624 2011-10-20  Bruno Haible  <bruno@clisp.org>
6625
6626         posix_openpt test: Coding style.
6627         * tests/test-posix_openpt.c: Use GNU coding style.
6628
6629 2011-10-20  Bruno Haible  <bruno@clisp.org>
6630
6631         grantpt: Support --avoid=pt_chown.
6632         * modules/grantpt (Files): Add lib/pty-private.h.
6633
6634 2011-10-20  Bruno Haible  <bruno@clisp.org>
6635
6636         posix_openpt: Fix autoconf macro.
6637         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6638         unneeded check for _getpty.
6639
6640 2011-10-20  Bruno Haible  <bruno@clisp.org>
6641
6642         openpty: Update comments.
6643         * lib/openpty.c: Add comments about Minix.
6644
6645 2011-10-19  Eric Blake  <eblake@redhat.com>
6646
6647         openpty: relax license
6648         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6649
6650         pt_chown: use configmake to simplify build
6651         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6652
6653         ptsname and others: relax license
6654         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6655         * modules/unlockpt (License): Likewise.
6656         * modules/pt_chown (License): Likewise.
6657         * modules/ptsname (License): Likewise.
6658         * modules/ttyname_r (License): Likewise.
6659
6660 2011-10-19  Jim Meyering  <meyering@redhat.com>
6661
6662         posix_openpt: remove spurious #endif
6663         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6664
6665 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6666
6667         maint.mk: Respect $(build_aux) in web-manual rule.
6668         * top/maint.mk (web-manual): Find gen-announce script in user's
6669         $(build_aux) directory instead of hard-coding 'build-aux'.
6670
6671 2011-10-19  Bruno Haible  <bruno@clisp.org>
6672
6673         posix_openpt: Fix compilation error.
6674         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6675         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6676         Mention the openpty module as an alternative.
6677
6678 2011-10-19  Bruno Haible  <bruno@clisp.org>
6679
6680         Support for old NeXTstep 3.3 frexp().
6681         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6682         execution time of the test to 5 seconds.
6683         Reported by Daniel Richard G. <skunk@iskunk.org>.
6684
6685 2011-10-19  Bruno Haible  <bruno@clisp.org>
6686
6687         Support for old NeXTstep 3.3 sed.
6688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6689         part, use /.../, not \|...|. Escape periods in the header file name.
6690         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6691         Reported by Daniel Richard G. <skunk@iskunk.org>.
6692
6693 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6694
6695         Support for old NeXTstep 3.3 gcc.
6696         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6697         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6698         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6699         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6700         * lib/regex.h (_Restrict_arr_): Likewise.
6701         * lib/regex_internal.h (re_token_t): Likewise.
6702         * lib/regexec.c (check_node_accept_bytes): Likewise.
6703         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6704
6705 2011-10-18  Eric Blake  <eblake@redhat.com>
6706
6707         posix_openpt: new module
6708         * modules/posix_openpt: New module.
6709         * m4/posix_openpt.m4: New file.
6710         * lib/posix_openpt.c: Likewise.
6711         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6712         (gl_STDLIB_H_DEFAULTS): Set defaults.
6713         * modules/stdlib (Makefile.am): Substitute macros.
6714         * lib/stdlib.in.h (posix_openpt): Declare.
6715         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6716         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6717         * modules/posix_openpt-tests: New test module.
6718         * tests/test-posix_openpt.c: New test.
6719
6720 2011-10-15  Bruno Haible  <bruno@clisp.org>
6721
6722         xstrtoll: Fix compilation failure.
6723         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6724         from lib/strtol.c.
6725         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6726         some platforms.
6727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6728
6729 2011-10-15  Bruno Haible  <bruno@clisp.org>
6730
6731         vasnprintf: Optimize bit search operation.
6732         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6734         gl_DOUBLE_EXPONENT_LOCATION.
6735         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6736         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6737         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6738         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6739         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6740         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6741         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6742         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6743         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6744
6745 2011-10-15  Bruno Haible  <bruno@clisp.org>
6746
6747         vasnprintf: Fix comments.
6748         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6749
6750 2011-10-14  Bruno Haible  <bruno@clisp.org>
6751
6752         Tests for module 'integer_length_ll'.
6753         * modules/integer_length_ll-tests: New file.
6754         * tests/test-integer_length_ll.c: New file.
6755
6756         New module 'integer_length_ll'.
6757         * lib/integer_length_ll.c: New file.
6758         * modules/integer_length_ll: New file.
6759
6760 2011-10-14  Bruno Haible  <bruno@clisp.org>
6761
6762         Tests for module 'integer_length_l'.
6763         * modules/integer_length_l-tests: New file.
6764         * tests/test-integer_length_l.c: New file.
6765
6766         New module 'integer_length_l'.
6767         * lib/integer_length_l.c: New file.
6768         * modules/integer_length_l: New file.
6769
6770 2011-10-14  Bruno Haible  <bruno@clisp.org>
6771
6772         Tests for module 'integer_length'.
6773         * modules/integer_length-tests: New file.
6774         * tests/test-integer_length.c: New file.
6775
6776         New module 'integer_length'.
6777         * lib/integer_length.h: New file.
6778         * lib/integer_length.c: New file.
6779         * modules/integer_length: New file.
6780
6781 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6782
6783         popen: Fix dependency conditions.
6784         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6785
6786 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6787
6788         perror: Fix autoconf test.
6789         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6790         <stdlib.h> and <string.h>.
6791
6792 2011-10-14  Bruno Haible  <bruno@clisp.org>
6793
6794         ffsl: Optimize on 64-bit platforms.
6795         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6796         unrolling.
6797
6798 2011-10-13  Bruno Haible  <bruno@clisp.org>
6799
6800         ffsl: Optimize on 32-bit platforms.
6801         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6802         use ffs() without a loop.
6803
6804         ffsl, ffsll: Optimize for GCC.
6805         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6806         * lib/ffsl.c (GCC_BUILTIN): New macro.
6807         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6808
6809 2011-10-13  Bruno Haible  <bruno@clisp.org>
6810
6811         ffs, bcopy, memset: Support symbol renaming via config.h.
6812         * lib/ffs.c: Include <config.h>.
6813         * lib/bcopy.c: Likewise.
6814         * lib/memset.c: Likewise.
6815
6816 2011-10-10  Bruno Haible  <bruno@clisp.org>
6817
6818         atanl: Simplify for platforms where 'long double' == 'double'.
6819         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6820         alternative implementation.
6821         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6822         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6823         * modules/atanl (Depends-on): Add atan. Update conditions.
6824
6825 2011-10-10  Bruno Haible  <bruno@clisp.org>
6826
6827         acosl: Simplify for platforms where 'long double' == 'double'.
6828         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6829         alternative implementation.
6830         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6831         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6832         * modules/acosl (Depends-on): Add acos. Update conditions.
6833
6834 2011-10-10  Bruno Haible  <bruno@clisp.org>
6835
6836         asinl: Simplify for platforms where 'long double' == 'double'.
6837         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6838         alternative implementation.
6839         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6840         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6841         * modules/asinl (Depends-on): Add asin. Update conditions.
6842
6843 2011-10-10  Bruno Haible  <bruno@clisp.org>
6844
6845         tanl: Simplify for platforms where 'long double' == 'double'.
6846         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6847         implementation.
6848         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6849         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6850         * modules/tanl (Depends-on): Add tan. Update conditions.
6851         (configure.ac): Don't compile trigl.c if
6852         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6853
6854 2011-10-10  Bruno Haible  <bruno@clisp.org>
6855
6856         cosl: Simplify for platforms where 'long double' == 'double'.
6857         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6858         implementation.
6859         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6860         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6861         * modules/cosl (Depends-on): Add cos. Update conditions.
6862         (configure.ac): Don't compile sincosl.c and trigl.c if
6863         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6864
6865 2011-10-10  Bruno Haible  <bruno@clisp.org>
6866
6867         sinl: Simplify for platforms where 'long double' == 'double'.
6868         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6869         implementation.
6870         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6871         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6872         * modules/sinl (Depends-on): Add sin. Update conditions.
6873         (configure.ac): Don't compile sincosl.c and trigl.c if
6874         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6875
6876 2011-10-10  Bruno Haible  <bruno@clisp.org>
6877
6878         logl: Simplify for platforms where 'long double' == 'double'.
6879         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6880         implementation.
6881         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6882         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6883         * modules/logl (Depends-on): Add log. Update conditions.
6884
6885 2011-10-10  Bruno Haible  <bruno@clisp.org>
6886
6887         expl: Simplify for platforms where 'long double' == 'double'.
6888         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6889         implementation.
6890         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6891         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6892         * modules/expl (Depends-on): Add exp. Update conditions.
6893
6894 2011-10-10  Bruno Haible  <bruno@clisp.org>
6895
6896         sqrtl: Simplify for platforms where 'long double' == 'double'.
6897         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6898         alternative implementation.
6899         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6900         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6901         * modules/sqrtl (Depends-on): Update conditions.
6902
6903 2011-10-10  Bruno Haible  <bruno@clisp.org>
6904
6905         ldexpl: Simplify for platforms where 'long double' == 'double'.
6906         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6907         alternative implementation.
6908         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6909         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6910         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6911
6912 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6913
6914         ffsll: set correct witness
6915         * modules/ffsll (configure.ac): Fix typo.
6916
6917 2011-10-10  Bruno Haible  <bruno@clisp.org>
6918
6919         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6920         * lib/printf-frexpl.c: Include <config.h>.
6921         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6922         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6923         second time.
6924         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6925         gl_LONG_DOUBLE_VS_DOUBLE.
6926         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6927         conditions.
6928
6929 2011-10-10  Bruno Haible  <bruno@clisp.org>
6930
6931         frexpl: Simplify for platforms where 'long double' == 'double'.
6932         * lib/frexpl.c: Include <config.h>.
6933         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6934         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6935         time.
6936         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6937         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6938         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6939         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6940         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6941         conditions.
6942
6943 2011-10-10  Jim Meyering  <meyering@redhat.com>
6944
6945         test-renameat: don't leave behind a temporary file
6946         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6947           ERROR: files left in build directory after distclean:
6948           ./gltests/test-renameat.too
6949           make[1]: *** [distcleancheck] Error 1
6950         Reported by Tom G. Christensen.
6951
6952 2011-10-09  Bruno Haible  <bruno@clisp.org>
6953
6954         rint: Determine RINT_LIBM correctly on AIX 7.
6955         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6956         directly, not only through a function pointer. Also accept an optional
6957         4th argument with extra code.
6958         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6959         rintf() call by gcc when optimizing.
6960
6961         mathfunc.m4: Refactor.
6962         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6963         m4 variable.
6964
6965 2011-10-09  Bruno Haible  <bruno@clisp.org>
6966
6967         rintl: Simplify for platforms where 'long double' == 'double'.
6968         * lib/rintl.c: Include <config.h>.
6969         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6970         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6971         time.
6972         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6973         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6974         * modules/rintl (Depends-on): Add rint. Update conditions.
6975
6976 2011-10-09  Bruno Haible  <bruno@clisp.org>
6977
6978         roundl: Simplify for platforms where 'long double' == 'double'.
6979         * lib/roundl.c: Include <config.h>.
6980         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6981         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6982         time.
6983         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6984         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6985         * modules/roundl (Depends-on): Add round. Update conditions.
6986
6987 2011-10-09  Bruno Haible  <bruno@clisp.org>
6988
6989         truncl: Simplify for platforms where 'long double' == 'double'.
6990         * lib/truncl.c: Include <config.h>.
6991         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6992         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6993         time.
6994         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6995         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6996         * modules/truncl (Depends-on): Add trunc. Update conditions.
6997
6998 2011-10-09  Bruno Haible  <bruno@clisp.org>
6999
7000         ceill: Simplify for platforms where 'long double' == 'double'.
7001         * lib/ceill.c: Include <config.h>.
7002         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7003         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7004         time.
7005         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7006         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7007         * modules/ceill (Depends-on): Add ceil. Update conditions.
7008
7009 2011-10-09  Bruno Haible  <bruno@clisp.org>
7010
7011         floorl: Simplify for platforms where 'long double' == 'double'.
7012         * lib/floorl.c: Include <config.h>.
7013         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7014         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7015         time.
7016         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7017         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7018         * modules/floorl (Depends-on): Add floor. Update conditions.
7019
7020 2011-10-09  Bruno Haible  <bruno@clisp.org>
7021
7022         rint: Fix ordering constraints.
7023         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7024         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7025         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7026
7027 2011-10-09  Bruno Haible  <bruno@clisp.org>
7028
7029         copysignl: Simplify for platforms where 'long double' == 'double'.
7030         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7031         alternative.
7032         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7033         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7034         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7035
7036 2011-10-09  Bruno Haible  <bruno@clisp.org>
7037
7038         Tests for module 'rintl'.
7039         * modules/rintl-tests: New file.
7040         * tests/test-rintl.c: New file.
7041
7042         New module 'rintl'.
7043         * lib/math.in.h (rintl): New declaration.
7044         * lib/rintl.c: New file.
7045         * m4/rintl.m4: New file.
7046         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7048         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7049         * modules/rintl: New file.
7050         * tests/test-math-c++.cc: Check the declaration of rintl.
7051         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7052         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7053         * doc/posix-functions/rintl.texi: Mention the new module.
7054
7055 2011-10-09  Bruno Haible  <bruno@clisp.org>
7056
7057         Tests for module 'rintf'.
7058         * modules/rintf-tests: New file.
7059         * tests/test-rintf.c: New file.
7060
7061         New module 'rintf'.
7062         * lib/math.in.h (rintf): New declaration.
7063         * lib/rintf.c: New file.
7064         * m4/rintf.m4: New file.
7065         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7067         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7068         * modules/rintf: New file.
7069         * tests/test-math-c++.cc: Check the declaration of rintf.
7070         * doc/posix-functions/rintf.texi: Mention the new module.
7071
7072 2011-10-09  Bruno Haible  <bruno@clisp.org>
7073
7074         rint: Support for MSVC.
7075         * lib/math.in.h (rint): New declaration.
7076         * lib/rint.c: New file.
7077         * m4/rint.m4: New file.
7078         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7080         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7081         * modules/rint (Description): Fix.
7082         (Files): Add lib/rint.c, m4/rint.m4.
7083         (Depends-on): Add math.
7084         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7085         gl_MATH_MODULE_INDICATOR.
7086         * tests/test-math-c++.cc: Check the declaration of rint.
7087         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7088         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7089         * doc/posix-functions/rint.texi: Mention the replacement provided by
7090         the module.
7091
7092         rint tests: More tests.
7093         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7094         minus-zero.h, infinity.h, nan.h.
7095         (main): Skip the test if the current rounding mode is not standard. Add
7096         tests for negative numbers, minus zero, infinity, NaN.
7097         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7098         tests/nan.h.
7099         (Depends-on): Add isnand-nolibm.
7100
7101 2011-10-09  Bruno Haible  <bruno@clisp.org>
7102
7103         Tests for module 'copysignl'.
7104         * modules/copysignl-tests: New file.
7105         * tests/test-copysignl.c: New file.
7106
7107         New module 'copysignl'.
7108         * lib/math.in.h (copysignl): New declaration.
7109         * lib/copysignl.c: New file.
7110         * m4/copysignl.m4: New file.
7111         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7113         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7114         HAVE_COPYSIGNL.
7115         * modules/copysignl: New file.
7116         * tests/test-math-c++.cc: Check the declaration of copysignl.
7117         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7118         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7119         * doc/posix-functions/copysignl.texi: Mention the new module.
7120
7121 2011-10-09  Bruno Haible  <bruno@clisp.org>
7122
7123         Tests for module 'copysignf'.
7124         * modules/copysignf-tests: New file.
7125         * tests/test-copysignf.c: New file.
7126
7127         New module 'copysignf'.
7128         * lib/math.in.h (copysignf): New declaration.
7129         * lib/copysignf.c: New file.
7130         * m4/copysignf.m4: New file.
7131         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7133         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7134         HAVE_COPYSIGNF.
7135         * modules/copysignf: New file.
7136         * tests/test-math-c++.cc: Check the declaration of copysignf.
7137         * doc/posix-functions/copysignf.texi: Mention the new module.
7138
7139 2011-10-09  Bruno Haible  <bruno@clisp.org>
7140
7141         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7143         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7144         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7145         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7146         gl_SIGNAL_H_DEFAULTS.
7147
7148 2011-10-09  Bruno Haible  <bruno@clisp.org>
7149
7150         poll: Make macro safer.
7151         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7152         ac_cv_header_poll_h is not set.
7153
7154 2011-10-09  Bruno Haible  <bruno@clisp.org>
7155
7156         copysign: Provide replacement.
7157         * lib/math.in.h (copysign): New declaration.
7158         * lib/copysign.c: New file.
7159         * m4/copysign.m4: New file.
7160         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7162         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7163         HAVE_COPYSIGN.
7164         * modules/copysign (Description): Clarify.
7165         (Files): Add lib/copysign.c, m4/copysign.m4.
7166         (Depends-on): Add math, signbit.
7167         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7168         gl_MATH_MODULE_INDICATOR.
7169         * tests/test-math-c++.cc: Check the declaration of copysign.
7170         * doc/posix-functions/copysign.texi: Mention the effects of the module
7171         on Minix and MSVC.
7172
7173 2011-10-09  Bruno Haible  <bruno@clisp.org>
7174
7175         isinf: Ensure macro on AIX 5.1.
7176         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7177         macro.
7178         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7179
7180 2011-10-09  Bruno Haible  <bruno@clisp.org>
7181
7182         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7183         * modules/snprintf-posix-tests (configure.ac): Require
7184         gl_LONG_DOUBLE_VS_DOUBLE.
7185         * modules/sprintf-posix-tests (configure.ac): Likewise.
7186         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7187         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7188         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7189         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7190         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7191         tests on platforms where 'long double' is the same as 'double'.
7192         * tests/test-sprintf-posix.h (test_function): Likewise.
7193         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7194         * tests/test-vasprintf-posix.c (test_function): Likewise.
7195
7196         *printf: Fix for platforms where 'long double' == 'double'.
7197         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7198         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7199         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7200         * modules/fprintf-posix (Files): Likewise.
7201         * modules/obstack-printf-posix (Files): Likewise.
7202         * modules/snprintf-posix (Files): Likewise.
7203         * modules/sprintf-posix (Files): Likewise.
7204         * modules/vasnprintf (Files): Likewise.
7205         * modules/vasnprintf-posix (Files): Likewise.
7206         * modules/vasprintf-posix (Files): Likewise.
7207         * modules/vdprintf-posix (Files): Likewise.
7208         * modules/vfprintf-posix (Files): Likewise.
7209         * modules/vsnprintf-posix (Files): Likewise.
7210         * modules/vsprintf-posix (Files): Likewise.
7211         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7212         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7213         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7214         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7215         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7216         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7217         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7218
7219         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7220         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7221         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7222         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7223         'long double'.
7224         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7225
7226         isinf: Fix for platforms where 'long double' == 'double'.
7227         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7228         Don't blindly assume 80-bit 'long double'.
7229
7230         isfinite: Fix for platforms where 'long double' == 'double'.
7231         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7232         Don't blindly assume 80-bit 'long double'.
7233
7234         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7235         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7236         * modules/isfinite-tests (configure.ac): Require
7237         gl_LONG_DOUBLE_VS_DOUBLE.
7238         * modules/isinf-tests (configure.ac): Likewise.
7239         * modules/isnan-tests (configure.ac): Likewise.
7240         * modules/isnanl-tests (configure.ac): Likewise.
7241         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7242         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7243         tests on platforms where 'long double' is the same as 'double'.
7244         * tests/test-isinf.c (test_isinfl): Likewise.
7245         * tests/test-isnan.c (test_long_double): Likewise.
7246         * tests/test-isnanl.h (main): Likewise.
7247
7248 2011-10-08  Bruno Haible  <bruno@clisp.org>
7249
7250         Tests for module 'tanhf'.
7251         * modules/tanhf-tests: New file.
7252         * tests/test-tanhf.c: New file.
7253
7254         New module 'tanhf'.
7255         * lib/math.in.h (tanhf): New declaration.
7256         * lib/tanhf.c: New file.
7257         * m4/tanhf.m4: New file.
7258         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7260         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7261         * modules/tanhf: New file.
7262         * tests/test-math-c++.cc: Check the declaration of tanhf.
7263         * doc/posix-functions/tanhf.texi: Mention the new module.
7264
7265         tanh: Use a .m4 file.
7266         * m4/tanh.m4: New file.
7267         * modules/tanh (Files): Add it.
7268         (configure.ac): Just invoke gl_FUNC_TANH.
7269
7270 2011-10-08  Bruno Haible  <bruno@clisp.org>
7271
7272         Tests for module 'coshf'.
7273         * modules/coshf-tests: New file.
7274         * tests/test-coshf.c: New file.
7275
7276         New module 'coshf'.
7277         * lib/math.in.h (coshf): New declaration.
7278         * lib/coshf.c: New file.
7279         * m4/coshf.m4: New file.
7280         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7282         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7283         * modules/coshf: New file.
7284         * tests/test-math-c++.cc: Check the declaration of coshf.
7285         * doc/posix-functions/coshf.texi: Mention the new module.
7286
7287         cosh: Use a .m4 file.
7288         * m4/cosh.m4: New file.
7289         * modules/cosh (Files): Add it.
7290         (configure.ac): Just invoke gl_FUNC_COSH.
7291
7292 2011-10-08  Bruno Haible  <bruno@clisp.org>
7293
7294         Tests for module 'sinhf'.
7295         * modules/sinhf-tests: New file.
7296         * tests/test-sinhf.c: New file.
7297
7298         New module 'sinhf'.
7299         * lib/math.in.h (sinhf): New declaration.
7300         * lib/sinhf.c: New file.
7301         * m4/sinhf.m4: New file.
7302         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7304         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7305         * modules/sinhf: New file.
7306         * tests/test-math-c++.cc: Check the declaration of sinhf.
7307         * doc/posix-functions/sinhf.texi: Mention the new module.
7308
7309         sinh: Use a .m4 file.
7310         * m4/sinh.m4: New file.
7311         * modules/sinh (Files): Add it.
7312         (configure.ac): Just invoke gl_FUNC_SINH.
7313
7314 2011-10-08  Bruno Haible  <bruno@clisp.org>
7315
7316         Tests for module 'atan2f'.
7317         * modules/atan2f-tests: New file.
7318         * tests/test-atan2f.c: New file.
7319
7320         New module 'atan2f'.
7321         * lib/math.in.h (atan2f): New declaration.
7322         * lib/atan2f.c: New file.
7323         * m4/atan2f.m4: New file.
7324         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7326         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7327         * modules/atan2f: New file.
7328         * tests/test-math-c++.cc: Check the declaration of atan2f.
7329         * doc/posix-functions/atan2f.texi: Mention the new module.
7330
7331         atan2: Use a .m4 file.
7332         * m4/atan2.m4: New file.
7333         * modules/atan2 (Files): Add it.
7334         (configure.ac): Just invoke gl_FUNC_ATAN2.
7335
7336 2011-10-08  Bruno Haible  <bruno@clisp.org>
7337
7338         Tests for module 'atanf'.
7339         * modules/atanf-tests: New file.
7340         * tests/test-atanf.c: New file.
7341
7342         New module 'atanf'.
7343         * lib/math.in.h (atanf): New declaration.
7344         * lib/atanf.c: New file.
7345         * m4/atanf.m4: New file.
7346         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7348         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7349         * modules/atanf: New file.
7350         * tests/test-math-c++.cc: Check the declaration of atanf.
7351         * doc/posix-functions/atanf.texi: Mention the new module.
7352
7353         atan: Use a .m4 file.
7354         * m4/atan.m4: New file.
7355         * modules/atan (Files): Add it.
7356         (configure.ac): Just invoke gl_FUNC_ATAN.
7357
7358 2011-10-08  Bruno Haible  <bruno@clisp.org>
7359
7360         Tests for module 'acosf'.
7361         * modules/acosf-tests: New file.
7362         * tests/test-acosf.c: New file.
7363
7364         New module 'acosf'.
7365         * lib/math.in.h (acosf): New declaration.
7366         * lib/acosf.c: New file.
7367         * m4/acosf.m4: New file.
7368         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7370         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7371         * modules/acosf: New file.
7372         * tests/test-math-c++.cc: Check the declaration of acosf.
7373         * doc/posix-functions/acosf.texi: Mention the new module.
7374
7375         acos: Use a .m4 file.
7376         * m4/acos.m4: New file.
7377         * modules/acos (Files): Add it.
7378         (configure.ac): Just invoke gl_FUNC_ACOS.
7379
7380 2011-10-08  Bruno Haible  <bruno@clisp.org>
7381
7382         Tests for module 'asinf'.
7383         * modules/asinf-tests: New file.
7384         * tests/test-asinf.c: New file.
7385
7386         New module 'asinf'.
7387         * lib/math.in.h (asinf): New declaration.
7388         * lib/asinf.c: New file.
7389         * m4/asinf.m4: New file.
7390         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7392         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7393         * modules/asinf: New file.
7394         * tests/test-math-c++.cc: Check the declaration of asinf.
7395         * doc/posix-functions/asinf.texi: Mention the new module.
7396
7397         asin: Use a .m4 file.
7398         * m4/asin.m4: New file.
7399         * modules/asin (Files): Add it.
7400         (configure.ac): Just invoke gl_FUNC_ASIN.
7401
7402 2011-10-08  Bruno Haible  <bruno@clisp.org>
7403
7404         Tests for module 'tanf'.
7405         * modules/tanf-tests: New file.
7406         * tests/test-tanf.c: New file.
7407
7408         New module 'tanf'.
7409         * lib/math.in.h (tanf): New declaration.
7410         * lib/tanf.c: New file.
7411         * m4/tanf.m4: New file.
7412         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7414         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7415         * modules/tanf: New file.
7416         * tests/test-math-c++.cc: Check the declaration of tanf.
7417         * doc/posix-functions/tanf.texi: Mention the new module.
7418
7419         tan: Use a .m4 file.
7420         * m4/tan.m4: New file.
7421         * modules/tan (Files): Add it.
7422         (configure.ac): Just invoke gl_FUNC_TAN.
7423
7424 2011-10-08  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'cosf'.
7427         * modules/cosf-tests: New file.
7428         * tests/test-cosf.c: New file.
7429
7430         New module 'cosf'.
7431         * lib/math.in.h (cosf): New declaration.
7432         * lib/cosf.c: New file.
7433         * m4/cosf.m4: New file.
7434         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7436         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7437         * modules/cosf: New file.
7438         * tests/test-math-c++.cc: Check the declaration of cosf.
7439         * doc/posix-functions/cosf.texi: Mention the new module.
7440
7441         cos: Use a .m4 file.
7442         * m4/cos.m4: New file.
7443         * modules/cos (Files): Add it.
7444         (configure.ac): Just invoke gl_FUNC_COS.
7445
7446 2011-10-08  Bruno Haible  <bruno@clisp.org>
7447
7448         Tests for module 'sinf'.
7449         * modules/sinf-tests: New file.
7450         * tests/test-sinf.c: New file.
7451
7452         New module 'sinf'.
7453         * lib/math.in.h (sinf): New declaration.
7454         * lib/sinf.c: New file.
7455         * m4/sinf.m4: New file.
7456         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7458         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7459         * modules/sinf: New file.
7460         * tests/test-math-c++.cc: Check the declaration of sinf.
7461         * doc/posix-functions/sinf.texi: Mention the new module.
7462
7463         sin: Use a .m4 file.
7464         * m4/sin.m4: New file.
7465         * modules/sin (Files): Add it.
7466         (configure.ac): Just invoke gl_FUNC_SIN.
7467
7468 2011-10-08  Bruno Haible  <bruno@clisp.org>
7469
7470         Tests for module 'powf'.
7471         * modules/powf-tests: New file.
7472         * tests/test-powf.c: New file.
7473
7474         New module 'powf'.
7475         * lib/math.in.h (powf): New declaration.
7476         * lib/powf.c: New file.
7477         * m4/powf.m4: New file.
7478         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7480         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7481         * modules/powf: New file.
7482         * tests/test-math-c++.cc: Check the declaration of powf.
7483         * doc/posix-functions/powf.texi: Mention the new module.
7484
7485         pow: Use a .m4 file.
7486         * m4/pow.m4: New file.
7487         * modules/pow (Files): Add it.
7488         (configure.ac): Just invoke gl_FUNC_POW.
7489
7490 2011-10-08  Bruno Haible  <bruno@clisp.org>
7491
7492         Tests for module 'log10f'.
7493         * modules/log10f-tests: New file.
7494         * tests/test-log10f.c: New file.
7495
7496         New module 'log10f'.
7497         * lib/math.in.h (log10f): New declaration.
7498         * lib/log10f.c: New file.
7499         * m4/log10f.m4: New file.
7500         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7502         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7503         * modules/log10f: New file.
7504         * tests/test-math-c++.cc: Check the declaration of log10f.
7505         * doc/posix-functions/log10f.texi: Mention the new module.
7506
7507         log10: Use a .m4 file.
7508         * m4/log10.m4: New file.
7509         * modules/log10 (Files): Add it.
7510         (configure.ac): Just invoke gl_FUNC_LOG10.
7511
7512 2011-10-08  Bruno Haible  <bruno@clisp.org>
7513
7514         Tests for module 'logf'.
7515         * modules/logf-tests: New file.
7516         * tests/test-logf.c: New file.
7517
7518         New module 'logf'.
7519         * lib/math.in.h (logf): New declaration.
7520         * lib/logf.c: New file.
7521         * m4/logf.m4: New file.
7522         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7524         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7525         * modules/logf: New file.
7526         * tests/test-math-c++.cc: Check the declaration of logf.
7527         * doc/posix-functions/logf.texi: Mention the new module.
7528
7529         log: Use a .m4 file.
7530         * m4/log.m4: New file.
7531         * modules/log (Files): Add it.
7532         (configure.ac): Just invoke gl_FUNC_LOG.
7533
7534 2011-10-08  Bruno Haible  <bruno@clisp.org>
7535
7536         Tests for module 'expf'.
7537         * modules/expf-tests: New file.
7538         * tests/test-expf.c: New file.
7539
7540         New module 'expf'.
7541         * lib/math.in.h (expf): New declaration.
7542         * lib/expf.c: New file.
7543         * m4/expf.m4: New file.
7544         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7546         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7547         * modules/expf: New file.
7548         * tests/test-math-c++.cc: Check the declaration of expf.
7549         * doc/posix-functions/expf.texi: Mention the new module.
7550
7551         exp: Use a .m4 file.
7552         * m4/exp.m4: New file.
7553         * modules/exp (Files): Add it.
7554         (configure.ac): Just invoke gl_FUNC_EXP.
7555
7556 2011-10-08  Bruno Haible  <bruno@clisp.org>
7557
7558         Tests for module 'sqrtf'.
7559         * modules/sqrtf-tests: New file.
7560         * tests/test-sqrtf.c: New file.
7561
7562         New module 'sqrtf'.
7563         * lib/math.in.h (sqrtf): New declaration.
7564         * lib/sqrtf.c: New file.
7565         * m4/sqrtf.m4: New file.
7566         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7568         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7569         * modules/sqrtf: New file.
7570         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7571         * doc/posix-functions/sqrtf.texi: Mention the new module.
7572
7573 2011-10-08  Bruno Haible  <bruno@clisp.org>
7574
7575         Tests: Avoid link failures w.r.t. libintl.
7576         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7577         $(LIBINTL).
7578         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7579         $(LIBINTL).
7580         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7581         against $(LIBINTL).
7582         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7583         $(LIBINTL).
7584         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7585         $(LIBINTL).
7586         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7587
7588 2011-10-08  Bruno Haible  <bruno@clisp.org>
7589
7590         pow tests: Defeat compiler optimizations.
7591         * tests/test-pow.c (main): Assign arguments to x and y before use.
7592
7593 2011-10-08  Bruno Haible  <bruno@clisp.org>
7594
7595         gnulib-tool: Improve last commit.
7596         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7597         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7598         ignore dependencies that are not among the modules list.
7599
7600 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         gnulib-tool: don't follow dependencies to avoided modules
7603         This fixes a bug that is related to the previous one.
7604         * gnulib-tool (func_modules_transitive_closure)
7605         (func_emit_autoconf_snippets):
7606         Check whether a dependency is acceptable before using it.
7607         (--extract-dependencies): Report an error if --avoid is also used,
7608         since this combination of options is not yet supported.
7609
7610         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7611         Problem reported by Peter Dyballa in
7612         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7613         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7614         when echoing "$condition".
7615
7616 2011-10-07  Bruno Haible  <bruno@clisp.org>
7617
7618         Fix documentation about math functions on MacOS X.
7619         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7620         MacOS X 10.5.
7621         * doc/posix-functions/fdim.texi: Likewise.
7622         * doc/posix-functions/feclearexcept.texi: Likewise.
7623         * doc/posix-functions/fegetenv.texi: Likewise.
7624         * doc/posix-functions/fegetround.texi: Likewise.
7625         * doc/posix-functions/feholdexcept.texi: Likewise.
7626         * doc/posix-functions/feraiseexcept.texi: Likewise.
7627         * doc/posix-functions/fesetenv.texi: Likewise.
7628         * doc/posix-functions/fesetround.texi: Likewise.
7629         * doc/posix-functions/fetestexcept.texi: Likewise.
7630         * doc/posix-functions/feupdateenv.texi: Likewise.
7631         * doc/posix-functions/fmax.texi: Likewise.
7632         * doc/posix-functions/fmin.texi: Likewise.
7633         * doc/posix-functions/log2.texi: Likewise.
7634         * doc/posix-functions/modff.texi: Likewise.
7635         * doc/posix-functions/nan.texi: Likewise.
7636         * doc/posix-functions/nanf.texi: Likewise.
7637         * doc/posix-functions/nextafterf.texi: Likewise.
7638         * doc/posix-functions/remquo.texi: Likewise.
7639
7640 2011-10-07  Bruno Haible  <bruno@clisp.org>
7641
7642         modff: Drop assumption about library that defines modff.
7643         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7644         AC_CHECK_FUNCS.
7645         * modules/modff (Files): Add m4/mathfunc.m4.
7646
7647 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7648
7649         raise tests: Avoid a GCC warning.
7650         * tests/test-raise.c (handler): Use _Noreturn.
7651
7652 2011-10-07  Bruno Haible  <bruno@clisp.org>
7653
7654         Tests for module 'ldexpf'.
7655         * modules/ldexpf-tests: New file.
7656         * tests/test-ldexpf.c: New file.
7657
7658         New module 'ldexpf'.
7659         * lib/math.in.h (ldexpf): New declaration.
7660         * lib/ldexpf.c: New file.
7661         * m4/ldexpf.m4: New file.
7662         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7664         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7665         * modules/ldexpf: New file.
7666         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7667         * doc/posix-functions/ldexpf.texi: Mention the new module.
7668
7669 2011-10-06  Bruno Haible  <bruno@clisp.org>
7670
7671         frexpf: Work around problems on IRIX and mingw.
7672         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7674         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7675         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7676         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7677         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7678         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7679
7680 2011-10-06  Bruno Haible  <bruno@clisp.org>
7681
7682         fabsf: Drop assumption about library that defines fabsf.
7683         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7684         AC_CHECK_FUNCS.
7685         * modules/fabsf (Files): Add m4/mathfunc.m4.
7686
7687 2011-10-06  Bruno Haible  <bruno@clisp.org>
7688
7689         frexpf: Drop assumption about library that defines frexpf.
7690         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7691         'int *', 'float *', 'long double *', 'float', 'long double'.
7692         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7693         AC_CHECK_FUNCS.
7694         * modules/frexpf (Files): Add m4/mathfunc.m4.
7695
7696         Tests for module 'frexpf'.
7697         * modules/frexpf-tests: New file.
7698         * tests/test-frexpf.c: New file.
7699
7700         New module 'frexpf'.
7701         * lib/math.in.h (frexpf): New declaration.
7702         * lib/frexpf.c: New file.
7703         * m4/frexpf.m4: New file.
7704         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7706         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7707         * modules/frexpf: New file.
7708         * tests/test-math-c++.cc: Check the declaration of frexpf.
7709         * doc/posix-functions/frexpf.texi: Mention the new module.
7710
7711 2011-10-06  Bruno Haible  <bruno@clisp.org>
7712
7713         math: Sort function declarations of math.in.h.
7714         * lib/math.in.h (frexp, logb): Move declarations.
7715
7716 2011-10-05  Bruno Haible  <bruno@clisp.org>
7717
7718         Tests for module 'modff'.
7719         * modules/modff-tests: New file.
7720         * tests/test-modff.c: New file.
7721
7722         New module 'modff'.
7723         * lib/math.in.h (modff): New declaration.
7724         * lib/modff.c: New file.
7725         * m4/modff.m4: New file.
7726         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7728         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7729         * modules/modff: New file.
7730         * tests/test-math-c++.cc: Check the declaration of modff.
7731         * doc/posix-functions/modff.texi: Mention the new module.
7732
7733         modf tests: Make test sharper.
7734         * tests/test-modf.c (main): Strengthen upper bound.
7735
7736         modf: Use a .m4 file.
7737         * m4/modf.m4: New file.
7738         * modules/modf (Files): Add it.
7739         (configure.ac): Just invoke gl_FUNC_MODF.
7740
7741 2011-10-05  Bruno Haible  <bruno@clisp.org>
7742
7743         Tests for module 'fmodf'.
7744         * modules/fmodf-tests: New file.
7745         * tests/test-fmodf.c: New file.
7746
7747         New module 'fmodf'.
7748         * lib/math.in.h (fmodf): New declaration.
7749         * lib/fmodf.c: New file.
7750         * m4/fmodf.m4: New file.
7751         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7753         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7754         * modules/fmodf: New file.
7755         * tests/test-math-c++.cc: Check the declaration of fmodf.
7756         * doc/posix-functions/fmodf.texi: Mention the new module.
7757
7758         fmod: Use a .m4 file.
7759         * m4/fmod.m4: New file.
7760         * modules/fmod (Files): Add it.
7761         (configure.ac): Just invoke gl_FUNC_FMOD.
7762
7763 2011-10-05  Bruno Haible  <bruno@clisp.org>
7764
7765         Tests for module 'fabsf'.
7766         * modules/fabsf-tests: New file.
7767         * tests/test-fabsf.c: New file.
7768
7769         New module 'fabsf'.
7770         * lib/math.in.h (fabsf): New declaration.
7771         * lib/fabsf.c: New file.
7772         * m4/fabsf.m4: New file.
7773         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7775         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7776         * modules/fabsf: New file.
7777         * tests/test-math-c++.cc: Check the declaration of fabsf.
7778         * doc/posix-functions/fabsf.texi: Mention the new module.
7779
7780         fabs: Use a .m4 file.
7781         * m4/fabs.m4: New file.
7782         * modules/fabs (Files): Add it.
7783         (configure.ac): Just invoke gl_FUNC_FABS.
7784
7785 2011-10-05  Jim Meyering  <meyering@redhat.com>
7786
7787         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7788         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7789         ls -lL regression introduced in coreutils-8.12, it does so at the
7790         cost of an additional stat call in the common case.  Besides, now
7791         that the kernel change that prompted commit 95f7c57f has been reverted
7792         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7793         we have no use for commit 95f7c57f, "file-has-acl: use
7794         acl_extended_file_nofollow if available".
7795
7796 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7797
7798         file-has-acl: revert unintended change in behavior of ls -L
7799         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7800         derived from...
7801         (file_has_acl): ...code here.  Call it.
7802         This problem was introduced with 2011-07-22 commit 95f7c57f,
7803         "file-has-acl: use acl_extended_file_nofollow if available".
7804         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7805
7806 2011-10-03  Bruno Haible  <bruno@clisp.org>
7807
7808         poll: Avoid link errors on MSVC.
7809         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7810         * modules/poll (Depends-on): Add sockets.
7811         (Link): New section.
7812         * NEWS: Mention the change.
7813         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7814         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7815         $(LIB_POLL) instead of $(LIBSOCKET).
7816
7817 2011-10-03  Bruno Haible  <bruno@clisp.org>
7818
7819         sys_select tests: Fix link error on MSVC 9.
7820         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7821         with $(LIB_SELECT) instead of $(LIBSOCKET).
7822
7823 2011-10-03  Bruno Haible  <bruno@clisp.org>
7824
7825         sys_select: Fix compilation error on mingw.
7826         * lib/sys_select.in.h: On native Windows, include <io.h>.
7827
7828 2011-10-03  Bruno Haible  <bruno@clisp.org>
7829
7830         wmemset: Support for MSVC.
7831         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7832         whether wmemset() exists.
7833
7834 2011-10-03  Bruno Haible  <bruno@clisp.org>
7835
7836         wmemmove: Support for MSVC.
7837         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7838         whether wmemmove() exists.
7839
7840 2011-10-03  Bruno Haible  <bruno@clisp.org>
7841
7842         wmemcpy: Support for MSVC.
7843         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7844         whether wmemcpy() exists.
7845
7846 2011-10-03  Bruno Haible  <bruno@clisp.org>
7847
7848         wmemcmp: Support for MSVC.
7849         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7850         whether wmemcmp() exists.
7851
7852 2011-10-03  Bruno Haible  <bruno@clisp.org>
7853
7854         wmemchr: Support for MSVC.
7855         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7856         whether wmemchr() exists.
7857
7858 2011-10-03  Bruno Haible  <bruno@clisp.org>
7859
7860         glthread/*, strsignal: Support for MSVC.
7861         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7862         including <winsock.h> on MSVC 9.
7863         * lib/glthread/lock.h: Likewise.
7864         * lib/glthread/thread.h: Likewise.
7865         * lib/glthread/tls.h: Likewise.
7866         * lib/glthread/yield.h: Likewise.
7867         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7868         if HAVE_UNISTD_H is false.
7869         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7870
7871 2011-10-03  Bruno Haible  <bruno@clisp.org>
7872
7873         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7874         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7875         Set to 100000.
7876
7877 2011-10-03  Bruno Haible  <bruno@clisp.org>
7878
7879         acl: Fix specification.
7880         * lib/file-has-acl.c (file_has_acl): Fix specification.
7881
7882 2011-10-03  Bruno Haible  <bruno@clisp.org>
7883
7884         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7885         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7886         (compute_curr_prefix, shared_library_fullname,
7887         find_shared_library_fullname, get_shared_library_fullname, relocate):
7888         Use it together with PIC && INSTALLDIR.
7889         Reported by <jojelino@gmail.com>
7890         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7891
7892 2011-10-01  Jim Meyering  <meyering@redhat.com>
7893
7894         maint.mk: adjust a release-related rule not to require use of gzip
7895         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7896         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7897         projects that build only .tar.xz files.  Also fix an erroneous test.
7898
7899         test-linkat: don't leave behind a temporary file
7900         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7901         Otherwise, coreutils' "make distcheck" would fail with this:
7902           Only in /c/cu/tests/torture/coreutils/test/\
7903             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7904           make[2]: *** [my-distcheck] Error 1
7905
7906         float, math: add omitted file
7907         * lib/itold.c: Add file, required for yesterday's float change.
7908
7909 2011-10-01  Bruno Haible  <bruno@clisp.org>
7910
7911         isinf: Fix for OpenBSD/x86.
7912         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7913         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7914         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7915
7916 2011-10-01  Bruno Haible  <bruno@clisp.org>
7917
7918         isfinite: Fix syntax error in configure test.
7919         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7920
7921         isfinite: Fix typo.
7922         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7923         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7924
7925 2011-10-01  Bruno Haible  <bruno@clisp.org>
7926
7927         nonblocking tests: Fix test failure on Linux/IA-64.
7928         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7929         Set to 270000.
7930
7931 2011-10-01  Bruno Haible  <bruno@clisp.org>
7932
7933         mkfifoat tests: Fix a test failure on mingw.
7934         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7935         with error ENOSYS.
7936
7937 2011-09-30  Bruno Haible  <bruno@clisp.org>
7938
7939         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7940         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7941         'long double'. Set REPLACE_ITOLD.
7942         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7943         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7944         * lib/itold.c: New file.
7945         * modules/float (Files): Add lib/itold.c.
7946         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7947         (Makefile.am): Substitute REPLACE_ITOLD.
7948         * modules/math (Depends-on): Add float.
7949         (Makefile.am): Substitute REPLACE_ITOLD.
7950         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7951         * doc/posix-headers/math.texi: Likewise.
7952         * doc/posix-functions/logl.texi: Likewise.
7953
7954 2011-09-30  Bruno Haible  <bruno@clisp.org>
7955
7956         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7957         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7958         Set to 140000.
7959
7960 2011-09-30  Bruno Haible  <bruno@clisp.org>
7961
7962         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7963         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7964         invocation, say "right after AC_PROG_CC_STDC", not "right after
7965         AC_PROG_CC".
7966         Reported by Gary V. Vaughan <gary@gnu.org>.
7967
7968 2011-09-30  Bruno Haible  <bruno@clisp.org>
7969
7970         Centralize C99 requirement.
7971         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7972         * modules/stdarg (configure.ac-early): Invoke it instead of
7973         AC_PROG_CC_STDC.
7974         Reported by Gary V. Vaughan and Paul Eggert.
7975
7976 2011-09-29  Bruno Haible  <bruno@clisp.org>
7977
7978         float: Fix LDBL_MAX value on Linux/PowerPC.
7979         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7980         on Linux/PowerPC.
7981         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7982         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7983         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7984         platform.
7985         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7986
7987 2011-09-29  Bruno Haible  <bruno@clisp.org>
7988
7989         doc: Improve doc about gl_EARLY.
7990         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7991         AC_PROG_CC_STDC invocation.
7992         Reported by Gary V. Vaughan <gary@gnu.org>.
7993
7994 2011-09-28  Bruno Haible  <bruno@clisp.org>
7995
7996         fgetc, fputc, fread, fwrite tests: Fix link error.
7997         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7998         on non-MSVC platforms.
7999         * tests/test-fputc.c (main): Likewise.
8000         * tests/test-fread.c (main): Likewise.
8001         * tests/test-fwrite.c (main): Likewise.
8002         Reported by Jim Meyering.
8003
8004 2011-09-27  Bruno Haible  <bruno@clisp.org>
8005
8006         fputc, fwrite tests: Avoid test failure on MSVC.
8007         * tests/test-fgetc.c: Include msvc-inval.h.
8008         (main): Invoke gl_msvc_inval_ensure_handler.
8009         * tests/test-fputc.c: Include msvc-inval.h.
8010         (main): Invoke gl_msvc_inval_ensure_handler.
8011         * tests/test-fread.c: Include msvc-inval.h.
8012         (main): Invoke gl_msvc_inval_ensure_handler.
8013         * tests/test-fwrite.c: Include msvc-inval.h.
8014         (main): Invoke gl_msvc_inval_ensure_handler.
8015         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8016         * modules/fputc-tests (Depends-on): Likewise.
8017         * modules/fread-tests (Depends-on): Likewise.
8018         * modules/fwrite-tests (Depends-on): Likewise.
8019
8020 2011-09-27  Bruno Haible  <bruno@clisp.org>
8021
8022         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8023         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8024         (raise): Remove older, duplicated declaration.
8025         (_gl_raise_SIGPIPE): New declaration.
8026         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8027         (rpl_raise): Remove function.
8028         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8029         a gnulib-defined SIGPIPE here.
8030         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8031         'sigprocmask' has detected missing signal-blocking and the module
8032         'sigpipe' is enabled.
8033         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8034
8035 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8036
8037         base64-tests: avoid memory leak
8038         * tests/test-base64.c (main): Plug memory leak.
8039
8040         base32: new module
8041         * modules/base32: New module.
8042         * lib/base32.c: New file.
8043         * lib/base32.h: Likewise.
8044         * m4/base32.m4: Likewise.
8045         * modules/base32-tests: New test.
8046         * tests/test-base32.c: Likewise.
8047         * MODULES.html.sh (Misc): Mention it.
8048
8049 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8050
8051         gnulib: use more-standard license notice wording
8052         * gnulib-tool (func_emit_copyright_notice): When emitting a
8053         license notice into a file, use the standard wording as suggested
8054         by the current information for GNU maintainers, except say "file"
8055         rather than "program".  The new wording gives a license version
8056         number, which addresses an issue raised by Glenn Morris in
8057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8058         * m4/onceonly.m4: Use that same wording here, too.
8059
8060         dup2: minor simplification
8061         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8062         as lib/dup2.c no longer uses 'inline'.
8063
8064 2011-09-25  Bruno Haible  <bruno@clisp.org>
8065
8066         strings: Fix compilation error on MSVC.
8067         * lib/strings.in.h: Include <stddef.h> for size_t.
8068
8069 2011-09-25  Bruno Haible  <bruno@clisp.org>
8070
8071         fflush et al.: Document limitation on MSVC.
8072         * doc/posix-functions/fflush.texi: Document possible crash in handling
8073         mode other than DEFAULT_HANDLING.
8074         * doc/posix-functions/fgetc.texi: Likewise.
8075         * doc/posix-functions/fputc.texi: Likewise.
8076         * doc/posix-functions/fread.texi: Likewise.
8077         * doc/posix-functions/fwrite.texi: Likewise.
8078
8079 2011-09-25  Bruno Haible  <bruno@clisp.org>
8080
8081         msvc-inval: Allow three invalid parameter handling modes.
8082         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8083         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8084         macros.
8085         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8086         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8087         SANE_LIBRARY_HANDLING as a no-op.
8088         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8089         <stdlib.h>.
8090         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8091
8092 2011-09-25  Bruno Haible  <bruno@clisp.org>
8093
8094         msvc-inval: Make handler multithread-safe.
8095         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8096         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8097         declarations.
8098         (gl_msvc_inval_current): New declaration.
8099         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8100         Operate on the structure returned by gl_msvc_inval_current().
8101         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8102         Remove varaiables.
8103         (tls_index, tls_initialized): New variables.
8104         (not_per_thread): New variable.
8105         (gl_msvc_inval_current): New function.
8106         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8107         returned by gl_msvc_inval_current().
8108
8109 2011-09-25  Bruno Haible  <bruno@clisp.org>
8110
8111         msvc-inval: Install handler globally.
8112         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8113         !_MSC_VER.
8114         (gl_msvc_invalid_parameter_handler): Remove declaration.
8115         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8116         declarations.
8117         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8118         Install the handler globally, don't uninstall it.
8119         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8120         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8121         currently valid, call RaiseException instead.
8122         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8123         for !_MSC_VER.
8124
8125 2011-09-25  Bruno Haible  <bruno@clisp.org>
8126
8127         strerror_r-posix: Fix for MSVC 9.
8128         * lib/strerror_r.c (local_snprintf): New function.
8129         (snprintf): Define to local_snprintf, not to _snprintf.
8130
8131 2011-09-25  Bruno Haible  <bruno@clisp.org>
8132
8133         ftruncate: Support for MSVC 9.
8134         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8135         (chsize_nothrow): New function.
8136         (chsize): Redefine as a macro.
8137         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8138         * modules/ftruncate (Depends-on): Add msvc-inval.
8139
8140 2011-09-25  Bruno Haible  <bruno@clisp.org>
8141
8142         New module 'fstat'.
8143         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8144         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8145         * lib/fchdir.c (rpl_fstat): Remove function.
8146         * m4/fstat.m4: New file.
8147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8149         declared.
8150         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8151         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8152         * modules/fstat: New file.
8153         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8154         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8155         is set.
8156         * doc/posix-functions/fstat.texi: Mention the new module and the
8157         problem on MSVC.
8158         * NEWS: Mention the change.
8159         * modules/acl (Depends-on): Add fstat.
8160         * modules/chdir-safer (Depends-on): Likewise.
8161         * modules/chown (Depends-on): Likewise.
8162         * modules/copy-file (Depends-on): Likewise.
8163         * modules/fchdir (Depends-on): Likewise.
8164         * modules/fdopendir (Depends-on): Likewise.
8165         * modules/fopen (Depends-on): Likewise.
8166         * modules/fts (Depends-on): Likewise.
8167         * modules/getcwd (Depends-on): Likewise.
8168         * modules/isapipe (Depends-on): Likewise.
8169         * modules/linkat (Depends-on): Likewise.
8170         * modules/lseek (Depends-on): Likewise.
8171         * modules/mkdir-p (Depends-on): Likewise.
8172         * modules/open (Depends-on): Likewise.
8173         * modules/openat (Depends-on): Likewise.
8174         * modules/read-file (Depends-on): Likewise.
8175         * modules/renameat (Depends-on): Likewise.
8176         * modules/utimens (Depends-on): Likewise.
8177
8178 2011-09-25  Bruno Haible  <bruno@clisp.org>
8179
8180         linkat: Fix compilation on MSVC 9.
8181         * lib/linkat.c: Don't include <stdint.h>.
8182
8183 2011-09-25  Bruno Haible  <bruno@clisp.org>
8184
8185         fclose: Support for MSVC 9.
8186         * lib/fclose.c: Include msvc-inval.h.
8187         (fclose_nothrow): New function.
8188         (rpl_fclose): Use it.
8189         * modules/fclose (Depends-on): Add msvc-inval.
8190         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8191
8192 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8193
8194         dup2: minor simplifications
8195         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8196         that it's a performance win.
8197         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8198         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8199
8200 2011-09-24  Jim Meyering  <meyering@redhat.com>
8201
8202         test-futimens: avoid a warning from gcc -Wshadow
8203         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8204         to avoid a shadowing warning.
8205
8206 2011-09-24  Bruno Haible  <bruno@clisp.org>
8207
8208         fdopen: Support for MSVC 9.
8209         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8210         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8211         * lib/fdopen.c: Include msvc-inval.h.
8212         (fdopen_nothrow): New function.
8213         (rpl_fdopen): Use it.
8214         * modules/fdopen (Depends-on): Add msvc-inval.
8215         * modules/fclose-tests (Depends-on): Add fdopen.
8216         * modules/fflush-tests (Depends-on): Likewise.
8217         * modules/fgetc-tests (Depends-on): Likewise.
8218         * modules/fputc-tests (Depends-on): Likewise.
8219         * modules/fread-tests (Depends-on): Likewise.
8220         * modules/freopen-tests (Depends-on): Likewise.
8221         * modules/fseeko-tests (Depends-on): Likewise.
8222         * modules/ftello-tests (Depends-on): Likewise.
8223         * modules/fwrite-tests  (Depends-on): Likewise.
8224         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8225
8226 2011-09-24  Bruno Haible  <bruno@clisp.org>
8227
8228         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8229         * modules/fgetc-tests (Depends-on): Add unistd.
8230         * modules/fputc-tests (Depends-on): Likewise.
8231         * modules/fread-tests (Depends-on): Likewise.
8232         * modules/fwrite-tests (Depends-on): Likewise.
8233
8234 2011-09-24  Bruno Haible  <bruno@clisp.org>
8235
8236         dup: Simplify autoconf test.
8237         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8238         on gl_MSVC_INVAL's result.
8239
8240 2011-09-24  Bruno Haible  <bruno@clisp.org>
8241
8242         Tests for function fwrite().
8243         * modules/fwrite-tests: New file.
8244         * tests/test-fwrite.c: New file.
8245         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8246
8247         Tests for function fread().
8248         * modules/fread-tests: New file.
8249         * tests/test-fread.c: New file.
8250         * modules/stdio-tests (Depends-on): Add fread-tests.
8251
8252         Activate fputc tests.
8253         * modules/stdio-tests (Depends-on): Add fputc-tests.
8254
8255         Enhance fgetc, fputc tests.
8256         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8257         * tests/test-fputc.c (main): Likewise.
8258
8259 2011-09-24  Bruno Haible  <bruno@clisp.org>
8260
8261         write: Support for MSVC 9.
8262         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8263         is not 1.
8264         * lib/write.c (write_nothrow): New function.
8265         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8266         not 1. Use write_nothrow.
8267         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8268         invalid parameter handler.
8269         (gl_PREREQ_WRITE): New macro.
8270         * modules/write (Depends-on): Add msvc-inval.
8271         (configure.ac): Invoke gl_PREREQ_WRITE.
8272         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8273
8274 2011-09-24  Bruno Haible  <bruno@clisp.org>
8275
8276         read: Fix last commit.
8277         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8278
8279 2011-09-24  Bruno Haible  <bruno@clisp.org>
8280
8281         dup2: Fix last commit.
8282         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8283         (rpl_dup2): Disable fcntl workaround on native Windows.
8284
8285         sigprocmask: Make code safer.
8286         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8287         section that changes macro definitions for this compilation unit.
8288
8289 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8290
8291         dup2: clarify by coalescing Windows-specific material
8292         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8293         "msvc-nothrow.h"' to the Windows-specific section, so that the
8294         Emacs source need not contain these include files.
8295         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8296         Windows-specific fixes into this function rather than just the
8297         nothrow fix, as this shortens and clarifies the code.  Always
8298         define as a function, as that's a bit cleaner than having it be
8299         sometimes a function and sometimes a macro.
8300         (rpl_dup2): Move the Windows-specific stuff out of here and into
8301         ms_windows_dup2.  Don't protect the Haiku-related fix with
8302         "#if !defined __linux__", as the same code also works around
8303         a Linux kernel bug, and it doesn't add any system calls on any
8304         platform.  Add comment about FreeBSD 6.1.
8305
8306         sigprocmask: move #include directive
8307         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8308         Windows-specific section, so that the Emacs source need not
8309         contain msvc-inval.h.
8310
8311 2011-09-23  Bruno Haible  <bruno@clisp.org>
8312
8313         read: Support for MSVC 9.
8314         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8315         is not 1.
8316         * lib/read.c (read_nothrow): New function.
8317         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8318         read_nothrow.
8319         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8320         invalid parameter handler.
8321         (gl_PREREQ_READ): New macro.
8322         * modules/read (Depends-on): Add msvc-inval.
8323         (configure.ac): Invoke gl_PREREQ_READ.
8324         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8325
8326 2011-09-23  Bruno Haible  <bruno@clisp.org>
8327
8328         close: Support for MSVC 9.
8329         * lib/close.c: Include <errno.h>, msvc-inval.h.
8330         (close_nothrow): New function.
8331         (rpl_close): Use it.
8332         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8333         invalid parameter handler.
8334         * modules/close (Depends-on): Add msvc-inval.
8335         * modules/dup2-tests (Depends-on): Add close.
8336         * modules/dup3-tests (Depends-on): Likewise.
8337         * modules/fcntl-tests (Depends-on): Likewise.
8338         * modules/spawn-pipe-tests (Depends-on): Likewise.
8339         * modules/unistd-safer-tests (Depends-on): Likewise.
8340         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8341
8342 2011-09-23  Bruno Haible  <bruno@clisp.org>
8343
8344         New module 'dup'.
8345         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8346         Allow replacement.
8347         * lib/dup.c: New file.
8348         * lib/fchdir.c (rpl_dup): Remove function.
8349         * m4/dup.m4: New file.
8350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8351         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8352         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8353         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8354         * modules/dup: New file.
8355         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8356         'dup' module is in use.
8357         * modules/fdopendir (Depends-on): Add dup.
8358         * modules/fdutimensat-tests (Depends-on): Likewise.
8359         * modules/fts (Depends-on): Likewise.
8360         * modules/futimens-tests (Depends-on): Likewise.
8361         * modules/posix_spawnp-tests (Depends-on): Likewise.
8362         * modules/unistd-safer-tests (Depends-on): Likewise.
8363         * modules/utimens-tests (Depends-on): Likewise.
8364         * doc/posix-functions/dup.texi: Mention the new module and the problem
8365         on MSVC.
8366
8367 2011-09-23  Bruno Haible  <bruno@clisp.org>
8368
8369         getdtablesize: Support for MSVC 9.
8370         * lib/getdtablesize.c: Include msvc-inval.h.
8371         (_setmaxstdio_nothrow): New function.
8372         (_setmaxstdio): Redefine it.
8373         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8374         * modules/getdtablesize (Depends-on): Add msvc-inval.
8375         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8376
8377 2011-09-23  Bruno Haible  <bruno@clisp.org>
8378
8379         signal-h: Rename from signal.
8380         * modules/signal-h: Renamed from modules/signal.
8381         * modules/pthread_sigmask (Depends-on): Update.
8382         * modules/raise (Depends-on): Likewise.
8383         * modules/sigaction (Depends-on): Likewise.
8384         * modules/sigpipe (Depends-on): Likewise.
8385         * modules/sigprocmask (Depends-on): Likewise.
8386         * modules/sys_select (Depends-on): Likewise.
8387         * modules/signal-h-tests: Renamed from modules/signal-tests.
8388         (Files, Depends-on, Makefile.am): Update.
8389         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8390         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8391         (Files, Makefile.am): Update.
8392         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8393         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8394         * modules/signal: New placeholder file.
8395         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8396         * doc/posix-headers/signal.texi: Update.
8397         * NEWS: Mention the change.
8398
8399 2011-09-23  Bruno Haible  <bruno@clisp.org>
8400
8401         sigprocmask: Avoid crashes through signal() on MSVC 9.
8402         * lib/sigprocmask.c: Include msvc-inval.h.
8403         (signal_nothrow): New function.
8404         (signal): Redefine it.
8405         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8406         * modules/sigprocmask (Depends-on): Add msvc-inval.
8407         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8408
8409 2011-09-23  Bruno Haible  <bruno@clisp.org>
8410
8411         Tests for module 'raise'.
8412         * modules/raise-tests: New file.
8413         * tests/test-raise.c: New file.
8414
8415         raise: Support for MSVC.
8416         * lib/signal.in.h (raise): New declaration.
8417         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8418         for native Windows platforms.
8419         * m4/raise.m4: New file.
8420         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8421         HAVE_RAISE, REPLACE_RAISE.
8422         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8423         REPLACE_RAISE.
8424         * modules/raise (Status, Notice): Remove fields.
8425         (Files): Add m4/raise.m4.
8426         (Depends-on): Add signal, msvc-inval.
8427         (configure.ac): Use the common idioms.
8428         (Maintainer): Add me.
8429         * tests/test-signal-c++.cc: Check the signature of raise.
8430         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8431
8432 2011-09-23  Bruno Haible  <bruno@clisp.org>
8433
8434         pipe2: Fix compilation on pre-C99 compilers.
8435         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8436
8437 2011-09-23  Bruno Haible  <bruno@clisp.org>
8438
8439         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8440         * lib/msvc-nothrow.h: New file.
8441         * lib/msvc-nothrow.c: New file.
8442         * m4/msvc-nothrow.m4: New file.
8443         * modules/msvc-nothrow: New file.
8444         * lib/dup2.c: Include msvc-nothrow.h.
8445         (rpl_dup2): No need to protect _get_osfhandle call here.
8446         * lib/accept4.c: Include msvc-nothrow.h.
8447         * lib/error.c: Likewise.
8448         * lib/fcntl.c: Likewise.
8449         * lib/lseek.c: Likewise.
8450         * lib/nonblocking.c: Likewise.
8451         * lib/poll.c: Likewise.
8452         * lib/read.c: Likewise.
8453         * lib/select.c: Likewise.
8454         * lib/sockets.h: Likewise.
8455         * lib/sockets.c: Likewise.
8456         * lib/stdio-read.c: Likewise.
8457         * lib/stdio-write.c: Likewise.
8458         * lib/write.c: Likewise.
8459         * lib/w32sock.h: Likewise.
8460         * lib/w32spawn.h: Likewise.
8461         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8462         * lib/fsync.c: Likewise.
8463         * lib/isapipe.c: Likewise.
8464         * modules/dup2 (Depends-on): Add msvc-nothrow.
8465         * modules/accept4 (Depends-on): Likewise.
8466         * modules/error (Depends-on): Likewise.
8467         * modules/fcntl (Depends-on): Likewise.
8468         * modules/lseek (Depends-on): Likewise.
8469         * modules/nonblocking (Depends-on): Likewise.
8470         * modules/poll (Depends-on): Likewise.
8471         * modules/read (Depends-on): Likewise.
8472         * modules/select (Depends-on): Likewise.
8473         * modules/sockets (Depends-on): Likewise.
8474         * modules/sigpipe (Depends-on): Likewise.
8475         * modules/write (Depends-on): Likewise.
8476         * modules/accept (Depends-on): Likewise.
8477         * modules/bind (Depends-on): Likewise.
8478         * modules/connect (Depends-on): Likewise.
8479         * modules/gethostname (Depends-on): Likewise.
8480         * modules/getpeername (Depends-on): Likewise.
8481         * modules/getsockname (Depends-on): Likewise.
8482         * modules/getsockopt (Depends-on): Likewise.
8483         * modules/ioctl (Depends-on): Likewise.
8484         * modules/listen (Depends-on): Likewise.
8485         * modules/recv (Depends-on): Likewise.
8486         * modules/recvfrom (Depends-on): Likewise.
8487         * modules/send (Depends-on): Likewise.
8488         * modules/sendto (Depends-on): Likewise.
8489         * modules/setsockopt (Depends-on): Likewise.
8490         * modules/shutdown (Depends-on): Likewise.
8491         * modules/socket (Depends-on): Likewise.
8492         * modules/execute (Depends-on): Likewise.
8493         * modules/spawn-pipe (Depends-on): Likewise.
8494         * modules/flock (Depends-on): Likewise.
8495         * modules/fsync (Depends-on): Likewise.
8496         * modules/isapipe (Depends-on): Likewise.
8497         * tests/test-cloexec.c: Include msvc-nothrow.h.
8498         * tests/test-dup-safer.c: Likewise.
8499         * tests/test-dup2.c: Likewise.
8500         * tests/test-dup3.c: Likewise.
8501         * tests/test-fcntl.c: Likewise.
8502         * tests/test-pipe.c: Likewise.
8503         * tests/test-pipe2.c: Likewise.
8504         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8505         * modules/unistd-safer-tests (Depends-on): Likewise.
8506         * modules/dup2-tests (Depends-on): Likewise.
8507         * modules/dup3-tests (Depends-on): Likewise.
8508         * modules/fcntl-tests (Depends-on): Likewise.
8509         * modules/pipe-posix-tests (Depends-on): Likewise.
8510         * modules/pipe2-tests (Depends-on): Likewise.
8511
8512 2011-09-23  Bruno Haible  <bruno@clisp.org>
8513
8514         dup2: Make code more maintainable.
8515         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8516         (rpl_dup2): Use it.
8517         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8518         * modules/dup2 (configure.ac): Invoke it.
8519         Reported by Paul Eggert.
8520
8521 2011-09-23  Bruno Haible  <bruno@clisp.org>
8522
8523         msvc-inval: Fix compilation error.
8524         * lib/msvc-inval.h: Include <excpt.h>.
8525
8526 2011-09-23  Bruno Haible  <bruno@clisp.org>
8527
8528         mkdir: Tweak for MSVC 9.
8529         * lib/sys_stat.in.h: Update comments.
8530         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8531
8532         Tests for module 'chdir'.
8533         * modules/chdir-tests: New file.
8534         * tests/test-chdir.c: New file.
8535
8536         New module 'chdir'.
8537         * modules/chdir: New file.
8538         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8539         (chdir): New declaration.
8540         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8541         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8542         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8543         * tests/test-unistd-c++.cc: Check signature of chdir.
8544         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8545         * modules/chdir-long (Depends-on): Add chdir.
8546         * modules/fchdir (Depends-on): Likewise.
8547         * modules/rename (Depends-on): Likewise.
8548         * modules/savewd (Depends-on): Likewise.
8549
8550         rmdir: Support for mingw, MSVC 9.
8551         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8552         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8553
8554         getcwd: Tweak for MSVC 9.
8555         * lib/unistd.in.h: Update comments.
8556         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8557
8558 2011-09-22  Bruno Haible  <bruno@clisp.org>
8559
8560         strerror_r-posix: Avoid a link error on MSVC.
8561         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8562         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8563
8564 2011-09-22  Bruno Haible  <bruno@clisp.org>
8565
8566         select: Avoid link errors on MSVC.
8567         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8568         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8569         * modules/pselect (Link): Likewise.
8570         * NEWS: Mention the change.
8571         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8572         test-select-stdin against $(LIB_SELECT).
8573         * modules/pselect-tests (Makefile.am): Link test-pselect against
8574         $(LIB_SELECT).
8575
8576 2011-09-22  Bruno Haible  <bruno@clisp.org>
8577
8578         select: Avoid compilation error on MSVC.
8579         * lib/select.c: Don't include <stdbool.h>.
8580
8581 2011-09-21  Bruno Haible  <bruno@clisp.org>
8582
8583         Consolidate all uses of PATH_MAX in *.m4 files.
8584         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8585         macros.
8586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8587         and gl_PATHMAX_SNIPPET.
8588         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8590         * modules/chdir-long (Files): Add m4/pathmax.m4.
8591         * modules/getcwd (Files): Likewise.
8592
8593 2011-09-21  Bruno Haible  <bruno@clisp.org>
8594
8595         ftruncate: Un-deprecate, concentrate on Win32 support.
8596         * modules/ftruncate (Status, Notice): Remove sections.
8597         (Depends-on): Add largefile.
8598         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8599         non-mingw platforms.
8600         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8601         include <io.h>.
8602         * modules/perror-tests (Depends-on): Add ftruncate.
8603         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8604         'ftruncate' module.
8605
8606 2011-09-21  Bruno Haible  <bruno@clisp.org>
8607
8608         Add dependencies to new dirent related modules.
8609         * modules/opendir (Depends-on): Add closedir.
8610         * modules/getcwd (Depends-on): Add opendir, closedir.
8611         * modules/dirent-safer-tests (Depends-on): Likewise.
8612         * modules/fdopendir-tests (Depends-on): Likewise.
8613         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8614         * modules/renameat-tests (Depends-on): Likewise.
8615
8616 2011-09-21  Bruno Haible  <bruno@clisp.org>
8617
8618         opendir: Avoid compilation error on mingw.
8619         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8620         * modules/opendir (Depends-on): Add unistd.
8621
8622 2011-09-21  Bruno Haible  <bruno@clisp.org>
8623
8624         ftruncate tests: Avoid a test failure on mingw.
8625         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8626
8627 2011-09-21  Bruno Haible  <bruno@clisp.org>
8628
8629         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8630         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8631         native Windows.
8632
8633 2011-09-21  Bruno Haible  <bruno@clisp.org>
8634
8635         New module 'fdopen'.
8636         * lib/stdio.in.h (fdopen): New declaration.
8637         * lib/fdopen.c: New file.
8638         * m4/fdopen.m4: New file.
8639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8640         REPLACE_FDOPEN.
8641         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8642         REPLACE_FDOPEN.
8643         * modules/fdopen: New file.
8644         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8645         * tests/test-stdio-c++.cc: Check signature of fdopen.
8646         * doc/posix-functions/fdopen.texi: Mention the new module.
8647
8648 2011-09-21  Bruno Haible  <bruno@clisp.org>
8649
8650         unlockpt tests: Avoid test failure on NetBSD 5.1.
8651         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8652         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8653
8654 2011-09-21  Bruno Haible  <bruno@clisp.org>
8655
8656         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8657         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8658         * tests/test-getlogin_r.c (main): Likewise.
8659
8660 2011-09-20  Bruno Haible  <bruno@clisp.org>
8661
8662         time tests: Don't require pid_t.
8663         * doc/posix-headers/time.texi: Revert last change.
8664         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8665         * tests/test-time.c: Comment out the check for pid_t.
8666
8667 2011-09-20  Bruno Haible  <bruno@clisp.org>
8668
8669         fsync tests: Avoid a test failure on mingw.
8670         * tests/test-fsync.c (main): Allow a failure with EIO.
8671
8672 2011-09-20  Bruno Haible  <bruno@clisp.org>
8673
8674         euidaccess: Update comments.
8675         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8676
8677 2011-09-20  Bruno Haible  <bruno@clisp.org>
8678
8679         Ensure EBADF returns for socket functions on mingw.
8680         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8681         descriptor is invalid.
8682         * lib/bind.c (rpl_bind): Likewise.
8683         * lib/connect.c (rpl_connect): Likewise.
8684         * lib/getpeername.c (rpl_getpeername): Likewise.
8685         * lib/getsockname.c (rpl_getsockname): Likewise.
8686         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8687         * lib/listen.c (rpl_listen): Likewise.
8688         * lib/recv.c (rpl_recv): Likewise.
8689         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8690         * lib/send.c (rpl_send): Likewise.
8691         * lib/sendto.c (rpl_sendto): Likewise.
8692         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8693         * lib/shutdown.c (rpl_shutdown): Likewise.
8694
8695 2011-09-20  Bruno Haible  <bruno@clisp.org>
8696
8697         select tests: EBADF tests.
8698         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8699         test_bad_fd): New functions.
8700         (test_function): Invoke also test_bad_fd.
8701
8702 2011-09-20  Bruno Haible  <bruno@clisp.org>
8703
8704         Tests for module 'posix_spawn_file_actions_addopen.
8705         * modules/posix_spawn_file_actions_addopen-tests: New file.
8706         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8707
8708         Tests for module 'posix_spawn_file_actions_adddup2'.
8709         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8710         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8711
8712         Tests for module 'posix_spawn_file_actions_addclose'.
8713         * modules/posix_spawn_file_actions_addclose-tests: New file.
8714         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8715
8716 2011-09-20  Bruno Haible  <bruno@clisp.org>
8717
8718         Tests for module 'unlockpt'.
8719         * modules/unlockpt-tests: New file.
8720         * tests/test-unlockpt.c: New file.
8721         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8722
8723         Tests for module 'grantpt'.
8724         * modules/grantpt-tests: New file.
8725         * tests/test-grantpt.c: New file.
8726         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8727
8728 2011-09-20  Bruno Haible  <bruno@clisp.org>
8729
8730         freopen tests: EBADF tests.
8731         * tests/test-freopen.c: Include errno.h, unistd.h.
8732         (main): Add tests for EBADF, commented out for the moment.
8733
8734         fclose tests: EBADF tests.
8735         * tests/test-fclose.c (main): Add tests for EBADF.
8736
8737         fflush tests: EBADF tests.
8738         * tests/test-fflush.c: Include errno.h, macros.h.
8739         (main): Add tests for EBADF.
8740
8741         ftello tests: EBADF tests.
8742         * tests/test-ftello4.sh: New file.
8743         * tests/test-ftello4.c: New file.
8744         * modules/ftello-tests (Files): Add them.
8745         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8746
8747         fseeko tests: EBADF tests.
8748         * tests/test-fseeko4.sh: New file.
8749         * tests/test-fseeko4.c: New file.
8750         * modules/fseeko-tests (Files): Add them.
8751         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8752
8753         Tests for function fputc().
8754         * modules/fputc-tests: New file.
8755         * tests/test-fputc.c: New file.
8756         * modules/stdio-tests (Depends-on): Add fputc-tests.
8757
8758         Tests for function fgetc().
8759         * modules/fgetc-tests: New file.
8760         * tests/test-fgetc.c: New file.
8761         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8762
8763         Tests for function fdopen().
8764         * modules/fdopen-tests: New file.
8765         * tests/test-fdopen.c: New file.
8766         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8767
8768         Tests for module 'vdprintf'.
8769         * modules/vdprintf-tests: New file.
8770         * tests/test-vdprintf.c: New file.
8771
8772         Tests for module 'dprintf'.
8773         * modules/dprintf-tests: New file.
8774         * tests/test-dprintf.c: New file.
8775
8776 2011-09-20  Bruno Haible  <bruno@clisp.org>
8777
8778         Tests for module 'ioctl'.
8779         * modules/ioctl-tests: New file.
8780         * tests/test-ioctl.c: New file.
8781
8782 2011-09-20  Bruno Haible  <bruno@clisp.org>
8783
8784         fcntl tests: EBADF tests.
8785         * tests/test-fcntl.c (main): Add more tests for EBADF.
8786
8787 2011-09-20  Bruno Haible  <bruno@clisp.org>
8788
8789         utimensat tests: EBADF tests.
8790         * tests/test-utimensat.c (main): Add tests for EBADF.
8791
8792         renameat tests: EBADF tests.
8793         * tests/test-renameat.c (main): Add tests for EBADF.
8794
8795         mkfifoat tests: EBADF tests.
8796         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8797
8798         readlinkat tests: EBADF tests.
8799         * tests/test-readlinkat.c (main): Add tests for EBADF.
8800
8801         symlinkat tests: EBADF tests.
8802         * tests/test-symlinkat.c (main): Add tests for EBADF.
8803
8804         linkat tests: EBADF tests.
8805         * tests/test-linkat.c (main): Add tests for EBADF.
8806
8807         Tests for module 'faccessat'.
8808         * modules/faccessat-tests: New file.
8809         * tests/test-faccessat.c: New file.
8810
8811         fdopendir tests: EBADF tests.
8812         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8813
8814         openat tests: EBADF tests.
8815         * tests/test-fchownat.c (main): Add tests for EBADF.
8816         * tests/test-fstatat.c (main): Likewise.
8817         * tests/test-mkdirat.c (main): Likewise.
8818         * tests/test-openat.c (main): Likewise.
8819         * tests/test-unlinkat.c (main): Likewise.
8820         * tests/test-fchmodat.c: New file.
8821         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8822         (Makefile.am): Also run 'test-fchmodat'.
8823
8824 2011-09-20  Bruno Haible  <bruno@clisp.org>
8825
8826         utimens, futimens, fdutimensat tests: EBADF tests.
8827         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8828
8829         Tests for function fstat().
8830         * modules/fstat-tests: New file.
8831         * tests/test-fstat.c: New file.
8832         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8833
8834 2011-09-20  Bruno Haible  <bruno@clisp.org>
8835
8836         test-ttyname_r tests: EBADF tests.
8837         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8838
8839         Tests for module 'isatty'.
8840         * modules/isatty-tests: New file.
8841         * tests/test-isatty.c: New file.
8842
8843         Tests for module 'write'.
8844         * modules/write-tests: New file.
8845         * tests/test-write.c: New file.
8846
8847         Tests for module 'read'.
8848         * modules/read-tests: New file.
8849         * tests/test-read.c: New file.
8850
8851         pwrite tests: EBADF tests.
8852         * tests/test-pwrite.c (main): Add tests for EBADF.
8853
8854         pread tests: EBADF tests.
8855         * tests/test-pread.c (main): Add tests for EBADF.
8856
8857         lseek tests: EBADF tests.
8858         * tests/test-lseek.c (main): Add more tests for EBADF.
8859
8860         Tests for module 'ftruncate'.
8861         * modules/ftruncate-tests: New file.
8862         * tests/test-ftruncate.sh: New file.
8863         * tests/test-ftruncate.c: New file.
8864
8865         fsync tests: EBADF tests.
8866         * tests/test-fsync.c (main): Add more tests for EBADF.
8867
8868         fdatasync tests: EBADF tests.
8869         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8870
8871         Tests for module 'fchown'.
8872         * modules/fchown-tests: New file.
8873         * tests/test-fchown.c: New file.
8874
8875         Tests for module 'fchmod'.
8876         * modules/fchmod-tests: New file.
8877         * tests/test-fchmod.c: New file.
8878
8879         fchdir tests: EBADF tests.
8880         * tests/test-fchdir.c (main): Add more tests for EBADF.
8881
8882         dup2 tests: EBADF tests.
8883         * tests/test-dup2.c (main): Add more tests for EBADF.
8884
8885         Tests for module 'dup'.
8886         * modules/dup-tests: New file.
8887         * tests/test-dup.c: New file.
8888
8889         Tests for module 'close'.
8890         * modules/close-tests: New file.
8891         * tests/test-close.c: New file.
8892
8893 2011-09-20  Bruno Haible  <bruno@clisp.org>
8894
8895         Tests for module 'shutdown'.
8896         * modules/shutdown-tests: New file.
8897         * tests/test-shutdown.c: New file.
8898
8899         Tests for module 'setsockopt'.
8900         * modules/setsockopt-tests: New file.
8901         * tests/test-setsockopt.c: New file.
8902
8903         Tests for module 'sendto'.
8904         * modules/sendto-tests: New file.
8905         * tests/test-sendto.c: New file.
8906
8907         Tests for module 'send'.
8908         * modules/send-tests: New file.
8909         * tests/test-send.c: New file.
8910
8911         Tests for module 'recvfrom'.
8912         * modules/recvfrom-tests: New file.
8913         * tests/test-recvfrom.c: New file.
8914
8915         Tests for module 'recv'.
8916         * modules/recv-tests: New file.
8917         * tests/test-recv.c: New file.
8918
8919         Tests for module 'listen'.
8920         * modules/listen-tests: New file.
8921         * tests/test-listen.c: New file.
8922
8923         Tests for module 'getsockopt'.
8924         * modules/getsockopt-tests: New file.
8925         * tests/test-getsockopt.c: New file.
8926
8927         Tests for module 'getsockname'.
8928         * modules/getsockname-tests: New file.
8929         * tests/test-getsockname.c: New file.
8930
8931         Tests for module 'getpeername'.
8932         * modules/getpeername-tests: New file.
8933         * tests/test-getpeername.c: New file.
8934
8935         Tests for module 'connect'.
8936         * modules/connect-tests: New file.
8937         * tests/test-connect.c: New file.
8938
8939         Tests for module 'bind'.
8940         * modules/bind-tests: New file.
8941         * tests/test-bind.c: New file.
8942
8943         accept4 tests: Fix for native Windows.
8944         * tests/test-accept4.c: Include sockets.h.
8945         (main): Invoke gl_sockets_startup.
8946         * modules/accept4-tests (Depends-on): Add sockets.
8947
8948         accept tests: Fix for native Windows.
8949         * tests/test-accept.c: Include sockets.h.
8950         (main): Invoke gl_sockets_startup.
8951         * modules/accept-tests (Depends-on): Add sockets.
8952
8953 2011-09-19  Bruno Haible  <bruno@clisp.org>
8954
8955         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8956         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8957         do...while(0).
8958         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8959         Suggested by Paul Eggert.
8960
8961 2011-09-19  Bruno Haible  <bruno@clisp.org>
8962
8963         sched: Ensure pid_t is defined.
8964         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8965         not define pid_t.
8966         * lib/sched.in.h: Include <sys/types.h>.
8967         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8969
8970 2011-09-19  Bruno Haible  <bruno@clisp.org>
8971
8972         msvc-inval: Ensure the entire expansion is a single statement.
8973         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8974         of braces.
8975
8976 2011-09-19  Jim Meyering  <meyering@redhat.com>
8977
8978         tests: use printf, not echo in init.sh's warn_ function
8979         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8980         misbehave when given strings containing a backslash or starting
8981         with e.g., -n.  James Youngman suggested setting IFS.
8982
8983 2011-09-19  Eric Blake  <eblake@redhat.com>
8984
8985         futimens: enhance test
8986         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8987         closed non-negative fd.
8988
8989         date: accept 'hence' as opposite of 'ago'
8990         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8991         * tests/test-parse-datetime.c (main): Enhance test.
8992         Suggested by Jesse Wilson.
8993
8994 2011-09-19  Jim Meyering  <meyering@redhat.com>
8995
8996         getcwd: don't fail in a deep directory on a system without openat
8997         Before this change, getcwd would fail when called from a directory
8998         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8999         the non-openat implementation used "..", "../..", "../../..", etc.
9000         to access ancestor directories.  With too many, that string would
9001         be longer than PATH_MAX.
9002         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9003         using gnulib's openat replacement.
9004         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9005         we're using the replacement function.
9006
9007 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9008
9009         maint.mk: avoid warnings from perl about missing files
9010         * top/maint.mk (def_sym_regex): Ignore files listed in
9011         $(gl_other_headers_) that do not exist, say because a project
9012         does not use a corresponding module.
9013
9014 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         stat: use pathmax.h only if needed
9017         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9018         This is better for Emacs, which does not have a mingw port and
9019         therefore can avoid the pathmax module.
9020
9021         utimens: remove dependency on dup2
9022         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9023         to work around the Linux kernel bug.
9024         * modules/utimens (Depends-on): Remove dup2.
9025
9026 2011-09-18  Bruno Haible  <bruno@clisp.org>
9027
9028         inet_ntop, inet_pton: Look for it also in libresolv.
9029         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9030         libnsl, search for it in libresolv.
9031         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9032         Needed on Solaris 7.
9033
9034 2011-09-18  Bruno Haible  <bruno@clisp.org>
9035
9036         accept, accept4 tests: Avoid link error on Solaris.
9037         * modules/accept-tests (Makefile.am): Link test-accept against
9038         $(LIBSOCKET).
9039         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9040         $(LIBSOCKET).
9041
9042         accept4: Avoid link error on Solaris.
9043         * modules/accept4 (Link): New section.
9044
9045         socket functions: Avoid link errors on Solaris.
9046         * modules/accept (Depends-on): Add socketlib.
9047         (Link): New section.
9048         * modules/bind (Depends-on): Add socketlib.
9049         (Link): New section.
9050         * modules/connect (Depends-on): Add socketlib.
9051         (Link): New section.
9052         * modules/getpeername (Depends-on): Add socketlib.
9053         (Link): New section.
9054         * modules/getsockname (Depends-on): Add socketlib.
9055         (Link): New section.
9056         * modules/getsockopt (Depends-on): Add socketlib.
9057         (Link): New section.
9058         * modules/listen (Depends-on): Add socketlib.
9059         (Link): New section.
9060         * modules/recv (Depends-on): Add socketlib.
9061         (Link): New section.
9062         * modules/recvfrom (Depends-on): Add socketlib.
9063         (Link): New section.
9064         * modules/send (Depends-on): Add socketlib.
9065         (Link): New section.
9066         * modules/sendto (Depends-on): Add socketlib.
9067         (Link): New section.
9068         * modules/setsockopt (Depends-on): Add socketlib.
9069         (Link): New section.
9070         * modules/shutdown (Depends-on): Add socketlib.
9071         (Link): New section.
9072         * modules/socket (Depends-on): Add socketlib.
9073         (Link): New section.
9074
9075 2011-09-18  Bruno Haible  <bruno@clisp.org>
9076
9077         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9078         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9079         than 5 seconds.
9080         * modules/ptsname-tests (configure.ac): Test for alarm.
9081
9082 2011-09-18  Bruno Haible  <bruno@clisp.org>
9083
9084         posix_spawn_file_actions_add*: Fix module dependencies.
9085         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9086         posix_spawn_file_actions_init.
9087         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9088         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9089
9090 2011-09-18  Bruno Haible  <bruno@clisp.org>
9091
9092         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9093         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9094         * tests/test-renameat.c (main): Likewise.
9095
9096 2011-09-18  Bruno Haible  <bruno@clisp.org>
9097
9098         Tests for module 'accept4'.
9099         * modules/accept4-tests: New file.
9100         * tests/test-accept4.c: New file.
9101
9102 2011-09-18  Bruno Haible  <bruno@clisp.org>
9103
9104         Tests for module 'accept'.
9105         * modules/accept-tests: New file.
9106         * tests/test-accept.c: New file.
9107
9108 2011-09-18  Bruno Haible  <bruno@clisp.org>
9109
9110         dup2: Support for MSVC.
9111         * lib/dup2.c: Include msvc-inval.h.
9112         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9113         _get_osfhandle calls.
9114         * modules/dup2 (Depends-on): Add msvc-inval.
9115         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9116
9117         New module 'msvc-inval'.
9118         * lib/msvc-inval.h: New file.
9119         * lib/msvc-inval.c: New file.
9120         * m4/msvc-inval.m4: New file.
9121         * modules/msvc-inval: New file.
9122
9123 2011-09-17  Bruno Haible  <bruno@clisp.org>
9124
9125         Tests for module 'pclose'.
9126         * modules/pclose-tests: New file.
9127
9128         New module 'pclose'.
9129         * lib/stdio.in.h (pclose): New declaration.
9130         * lib/pclose.c: New file.
9131         * m4/pclose.m4: New file.
9132         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9133         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9134         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9135         * modules/pclose: New file.
9136         * modules/popen-tests (Depends-on): Add pclose.
9137         * modules/popen-safer-tests (Depends-on): Likewise.
9138         * doc/posix-functions/pclose.texi: Mention the new module.
9139
9140 2011-09-17  Bruno Haible  <bruno@clisp.org>
9141
9142         popen: Support for MSVC.
9143         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9144         * lib/popen.c (popen): Provide alternate definition for native Windows.
9145         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9147         * modules/popen (Depends-on, configure.ac): Update condition.
9148         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9149         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9150         fixed.
9151
9152 2011-09-17  Bruno Haible  <bruno@clisp.org>
9153
9154         isnanl, isnand, isnanf: Work around MSVC bug.
9155         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9156
9157 2011-09-17  Bruno Haible  <bruno@clisp.org>
9158
9159         sys_socket tests: Fix recent mistake.
9160         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9161
9162 2011-09-17  Bruno Haible  <bruno@clisp.org>
9163
9164         putenv: Support for MSVC.
9165         * modules/putenv (Depends-on): Add environ.
9166         * lib/putenv.c (environ): Disable declaration.
9167         * lib/unistd.in.h: Update comment.
9168
9169 2011-09-17  Bruno Haible  <bruno@clisp.org>
9170
9171         math: Avoid macro redefinition warnings on MSVC.
9172         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9173         Undefine before redefining.
9174
9175 2011-09-17  Bruno Haible  <bruno@clisp.org>
9176
9177         doc: Mention functions which are declared as macros.
9178         * doc/posix-functions/*[fl].texi: Mention that some functions are
9179         defined as macros with arguments only.
9180
9181 2011-09-17  Bruno Haible  <bruno@clisp.org>
9182
9183         Add dependencies to new dirent related modules.
9184         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9185         * modules/fts (Depends-on): Likewise.
9186         * modules/glob (Depends-on): Likewise.
9187         * modules/savedir (Depends-on): Likewise.
9188         * modules/scandir (Depends-on): Likewise.
9189         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9190         * modules/fdopendir (Depends-on): Add opendir.
9191
9192 2011-09-17  Bruno Haible  <bruno@clisp.org>
9193
9194         inet_pton: Support for MSVC on Windows Vista or newer.
9195         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9196         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9197         HAVE_DECL_INET_PTON is defined.
9198         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9199         On platforms with <winsock2.h>, test whether inet_pton is declared in
9200         <ws2tcpip.h>. If so, arrange to replace it.
9201         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9202         REPLACE_INET_PTON.
9203         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9204         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9205         (Depends-on, configure.ac): Update condition.
9206         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9207
9208 2011-09-17  Bruno Haible  <bruno@clisp.org>
9209
9210         inet_ntop: Support for MSVC on Windows Vista or newer.
9211         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9212         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9213         HAVE_DECL_INET_NTOP is defined.
9214         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9215         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9216         <ws2tcpip.h>. If so, arrange to replace it.
9217         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9218         REPLACE_INET_NTOP.
9219         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9220         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9221         (Depends-on, configure.ac): Update condition.
9222         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9223
9224 2011-09-16  Eric Blake  <eblake@redhat.com>
9225
9226         test-fsync: yet another enhancement
9227         * tests/test-fsync.c (main): Also test behavior on read-only text
9228         file.
9229
9230 2011-09-16  Bruno Haible  <bruno@clisp.org>
9231
9232         Enhance fsync, fdatasync tests.
9233         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9234         * tests/test-fdatasync.c (main): Likewise.
9235
9236 2011-09-16  Bruno Haible  <bruno@clisp.org>
9237
9238         Support for MSVC compiler: Ensure mode_t gets defined.
9239         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9240         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9242         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9243         * tests/test-fcntl-h.c: Check that mode_t is defined.
9244         * tests/test-sys_stat.c: Likewise.
9245         * tests/test-sys_types.c: Likewise.
9246         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9247         * doc/posix-headers/sys_stat.texi: Likewise.
9248         * doc/posix-headers/sys_types.texi: Likewise.
9249
9250 2011-09-16  Bruno Haible  <bruno@clisp.org>
9251
9252         sys_stat: Support for MSVC.
9253         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9254         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9255         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9256         MSVC.
9257
9258 2011-09-16  Bruno Haible  <bruno@clisp.org>
9259
9260         Support for MSVC compiler: Ensure off_t gets defined.
9261         * lib/unistd.in.h: Include <sys/types.h>.
9262         * tests/test-fcntl-h.c: Check that off_t is defined.
9263         * tests/test-sys_stat.c: Likewise.
9264         * tests/test-sys_types.c: Likewise.
9265
9266 2011-09-16  Eric Blake  <eblake@redhat.com>
9267
9268         fdatasync: port to Solaris
9269         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9270         * modules/fdatasync (Link): Document it.
9271         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9272
9273         fdatasync: port to MacOS X 10.7
9274         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9275         declared.
9276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9277         * modules/unistd (Makefile.am): Substitute it.
9278         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9279         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9280
9281         fdatasync: minor improvements
9282         * modules/fdatasync (Depends-on): Add condition for fsync.
9283         * lib/fdatasync.c (fdatasync): Add comment.
9284         * tests/test-unistd-c++.cc: Test fdatasync.
9285
9286         unistd: update refs to newer POSIX
9287         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9288         Suggested by Bruno Haible.
9289
9290         fdatasync: new module
9291         * modules/fsync (Description): Document difference to fdatasync.
9292         * modules/fdatasync: New module.
9293         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9294         * lib/fdatasync.c (fdatasync): Likewise.
9295         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9296         defaults.
9297         * modules/unistd (Makefile.am): Set witnesses.
9298         * lib/unistd.in.h (fdatasync): Declare.
9299         * MODULES.html.sh: Document it.
9300         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9301         * modules/fdatasync-tests: New test.
9302         * tests/test-fdatasync.c: Likewise.
9303
9304 2011-09-16  Eric Blake  <eblake@redhat.com>
9305
9306         test-fsync: enhance tests
9307         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9308         * tests/test-fsync.c (main): Enhance test.
9309
9310 2011-09-15  Bruno Haible  <bruno@clisp.org>
9311
9312         Support for MSVC compiler: Ensure ssize_t gets defined.
9313         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9314         * doc/posix-headers/stdio.texi: Likewise.
9315         * modules/stdio (Depends-on): Add ssize_t.
9316         * modules/sys_socket (Depends-on): Likewise.
9317         * modules/sys_types (Depends-on): Likewise.
9318         * modules/sys_uio (Depends-on): Likewise.
9319         * modules/unistd (Depends-on): Likewise.
9320         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9321         * tests/test-sys_types.c: Check that ssize_t is defined.
9322
9323 2011-09-14  Bruno Haible  <bruno@clisp.org>
9324
9325         Avoid using #, the m4 comment starter character, near brackets.
9326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9327         delimiter character in sed expressions.
9328         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9329         Suggested by Eric Blake.
9330
9331         Properly quote AC_CHECK_DECLS' 4th argument.
9332         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9333         argument.
9334         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9335         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9336         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9337         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9338         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9339         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9341         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9342         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9343         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9344         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9345         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9346         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9347         * m4/isinf.m4 (gl_ISINF): Likewise.
9348         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9349         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9350         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9351         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9352         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9354         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9355         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9356         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9357         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9358         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9361         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9363         Reported by Eric Blake.
9364
9365         Properly quote AC_CHECK_DECL's 4th argument.
9366         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9367         argument.
9368         * m4/argp.m4 (gl_ARGP): Likewise.
9369         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9370         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9371         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9372         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9373         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9374         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9376         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9377         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9378         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9379         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9380         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9381         Reported by Eric Blake.
9382
9383 2011-09-14  Eric Blake  <eblake@redhat.com>
9384
9385         opendir: avoid compile warning
9386         * lib/opendir.c (includes): Always include errno.h.
9387         Reported by Tatsuro MATSUOKA.
9388
9389 2011-09-14  Jim Meyering  <meyering@redhat.com>
9390
9391         maint.mk: sc_tight_scope: propagate failure from sub-make
9392         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9393         Reported by Martin von Gagern.
9394
9395 2011-09-13  Bruno Haible  <bruno@clisp.org>
9396
9397         tempname: Support for MSVC.
9398         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9399         MSVC.
9400         * modules/tempname (Depends-on): Add fcntl-h.
9401
9402 2011-09-13  Bruno Haible  <bruno@clisp.org>
9403
9404         sys_time: Support for MSVC.
9405         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9406         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9407         include <winsock2.h>.
9408         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9409         function declarations that collide with POSIX.
9410         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9411         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9412
9413 2011-09-13  Bruno Haible  <bruno@clisp.org>
9414
9415         stat: Support for MSVC.
9416         * lib/stat.c: Include pathmax.h.
9417         * modules/stat (Depends-on): Add pathmax.
9418
9419         pathmax: Support for native Windows.
9420         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9421
9422 2011-09-12  Bruno Haible  <bruno@clisp.org>
9423
9424         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9425         * lib/dirent.in.h (struct dirent): New type.
9426         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9427         DT_WHT): New macros.
9428         (DIR): New type.
9429         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9430         (readdir, rewinddir): New declarations.
9431         * lib/dirent-private.h: New file.
9432         * lib/opendir.c: New file.
9433         * lib/readdir.c: New file.
9434         * lib/rewinddir.c: New file.
9435         * lib/closedir.c: New file.
9436         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9437         * m4/opendir.m4: New file.
9438         * m4/readdir.m4: New file.
9439         * m4/rewinddir.m4: New file.
9440         * m4/closedir.m4: New file.
9441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9442         REPLACE_CLOSEDIR here.
9443         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9444         readdir, rewinddir are declared.
9445         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9446         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9447         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9448         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9449         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9450         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9451         * modules/opendir: New file.
9452         * modules/readdir: New file.
9453         * modules/rewinddir: New file.
9454         * modules/closedir: New file.
9455         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9456         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9457         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9458         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9459         * NEWS: Mention the 'fchdir' change.
9460
9461 2011-09-11  Bruno Haible  <bruno@clisp.org>
9462
9463         asm-underscore.m4: Support for MSVC.
9464         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9465         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9466
9467 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9468
9469         Doc about crypt functions.
9470         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9471         needing for _GNU_SOURCE to get crypt.
9472         * doc/posix-functions/encrypt.texi: Likewise.
9473         * doc/posix-functions/setkey.texi: Likewise.
9474
9475 2011-09-11  Bruno Haible  <bruno@clisp.org>
9476
9477         doc: Update regarding MSVC 9.
9478         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9479         tested".
9480         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9481         * doc/posix-headers/*.texi: Likewise.
9482         * doc/pastposix-functions/*.texi: Likewise.
9483         * doc/glibc-functions/*.texi: Likewise.
9484         * doc/glibc-headers/*.texi: Likewise.
9485
9486 2011-09-11  Bruno Haible  <bruno@clisp.org>
9487
9488         unistd et al.: Don't assume <unistd.h> exists.
9489         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9490         does not exist.
9491         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9492         exist. But include <stdlib.h>.
9493         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9494         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9495         symlink() does not exist.
9496         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9497         include <io.h> instead.
9498         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9499         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9500         include <direct.h> instead.
9501         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9503         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9504         <io.h> instead.
9505         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9506         correctly if the system does not have hard links.
9507         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9508         <direct.h> instead.
9509         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9510         it when looking for function declarations.
9511         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9512         <direct.h> and <io.h> instead.
9513         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9514
9515 2011-09-11  Bruno Haible  <bruno@clisp.org>
9516
9517         strcase: Support for MSVC.
9518         * modules/strcase (Status, Notice): Remove obsoletion mark.
9519         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9520         * doc/posix-functions/strncasecmp.texi: Likewise.
9521
9522         strings: Don't assume <strings.h> exists.
9523         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9524         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9525         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9526         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9527
9528 2011-09-11  Bruno Haible  <bruno@clisp.org>
9529
9530         dirent: Don't assume <dirent.h> exists.
9531         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9532         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9533         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9534         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9535
9536 2011-09-11  Bruno Haible  <bruno@clisp.org>
9537
9538         Fix wint_t on MSVC.
9539         * lib/wchar.in.h (wint_t): On MSVC, override it.
9540         * lib/wctype.in.h (wint_t): Likewise.
9541         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9542         MSVC.
9543         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9544         * doc/posix-headers/wctype.texi: Likewise.
9545
9546 2011-09-11  Bruno Haible  <bruno@clisp.org>
9547
9548         sys_types: Fix typo.
9549         * lib/sys_types.in.h: Fix typo in comment.
9550         Reported by Paul Eggert.
9551
9552         Support for MSVC compiler: Ensure size_t gets defined.
9553         * modules/strings (Depends-on): Add 'sys_types'.
9554         * modules/sys_uio (Depends-on): Likewise.
9555         * lib/sys_uio.in.h: Update comment.
9556
9557         C++ tests for module 'sys_types'.
9558         * modules/sys_types-c++-tests: New file.
9559         * tests/test-sys_types-c++.cc: New file.
9560
9561         Tests for module 'sys_types'.
9562         * modules/sys_types-tests: New file.
9563         * tests/test-sys_types.c: New file.
9564
9565         New module 'sys_types'.
9566         * lib/sys_types.in.h: New file.
9567         * m4/sys_types_h.m4: New file.
9568         * modules/sys_types: New file.
9569         * doc/posix-headers/sys_types.texi: Mention the new module and the
9570         size_t problem on MSVC 9.
9571
9572 2011-09-11  Bruno Haible  <bruno@clisp.org>
9573
9574         Support for MSVC compiler: Avoid division by a literal 0.
9575         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9576         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9577         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9578         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9579         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9580         * tests/infinity.h: New file.
9581         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9582         on MSVC.
9583         * tests/test-ceilf1.c: Include infinity.h.
9584         (main): Use Infinityf.
9585         * tests/test-ceil1.c: Include infinity.h.
9586         (main): Use Infinityd.
9587         * tests/test-ceill.c: Include infinity.h.
9588         (main): Use Infinityl.
9589         * tests/test-dprintf-posix.c: Include infinity.h.
9590         (test_function): Use Infinityd.
9591         * tests/test-floorf1.c: Include infinity.h.
9592         (main): Use Infinityf.
9593         * tests/test-floor1.c: Include infinity.h.
9594         (main): Use Infinityd.
9595         * tests/test-floorl.c: Include infinity.h.
9596         (main): Use Infinityl.
9597         * tests/test-fprintf-posix.c: Include infinity.h.
9598         (test_function): Use Infinityd.
9599         * tests/test-frexp.c: Include infinity.h.
9600         (main): Use Infinityd.
9601         * tests/test-frexpl.c: Include infinity.h.
9602         (main): Use Infinityl.
9603         * tests/test-isfinite.c: Include infinity.h.
9604         (test_isfinitef): Use Infinityf.
9605         (test_isfinited): Use Infinityd.
9606         (test_isfinitel): Use Infinityl.
9607         * tests/test-isinf.c: Include infinity.h.
9608         (test_isinff): Use Infinityf.
9609         (test_isinfd): Use Infinityd.
9610         (test_isinfl): Use Infinityl.
9611         * tests/test-isnan.c: Include infinity.h.
9612         (test_float): Use Infinityf.
9613         (test_double): Use Infinityd.
9614         (test_long_double): Use Infinityl.
9615         * tests/test-isnanf.h: Include infinity.h.
9616         (main): Use Infinityf.
9617         * tests/test-isnand.h: Include infinity.h.
9618         (main): Use Infinityd.
9619         * tests/test-isnanl.h: Include infinity.h.
9620         (main): Use Infinityl.
9621         * tests/test-ldexpl.c: Include infinity.h.
9622         (main): Use Infinityl.
9623         * tests/test-printf-posix.h: Include infinity.h.
9624         (test_function): Use Infinityd.
9625         * tests/test-roundf1.c: Include infinity.h.
9626         (main): Use Infinityf.
9627         * tests/test-round1.c: Include infinity.h.
9628         (main): Use Infinityd.
9629         * tests/test-roundl.c: Include infinity.h.
9630         (main): Use Infinityl.
9631         * tests/test-signbit.c: Include infinity.h.
9632         (test_signbitf): Use Infinityf.
9633         (test_signbitd): Use Infinityd.
9634         (test_signbitl): Use Infinityl.
9635         * tests/test-snprintf-posix.h: Include infinity.h.
9636         (test_function): Use Infinityd, Infinityl.
9637         * tests/test-sprintf-posix.h: Include infinity.h.
9638         (test_function): Use Infinityd, Infinityl.
9639         * tests/test-truncf1.c: Include infinity.h.
9640         (main): Use Infinityf.
9641         * tests/test-trunc1.c: Include infinity.h.
9642         (main): Use Infinityd.
9643         * tests/test-truncl.c: Include infinity.h.
9644         (main): Use Infinityl.
9645         * tests/test-vasnprintf-posix.c: Include infinity.h.
9646         (test_function): Use Infinityd, Infinityl.
9647         * tests/test-vasprintf-posix.c: Include infinity.h.
9648         (test_function): Use Infinityd, Infinityl.
9649         * modules/ceilf-tests (Files): Add tests/infinity.h.
9650         * modules/ceil-tests (Files): Likewise.
9651         * modules/ceill-tests (Files): Likewise.
9652         * modules/dprintf-posix-tests (Files): Likewise.
9653         * modules/floorf-tests (Files): Likewise.
9654         * modules/floor-tests (Files): Likewise.
9655         * modules/floorl-tests (Files): Likewise.
9656         * modules/fprintf-posix-tests (Files): Likewise.
9657         * modules/frexp-tests (Files): Likewise.
9658         * modules/frexp-nolibm-tests (Files): Likewise.
9659         * modules/frexpl-tests (Files): Likewise.
9660         * modules/frexpl-nolibm-tests (Files): Likewise.
9661         * modules/isfinite-tests (Files): Likewise.
9662         * modules/isinf-tests (Files): Likewise.
9663         * modules/isnan-tests (Files): Likewise.
9664         * modules/isnanf-tests (Files): Likewise.
9665         * modules/isnanf-nolibm-tests (Files): Likewise.
9666         * modules/isnand-tests (Files): Likewise.
9667         * modules/isnand-nolibm-tests (Files): Likewise.
9668         * modules/isnanl-tests (Files): Likewise.
9669         * modules/isnanl-nolibm-tests (Files): Likewise.
9670         * modules/ldexpl-tests (Files): Likewise.
9671         * modules/printf-posix-tests (Files): Likewise.
9672         * modules/roundf-tests (Files): Likewise.
9673         * modules/round-tests (Files): Likewise.
9674         * modules/roundl-tests (Files): Likewise.
9675         * modules/signbit-tests (Files): Likewise.
9676         * modules/snprintf-posix-tests (Files): Likewise.
9677         * modules/sprintf-posix-tests (Files): Likewise.
9678         * modules/truncf-tests (Files): Likewise.
9679         * modules/trunc-tests (Files): Likewise.
9680         * modules/truncl-tests (Files): Likewise.
9681         * modules/vasnprintf-posix-tests (Files): Likewise.
9682         * modules/vasprintf-posix-tests (Files): Likewise.
9683         * modules/vdprintf-posix-tests (Files): Likewise.
9684         * modules/vfprintf-posix-tests (Files): Likewise.
9685         * modules/vprintf-posix-tests (Files): Likewise.
9686         * modules/vsnprintf-posix-tests (Files): Likewise.
9687         * modules/vsprintf-posix-tests (Files): Likewise.
9688         * modules/xprintf-posix-tests (Files): Likewise.
9689
9690 2011-09-11  Bruno Haible  <bruno@clisp.org>
9691
9692         Ensure pid_t gets defined.
9693         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9694         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9695         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9696         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9697         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9698         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9699         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9700         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9701         * tests/test-fcntl-h.c: Check that pid_t is defined.
9702         * tests/test-sched.c: Likewise.
9703         * tests/test-termios.c: Likewise.
9704         * tests/test-time.c: Likewise.
9705         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9706         * doc/posix-headers/signal.texi: Likewise.
9707         * doc/posix-headers/sys_types.texi: Likewise.
9708         * doc/posix-headers/time.texi: Likewise.
9709
9710 2011-09-11  Bruno Haible  <bruno@clisp.org>
9711
9712         acl: Fix compilation on Solaris 10 (older version).
9713         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9714         of ACE_EVERYONE.
9715         * lib/set-mode-acl.c (qset_acl): Likewise.
9716         Reported by Christian Jullien <eligis@orange.fr>.
9717
9718 2011-09-10  Bruno Haible  <bruno@clisp.org>
9719
9720         iconv, unsetenv: Add support for MSVC compiler.
9721         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9723
9724 2011-09-10  Bruno Haible  <bruno@clisp.org>
9725
9726         *printf: Add support for MSVC compiler.
9727         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9728         handles the exception caused by the %n directive. When cross-compiling,
9729         guess no on native Windows.
9730         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9731         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9732         emulate it through vsnprintf.
9733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9734         * doc/posix-functions/dprintf.texi: Update documentation regarding
9735         MSVC 9.
9736         * doc/posix-functions/fprintf.texi: Likewise.
9737         * doc/posix-functions/printf.texi: Likewise.
9738         * doc/posix-functions/snprintf.texi: Likewise.
9739         * doc/posix-functions/sprintf.texi: Likewise.
9740         * doc/posix-functions/swprintf.texi: Likewise.
9741         * doc/posix-functions/vdprintf.texi: Likewise.
9742         * doc/posix-functions/vfprintf.texi: Likewise.
9743         * doc/posix-functions/vprintf.texi: Likewise.
9744         * doc/posix-functions/vsnprintf.texi: Likewise.
9745         * doc/posix-functions/vsprintf.texi: Likewise.
9746         * doc/glibc-functions/asprintf.texi: Likewise.
9747         * doc/glibc-functions/obstack_printf.texi: Likewise.
9748         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9749         * doc/glibc-functions/vasprintf.texi: Likewise.
9750
9751 2011-09-10  Bruno Haible  <bruno@clisp.org>
9752
9753         nocrash: Add support for native Windows.
9754         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9755
9756 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9757             Bruno Haible  <bruno@clisp.org>
9758
9759         absolute-header, include-next: Add support for MSVC compiler.
9760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9761         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9762         directory separator in #line directives.
9763         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9764         recognize also backslash as directory separator in #line directives.
9765
9766 2011-09-08  Jim Meyering  <meyering@redhat.com>
9767
9768         maint.mk: mark the post-release commit log with "maint: " prefix
9769         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9770         one-line commit-log summary.
9771
9772 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9773             Bruno Haible  <bruno@clisp.org>
9774
9775         Doc about crypt functions.
9776         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9777         systems.
9778         * doc/posix-functions/encrypt.texi: Likewise.
9779         * doc/posix-functions/setkey.texi: Likewise.
9780
9781 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9782
9783         * lib/gc.h: Fix copyright header.
9784
9785 2011-09-07  Bruno Haible  <bruno@clisp.org>
9786
9787         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9788         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9789         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9790
9791 2011-09-07  Bruno Haible  <bruno@clisp.org>
9792
9793         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9794         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9795         * lib/freopen.c: Likewise.
9796         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9797         * lib/lstat.c: Likewise.
9798         * lib/stat.c: Likewise.
9799         * lib/open.c: Use different syntax for include of <fcntl.h>.
9800         * lib/openat.c: Include fcntl.h again, explicitly.
9801
9802 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9803
9804         parse-datetime: document the newly accepted format
9805         * doc/parse-datetime.texi (Combined date and time of day items):
9806         New section.
9807
9808 2011-09-06  Bruno Haible  <bruno@clisp.org>
9809
9810         acl: Fix a test failure on newer Solaris 10 with ZFS.
9811         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9812         ENOSYS as no ACL.
9813         Reported by Jim Meyering.
9814
9815 2011-09-06  Bruno Haible  <bruno@clisp.org>
9816
9817         acl: Update for AIX >= 5.3 with NFS.
9818         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9819         ENOSYS as no ACL.
9820
9821         acl: Fix a test failure on AIX >= 5.3 with NFS.
9822         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9823         as no ACL.
9824
9825 2011-09-06  Bruno Haible  <bruno@clisp.org>
9826
9827         acl: Fix a test failure on IRIX 6.5 with NFS.
9828         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9829         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9830         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9831         * lib/copy-acl.c (qcopy_acl): Likewise.
9832
9833 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         openat: port to AIX 7.1 with large files
9836         AIX 7.1 does a "#define openat open64at" if large files are in use,
9837         so we can't simply #undef openat.  Use the orig_openat trick (similar
9838         to orig_open in lib/open.c) to work around the problem.  Problem
9839         reported by Kevin Brott for GNU tar, in the thread containing
9840         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9841         * lib/openat.c (__need_system_fcntl_h): Define first.
9842         Include <fcntl.h> and <sys/types.h> before undefining.
9843         (orig_openat) [HAVE_OPENAT]: New inline function.
9844         (openat) [HAVE_OPENAT]: Do not undef.
9845         (rpl_openat): Use orig_openat, not openat.
9846
9847 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9848             Bruno Haible  <bruno@clisp.org>
9849
9850         acl: Avoid errors on NonStop Kernel.
9851         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9852         ENOTSUP errors.
9853
9854 2011-09-05  Bruno Haible  <bruno@clisp.org>
9855
9856         acl: Clean up Solaris code.
9857         * lib/acl-internal.h: Remove no-op #if.
9858         * lib/file-has-acl.c: Likewise.
9859         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9860         * lib/copy-acl.c (qcopy_acl): Likewise.
9861
9862 2011-09-05  Bruno Haible  <bruno@clisp.org>
9863
9864         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9865         binaries built on the original Solaris 10.
9866         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9867         trivial.
9868
9869 2011-09-05  Bruno Haible  <bruno@clisp.org>
9870
9871         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9872         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9873         10.
9874         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9875         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9876         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9877         instead of acl_get, facl_get, acl_set, facl_set.
9878
9879 2011-09-05  Bruno Haible  <bruno@clisp.org>
9880
9881         copy-file: Try unit tests on more file systems.
9882         * tests/test-copy-file-1.sh: New file.
9883         * tests/test-copy-file-2.sh: New file.
9884         * modules/copy-file-tests (Files): Add them.
9885         (Makefile.am): Add them to TESTS.
9886
9887         acl: Try unit tests on more file systems.
9888         * tests/test-file-has-acl-1.sh: New file.
9889         * tests/test-file-has-acl-2.sh: New file.
9890         * tests/test-set-mode-acl-1.sh: New file.
9891         * tests/test-set-mode-acl-2.sh: New file.
9892         * tests/test-copy-acl-1.sh: New file.
9893         * tests/test-copy-acl-2.sh: New file.
9894         * modules/acl-tests (Files): Add them.
9895         (Makefile.am): Add them to TESTS.
9896
9897 2011-09-04  Bruno Haible  <bruno@clisp.org>
9898
9899         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9900         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9901         10.
9902         (OLD_ALLOW, OLD_DENY): New macros.
9903         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9904         ACE_ACCESS_ALLOWED_ACE_TYPE.
9905         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9906         ACE_ACCESS_DENIED_ACE_TYPE.
9907         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9908         (NEW_ACE_EXECUTE): Fix value.
9909         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9910         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9911         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9912         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9913         NEW_ACE_SYNCHRONIZE): New macros.
9914         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9915         instead of acl_fromtext, acl_set, facl_set.
9916         Fixes a coreutils/tests/cp/perm failure.
9917
9918 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         openat: test for fstatat (..., 0) bug
9921         Further testing with tar suggests that fstatat (..., 0)
9922         does not work in general, on AIX 7.1; see
9923         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9924         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9925         replacement fstatat (which is what older AIX releases were using
9926         anyway).
9927         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9928         use is now changed to orig_fstatat.  This was probably the right
9929         thing to do anyway.
9930         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9931         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9932         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9933         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9934         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9935         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9936         if the bug is found.
9937
9938         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9939         This tests for another fstatat bug on AIX 7.1:
9940         fstatat (AT_FDCWD, ..., 0) does not work.  See
9941         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9942         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9943         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9944         (rpl_fstatat): Adjust so that it works around either (or both)
9945         bugs if present.
9946         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9947
9948 2011-09-03  Karl Berry  <karl@gnu.org>
9949
9950         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9951         in index entries.
9952
9953 2011-09-02  Bruno Haible  <bruno@clisp.org>
9954
9955         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9956         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9957         values of AR, ARFLAGS, RANLIB.
9958         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9959
9960 2011-09-02  Bruno Haible  <bruno@clisp.org>
9961
9962         Find 'ar' program that fits with --host argument.
9963         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9964
9965 2011-09-02  Bruno Haible  <bruno@clisp.org>
9966
9967         tests: init.sh: Support any non-GNU diff.
9968         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9969         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9970         Solaris 8.
9971
9972 2011-09-02  Bruno Haible  <bruno@clisp.org>
9973
9974         tests: init.sh: work also with any non-GNU diff that supports -u
9975         * tests/init.sh: Relax check for diff -u support.
9976         Rather than checking for GNU diff via --version, simply check
9977         for support for -u itself.  Useful at least on OpenBSD 4.9,
9978         AIX 7.1, IRIX 6.5, and Solaris 10.
9979
9980 2011-09-01  Bruno Haible  <bruno@clisp.org>
9981
9982         strtoimax, strtoumax: Document problem on HP-UX 11.
9983         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9984         * doc/posix-functions/strtoumax.texi: Likewise.
9985
9986 2011-09-01  Bruno Haible  <bruno@clisp.org>
9987
9988         strtoumax: Avoid link error on OSF/1 with DTK cc.
9989         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9990         defined as a function.
9991         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9992         strtoumax is defined, not whether it is declared.
9993
9994 2011-09-01  Bruno Haible  <bruno@clisp.org>
9995
9996         strtoimax: Avoid link error on OSF/1 with DTK cc.
9997         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9998         defined as a function.
9999         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10000         strtoimax is defined, not whether it is declared.
10001
10002 2011-09-01  Bruno Haible  <bruno@clisp.org>
10003
10004         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10005         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10006         as a function.
10007         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10008         whether it is declared.
10009
10010 2011-09-01  Bruno Haible  <bruno@clisp.org>
10011
10012         imaxabs: Avoid link error on OSF/1 with DTK cc.
10013         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10014         as a function.
10015         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10016         whether it is declared.
10017
10018 2011-09-01  Bruno Haible  <bruno@clisp.org>
10019
10020         Tests for module 'strtoumax'.
10021         * modules/strtoumax-tests: New file.
10022         * tests/test-strtoumax.c: New file.
10023
10024         Tests for module 'strtoimax'.
10025         * modules/strtoimax-tests: New file.
10026         * tests/test-strtoimax.c: New file.
10027
10028         Tests for module 'imaxdiv'.
10029         * modules/imaxdiv-tests: New file.
10030         * tests/test-imaxdiv.c: New file.
10031
10032         Tests for module 'imaxabs'.
10033         * modules/imaxabs-tests: New file.
10034         * tests/test-imaxabs.c: New file.
10035
10036 2011-09-01  Bruno Haible  <bruno@clisp.org>
10037
10038         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10040         pthread_create.
10041
10042 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10043
10044         openat: work around AIX 7.1 fstatat issue
10045         This should fix the problem that was not properly fixed
10046         in the previous change, dated 2011-08-30.
10047         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10048         __need_system_stat_h defined.
10049         (orig_fstatat) [HAVE_FSTATAT]: New function.
10050         (rpl_fstatat): Go back to the old way of doing things,
10051         except call orig_fstatat instead of fstatat.
10052         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10053         Remove unnecessary check whether fstatat fills in st_size etc.
10054
10055 2011-09-01  Bruno Haible  <bruno@clisp.org>
10056
10057         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10058         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10059         just include the system's header.
10060
10061 2011-08-31  Jim Meyering  <meyering@redhat.com>
10062
10063         tests: avoid spurious assertion failure in test-float.c on ppc64
10064         * tests/test-float.c (test_long_double): Comment out an assertion,
10065         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10066         with gcc-4.4.4.
10067
10068         maint: indent with spaces, not TABs
10069         I need to get in the habit of running gnulib's "make check".
10070         Both of these would have been caught.
10071         * m4/largefile.m4: Indent with spaces, not TABs.
10072         * lib/parse-datetime.y (iso_8601_time): Likewise.
10073         Spotted by Pádraig Brady.
10074
10075         test-parse-datetime.c: accommodate a relatively strict gcc warning
10076         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10077         to avoid a warning from gcc's -Werror=missing-declarations.
10078         Insert a few spaces-before-funcall-parenthesis.
10079
10080 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10081
10082         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10083         The parser now accepts ISO 8601 date-time strings with "T" as the
10084         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10085         with a space between the date and time strings.  Now it also parses
10086         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10087         variants like "2004-02-29T16:21:42.333-07:00"
10088         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10089         of day representation using the 'T' separator character.
10090         * doc/parse-datetime.texi (General date syntax): replace use of
10091         deprecated --iso-8601 option with --rfc-3339 in example of date
10092         command output formats that can be parsed.
10093         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10094         lib/parse-datetime.y.
10095         (gmt_offset): New function.
10096         (main): Add additional test cases to validate ISO8601 extended
10097         date and time of day parsing.
10098
10099 2011-08-31  Bruno Haible  <bruno@clisp.org>
10100
10101         freopen: Documentation.
10102         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10103         name.
10104         Reported by Claudio Bley <claudio.bley@gmail.com>.
10105
10106 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10107
10108         freopen: Don't crash if the filename argument is NULL.
10109         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10110         NULL.
10111
10112 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10113
10114         openat: work around AIX 7.1 fstatat bug
10115         Problem reported by Kevin Brott for GNU tar, in the thread containing
10116         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10117         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10118         FSTATAT_ST_SIZE_ETC_BROKEN.
10119         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10120         rpl_fstatat.
10121         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10122         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10123         AC_CHECK_FUNCS_ONCE for fstatat.
10124         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10125         fchmodat, mkdirat, openat and unlinkat.
10126
10127 2011-08-30  Bruno Haible  <bruno@clisp.org>
10128
10129         Avoid endless recursions if config.h includes some header files.
10130         * lib/fopen.c (__need_FILE): Define already before including config.h.
10131         * lib/freopen.c (__need_FILE): Likewise.
10132         * lib/open.c (__need_system_fcntl_h): Likewise.
10133         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10134         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10135         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10136
10137 2011-08-25  Karl Berry  <karl@gnu.org>
10138
10139         * config/srclist.txt (ylwrap): new try.
10140         * build-aux/ylwrap: new file.
10141
10142 2011-08-23  Bruno Haible  <bruno@clisp.org>
10143
10144         tmpdir: Use a good default directory on native Windows.
10145         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10146         (P_tmpdir): Default to _P_tmpdir on native Windows.
10147         (path_search): On native Windows, try the value returned by GetTempPath
10148         before trying P_tmpdir.
10149         * modules/tmpdir (Depends-on): Add pathmax.
10150         Suggested by John Darrington <john@darrington.wattle.id.au>.
10151
10152 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10153
10154         doc: fix typo in README-release
10155         * top/README-release: Capitalize first word of a sentence.
10156
10157 2011-08-19  Jim Meyering  <meyering@redhat.com>
10158
10159         fts: do not exhaust memory when processing million-entry directories
10160         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10161         directory would require about 256*N bytes of memory.  Thus, it was
10162         easy to construct a directory too large to be processed by any of
10163         those tools.  With this change, fts' maximum memory utilization is
10164         now limited to around 30MB.
10165         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10166         (fts_read): When we've processed the final entry (i.e., when
10167         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10168         using the parent entry to read any remaining entries.  Dispatch
10169         depending on what fts_build returns:
10170         - NULL+stop, aka failure: stop
10171         - NULL otherwise: move up in the dir hierarchy
10172         - non-NULL: handle this new entry
10173         (fts_build): Declare and use new local, continue_readdir.
10174         Prepare to be called from fts_read, when the entries
10175         from a partially-read directory have just been exhausted.
10176         In that case, we'll skip the opendir and instead use the parent's
10177         fts_dirp and derive dir_fd from that.
10178         Finally, in the readdir loop, if we read max_entries entries,
10179         exit the loop ensuring *not* to call closedir.  This is required
10180         so that fts_dirp can be reused on a subsequent call.
10181         Prompted by Ben England's report of memory exhaustion in find
10182         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10183
10184         maint: fts: move decl of `dp' down into while loop; split a long line
10185         * lib/fts.c (fts_build): No semantic change.
10186
10187         fts: add/use new struct member, fts_dirp
10188         We are about to use this to manage any directory with
10189         too many entries to read all of them into memory at once.
10190         To do that, we'll need to save the DIR* pointer in each
10191         affected FTSENT struct.
10192         * lib/fts_.h: Include <dirent.h>.
10193         (struct FTSENT) [fts_dirp]: New member.
10194         * lib/fts.c (closedir_and_clear): Define.
10195         Use it in place of closedir so that we are sure to
10196         clear the new fts_dirp member when done with it.
10197         (fts_alloc): Initialize the new member.
10198         (fts_lfree): Free, if needed.
10199
10200         maint: fts: give __opendir2 a new parameter and rename
10201         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10202         than surreptitiously using sole caller's "dir_fd".
10203         (fts_opendir): Rename from __opendir2.
10204
10205         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10206         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10207
10208         maint: fts.c: correct off-by-one indentation
10209         * lib/fts.c (fts_build): Correct indentation, change style
10210         of a couple of block comments, and bracing style.
10211
10212         maint: fts.c: move __opendir2 #define "up" out of function body
10213         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10214
10215         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10216         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10217         out for a long time and besides was useful only on BSD systems.
10218
10219 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10220
10221         regex: port to Stratus OpenVOS
10222         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10223         define to empty, rather than attempting nonportable optimizations.
10224         Problem reported by Paul Green in:
10225         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10226         and fix suggested by Eric Blake in:
10227         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10228
10229 2011-08-17  Eric Blake  <eblake@redhat.com>
10230
10231         getcwd: fix test failures on mingw
10232         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10233         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10234         test if long directory cannot be created, and allow mingw errno.
10235
10236         getcwd-lgpl: fix m4 to match relaxed test for BSD
10237         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10238         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10239         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10240         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10241         signature problem.
10242
10243         getcwd: fix compilation on mingw64
10244         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10245         getcwd.
10246         Reported by Marc-André Lureau.
10247
10248         pipe2: silence compiler warning
10249         * lib/pipe2.c (pipe2): Hide label if it is not used.
10250
10251 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10252
10253         relocatable-prog: fix link error
10254         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10255         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10256         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10257         into modules/relocatable-lib without noticing that
10258         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10259         also needs to build relocatable.c.
10260
10261 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10265         shell code: it contained a 'break' that was not in a loop.
10266         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10267         via a shell-language loop; this may have been true in old Autoconf
10268         versions, but it's not true in Autoconf 2.68.  I found this bug
10269         when testing coreutils git on Solaris 8, whose shell complains
10270         about the syntax error.
10271
10272 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10273
10274         * lib/base64.c: Fix comment to reference RFC 4648.
10275         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10276         <gvtulder@gmail.com>.
10277
10278 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10281
10282         po/Makefile.in.in: fix make -q problem
10283         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10284         rule, since there's no file named 'check-macro-version' and its
10285         use as a file breaks make -q.
10286         (all): Don't depend on check-macro-version.
10287         (CHECK_MACRO_VERSION): New macro.
10288         (stamp-po): Use it.
10289
10290         configmake: fix make -q problem
10291         * modules/configmake (configmake.h): Update configmake.h's time stamp
10292         even if the file does not change.  Otherwise, 'make -q' fails.
10293         Problem reported by Simon Josefsson in
10294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10295
10296 2011-08-11  Jim Meyering  <meyering@redhat.com>
10297
10298         git-version-gen: correct the advice in a comment
10299         * build-aux/git-version-gen: Correct comment.
10300         Don't recommend to list .tarball-version in .gitignore.
10301
10302 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10303
10304         base64: fix off-by-one buffer size bug
10305         Problem and (trivial) fix reported by Gijs van Tulder in
10306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10307         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10308         * tests/test-base64.c (main): Catch the bug.
10309
10310 2011-08-10  Eric Blake  <eblake@redhat.com>
10311
10312         closein: correct comments
10313         * lib/closein.c (close_stdin): Improve comments.
10314
10315 2011-08-09  Bruno Haible  <bruno@clisp.org>
10316
10317         More tests for 'fseeko'.
10318         * tests/test-fseeko3.c: New file, from Eric Blake.
10319         * tests/test-fseeko3.sh: New file.
10320         * modules/fseeko-tests (Files): Add them.
10321         (TESTS): Add test-fseeko3.sh.
10322         (check_PROGRAMS): Add test-fseeko3.
10323
10324 2011-08-09  Eric Blake  <eblake@redhat.com>
10325
10326         fseeko: remove unneeded hack
10327         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10328
10329         fseeko: fix bug on glibc
10330         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10331         Reported by John W. Eaton.
10332
10333 2011-08-08  Bruno Haible  <bruno@clisp.org>
10334
10335         unictype/base: Fix interoperability with preinstalled libunistring.
10336         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10337         Reported by Simon Josefsson.
10338
10339 2011-08-08  Bruno Haible  <bruno@clisp.org>
10340
10341         iswblank: Detect declaration correctly.
10342         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10343         AC_CHECK_DECLS invocation.
10344
10345 2011-08-08  Bruno Haible  <bruno@clisp.org>
10346
10347         tcgetsid: Detect declaration correctly.
10348         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10349         AC_CHECK_DECLS invocation.
10350         Reported by Simon Josefsson.
10351
10352 2011-08-08  Eric Blake  <eblake@redhat.com>
10353
10354         largefile: fix typo that regressed large file support
10355         * modules/largefile (configure.ac-early): Fix section name.
10356
10357 2011-08-06  Karl Berry  <karl@gnu.org>
10358
10359         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10360         a separate module.
10361
10362 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10363
10364         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10365         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10366         get prototype for free.
10367
10368 2011-08-04  Bruno Haible  <bruno@clisp.org>
10369
10370         Tests for module 'pathmax'.
10371         * modules/pathmax-tests: New file.
10372         * tests/test-pathmax.c: New file.
10373
10374         canonicalize-lgpl: Support larger filenames on the Hurd.
10375         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10376         Reported by Paul Eggert.
10377
10378         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10379         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10380         * lib/chdir-long.h: Include pathmax.h.
10381         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10382         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10383         (PATH_MAX): Remove code that is done by pathmax.h.
10384         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10385         * lib/tmpfile.c: Add a comment.
10386         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10387         * modules/chdir-long (Depends-on): Add pathmax.
10388         * modules/getcwd (Depends-on): Add pathmax.
10389         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10390         is not defined.
10391         * doc/posix-headers/limits.texi: Mention the pathmax module.
10392         * NEWS: Mention the change.
10393
10394 2011-08-02  Bruno Haible  <bruno@clisp.org>
10395
10396         pthread_sigmask: Actually use results of gl_THREADLIB.
10397         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10398         gl_THREADLIB, not gl_[]THREADLIB.
10399         Reported by Eric Blake.
10400
10401 2011-08-02  Jim Meyering  <meyering@redhat.com>
10402
10403         maint.mk: relax the default _gl_TS_function_match regexp
10404         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10405         space between function name and "(" in an "extern" declaration.
10406         That would fail to match a decl with no space there: extern void foo();
10407
10408 2011-07-31  Iain Nicol  <iain@thenicols.net>
10409
10410         git-version-gen: document that EXTRA_DIST must include .version
10411         * build-aux/git-version-gen: In the how-to-use comment, document
10412         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10413         will fail when run from an unpacked distribution tarball.
10414
10415 2011-08-01  Bruno Haible  <bruno@clisp.org>
10416
10417         wctype-h: Fix last change.
10418         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10419         REPLACE_TOWLOWER to 0.
10420         Reported by Sam Steingold <sds@gnu.org>.
10421
10422 2011-07-31  Bruno Haible  <bruno@clisp.org>
10423
10424         frexpl: Update autoconf test.
10425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10426         according to changes of 2011-06-20.
10427
10428 2011-07-31  Bruno Haible  <bruno@clisp.org>
10429
10430         sys_utsname: Add support for Minix.
10431         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10432         <sys/utsname.h>.
10433         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10434         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10435
10436 2011-07-31  Bruno Haible  <bruno@clisp.org>
10437
10438         strings: Add support for Minix.
10439         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10440         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10441         * doc/posix-headers/strings.texi: Document the Minix problem.
10442
10443 2011-07-31  Bruno Haible  <bruno@clisp.org>
10444
10445         wctype-h: Add support for Minix.
10446         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10447         REPLACE_TOWLOWER.
10448         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10449         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10450         REPLACE_ISWCNTRL.
10451
10452 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10455         This is a performance improvement for 64-bit hosts: it causes the
10456         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10457
10458 2011-07-31  Bruno Haible  <bruno@clisp.org>
10459
10460         stdioext: Add support for Minix.
10461         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10462         * lib/fpurge.c (fpurge): Likewise.
10463         * lib/freadahead.c (freadahead): Likewise.
10464         * lib/freadable.c (freadable): Likewise.
10465         * lib/freading.c (freading): Likewise.
10466         * lib/freadptr.c (freadptr): Likewise.
10467         * lib/freadseek.c (freadptrinc): Likewise.
10468         * lib/fseeko.c (rpl_fseeko): Likewise.
10469         * lib/fseterr.c (fseterr): Likewise.
10470         * lib/fwritable.c (fwritable): Likewise.
10471         * lib/fwriting.c (fwriting): Likewise.
10472         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10473         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10474
10475 2011-07-31  Bruno Haible  <bruno@clisp.org>
10476
10477         errno: Port to Minix.
10478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10479         ECONNABORTED are defined.
10480         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10481         GNULIB_defined_ECONNABORTED): New macros.
10482         * lib/strerror-override.h (strerror_override): Test also
10483         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10484         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10485         ECONNABORTED.
10486         * doc/posix-headers/errno.texi: Mention the Minix problem.
10487
10488 2011-07-31  Bruno Haible  <bruno@clisp.org>
10489
10490         Work around declaration collisions on Minix.
10491         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10492         defined, set REPLACE_MBSINIT.
10493         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10494         defined, set REPLACE_MBRTOWC.
10495         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10496         set REPLACE_MBRLEN.
10497         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10498         defined, set REPLACE_MBSRTOWCS.
10499         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10500         defined, set REPLACE_WCRTOMB.
10501         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10502         defined, set REPLACE_WCSRTOMBS.
10503
10504 2011-07-31  Bruno Haible  <bruno@clisp.org>
10505
10506         Add support for Minix with ACK compiler.
10507         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10508         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10509         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10510
10511 2011-07-31  Bruno Haible  <bruno@clisp.org>
10512
10513         Documentation about Minix.
10514         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10515         * doc/glibc-headers/*.texi: Likewise.
10516         * doc/posix-functions/*.texi: Likewise.
10517         * doc/glibc-functions/*.texi: Likewise.
10518
10519 2011-07-31  Bruno Haible  <bruno@clisp.org>
10520
10521         snippet/warn-on-use: Fix indentation.
10522         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10523
10524 2011-07-25  Jim Meyering  <meyering@redhat.com>
10525
10526         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10527         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10528         commands.
10529
10530 2011-07-27  Jim Meyering  <meyering@redhat.com>
10531
10532         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10533         * top/maint.mk (gl_extract_significant_defines_): Now that
10534         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10535         gnulib/lib/signal.in.h, and now that we recommend to
10536         define-if-undefined those two symbols in application code,
10537         we must filter them out of the "significant" list.
10538         This avoids a "make syntax-check" failure in coreutils.
10539
10540 2011-07-26  Eric Blake  <eblake@redhat.com>
10541
10542         warnings: add comments about previous patch
10543         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10544         * m4/include_next.m4: Likewise.
10545         * m4/warn-on-use.m4: Likewise.
10546         * m4/warnings.m4: Likewise, and simplify use.
10547         Suggested by Stefano Lattarini.
10548
10549         include-next, warnings: support older autoconf
10550         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10551         AS_VAR_PUSHDEF in a way that works with older autoconf.
10552         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10553         Reported by Daniel P. Berrange.
10554
10555 2011-07-25  Bruno Haible  <bruno@clisp.org>
10556
10557         fseek, ftell: Fix doc.
10558         * doc/posix-functions/fseek.texi: Reword statement about
10559         AC_SYS_LARGEFILE.
10560         * doc/posix-functions/ftell.texi: Likewise.
10561
10562 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10563             Bruno Haible  <bruno@clisp.org>
10564
10565         Add dependencies to the 'largefile' module.
10566         * modules/fopen (Depends-on): Add 'largefile'.
10567         * modules/freopen (Depends-on): Likewise.
10568         * modules/fseeko (Depends-on): Likewise.
10569         * modules/ftello (Depends-on): Likewise.
10570         * modules/glob (Depends-on): Likewise.
10571         * modules/lseek (Depends-on): Likewise.
10572         * modules/lstat (Depends-on): Likewise.
10573         * modules/mkostemp (Depends-on): Likewise.
10574         * modules/mkostemps (Depends-on): Likewise.
10575         * modules/mkstemp (Depends-on): Likewise.
10576         * modules/mkstemps (Depends-on): Likewise.
10577         * modules/open (Depends-on): Likewise.
10578         * modules/openat (Depends-on): Likewise.
10579         * modules/pread (Depends-on): Likewise.
10580         * modules/pwrite (Depends-on): Likewise.
10581         * modules/scandir (Depends-on): Likewise.
10582         * modules/stat (Depends-on): Likewise.
10583         * modules/tmpfile (Depends-on): Likewise.
10584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10585         since the containing module now depends on the largefile module.
10586         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10587         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10588         off_t is fixed by gnulib.
10589         * doc/posix-functions/freopen.texi: Likewise.
10590         * doc/posix-functions/fseeko.texi: Likewise.
10591         * doc/posix-functions/fstatat.texi: Likewise.
10592         * doc/posix-functions/ftello.texi: Likewise.
10593         * doc/posix-functions/glob.texi: Likewise.
10594         * doc/posix-functions/lseek.texi: Likewise.
10595         * doc/posix-functions/lstat.texi: Likewise.
10596         * doc/posix-functions/mkstemp.texi: Likewise.
10597         * doc/posix-functions/open.texi: Likewise.
10598         * doc/posix-functions/openat.texi: Likewise.
10599         * doc/posix-functions/pread.texi: Likewise.
10600         * doc/posix-functions/pwrite.texi: Likewise.
10601         * doc/posix-functions/scandir.texi: Likewise.
10602         * doc/posix-functions/stat.texi: Likewise.
10603         * doc/posix-functions/tmpfile.texi: Likewise.
10604         * doc/glibc-functions/mkostemp.texi: Likewise.
10605         * doc/glibc-functions/mkostemps.texi: Likewise.
10606         * doc/glibc-functions/mkstemps.texi: Likewise.
10607
10608 2011-07-25  Bruno Haible  <bruno@clisp.org>
10609
10610         fcntl: Move AC_LIBOBJ invocation to module description.
10611         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10612         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10613
10614         fcntl: Remove call-in from fchdir.m4.
10615         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10617
10618         dup3: Remove potential call-in from fchdir.m4.
10619         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10621
10622         dup2: Move AC_LIBOBJ invocation to module description.
10623         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10624         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10625         Don't invoke AC_LIBOBJ.
10626         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10627
10628         dup2: Remove call-in from fchdir.m4.
10629         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10631
10632         fclose: Move AC_LIBOBJ invocation to module description.
10633         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10634         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10635         to 1.
10636         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10637
10638         fclose: Remove call-in from close.m4.
10639         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10640         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10641
10642         close: Move AC_LIBOBJ invocation to module description.
10643         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10644         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10645         1.
10646         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10647
10648         close: Remove call-in from fchdir.m4.
10649         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10651
10652         open: Move AC_LIBOBJ invocation to module description.
10653         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10654         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10655         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10656
10657         open: Remove call-in from fchdir.m4.
10658         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10660
10661         fchdir: Start to remove gl_REPLACE_* idiom.
10662         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10663         (gl_FUNC_FCHDIR): Invoke it.
10664
10665 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10666
10667         * lib/ftell.c (ftell): Comment out cast.
10668
10669         close: use gl_REPLACE_FCLOSE only if defined
10670         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10671         is defined.  The close module doesn't depend on the fclose module
10672         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10674         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10675
10676 2011-07-24  Jim Meyering  <meyering@redhat.com>
10677
10678         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10679         * tests/test-select.h (test_function): Declare as "static".
10680
10681 2011-07-24  Bruno Haible  <bruno@clisp.org>
10682
10683         doc: Mention the effects of AC_SYS_LARGEFILE.
10684         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10685         on this function.
10686         * doc/posix-functions/aio_error.texi: Likewise.
10687         * doc/posix-functions/aio_fsync.texi: Likewise.
10688         * doc/posix-functions/aio_read.texi: Likewise.
10689         * doc/posix-functions/aio_return.texi: Likewise.
10690         * doc/posix-functions/aio_suspend.texi: Likewise.
10691         * doc/posix-functions/aio_write.texi: Likewise.
10692         * doc/posix-functions/fgetpos.texi: Likewise.
10693         * doc/posix-functions/fopen.texi: Likewise.
10694         * doc/posix-functions/freopen.texi: Likewise.
10695         * doc/posix-functions/fsetpos.texi: Likewise.
10696         * doc/posix-functions/fstatvfs.texi: Likewise.
10697         * doc/posix-functions/ftruncate.texi: Likewise.
10698         * doc/posix-functions/ftw.texi: Likewise.
10699         * doc/posix-functions/getrlimit.texi: Likewise.
10700         * doc/posix-functions/glob.texi: Likewise.
10701         * doc/posix-functions/lio_listio.texi: Likewise.
10702         * doc/posix-functions/lockf.texi: Likewise.
10703         * doc/posix-functions/mkstemp.texi: Likewise.
10704         * doc/posix-functions/mmap.texi: Likewise.
10705         * doc/posix-functions/nftw.texi: Likewise.
10706         * doc/posix-functions/openat.texi: Likewise.
10707         * doc/posix-functions/opendir.texi: Likewise.
10708         * doc/posix-functions/posix_fadvise.texi: Likewise.
10709         * doc/posix-functions/posix_fallocate.texi: Likewise.
10710         * doc/posix-functions/pread.texi: Likewise.
10711         * doc/posix-functions/pwrite.texi: Likewise.
10712         * doc/posix-functions/readdir.texi: Likewise.
10713         * doc/posix-functions/readdir_r.texi: Likewise.
10714         * doc/posix-functions/rewinddir.texi: Likewise.
10715         * doc/posix-functions/scandir.texi: Likewise.
10716         * doc/posix-functions/seekdir.texi: Likewise.
10717         * doc/posix-functions/setrlimit.texi: Likewise.
10718         * doc/posix-functions/statvfs.texi: Likewise.
10719         * doc/posix-functions/telldir.texi: Likewise.
10720         * doc/posix-functions/tmpfile.texi: Likewise.
10721         * doc/posix-functions/truncate.texi: Likewise.
10722         * doc/glibc-functions/fallocate.texi: Likewise.
10723         * doc/glibc-functions/fstatfs.texi: Likewise.
10724         * doc/glibc-functions/fts_children.texi: Likewise.
10725         * doc/glibc-functions/fts_read.texi: Likewise.
10726         * doc/glibc-functions/getdirentries.texi: Likewise.
10727         * doc/glibc-functions/mkostemp.texi: Likewise.
10728         * doc/glibc-functions/mkostemps.texi: Likewise.
10729         * doc/glibc-functions/mkstemps.texi: Likewise.
10730         * doc/glibc-functions/preadv.texi: Likewise.
10731         * doc/glibc-functions/pwritev.texi: Likewise.
10732         * doc/glibc-functions/sendfile.texi: Likewise.
10733         * doc/glibc-functions/statfs.texi: Likewise.
10734
10735 2011-07-24  Bruno Haible  <bruno@clisp.org>
10736
10737         doc: Fix typo.
10738         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10739
10740 2011-07-24  Bruno Haible  <bruno@clisp.org>
10741
10742         doc: Mention fsusage.
10743         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10744
10745 2011-07-24  Bruno Haible  <bruno@clisp.org>
10746
10747         doc: Mention new glibc headers and functions.
10748         * doc/glibc-headers/gshadow.texi: New file.
10749         * doc/glibc-functions/endsgent.texi: New file.
10750         * doc/glibc-functions/fgetsgent.texi: New file.
10751         * doc/glibc-functions/fgetsgent_r.texi: New file.
10752         * doc/glibc-functions/getsgent.texi: New file.
10753         * doc/glibc-functions/getsgent_r.texi: New file.
10754         * doc/glibc-functions/getsgnam.texi: New file.
10755         * doc/glibc-functions/getsgnam_r.texi: New file.
10756         * doc/glibc-functions/putsgent.texi: New file.
10757         * doc/glibc-functions/setsgent.texi: New file.
10758         * doc/glibc-functions/sgetsgent.texi: New file.
10759         * doc/glibc-functions/sgetsgent_r.texi: New file.
10760         * doc/glibc-functions/malloc_info.texi: New file.
10761         * doc/glibc-functions/preadv.texi: New file.
10762         * doc/glibc-functions/pwritev.texi: New file.
10763         * doc/glibc-functions/register_printf_modifier.texi: New file.
10764         * doc/glibc-functions/register_printf_specifier.texi: New file.
10765         * doc/glibc-functions/register_printf_type.texi: New file.
10766         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10767         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10768         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10769         * doc/glibc-functions/pthread_getname_np.texi: New file.
10770         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10771         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10772         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10773         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10774         * doc/glibc-functions/pthread_setname_np.texi: New file.
10775         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10776         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10777         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10778         * doc/glibc-functions/qsort_r.texi: New file.
10779         * doc/glibc-functions/quick_exit.texi: New file.
10780         * doc/glibc-functions/syncfs.texi: New file.
10781         * doc/gnulib.texi: Include them.
10782         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10783         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10784         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10785         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10786         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10787         * doc/glibc-functions/execvpe.texi: Likewise.
10788
10789 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         ftell: don't include <unistd.h>
10792         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10793         guaranteed to define off_t, and the ftell module depends on the
10794         stdio module.
10795
10796         ftell: do not assume wraparound signed arithmetic
10797         * lib/ftell.c: Include <limits.h>.
10798         (ftell): Don't assume wraparound signed arithmetic.
10799
10800 2011-07-24  Bruno Haible  <bruno@clisp.org>
10801
10802         close: No longer depend on module 'fclose'.
10803         * modules/close (Depends-on): Remove fclose.
10804         * NEWS: Mention the change.
10805         Suggested by Sam Steingold <sds@gnu.org>.
10806
10807 2011-07-24  Bruno Haible  <bruno@clisp.org>
10808
10809         fsusage: Enable large volume support on AIX >= 5.2.
10810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10811         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10812         instead of STAT_STATVFS.
10813         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10814
10815         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10817         f_blocks field only on MacOS X.
10818
10819         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10821         * modules/fsusage (Depends-on): Add largefile.
10822
10823 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10824
10825         * README: Modernize discussion of signed integers.
10826         Assuming overflow wraparound is no longer safe.
10827         Mention ones' complement and signed magnitude.
10828
10829 2011-07-22  Bruno Haible  <bruno@clisp.org>
10830
10831         select tests, pselect tests: Refactor.
10832         * tests/test-select.h: New file, extracted from tests/test-select.c.
10833         (select_fn): New type.
10834         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10835         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10836         test_pipe): Add my_select argument.
10837         (test_function): Renamed from main. Add my_select argument.
10838         * tests/test-select.c: Move most code to tests/test-select.h. Include
10839         test-select.h.
10840         * modules/select-tests (Files): Add tests/test-select.h.
10841         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10842         (my_select, main): New functions.
10843         * modules/pselect-tests (Files): Add tests/test-select.h,
10844         tests/macros.h, tests/signature.h.
10845         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10846         (configure.ac): Check for <sys/wait.h>.
10847
10848 2011-07-22  Bruno Haible  <bruno@clisp.org>
10849
10850         sys_select tests: Check the signature of FD_*.
10851         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10852         signature tests from here...
10853         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10854         here.
10855         * modules/sys_select-tests (Files): Add tests/signature.h.
10856
10857 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10858
10859         largefile: new module, replacing large-inode
10860         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10861         * MODULES.html.sh: Add largefile, remove large-inode.
10862         * modules/largefile, m4/largefile.m4: New files.
10863         * modules/large-inode, m4/large-inode.m4: Remove.
10864
10865         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10866         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10867         implementations that use only 32 bits to count blocks.
10868         On typical hosts with 1024-byte blocks, this fails with file
10869         systems as small as 4 TiB.  Problem reported by Herb Wartens
10870         <http://debbugs.gnu.org/9140> and this should also fix a similar
10871         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10872
10873         large-inode: New module
10874         * MODULES.html.sh: Add it.
10875         * modules/large-inode, m4/large-inode.m4: New files.
10876
10877         extensions: Enable extensions on MacOS X 10.5 and later.
10878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10879
10880 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10881
10882         file-has-acl: use acl_extended_file_nofollow if available
10883         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10884         (acl_extended_file): New macro.
10885         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10886         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10887
10888 2011-07-21  Bruno Haible  <bruno@clisp.org>
10889
10890         Declare system functions in a way that works with C++.
10891         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10892         declare fdopendir as extern "C".
10893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10894         declare frexpl as extern "C".
10895         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10896         declare gai_strerror as extern "C".
10897         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10898         programs, declare gai_strerror as extern "C".
10899         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10900         declare getlogin_r as extern "C".
10901         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10902         as extern "C".
10903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10904         declare ldexpl as extern "C".
10905         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10906         as extern "C".
10907         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10908         program, declare getmntinfo as extern "C".
10909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10910         stpncpy as extern "C".
10911         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10912         program, declare __xpg_strerror_r as extern "C".
10913         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10914         strndup as extern "C".
10915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10916         declare memset and bzero as extern "C".
10917         Reported by Sam Steingold <sds@gnu.org>.
10918
10919 2011-07-12  Jim Meyering  <meyering@redhat.com>
10920
10921         maint.mk: prohibit inclusion of "verify.h" without use
10922         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10923
10924 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10925
10926         timer-time: A new module to check for timer_settime()
10927         * m4/timer_time.m4: Check for the posix function.
10928         * modules/timer-time: Add the new module.
10929         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10930         Mention it.
10931
10932 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10933             Bruno Haible  <bruno@clisp.org>
10934
10935         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10936         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10937         not defined, assume POSIX threads and look for pthread_sigmask in
10938         $LIBS, without changing $CPPFLAGS.
10939
10940 2011-07-19  Bruno Haible  <bruno@clisp.org>
10941
10942         strstr: Update cross-compilation guess.
10943         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10944         CPUs, guess no, in view of glibc
10945         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10946         Suggested by Eric Blake. Reported by Reuben Thomas.
10947
10948 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10949
10950         getopt-gnu: suppress core dumps from detection code
10951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10952         to suppress core dumps that may well occur on glibc systems.
10953         * modules/getopt-gnu: Depend on nocrash.
10954
10955 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         pthread_sigmask: ensure usleep is declared
10958         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10959         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10960
10961 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         doc: Document NonStop portability issues.
10964         * doc/posix-functions/sigaction.texi (sigaction):
10965         * doc/posix-headers/signal.texi (signal.h):
10966         Document NonStop.  See Joachim Schmitz in
10967         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10968
10969 2011-07-15  Bruno Haible  <bruno@clisp.org>
10970
10971         ffsl, ffsll: Avoid unportable behaviour.
10972         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10973
10974 2011-07-15  Bruno Haible  <bruno@clisp.org>
10975
10976         ffs: More tests.
10977         * tests/test-ffs.c (NBITS): New macro.
10978         (main): Add more tests.
10979         * tests/test-ffsl.c (NBITS): New macro.
10980         (main): Add more tests.
10981         * tests/test-ffsll.c (NBITS): New macro.
10982         (main): Add more tests.
10983
10984 2011-07-15  Eric Blake  <eblake@redhat.com>
10985
10986         ffsl, ffsll: new modules
10987         * modules/ffsl: New file.
10988         * modules/ffsll: Likewise.
10989         * m4/ffsl.m4: Likewise.
10990         * m4/ffsll.m4: Likewise.
10991         * lib/ffsl.c: Likewise.
10992         * lib/ffsl.h: Likewise.
10993         * lib/ffsll.c: Likewise.
10994         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10995         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10996         * modules/string (Makefile.am): Substitute witnesses.
10997         * lib/strings.in.h (ffsl, ffsll): Declare.
10998         * modules/ffsl-tests: New test file.
10999         * modules/ffsll-tests: Likewise.
11000         * tests/test-ffsl.c: Likewise.
11001         * tests/test-ffsll.c: Likewise.
11002         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11003         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11004         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11005
11006         ffs: fix m4 prerequisite
11007         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11008
11009         ffs: avoid undefined behavior
11010         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11011         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11012         Reported by Bruno Haible.
11013
11014 2011-07-12  Bruno Haible  <bruno@clisp.org>
11015
11016         pthread_sigmask: Rely on module 'threadlib'.
11017         * modules/pthread_sigmask (Depends-on): Add threadlib.
11018         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11019         is defined.
11020
11021 2011-07-12  Bruno Haible  <bruno@clisp.org>
11022
11023         regex: Depend on module 'strcase'.
11024         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11025
11026 2011-07-12  Jim Meyering  <meyering@redhat.com>
11027
11028         warn-on-use: fix typo in file name
11029         * modules/snippet/warn-on-use (Files): Correct file name:
11030         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11031
11032 2011-07-12  Bruno Haible  <bruno@clisp.org>
11033
11034         strings: Document module.
11035         * doc/posix-headers/strings.texi: Mention module 'strings'.
11036
11037 2011-07-12  Bruno Haible  <bruno@clisp.org>
11038
11039         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11040         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11041         (Files, Makefile.am): Update.
11042         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11043         * modules/stdlib (Depends-on): Update.
11044
11045 2011-07-12  Bruno Haible  <bruno@clisp.org>
11046
11047         * NEWS: Mention the changes.
11048
11049         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11050         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11051         (Files, Makefile.am): Update.
11052         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11053         * modules/arpa_inet (Depends-on): Update.
11054         * modules/ctype (Depends-on): Update.
11055         * modules/dirent (Depends-on): Update.
11056         * modules/fcntl-h (Depends-on): Update.
11057         * modules/glob (Depends-on): Update.
11058         * modules/iconv-h (Depends-on): Update.
11059         * modules/inttypes-incomplete (Depends-on): Update.
11060         * modules/langinfo (Depends-on): Update.
11061         * modules/locale (Depends-on): Update.
11062         * modules/math (Depends-on): Update.
11063         * modules/netdb (Depends-on): Update.
11064         * modules/poll-h (Depends-on): Update.
11065         * modules/pty (Depends-on): Update.
11066         * modules/search (Depends-on): Update.
11067         * modules/signal (Depends-on): Update.
11068         * modules/spawn (Depends-on): Update.
11069         * modules/stdio (Depends-on): Update.
11070         * modules/stdlib (Depends-on): Update.
11071         * modules/string (Depends-on): Update.
11072         * modules/strings (Depends-on): Update.
11073         * modules/sys_file (Depends-on): Update.
11074         * modules/sys_ioctl (Depends-on): Update.
11075         * modules/sys_select (Depends-on): Update.
11076         * modules/sys_socket (Depends-on): Update.
11077         * modules/sys_stat (Depends-on): Update.
11078         * modules/sys_time (Depends-on): Update.
11079         * modules/sys_times (Depends-on): Update.
11080         * modules/sys_utsname (Depends-on): Update.
11081         * modules/sys_wait (Depends-on): Update.
11082         * modules/termios (Depends-on): Update.
11083         * modules/time (Depends-on): Update.
11084         * modules/unistd (Depends-on): Update.
11085         * modules/wchar (Depends-on): Update.
11086         * modules/wctype-h (Depends-on): Update.
11087         * MODULES.html.sh (Support for building libraries and executables):
11088         Update.
11089
11090         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11091         * modules/snippet/unused-parameter: Renamed from
11092         modules/unused-parameter.
11093         (Files, Makefile.am): Update.
11094         * build-aux/snippet/unused-parameter.h: Renamed from
11095         build-aux/unused-parameter.h.
11096         * modules/selinux-h (Depends-on): Update.
11097         * modules/unistr/base (Depends-on): Update.
11098         * MODULES.html.sh (Core language properties): Update.
11099
11100         Rename module 'link-warning' to 'snippet/link-warning'.
11101         * modules/snippet/link-warning: Renamed from modules/link-warning.
11102         (Files, Makefile.am): Update.
11103         * build-aux/snippet/link-warning.h: Renamed from
11104         build-aux/link-warning.h.
11105         * MODULES.html.sh (Support for building libraries and executables):
11106         Update.
11107
11108         Rename module 'c++defs' to 'snippet/c++defs'.
11109         * modules/snippet/c++defs: Renamed from modules/c++defs.
11110         (Files, Makefile.am): Update.
11111         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11112         * modules/arpa_inet (Depends-on): Update.
11113         * modules/ctype (Depends-on): Update.
11114         * modules/dirent (Depends-on): Update.
11115         * modules/fcntl-h (Depends-on): Update.
11116         * modules/glob (Depends-on): Update.
11117         * modules/iconv-h (Depends-on): Update.
11118         * modules/langinfo (Depends-on): Update.
11119         * modules/locale (Depends-on): Update.
11120         * modules/math (Depends-on): Update.
11121         * modules/netdb (Depends-on): Update.
11122         * modules/poll-h (Depends-on): Update.
11123         * modules/pty (Depends-on): Update.
11124         * modules/search (Depends-on): Update.
11125         * modules/signal (Depends-on): Update.
11126         * modules/spawn (Depends-on): Update.
11127         * modules/stdio (Depends-on): Update.
11128         * modules/stdlib (Depends-on): Update.
11129         * modules/string (Depends-on): Update.
11130         * modules/strings (Depends-on): Update.
11131         * modules/sys_ioctl (Depends-on): Update.
11132         * modules/sys_select (Depends-on): Update.
11133         * modules/sys_socket (Depends-on): Update.
11134         * modules/sys_stat (Depends-on): Update.
11135         * modules/sys_time (Depends-on): Update.
11136         * modules/sys_wait (Depends-on): Update.
11137         * modules/termios (Depends-on): Update.
11138         * modules/time (Depends-on): Update.
11139         * modules/unistd (Depends-on): Update.
11140         * modules/wchar (Depends-on): Update.
11141         * modules/wctype-h (Depends-on): Update.
11142
11143         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11144         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11145         (Files, Makefile.am): Update.
11146         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11147         * modules/argv-iter (Depends-on): Update.
11148         * modules/arpa_inet (Depends-on): Update.
11149         * modules/dirent (Depends-on): Update.
11150         * modules/fcntl-h (Depends-on): Update.
11151         * modules/fnmatch (Depends-on): Update.
11152         * modules/getopt-posix (Depends-on): Update.
11153         * modules/glob (Depends-on): Update.
11154         * modules/iconv-h (Depends-on): Update.
11155         * modules/inttypes-incomplete (Depends-on): Update.
11156         * modules/locale (Depends-on): Update.
11157         * modules/math (Depends-on): Update.
11158         * modules/netdb (Depends-on): Update.
11159         * modules/search (Depends-on): Update.
11160         * modules/signal (Depends-on): Update.
11161         * modules/spawn (Depends-on): Update.
11162         * modules/stdio (Depends-on): Update.
11163         * modules/stdlib (Depends-on): Update.
11164         * modules/string (Depends-on): Update.
11165         * modules/strings (Depends-on): Update.
11166         * modules/sys_socket (Depends-on): Update.
11167         * modules/sys_stat (Depends-on): Update.
11168         * modules/sys_time (Depends-on): Update.
11169         * modules/sys_times (Depends-on): Update.
11170         * modules/sys_utsname (Depends-on): Update.
11171         * modules/time (Depends-on): Update.
11172         * modules/unistd (Depends-on): Update.
11173         * modules/wchar (Depends-on): Update.
11174         * MODULES.html.sh (Support for building libraries and executables):
11175         Update.
11176
11177 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         Improvements on _Noreturn and related modules.
11180
11181         modules/_Exit-tests: test _Noreturn too
11182         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11183         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11184         (main): Use them.
11185
11186         stdnoreturn, stdnoreturn-tests: remove modules
11187         They're not needed here and a bit premature for use elsewhere.  See
11188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11189         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11190         * tests/test-stdnoreturn.c: Remove files.
11191         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11192         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11193         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11194         and using noreturn.
11195         * modules/openat, modules/sigpipe-die, modules/xalloc:
11196         * modules/xmemdup0, modules/xstrtol:
11197         Remove dependency on stdnoreturn.
11198
11199         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11200         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11201         Reparenthesize to avoid GCC warning.
11202         Support Microsoft's syntax.
11203         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11204
11205         _Noreturn-tests: remove module
11206         * modules/_Noreturn-tests: Remove.
11207         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11208         * tests/test-_Noreturn.c: Remove.
11209         * tests/test-stdnoreturn.c: Merge from the old
11210         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11211
11212 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         _Noreturn, stdnoreturn, and related modules.
11215
11216         * top/maint.mk: Adjust to new noreturn support.
11217         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11218         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11219
11220         xalloc: use stdnoreturn.h
11221         * lib/xalloc.h: Include <stdnoreturn.h>.
11222         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11223         * modules/xalloc (Depends-on): Add stdnoreturn.
11224
11225         xstrtol: use stdnoreturn.h
11226         * lib/xstrtol.h: Include <stdnoreturn.h>.
11227         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11228         * modules/xstrtol (Depends-on): Add stdnoreturn.
11229
11230         xmemdup0: use stdnoreturn.h
11231         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11232         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11233         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11234
11235         sigpipe-die: use stdnoreturn.h
11236         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11237         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11238         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11239
11240         openat: use stdnoreturn.h
11241         * lib/openat.h: Include <stdnoreturn.h>.
11242         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11243         * modules/openat (Depends-on): Add stdnoreturn.
11244
11245         * lib/openat-die.c (openat_save_fail): Modernize comment.
11246
11247         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11248
11249         * lib/glthread/thread.h: Modernize comment.
11250
11251         obstack: use _Noreturn
11252         * lib/obstack.c (__attribute__): Remove macro.
11253         (print_and_abort): Use _Noreturn.
11254
11255         c-stack: use _Noreturn
11256         * lib/c-stack.c (die, overflow_handler, segv_handler):
11257         Use _Noreturn rather than __attribute__((noreturn)).
11258
11259         argmatch-tests, exclude_tests: use _Noreturn
11260         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11261         Remove.
11262         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11263
11264         stdlib: use _Noreturn
11265         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11266         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11267         * modules/stdlib (Depends-on): Add _Noreturn.
11268         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11269
11270         stdnoreturn-tests: new module
11271         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11272
11273         stdnoreturn: new module
11274         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11275         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11276
11277         _Noreturn-tests: new module
11278         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11279
11280         _Noreturn: new module
11281         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11282         New section, mentioning it.
11283         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11284
11285         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11286
11287 2011-07-11  Eric Blake  <eblake@redhat.com>
11288
11289         ffs: new module
11290         * modules/ffs: New file.
11291         * m4/ffs.m4: Likewise.
11292         * lib/ffs.c: Likewise.
11293         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11294         * modules/strings (Makefile.am): Substitute witness.
11295         (Depends-on): Add c++defs.
11296         * lib/strings.in.h (ffs): Declare.
11297         * modules/ffs-tests: New test file.
11298         * tests/test-ffs.c: Test new module.
11299         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11300         * doc/posix-functions/ffs.texi (ffs): Likewise.
11301
11302         regex: avoid compiler warning
11303         * lib/regex.c (includes): Include <strings.h>, for use of
11304         strcasecmp in regcomp.c.
11305         Reported by Joachim Schmitz.
11306
11307 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         stdint: respect system's intmax_t if INTMAX_MAX
11310         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11311         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11312         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11313         long but int64_t is long long, and where we will clash with the
11314         system intmax_t if we override it.  See
11315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11316         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11317         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11318         similarly for UINTMAX_C.
11319
11320 2011-07-08  Bruno Haible  <bruno@clisp.org>
11321
11322         pthread_sigmask tests: Avoid a compiler warning.
11323         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11324         non-zero.
11325
11326         sigprocmask tests: A better way to avoid a compiler warning.
11327         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11328         (main): Complain if system() returns non-zero.
11329         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11330
11331 2011-07-08  Bruno Haible  <bruno@clisp.org>
11332
11333         pthread_sigmask: Work around IRIX bug.
11334         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11335         bug.
11336         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11337         there may be unblocked pending signals.
11338         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11339
11340 2011-07-08  Bruno Haible  <bruno@clisp.org>
11341
11342         pthread_sigmask: Work around Cygwin bug.
11343         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11344         bug.
11345         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11346         the system's pthread_sigmask function.
11347         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11348
11349 2011-07-08  Bruno Haible  <bruno@clisp.org>
11350
11351         pthread_sigmask: Work around bug in single-threaded implementation.
11352         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11353         FreeBSD, HP-UX, Solaris bug.
11354         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11355         * lib/pthread_sigmask.c: Include <stddef.h>.
11356         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11357         the system's pthread_sigmask function.
11358         * modules/pthread_sigmask (configure.ac): Invoke
11359         gl_PREREQ_PTHREAD_SIGMASK.
11360         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11361         HP-UX, Solaris.
11362
11363 2011-07-08  Eric Blake  <eblake@redhat.com>
11364
11365         test-sigprocmask: avoid compiler warning
11366         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11367         * tests/test-sigprocmask.c (main): Use it to silence warning.
11368         Reported by Jim Meyering.
11369
11370         test-snprintf: avoid compiler warning
11371         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11372         * tests/test-vsnprintf.c (main): Likewise.
11373         Reported by Jim Meyering.
11374
11375 2011-07-08  Bruno Haible  <bruno@clisp.org>
11376
11377         Tests for module 'pthread_sigmask'.
11378         * modules/pthread_sigmask-tests: New file.
11379         * tests/test-pthread_sigmask1.c: New file, based on
11380         tests/test-sigprocmask.c.
11381         * tests/test-pthread_sigmask2.c: New file.
11382
11383 2011-07-08  Jim Meyering  <meyering@redhat.com>
11384
11385         test-getopt.h: avoid warning about an unused variable
11386         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11387
11388 2011-07-07  Jim Meyering  <meyering@redhat.com>
11389
11390         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11391         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11392         now that it no longer contains leading TABs.
11393         Remove unused "url=FIXME" statement.
11394
11395 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11396
11397         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11398         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11399         When gl_THREADLIB is not in use, assume that the POSIX sematics
11400         are desired.  This is better for Emacs, which uses POSIX semantics
11401         on GNUish and/or POSIXish platforms, and does not use threads at
11402         all otherwise.
11403
11404         pthread_sigmask: fix typo when testing for libraries
11405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11406         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11407
11408 2011-07-08  Eric Blake  <eblake@redhat.com>
11409
11410         fts: introduce FTS_NOATIME
11411         * lib/fts_.h (FTS_NOATIME): New bit flag.
11412         (FTS_OPTIONMASK): Adjust.
11413         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11414         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11415
11416 2011-07-08  Bruno Haible  <bruno@clisp.org>
11417
11418         Tests for module 'thread'.
11419         * modules/thread-tests: New file.
11420         * tests/test-thread_self.c: New file.
11421         * tests/test-thread_create.cc: New file.
11422
11423 2011-07-08  Bruno Haible  <bruno@clisp.org>
11424
11425         thread: Avoid gcc warnings when using gl_thread_self().
11426         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11427         'void *'.
11428         (gl_thread_self_pointer): Update.
11429
11430 2011-07-07  Bruno Haible  <bruno@clisp.org>
11431
11432         signal-c++-tests: Check declaration of pthread_sigmask.
11433         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11434         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11435         $(LIB_PTHREAD_SIGMASK).
11436
11437 2011-07-07  Bruno Haible  <bruno@clisp.org>
11438
11439         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11440         * lib/signal.in.h (pthread_sigmask): Override if
11441         REPLACE_PTHREAD_SIGMASK is 1.
11442         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11443         REPLACE_PTHREAD_SIGMASK.
11444         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11445         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11446         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11447         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11448         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11449
11450 2011-07-07  Bruno Haible  <bruno@clisp.org>
11451
11452         pthread_sigmask: Ensure declaration in <signal.h>.
11453         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11454         include <pthread.h>.
11455         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11456         problem.
11457
11458 2011-07-07  Bruno Haible  <bruno@clisp.org>
11459
11460         pthread_sigmask: Document the module.
11461         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11462
11463 2011-07-07  Bruno Haible  <bruno@clisp.org>
11464
11465         pthread_sigmask: Follow gnulib conventions.
11466         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11467         gl_PTHREAD_SIGMASK.
11468         * modules/pthread_sigmask (configure.ac): Update.
11469
11470 2011-07-07  Bruno Haible  <bruno@clisp.org>
11471
11472         pthread_sigmask: Make declaration C++ safe.
11473         * lib/signal.in.h: In two special conditions, just do an #include_next.
11474         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11475         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11476         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11477         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11478         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11479         not REPLACE_PTHREAD_MASK.
11480         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11481         not REPLACE_PTHREAD_MASK.
11482         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11483
11484 2011-07-07  Bruno Haible  <bruno@clisp.org>
11485
11486         pthread_sigmask: Fix return value.
11487         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11488         * lib/pthread_sigmask.c: New file.
11489         * modules/pthread_sigmask (Files): Add it.
11490         (configure.ac): Invoke AC_LIBOBJ.
11491
11492 2011-07-07  Eric Blake  <eblake@redhat.com>
11493
11494         getopt: more portable argv creation
11495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11496         const, use char arrays rather than strings.
11497         Suggested by Paul Eggert.
11498
11499 2011-07-07  Bruno Haible  <bruno@clisp.org>
11500
11501         Tests for module 'sigprocmask'.
11502         * modules/sigprocmask-tests: New file.
11503         * tests/test-sigprocmask.c: New file.
11504
11505 2011-07-07  Bruno Haible  <bruno@clisp.org>
11506
11507         float tests: Tweak.
11508         * tests/test-float.c (main): Tweak skip message.
11509
11510 2011-07-07  Eric Blake  <eblake@redhat.com>
11511
11512         getopt: avoid compiler warning during configure
11513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11514         assigning string literals to non-const pointer.
11515
11516         getopt-gnu: avoid crash in glibc getopt
11517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11518         * tests/test-getopt.h (test_getopt): Enhance test.
11519         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11520         * doc/posix-functions/getopt.texi (getopt): Document it.
11521         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11523         Likewise.
11524
11525 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11526
11527         getopt: handle W; without long options in getopt [BZ #12922]
11528         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11529         but no long options are defined, just return 'W'.
11530
11531 2011-07-07  Bruno Haible  <bruno@clisp.org>
11532
11533         Avoid literal tabs.
11534         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11535         variable containing a tab instead of a literal tab.
11536         Reported by Jim Meyering.
11537
11538 2011-07-07  Bruno Haible  <bruno@clisp.org>
11539
11540         Comments.
11541         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11542
11543 2011-07-06  Bruno Haible  <bruno@clisp.org>
11544
11545         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11546         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11547         <winsock2.h>.
11548         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11549         lib/sys_socket.in.h.
11550         (close, gethostname): Hide declarations from <winsock2.h>.
11551         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11552         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11553         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11554         (select): Don't override if gnulib's <sys/select.h> was already
11555         included.
11556         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11557         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11558         setsockopt, shutdown, select): Tweak indentation.
11559
11560 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11561
11562         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11563         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11564         in an application that does not use the sys_select module.
11565
11566 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11567
11568         poll: do not return 0 on timeout=-1
11569         * lib/poll.c: Loop with yield if no events occured
11570
11571 2011-07-06  Eric Blake  <eblake@redhat.com>
11572
11573         pthread_sigmask: always replace when not using pthread
11574         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11575         replacement when using some threading other than pthread.  Fix
11576         logic bug.
11577
11578 2011-07-06  Bruno Haible  <bruno@clisp.org>
11579
11580         Comments.
11581         * m4/printf.m4: Update comments about mingw.
11582
11583 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11584
11585         sys_select: define sigset_t more portably
11586         * lib/sys_select.in.h: Always include <sys/types.h>, since
11587         we now need sigset_t and mingw defines it there.
11588         Include <signal.h> before split inclusion guard, to avoid
11589         mishaps on Solaris, whose <signal.h> eventually includes us.
11590         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11591         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11592         which come from ...
11593         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11594         gl_CHECK_TYPE_SIGSET_T.
11595         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11596         does the real work.
11597         * modules/sys_select (Depends-on): Add 'signal'.
11598
11599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11600         Suggested by Bruno Haible.
11601
11602         pselect: Use pthread_sigmask, not sigprocmask.
11603         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11604         multithreaded apps better than sigprocmask does.
11605         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11606         sigprocmask directly.
11607
11608 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11609
11610         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11611         Don't #undef,  since we don't need any underlying pselect.
11612         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11613         (Depends-on): Add select.
11614         (Link): Add $(LIBSOCKET).
11615         These changes suggested by Bruno Haible.
11616
11617         pselect: document better
11618         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11619         * doc/posix-functions/pselect.texi (pselect): Document new module.
11620
11621         pthread_sigmask: new module
11622         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11623         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11624         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11625         This is done only as a macro; I don't know how well that'll
11626         work for C++.  Move <sys/types.h> include before the include_next,
11627         to avoid mishap on Solaris.
11628         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11629         * modules/signal (Makefile.am): Substitute the check's results.
11630         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11631
11632         test-pselect: new module
11633         * modules/pselect-tests, tests/test-pselect.c: New files.
11634         * tests/test-select.c, tests/test-sys_select-c++.cc:
11635         If TEST_PSELECT is defined, test pselect instead of testing select.
11636
11637         * tests/test-sys_select.c (sigset_t): Test for it, too.
11638         Suggested by Bruno Haible.
11639
11640 2011-07-05  Eric Blake  <eblake@redhat.com>
11641
11642         snprintf: guarantee %1$d, for libintl
11643         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11644         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11645         * doc/posix-functions/snprintf.texi (snprintf): Update.
11646         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11647         * tests/test-snprintf.c (main): Enhance test.
11648         * tests/test-vsnprintf.c (main): Likewise.
11649
11650 2011-07-05  Jim Meyering  <meyering@redhat.com>
11651
11652         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11653         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11654         per Bruno's request, to accommodate this idiom (no space after "#")
11655         even when the function is inside an #if block:
11656         char *
11657         gets (char *s)
11658         #undef gets
11659         {
11660           ...
11661         }
11662
11663 2011-07-04  Jim Meyering  <meyering@redhat.com>
11664
11665         maint: indent with spaces, not TABs, and add a rule to check this
11666         * tests/test-userspec.c: Indent with spaces, not TABs.
11667         * tests/test-argp.c: Likewise.
11668         * tests/test-c-stack2.sh: Likewise.
11669         * tests/test-parse-duration.sh: Likewise
11670         * m4/strtod.m4: Likewise.
11671         * m4/alloca.m4: Likewise.
11672         * m4/pselect.m4: Likewise.
11673         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11674
11675 2011-07-03  Jim Meyering  <meyering@redhat.com>
11676
11677         maint.mk: correct omissions in prohibit_argmatch_without_use check
11678         This rule would mistakenly report that argmatch.h is included without
11679         use even when both the argmatch and invalid_arg macro were used.
11680         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11681         of argmatch and invalid_arg.
11682
11683 2011-07-03  Bruno Haible  <bruno@clisp.org>
11684
11685         Comments about EINTR.
11686         * lib/safe-read.h: Explain the purpose of this module.
11687         * lib/safe-write.h: Likewise.
11688         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11689         module.
11690         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11691         module.
11692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11693
11694 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11695
11696         xnanosleep: Rewrite to use new dtotimespec module.
11697         It has the conversion code that used to be in xnanosleep.
11698         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11699         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11700         (TIME_T_MAX): Remove.
11701         (xnanosleep): Rewrite in terms of dtotimespec.
11702         * modules/xnanosleep (Depends-on): Add dtotimespec.
11703         Remove intprops, stdbool.
11704
11705         timespec-add, timespec-sub: new modules
11706         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11707         * lib/timespec-add.c, lib/timespec-sub.c:
11708         * modules/timespec-add, modules/timespec-sub: New files.
11709
11710         dtotimespec: new module
11711         * lib/timespec.h (dtotimespec): New decl.
11712         * lib/dtotimespec.c, modules/dtotimespec: New files.
11713
11714         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11715
11716         pselect: new module
11717         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11718         (pselect): New decls.
11719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11720         since the standard pselect decl uses 'restrict'.
11721         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11722         HAVE_PSELECT, REPLACE_PSELECT.
11723         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11724         HAVE_PSELECT, REPLACE_PSELECT.
11725         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11726
11727         sys_select: don't depend on sys_socket
11728         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11730         This fix works on GNU and GNU-like platforms, but has not been tested
11731         on native Windows.
11732         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11733         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11734         gl_HEADER_SYS_SOCKET.
11735         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11736         gl_PREREQ_SYS_H_WINSOCK2.
11737
11738 2011-06-29  Eric Blake  <eblake@redhat.com>
11739
11740         pipe2: fix C89 compile problem
11741         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11742         Reported by Bruno Haible.
11743
11744         pipe, pipe2: don't corrupt fd on error
11745         * lib/pipe.c (pipe): Leave fd unchanged on error.
11746         * lib/pipe2.c (pipe2): Likewise.
11747         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11748         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11749
11750 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11751
11752         mmap-anon: do not use regular expressions inadvertently
11753         * m4/mmap-anon.m4: Remove trailing period from strings sought
11754         in the output.
11755
11756 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11757
11758         nanosleep: fix integer overflow problem
11759         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11760         arithmetic wraps around on overflow.
11761
11762         nanosleep: simplify carrying
11763         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11764         first call to the underyling nanosleep, not for the last one.
11765         This doesn't fix any bugs, but it simplifies the computation of
11766         the remaining delay.  Found while auditing integer overflow issues.
11767
11768         dup2: remove test for existence of fcntl
11769         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11770         "#if HAVE_FCNTL", in the configure-time test program.
11771         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11772         and therefore speeds up "configure" a bit.  Found while
11773         adding the dup2 module to Emacs.
11774
11775 2011-06-24  Eric Blake  <eblake@redhat.com>
11776
11777         maint.mk: enhance useless header checks
11778         * top/maint.mk (_sc_header_without_use): Check both include
11779         styles.
11780         (sc_prohibit_assert_without_use)
11781         (sc_prohibit_close_stream_without_use)
11782         (sc_prohibit_getopt_without_use)
11783         (sc_prohibit_quotearg_without_use)
11784         (sc_prohibit_quote_without_use)
11785         (sc_prohibit_long_options_without_use)
11786         (sc_prohibit_inttostr_without_use)
11787         (sc_prohibit_ignore_value_without_use)
11788         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11789         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11790         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11791         (sc_prohibit_hash_pjw_without_use)
11792         (sc_prohibit_safe_read_without_use)
11793         (sc_prohibit_argmatch_without_use)
11794         (sc_prohibit_canonicalize_without_use)
11795         (sc_prohibit_root_dev_ino_without_use)
11796         (sc_prohibit_openat_without_use)
11797         (sc_prohibit_c_ctype_without_use)
11798         (sc_prohibit_signal_without_use)
11799         (sc_prohibit_stdio--_without_use)
11800         (sc_prohibit_stdio-safer_without_use)
11801         (sc_prohibit_strings_without_use)
11802         (sc_prohibit_intprops_without_use)
11803         (sc_prohibit_stddef_without_use)
11804         (sc_prohibit_xfreopen_without_use): Update clients.
11805
11806 2011-06-24  Jim Meyering  <meyering@redhat.com>
11807
11808         syntax-check: keep one maint.mk rule in sync with its header
11809         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11810         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11811         I prefer to avoid temporary files here, so use <(...), but that
11812         is not supported by /bin/sh, so...
11813         (SHELL): Define to /bin/bash.
11814
11815 2011-06-24  Eric Blake  <eblake@redhat.com>
11816
11817         maint.mk: update sc_prohibit_intprops_without_use
11818         * top/maint.mk (_intprops_names): Match recent changes.
11819
11820 2011-06-24  Bruno Haible  <bruno@clisp.org>
11821
11822         strerror-override: No-op tweak.
11823         * lib/strerror-override.h (strerror_override): Reorder conditions,
11824         for consistency with lib/strerror-override.c.
11825
11826 2011-06-23  Eric Blake  <eblake@redhat.com>
11827
11828         maint.mk: test further PATH_MAX issues
11829         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11830         (sc_prohibit_path_max_allocation): ...and also test alloca.
11831         Suggested by Jim Meyering.
11832
11833 2011-06-22  Eric Blake  <eblake@redhat.com>
11834
11835         maint.mk: add syntax-check to avoid char[PATH_MAX]
11836         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11837
11838         stat: be robust to PATH_MAX definition
11839         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11840         * modules/stat (Depends-on): Add verify.
11841
11842         link: work around IRIX bug
11843         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11844         * lib/link.c (rpl_link): Work around it.
11845         * tests/test-link.h (test_link): Enhance test.
11846         * doc/posix-functions/link.texi (link): Document the bug.
11847
11848         getopt: silence clang warning
11849         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11850         dereference.
11851         Reported by Gustavo Martin Domato.
11852
11853 2011-06-22  Jim Meyering  <meyering@redhat.com>
11854
11855         bootstrap: do not insert a blank line into each .gitignore file
11856         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11857
11858 2011-06-21  Eric Blake  <eblake@redhat.com>
11859
11860         perror: test for output mismatch
11861         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11862         perror on IRIX.
11863
11864         strerror_r: fix OpenBSD behavior on out-of-range
11865         * lib/strerror_r.c (strerror_r): Always use maximal string.
11866         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11867
11868         strerror_r: fix OpenBSD behavior on 0
11869         * lib/strerror-override.c (strerror_override): Also override 0
11870         when needed.
11871         * lib/strerror-override.h (strerror_override): Likewise.
11872         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11873         earlier.
11874         * lib/strerror_r.c (strerror_r): Likewise.
11875         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11876         behavior...
11877         (gl_FUNC_STRERROR_0): ...into new macro.
11878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11879         is overridden.
11880         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11881         * modules/strerror-override (Files): Add strerror.m4.
11882         (configure.ac): Also provide override for 0 when needed.
11883         * doc/posix-functions/strerror.texi (strerror): Document this.
11884         * doc/posix-functions/perror.texi (perror): Likewise.
11885
11886         perror: adjust array size
11887         * modules/perror (Depends-on): Add strerror-override.
11888         * lib/perror.c (perror): Use it to avoid magic number.
11889
11890         strerror-override: reduce size
11891         * lib/strerror-override.c (strerror_override): Use fewer lines.
11892
11893 2011-06-20  Bruno Haible  <bruno@clisp.org>
11894
11895         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11896         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11897
11898 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         alloca: port to compilers that can optimize like GCC 4.6.0
11901         * lib/alloca.c (find_stack_direction): New signature, taken from
11902         Autoconf git.  This works with GCC 4.6.0.  This code should never
11903         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11904         be used with other compilers that optimize as well as GCC 4.6.0 does.
11905         (alloca): Adjust to new signature.
11906         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11907         New macro, which patches Autoconf in a similar way.
11908
11909         c-stack: stop worrying about stack direction
11910         * lib/c-stack.c (find_stack_direction): Remove.
11911         (segv_handler): Don't worry about stack direction growth, as it's
11912         too much of a pain to configure this correctly, given how compilers
11913         are optimizing-away our stack-growth detection code.  Instead, assume
11914         that any access to just before or just after the stack is OK.
11915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11916         Don't require AC_FUNC_ALLOCA; no longer needed.
11917
11918 2011-06-20  Eric Blake  <eblake@redhat.com>
11919
11920         test-stat: don't allocate PATH_MAX bytes
11921         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11922         PATH_MAX-sized buffer.
11923         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11924         * modules/stat-tests (Depends-on): Likewise.
11925         * tests/test-fstatat.c (includes): Drop pathmax.h.
11926         * tests/test-stat.c (includes): Likewise.
11927         Reported by Bruno Haible.
11928
11929 2011-06-20  Bruno Haible  <bruno@clisp.org>
11930
11931         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11932         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11933         * lib/float.c: New file.
11934         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11935         REPLACE_FLOAT_LDBL.
11936         * modules/float (Files): Add lib/float.c.
11937         (configure.ac): Invoke AC_LIBOBJ.
11938         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11939
11940 2011-06-20  Bruno Haible  <bruno@clisp.org>
11941
11942         Tests for module 'float'.
11943         * modules/float-tests: New file.
11944         * tests/test-float.c: New file.
11945
11946 2011-06-19  Bruno Haible  <bruno@clisp.org>
11947
11948         isinf: Coding style.
11949         * lib/isinf.c: Use GNU coding style.
11950
11951 2011-06-19  Bruno Haible  <bruno@clisp.org>
11952
11953         linkat test: Avoid test failure on AIX 7.1.
11954         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11955         * tests/test-link.h (test_link): Likewise.
11956
11957 2011-06-19  Bruno Haible  <bruno@clisp.org>
11958
11959         pread test: Avoid test failure on OpenBSD 4.9.
11960         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11961
11962 2011-06-19  Bruno Haible  <bruno@clisp.org>
11963
11964         sprintf-posix: Fix test failure on AIX 7.1.
11965         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11966         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11967         on AIX.
11968         * doc/posix-functions/fprintf.texi: Likewise.
11969         * doc/posix-functions/printf.texi: Likewise.
11970         * doc/posix-functions/snprintf.texi: Likewise.
11971         * doc/posix-functions/sprintf.texi: Likewise.
11972         * doc/posix-functions/vdprintf.texi: Likewise.
11973         * doc/posix-functions/vfprintf.texi: Likewise.
11974         * doc/posix-functions/vprintf.texi: Likewise.
11975         * doc/posix-functions/vsnprintf.texi: Likewise.
11976         * doc/posix-functions/vsprintf.texi: Likewise.
11977
11978 2011-06-19  Bruno Haible  <bruno@clisp.org>
11979
11980         roundl-ieee: Fix test failure on AIX 7.1.
11981         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11982         * doc/posix-functions/roundl.texi: Mention problem with negative
11983         arguments.
11984
11985 2011-06-19  Bruno Haible  <bruno@clisp.org>
11986
11987         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11988         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11989         * doc/posix-functions/round.texi: Mention problem with negative
11990         arguments.
11991         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11992
11993 2011-06-19  Bruno Haible  <bruno@clisp.org>
11994
11995         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11997         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11998         * doc/posix-functions/roundf.texi: Mention problem with negative
11999         arguments.
12000         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12001
12002 2011-06-19  Bruno Haible  <bruno@clisp.org>
12003
12004         ceilf-ieee: Work around bug on MacOS X 10.5.
12005         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12006
12007         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12008         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12009         IEEE compliant, avoid compiler optimizations.
12010         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12011         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12012         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12013         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12014         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12015         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12016         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12017         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12018         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12020
12021 2011-06-19  Bruno Haible  <bruno@clisp.org>
12022
12023         ceilf-ieee: Work around bug on AIX 7.1.
12024         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12025         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12026
12027 2011-06-19  Bruno Haible  <bruno@clisp.org>
12028
12029         ceil-ieee: Work around bug on AIX 7.1.
12030         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12031         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12032
12033 2011-06-18  Bruno Haible  <bruno@clisp.org>
12034
12035         fsync test: Avoid test failure on MacOS X and AIX.
12036         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12037         EINVAL.
12038
12039 2011-06-18  Bruno Haible  <bruno@clisp.org>
12040
12041         openat, fdopendir tests: Fix link errors.
12042         * modules/openat-tests (Depends-on): Add progname.
12043         * modules/fdopendir-tests (Depends-on): Likewise.
12044         * tests/test-fchownat.c: Include progname.h.
12045         (main): Call set_program_name.
12046         * tests/test-fstatat.c: Include progname.h.
12047         (main): Call set_program_name.
12048         * tests/test-mkdirat.c: Include progname.h.
12049         (main): Call set_program_name.
12050         * tests/test-openat.c: Include progname.h.
12051         (main): Call set_program_name.
12052         * tests/test-unlinkat.c: Include progname.h.
12053         (main): Call set_program_name.
12054         * tests/test-fdopendir.c: Include progname.h.
12055         (main): Call set_program_name.
12056
12057 2011-06-18  Bruno Haible  <bruno@clisp.org>
12058
12059         Doc update.
12060         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12061         HP-UX.
12062         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12063
12064 2011-06-18  Bruno Haible  <bruno@clisp.org>
12065
12066         getcwd tests: Avoid compilation error on HP-UX 11.31.
12067         * modules/getcwd-tests (Depends-on): Add pathmax.
12068         * tests/test-getcwd.c: Include pathmax.h.
12069
12070 2011-06-18  Bruno Haible  <bruno@clisp.org>
12071
12072         isfinite, isinf: Fix link error on AIX 6 and 7.
12073         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12074         needed, also test the macro with a 'float' argument.
12075         * m4/isinf.m4 (gl_ISINF): Likewise.
12076
12077 2011-06-18  Bruno Haible  <bruno@clisp.org>
12078
12079         getloadavg: Don't clobber LIBS. Regression from previous commit.
12080         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12081         AC_CHECK_LIB from here...
12082         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12083         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12084         gl_func_getloadavg_done.
12085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12086
12087 2011-06-18  Bruno Haible  <bruno@clisp.org>
12088
12089         clean-temp: Improve documentation.
12090         * lib/clean-temp.h: Explain better how to use this module.
12091         Reported by John Darrington <john@darrington.wattle.id.au>.
12092
12093 2011-06-17  Bruno Haible  <bruno@clisp.org>
12094
12095         pread, pwrite: Avoid cc warning on AIX.
12096         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12097         (pwrite): Likewise.
12098
12099 2011-06-17  Bruno Haible  <bruno@clisp.org>
12100
12101         spawn-pipe tests: Fix link error.
12102         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12104
12105 2011-06-17  Bruno Haible  <bruno@clisp.org>
12106
12107         Tests: Remove unnecessary dependency.
12108         * modules/canonicalize-tests (Depends-on): Remove progname.
12109         * modules/chown-tests (Depends-on): Likewise.
12110         * modules/dirname-tests (Depends-on): Likewise.
12111         * modules/fdopendir-tests (Depends-on): Likewise.
12112         * modules/fdutimensat-tests (Depends-on): Likewise.
12113         * modules/hash-tests (Depends-on): Likewise.
12114         * modules/lchown-tests (Depends-on): Likewise.
12115         * modules/linkat-tests (Depends-on): Likewise.
12116         * modules/renameat-tests (Depends-on): Likewise.
12117         * modules/spawn-pipe-tests (Depends-on): Likewise.
12118         * modules/utimensat-tests (Depends-on): Likewise.
12119
12120 2011-06-17  Bruno Haible  <bruno@clisp.org>
12121
12122         spawn-pipe tests: Fix link error.
12123         * tests/test-spawn-pipe-child.c: Undefine fflush.
12124
12125 2011-06-17  Bruno Haible  <bruno@clisp.org>
12126
12127         Fix tests link errors.
12128         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12129         * modules/chown-tests (Makefile.am): Don't link test-chown with
12130         LIBINTL.
12131         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12132         LIBINTL.
12133         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12134         LIBINTL.
12135         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12136         LIBINTL.
12137
12138 2011-06-16  Bruno Haible  <bruno@clisp.org>
12139
12140         crypto/gc-sha1: Fix recent regression.
12141         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12142         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12143
12144         crypto/gc-md5: Fix recent regression.
12145         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12146
12147         crypto/gc-md4: Fix recent regression.
12148         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12149         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12150
12151         crypto/gc-arctwo: Fix recent regression.
12152         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12153         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12154
12155         crypto/gc-rijndael: Fix recent regression.
12156         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12157         (configure.ac): Invoke AC_LIBOBJ here.
12158         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12160
12161         crypto/gc-hmac-sha1: Fix recent regression.
12162         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12163         (configure.ac): Invoke AC_LIBOBJ here.
12164         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12166
12167         crypto/gc-hmac-md5: Fix recent regression.
12168         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12169         (configure.ac): Invoke AC_LIBOBJ here.
12170         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12172
12173         crypto/gc-des: Fix recent regression.
12174         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12175         (configure.ac): Invoke AC_LIBOBJ here.
12176         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12178
12179         crypto/gc-arcfour: Fix recent regression.
12180         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12181         (configure.ac): Invoke AC_LIBOBJ here.
12182         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12184
12185 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12186
12187         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12188         After the 2011-05-21 change, this macro requires
12189         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12190         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12191
12192 2011-06-16  Bruno Haible  <bruno@clisp.org>
12193
12194         fprintftime: Move AC_LIBOBJ invocations to module description.
12195         * m4/fprintftime.m4: Remove file.
12196         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12197         (configure.ac): Remove gl_FPRINTFTIME call.
12198         (Makefile.am): Augment lib_SOURCES.
12199         Reported by Jim Meyering.
12200
12201 2011-06-16  Bruno Haible  <bruno@clisp.org>
12202
12203         tmpfile-safer: Finish 2011-05-23 commit.
12204         * m4/stdio-safer.m4: Really remove file.
12205         Reported by Jim Meyering.
12206
12207 2011-06-16  Bruno Haible  <bruno@clisp.org>
12208
12209         syntax-check: Fix typo.
12210         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12211         printf-posix.m4.
12212         Reported by Jim Meyering.
12213
12214 2011-06-13  Jim Meyering  <meyering@redhat.com>
12215
12216         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12217         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12218
12219 2011-05-23  Bruno Haible  <bruno@clisp.org>
12220
12221         yesno: Move AC_LIBOBJ invocations to module description.
12222         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12223         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12224
12225 2011-05-23  Bruno Haible  <bruno@clisp.org>
12226
12227         xstrtol: Move AC_LIBOBJ invocations to module description.
12228         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12229         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12230
12231 2011-05-23  Bruno Haible  <bruno@clisp.org>
12232
12233         xstrtold: Move AC_LIBOBJ invocations to module description.
12234         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12235         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12236
12237 2011-05-23  Bruno Haible  <bruno@clisp.org>
12238
12239         xstrtod: Move AC_LIBOBJ invocations to module description.
12240         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12241         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12242
12243 2011-05-23  Bruno Haible  <bruno@clisp.org>
12244
12245         xnanosleep: Move AC_LIBOBJ invocations to module description.
12246         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12247         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12248
12249 2011-05-23  Bruno Haible  <bruno@clisp.org>
12250
12251         xgetcwd: Move AC_LIBOBJ invocations to module description.
12252         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12253         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12254
12255 2011-05-23  Bruno Haible  <bruno@clisp.org>
12256
12257         xalloc: Move AC_LIBOBJ invocations to module description.
12258         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12259         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12260
12261 2011-05-23  Bruno Haible  <bruno@clisp.org>
12262
12263         write-any-file: Move AC_LIBOBJ invocations to module description.
12264         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12265         invocation.
12266         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12267
12268 2011-05-23  Bruno Haible  <bruno@clisp.org>
12269
12270         utimens: Move AC_LIBOBJ invocations to module description.
12271         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12272         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12273
12274 2011-05-23  Bruno Haible  <bruno@clisp.org>
12275
12276         utimecmp: Move AC_LIBOBJ invocations to module description.
12277         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12278         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12279
12280 2011-05-23  Bruno Haible  <bruno@clisp.org>
12281
12282         userspec: Move AC_LIBOBJ invocations to module description.
12283         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12284         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12285
12286 2011-05-23  Bruno Haible  <bruno@clisp.org>
12287
12288         unlinkdir: Move AC_LIBOBJ invocations to module description.
12289         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12290         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12291
12292 2011-05-23  Bruno Haible  <bruno@clisp.org>
12293
12294         unistd-safer: Move AC_LIBOBJ invocations to module description.
12295         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12296         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12297
12298 2011-05-23  Bruno Haible  <bruno@clisp.org>
12299
12300         tempname: Move AC_LIBOBJ invocations to module description.
12301         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12302         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12303
12304 2011-05-23  Bruno Haible  <bruno@clisp.org>
12305
12306         strftime: Move AC_LIBOBJ invocations to module description.
12307         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12308         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12309
12310 2011-05-23  Bruno Haible  <bruno@clisp.org>
12311
12312         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12313         * m4/stdlib-safer.m4: Remove file.
12314         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12315         (configure.ac): Remove gl_STDLIB_SAFER call.
12316         (Makefile.am): Augment lib_SOURCES.
12317
12318 2011-05-23  Bruno Haible  <bruno@clisp.org>
12319
12320         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12321         * m4/stdio-safer.m4: Remove file.
12322         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12323         (configure.ac): Remove gl_TMPFILE_SAFER call.
12324         (Makefile.am): Augment lib_SOURCES.
12325
12326 2011-05-23  Bruno Haible  <bruno@clisp.org>
12327
12328         popen-safer: Move AC_LIBOBJ invocations to module description.
12329         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12330         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12331         (configure.ac): Remove gl_POPEN_SAFER call.
12332         (Makefile.am): Augment lib_SOURCES.
12333
12334 2011-05-23  Bruno Haible  <bruno@clisp.org>
12335
12336         freopen-safer: Move AC_LIBOBJ invocations to module description.
12337         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12338         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12339         (configure.ac): Remove gl_FREOPEN_SAFER call.
12340         (Makefile.am): Augment lib_SOURCES.
12341
12342 2011-05-23  Bruno Haible  <bruno@clisp.org>
12343
12344         fopen-safer: Move AC_LIBOBJ invocations to module description.
12345         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12346         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12347         (configure.ac): Remove gl_FOPEN_SAFER call.
12348         (Makefile.am): Augment lib_SOURCES.
12349
12350 2011-05-23  Bruno Haible  <bruno@clisp.org>
12351
12352         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12353         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12354         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12355
12356 2011-05-23  Bruno Haible  <bruno@clisp.org>
12357
12358         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12359         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12360         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12365         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12366         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12367
12368 2011-05-23  Bruno Haible  <bruno@clisp.org>
12369
12370         settime: Move AC_LIBOBJ invocations to module description.
12371         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12372         * modules/settime (Makefile.am): Augment lib_SOURCES.
12373
12374 2011-05-23  Bruno Haible  <bruno@clisp.org>
12375
12376         savedir: Move AC_LIBOBJ invocations to module description.
12377         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12378         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12379
12380 2011-05-23  Bruno Haible  <bruno@clisp.org>
12381
12382         save-cwd: Move AC_LIBOBJ invocations to module description.
12383         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12384         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12385
12386 2011-05-23  Bruno Haible  <bruno@clisp.org>
12387
12388         same: Move AC_LIBOBJ invocations to module description.
12389         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12390         * modules/same (Makefile.am): Augment lib_SOURCES.
12391
12392 2011-05-23  Bruno Haible  <bruno@clisp.org>
12393
12394         safe-write: Move AC_LIBOBJ invocations to module description.
12395         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12396         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12397         instead of gl_SAFE_WRITE.
12398         (Makefile.am): Augment lib_SOURCES.
12399
12400 2011-05-23  Bruno Haible  <bruno@clisp.org>
12401
12402         safe-read: Move AC_LIBOBJ invocations to module description.
12403         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12404         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12405         of gl_SAFE_READ.
12406         (Makefile.am): Augment lib_SOURCES.
12407
12408 2011-05-23  Bruno Haible  <bruno@clisp.org>
12409
12410         safe-alloc: Move AC_LIBOBJ invocations to module description.
12411         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12412         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12413
12414 2011-05-23  Bruno Haible  <bruno@clisp.org>
12415
12416         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12417         * m4/rijndael.m4: Remove file.
12418         * modules/crypto/rijndael (Files): Remove it.
12419         (configure.ac): Remove gl_RIJNDAEL call.
12420         (Makefile.am): Augment lib_SOURCES.
12421
12422 2011-05-23  Bruno Haible  <bruno@clisp.org>
12423
12424         readtokens: Move AC_LIBOBJ invocations to module description.
12425         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12426         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12427
12428 2011-05-23  Bruno Haible  <bruno@clisp.org>
12429
12430         read-file: Move AC_LIBOBJ invocations to module description.
12431         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12432         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12433         of gl_FUNC_READ_FILE.
12434         (Makefile.am): Augment lib_SOURCES.
12435
12436 2011-05-23  Bruno Haible  <bruno@clisp.org>
12437
12438         quotearg: Move AC_LIBOBJ invocations to module description.
12439         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12440         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12441
12442 2011-05-23  Bruno Haible  <bruno@clisp.org>
12443
12444         quote: Move AC_LIBOBJ invocations to module description.
12445         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12446         * modules/quote (Makefile.am): Augment lib_SOURCES.
12447
12448 2011-05-23  Bruno Haible  <bruno@clisp.org>
12449
12450         posixver: Move AC_LIBOBJ invocations to module description.
12451         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12452         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12453
12454 2011-05-23  Bruno Haible  <bruno@clisp.org>
12455
12456         posixtm: Move AC_LIBOBJ invocations to module description.
12457         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12458         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12459
12460 2011-05-23  Bruno Haible  <bruno@clisp.org>
12461
12462         physmem: Move AC_LIBOBJ invocations to module description.
12463         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12464         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12465
12466 2011-05-23  Bruno Haible  <bruno@clisp.org>
12467
12468         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12469         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12470         invocation.
12471         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12472
12473 2011-05-23  Bruno Haible  <bruno@clisp.org>
12474
12475         mpsort: Move AC_LIBOBJ invocations to module description.
12476         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12477         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12478
12479 2011-05-23  Bruno Haible  <bruno@clisp.org>
12480
12481         modechange: Move AC_LIBOBJ invocations to module description.
12482         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12483         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12484
12485 2011-05-23  Bruno Haible  <bruno@clisp.org>
12486
12487         mkdir-p: Move AC_LIBOBJ invocations to module description.
12488         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12489         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12490
12491 2011-05-23  Bruno Haible  <bruno@clisp.org>
12492
12493         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12494         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12495         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12496
12497 2011-05-23  Bruno Haible  <bruno@clisp.org>
12498
12499         mgetgroups: Move AC_LIBOBJ invocations to module description.
12500         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12501         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12502
12503 2011-05-23  Bruno Haible  <bruno@clisp.org>
12504
12505         memxor: Move AC_LIBOBJ invocations to module description.
12506         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12507         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12508
12509 2011-05-23  Bruno Haible  <bruno@clisp.org>
12510
12511         memcoll: Move AC_LIBOBJ invocations to module description.
12512         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12513         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12514
12515 2011-05-23  Bruno Haible  <bruno@clisp.org>
12516
12517         memcasecmp: Move AC_LIBOBJ invocations to module description.
12518         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12519         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12520
12521 2011-05-23  Bruno Haible  <bruno@clisp.org>
12522
12523         crypto/md5: Move AC_LIBOBJ invocations to module description.
12524         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12525         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12526
12527 2011-05-23  Bruno Haible  <bruno@clisp.org>
12528
12529         crypto/md4: Move AC_LIBOBJ invocations to module description.
12530         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12531         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12532
12533 2011-05-23  Bruno Haible  <bruno@clisp.org>
12534
12535         crypto/md2: Move AC_LIBOBJ invocations to module description.
12536         * m4/md2.m4: Remove file.
12537         * modules/crypto/md2 (Files): Remove it.
12538         (configure.ac): Remove gl_MD2 call.
12539         (Makefile.am): Augment lib_SOURCES.
12540
12541 2011-05-23  Bruno Haible  <bruno@clisp.org>
12542
12543         long-options: Move AC_LIBOBJ invocations to module description.
12544         * m4/long-options.m4: Remove file.
12545         * modules/long-options (Files): Remove it.
12546         (configure.ac): Remove gl_LONG_OPTIONS call.
12547         (Makefile.am): Augment lib_SOURCES.
12548
12549 2011-05-23  Bruno Haible  <bruno@clisp.org>
12550
12551         i-ring: Move AC_LIBOBJ invocations to module description.
12552         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12553         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12554
12555 2011-05-23  Bruno Haible  <bruno@clisp.org>
12556
12557         idcache: Move AC_LIBOBJ invocations to module description.
12558         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12559         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12560
12561 2011-05-23  Bruno Haible  <bruno@clisp.org>
12562
12563         human: Move AC_LIBOBJ invocations to module description.
12564         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12565         * modules/human (Makefile.am): Augment lib_SOURCES.
12566
12567 2011-05-23  Bruno Haible  <bruno@clisp.org>
12568
12569         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12570         * m4/hmac-sha1.m4: Remove file.
12571         * modules/crypto/hmac-sha1 (Files): Remove it.
12572         (configure.ac): Remove gl_HMAC_SHA1 call.
12573         (Makefile.am): Augment lib_SOURCES.
12574
12575 2011-05-23  Bruno Haible  <bruno@clisp.org>
12576
12577         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12578         * m4/hmac-md5.m4: Remove file.
12579         * modules/crypto/hmac-md5 (Files): Remove it.
12580         (configure.ac): Remove gl_HMAC_MD5 call.
12581         (Makefile.am): Augment lib_SOURCES.
12582
12583 2011-05-23  Bruno Haible  <bruno@clisp.org>
12584
12585         hash: Move AC_LIBOBJ invocations to module description.
12586         * m4/hash.m4: Remove file.
12587         * modules/hash (Files): Remove it.
12588         (configure.ac): Remove gl_HASH call.
12589         (Makefile.am): Augment lib_SOURCES.
12590
12591 2011-05-23  Bruno Haible  <bruno@clisp.org>
12592
12593         hard-locale: Move AC_LIBOBJ invocations to module description.
12594         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12595         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12596
12597 2011-05-23  Bruno Haible  <bruno@clisp.org>
12598
12599         getugroups: Move AC_LIBOBJ invocations to module description.
12600         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12601         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12602
12603 2011-05-23  Bruno Haible  <bruno@clisp.org>
12604
12605         gettime: Move AC_LIBOBJ invocations to module description.
12606         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12607         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12608
12609 2011-05-23  Bruno Haible  <bruno@clisp.org>
12610
12611         getndelim2: Move AC_LIBOBJ invocations to module description.
12612         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12613         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12614
12615 2011-05-23  Bruno Haible  <bruno@clisp.org>
12616
12617         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12618         * m4/gc-pbkdf2-sha1.m4: Remove file.
12619         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12620         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12621         (Makefile.am): Augment lib_SOURCES.
12622
12623 2011-05-23  Bruno Haible  <bruno@clisp.org>
12624
12625         fts: Move AC_LIBOBJ invocations to module description.
12626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12627         * modules/fts (configure.ac): ... to here.
12628
12629 2011-05-23  Bruno Haible  <bruno@clisp.org>
12630
12631         file-type: Move AC_LIBOBJ invocations to module description.
12632         * m4/file-type.m4: Remove file.
12633         * modules/file-type (Files): Remove it.
12634         (configure.ac): Remove gl_FILE_TYPE call.
12635         (Makefile.am): Augment lib_SOURCES.
12636
12637 2011-05-23  Bruno Haible  <bruno@clisp.org>
12638
12639         filenamecat*: Respect rules for use of AC_LIBOBJ.
12640         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12641         Remove AC_LIBOBJ invocation.
12642         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12643         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12644
12645 2011-05-23  Bruno Haible  <bruno@clisp.org>
12646
12647         filemode: Move AC_LIBOBJ invocations to module description.
12648         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12649         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12650
12651 2011-05-23  Bruno Haible  <bruno@clisp.org>
12652
12653         openat-safer: Move AC_LIBOBJ invocations to module description.
12654         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12655         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12656
12657 2011-05-23  Bruno Haible  <bruno@clisp.org>
12658
12659         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12661         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12662
12663 2011-05-23  Bruno Haible  <bruno@clisp.org>
12664
12665         exclude: Move AC_LIBOBJ invocations to module description.
12666         * m4/exclude.m4: Remove file.
12667         * modules/exclude (Files): Remove it.
12668         (configure.ac): Remove gl_EXCLUDE call.
12669         (Makefile.am): Augment lib_SOURCES.
12670
12671 2011-05-23  Bruno Haible  <bruno@clisp.org>
12672
12673         dirname*: Respect rules for use of AC_LIBOBJ.
12674         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12675         invocations.
12676         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12677         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         dirent-safer: Move AC_LIBOBJ invocations to module description.
12682         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12683         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         crypto/des: Move AC_LIBOBJ invocations to module description.
12688         * m4/des.m4: Remove file.
12689         * modules/crypto/des (Files): Remove it.
12690         (configure.ac): Remove gl_DES call.
12691         (Makefile.am): Augment lib_SOURCES.
12692
12693 2011-05-23  Bruno Haible  <bruno@clisp.org>
12694
12695         cycle-check: Move AC_LIBOBJ invocations to module description.
12696         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12697         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12698
12699 2011-05-23  Bruno Haible  <bruno@clisp.org>
12700
12701         c-strtold: Move AC_LIBOBJ invocations to module description.
12702         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12703         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12704
12705 2011-05-23  Bruno Haible  <bruno@clisp.org>
12706
12707         c-strtod: Move AC_LIBOBJ invocations to module description.
12708         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12709         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12710
12711 2011-05-23  Bruno Haible  <bruno@clisp.org>
12712
12713         crc: Move AC_LIBOBJ invocations to module description.
12714         * m4/crc.m4: Remove file.
12715         * modules/crc (Files): Remove it.
12716         (configure.ac): Remove gl_CRC call.
12717         (Makefile.am): Augment lib_SOURCES.
12718
12719 2011-05-23  Bruno Haible  <bruno@clisp.org>
12720
12721         close-stream: Move AC_LIBOBJ invocations to module description.
12722         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12723         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12724
12725 2011-05-23  Bruno Haible  <bruno@clisp.org>
12726
12727         closeout: Move AC_LIBOBJ invocations to module description.
12728         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12729         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12730
12731 2011-05-23  Bruno Haible  <bruno@clisp.org>
12732
12733         closein: Move AC_LIBOBJ invocations to module description.
12734         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12735         * modules/closein (Makefile.am): Augment lib_SOURCES.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738
12739         cloexec: Move AC_LIBOBJ invocations to module description.
12740         * m4/cloexec.m4: Remove file.
12741         * modules/cloexec (Files): Remove it.
12742         (configure.ac): Remove gl_CLOEXEC call.
12743         (Makefile.am): Augment lib_SOURCES.
12744
12745 2011-05-23  Bruno Haible  <bruno@clisp.org>
12746
12747         check-version: Move AC_LIBOBJ invocations to module description.
12748         * m4/check-version.m4: Remove file.
12749         * modules/check-version (Files): Remove it.
12750         (configure.ac): Remove gl_CHECK_VERSION call.
12751         (Makefile.am): Augment lib_SOURCES.
12752
12753 2011-05-23  Bruno Haible  <bruno@clisp.org>
12754
12755         chdir-safer: Move AC_LIBOBJ invocations to module description.
12756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12757         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12758
12759 2011-05-23  Bruno Haible  <bruno@clisp.org>
12760
12761         canonicalize: Move AC_LIBOBJ invocations to module description.
12762         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12763         AC_LIBOBJ invocation.
12764         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         canon-host: Move AC_LIBOBJ invocations to module description.
12769         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12770         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12771         instead of gl_CANON_HOST.
12772         (Makefile.am): Augment lib_SOURCES.
12773
12774 2011-05-23  Bruno Haible  <bruno@clisp.org>
12775
12776         backupfile: Move AC_LIBOBJ invocations to module description.
12777         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12778         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12779
12780 2011-05-23  Bruno Haible  <bruno@clisp.org>
12781
12782         argmatch: Move AC_LIBOBJ invocations to module description.
12783         * m4/argmatch.m4: Remove file.
12784         * modules/argmatch (Files): Remove it.
12785         (configure.ac): Remove gl_ARGMATCH call.
12786         (Makefile.am): Augment lib_SOURCES.
12787
12788 2011-05-23  Bruno Haible  <bruno@clisp.org>
12789
12790         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12791         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12792         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12793
12794 2011-05-23  Bruno Haible  <bruno@clisp.org>
12795
12796         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12797         * m4/arcfour.m4: Remove file.
12798         * modules/crypto/arcfour (Files): Remove it.
12799         (configure.ac): Remove gl_ARCFOUR call.
12800         (Makefile.am): Augment lib_SOURCES.
12801
12802 2011-05-22  Bruno Haible  <bruno@clisp.org>
12803
12804         write: Move AC_LIBOBJ invocations to module description.
12805         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12806         * modules/write (configure.ac): ... to here.
12807
12808 2011-05-22  Bruno Haible  <bruno@clisp.org>
12809
12810         wmemset: Move AC_LIBOBJ invocations to module description.
12811         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12812         here...
12813         * modules/wmemset (configure.ac): ... to here.
12814
12815 2011-05-22  Bruno Haible  <bruno@clisp.org>
12816
12817         wmemmove: Move AC_LIBOBJ invocations to module description.
12818         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12819         here...
12820         * modules/wmemmove (configure.ac): ... to here.
12821
12822 2011-05-22  Bruno Haible  <bruno@clisp.org>
12823
12824         wmemcpy: Move AC_LIBOBJ invocations to module description.
12825         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12826         here...
12827         * modules/wmemcpy (configure.ac): ... to here.
12828
12829 2011-05-22  Bruno Haible  <bruno@clisp.org>
12830
12831         wmemcmp: Move AC_LIBOBJ invocations to module description.
12832         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12833         here...
12834         * modules/wmemcmp (configure.ac): ... to here.
12835
12836 2011-05-22  Bruno Haible  <bruno@clisp.org>
12837
12838         wmemchr: Move AC_LIBOBJ invocations to module description.
12839         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12840         here...
12841         * modules/wmemchr (configure.ac): ... to here.
12842
12843 2011-05-22  Bruno Haible  <bruno@clisp.org>
12844
12845         wcswidth: Move AC_LIBOBJ invocations to module description.
12846         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12847         here...
12848         * modules/wcswidth (configure.ac): ... to here.
12849
12850 2011-05-22  Bruno Haible  <bruno@clisp.org>
12851
12852         wcwidth: Respect rules for use of AC_LIBOBJ.
12853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12854         invocation from here...
12855         * modules/wcwidth (configure.ac): ... to here.
12856         (Depends-on): Update conditions.
12857
12858 2011-05-22  Bruno Haible  <bruno@clisp.org>
12859
12860         wctype: Move AC_LIBOBJ invocations to module description.
12861         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12862         invocation from here...
12863         * modules/wctype (configure.ac): ... to here.
12864         (Depends-on): Update conditions.
12865
12866 2011-05-22  Bruno Haible  <bruno@clisp.org>
12867
12868         wctrans: Move AC_LIBOBJ invocations to module description.
12869         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12870         invocation from here...
12871         * modules/wctrans (configure.ac): ... to here.
12872
12873 2011-05-22  Bruno Haible  <bruno@clisp.org>
12874
12875         wctomb: Move AC_LIBOBJ invocations to module description.
12876         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12877         invocations from here...
12878         * modules/wctomb (configure.ac): ... to here.
12879
12880 2011-05-22  Bruno Haible  <bruno@clisp.org>
12881
12882         wctob: Move AC_LIBOBJ invocations to module description.
12883         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12884         gl_PREREQ_WCTOB invocations from here...
12885         * modules/wctob (configure.ac): ... to here.
12886         (Depends-on): Update conditions.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12891         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12892         here...
12893         * modules/wcsxfrm (configure.ac): ... to here.
12894
12895 2011-05-22  Bruno Haible  <bruno@clisp.org>
12896
12897         wcstok: Move AC_LIBOBJ invocations to module description.
12898         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12899         * modules/wcstok (configure.ac): ... to here.
12900
12901 2011-05-22  Bruno Haible  <bruno@clisp.org>
12902
12903         wcsstr: Move AC_LIBOBJ invocations to module description.
12904         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12905         * modules/wcsstr (configure.ac): ... to here.
12906
12907 2011-05-22  Bruno Haible  <bruno@clisp.org>
12908
12909         wcsspn: Move AC_LIBOBJ invocations to module description.
12910         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12911         * modules/wcsspn (configure.ac): ... to here.
12912
12913 2011-05-22  Bruno Haible  <bruno@clisp.org>
12914
12915         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12916         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12917         gl_PREREQ_WCSRTOMBS invocations from here...
12918         * modules/wcsrtombs (configure.ac): ... to here.
12919
12920 2011-05-22  Bruno Haible  <bruno@clisp.org>
12921
12922         wcsrchr: Move AC_LIBOBJ invocations to module description.
12923         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12924         here...
12925         * modules/wcsrchr (configure.ac): ... to here.
12926
12927 2011-05-22  Bruno Haible  <bruno@clisp.org>
12928
12929         wcspbrk: Move AC_LIBOBJ invocations to module description.
12930         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12931         here...
12932         * modules/wcspbrk (configure.ac): ... to here.
12933
12934 2011-05-22  Bruno Haible  <bruno@clisp.org>
12935
12936         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12937         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12938         gl_PREREQ_WCSNRTOMBS invocations from here...
12939         * modules/wcsnrtombs (configure.ac): ... to here.
12940
12941 2011-05-22  Bruno Haible  <bruno@clisp.org>
12942
12943         wcsnlen: Move AC_LIBOBJ invocations to module description.
12944         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12945         here...
12946         * modules/wcsnlen (configure.ac): ... to here.
12947
12948 2011-05-22  Bruno Haible  <bruno@clisp.org>
12949
12950         wcsncpy: Move AC_LIBOBJ invocations to module description.
12951         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12952         here...
12953         * modules/wcsncpy (configure.ac): ... to here.
12954
12955 2011-05-22  Bruno Haible  <bruno@clisp.org>
12956
12957         wcsncmp: Move AC_LIBOBJ invocations to module description.
12958         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12959         here...
12960         * modules/wcsncmp (configure.ac): ... to here.
12961
12962 2011-05-22  Bruno Haible  <bruno@clisp.org>
12963
12964         wcsncat: Move AC_LIBOBJ invocations to module description.
12965         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12966         here...
12967         * modules/wcsncat (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12972         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12973         from here...
12974         * modules/wcsncasecmp (configure.ac): ... to here.
12975
12976 2011-05-22  Bruno Haible  <bruno@clisp.org>
12977
12978         wcslen: Move AC_LIBOBJ invocations to module description.
12979         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12980         * modules/wcslen (configure.ac): ... to here.
12981
12982 2011-05-22  Bruno Haible  <bruno@clisp.org>
12983
12984         wcsdup: Move AC_LIBOBJ invocations to module description.
12985         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12986         * modules/wcsdup (configure.ac): ... to here.
12987
12988 2011-05-22  Bruno Haible  <bruno@clisp.org>
12989
12990         wcscspn: Move AC_LIBOBJ invocations to module description.
12991         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12992         here...
12993         * modules/wcscspn (configure.ac): ... to here.
12994
12995 2011-05-22  Bruno Haible  <bruno@clisp.org>
12996
12997         wcscpy: Move AC_LIBOBJ invocations to module description.
12998         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12999         * modules/wcscpy (configure.ac): ... to here.
13000
13001 2011-05-22  Bruno Haible  <bruno@clisp.org>
13002
13003         wcscoll: Move AC_LIBOBJ invocations to module description.
13004         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13005         here...
13006         * modules/wcscoll (configure.ac): ... to here.
13007
13008 2011-05-22  Bruno Haible  <bruno@clisp.org>
13009
13010         wcscmp: Move AC_LIBOBJ invocations to module description.
13011         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13012         * modules/wcscmp (configure.ac): ... to here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         wcschr: Move AC_LIBOBJ invocations to module description.
13017         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13018         * modules/wcschr (configure.ac): ... to here.
13019
13020 2011-05-22  Bruno Haible  <bruno@clisp.org>
13021
13022         wcscat: Move AC_LIBOBJ invocations to module description.
13023         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13024         * modules/wcscat (configure.ac): ... to here.
13025
13026 2011-05-22  Bruno Haible  <bruno@clisp.org>
13027
13028         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13029         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13030         here...
13031         * modules/wcscasecmp (configure.ac): ... to here.
13032
13033 2011-05-22  Bruno Haible  <bruno@clisp.org>
13034
13035         wcrtomb: Move AC_LIBOBJ invocations to module description.
13036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13037         invocations from here...
13038         * modules/wcrtomb (configure.ac): ... to here.
13039
13040 2011-05-22  Bruno Haible  <bruno@clisp.org>
13041
13042         wcpncpy: Move AC_LIBOBJ invocations to module description.
13043         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13044         here...
13045         * modules/wcpncpy (configure.ac): ... to here.
13046
13047 2011-05-22  Bruno Haible  <bruno@clisp.org>
13048
13049         wcpcpy: Move AC_LIBOBJ invocations to module description.
13050         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13051         * modules/wcpcpy (configure.ac): ... to here.
13052
13053 2011-05-22  Bruno Haible  <bruno@clisp.org>
13054
13055         waitpid: Move AC_LIBOBJ invocations to module description.
13056         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13057         invocation from here...
13058         * modules/waitpid (configure.ac): ... to here.
13059
13060 2011-05-22  Bruno Haible  <bruno@clisp.org>
13061
13062         utimensat: Move AC_LIBOBJ invocations to module description.
13063         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13064         here...
13065         * modules/utimensat (configure.ac): ... to here.
13066
13067 2011-05-22  Bruno Haible  <bruno@clisp.org>
13068
13069         usleep: Move AC_LIBOBJ invocations to module description.
13070         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13071         here...
13072         * modules/usleep (configure.ac): ... to here.
13073
13074 2011-05-22  Bruno Haible  <bruno@clisp.org>
13075
13076         unlockpt: Move AC_LIBOBJ invocations to module description.
13077         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13078         gl_PREREQ_UNLOCKPT invocations from here...
13079         * modules/unlockpt (configure.ac): ... to here.
13080
13081 2011-05-22  Bruno Haible  <bruno@clisp.org>
13082
13083         unlink: Respect rules for use of AC_LIBOBJ.
13084         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13085         * modules/unlink (configure.ac): ... to here.
13086
13087 2011-05-22  Bruno Haible  <bruno@clisp.org>
13088
13089         uname: Move AC_LIBOBJ invocations to module description.
13090         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13092         here...
13093         * modules/uname (configure.ac): ... to here.
13094
13095 2011-05-22  Bruno Haible  <bruno@clisp.org>
13096
13097         ttyname_r: Move AC_LIBOBJ invocations to module description.
13098         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13099         gl_PREREQ_TTYNAME_R invocations from here...
13100         * modules/ttyname_r (configure.ac): ... to here.
13101
13102 2011-05-22  Bruno Haible  <bruno@clisp.org>
13103
13104         tsearch: Move AC_LIBOBJ invocations to module description.
13105         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13106         invocations from here...
13107         * modules/tsearch (configure.ac): ... to here.
13108
13109 2011-05-22  Bruno Haible  <bruno@clisp.org>
13110
13111         towctrans: Move AC_LIBOBJ invocations to module description.
13112         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13113         AC_LIBOBJ invocation from here...
13114         * modules/towctrans (configure.ac): ... to here.
13115
13116 2011-05-22  Bruno Haible  <bruno@clisp.org>
13117
13118         tmpfile: Move AC_LIBOBJ invocations to module description.
13119         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13120         invocations from here...
13121         * modules/tmpfile (configure.ac): ... to here.
13122
13123 2011-05-22  Bruno Haible  <bruno@clisp.org>
13124
13125         times: Move AC_LIBOBJ invocations to module description.
13126         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13127         * modules/times (configure.ac): ... to here.
13128
13129 2011-05-22  Bruno Haible  <bruno@clisp.org>
13130
13131         time_r: Move AC_LIBOBJ invocations to module description.
13132         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13133         invocations from here...
13134         * modules/time_r (configure.ac): ... to here.
13135
13136 2011-05-22  Bruno Haible  <bruno@clisp.org>
13137
13138         timegm: Move AC_LIBOBJ invocations to module description.
13139         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13140         invocations from here...
13141         * modules/timegm (configure.ac): ... to here.
13142
13143 2011-05-22  Bruno Haible  <bruno@clisp.org>
13144
13145         tcgetsid: Move AC_LIBOBJ invocations to module description.
13146         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13147         and gl_PREREQ_TCGETSID invocations from here...
13148         * modules/tcgetsid (configure.ac): ... to here.
13149         (Depends-on): Update conditions.
13150
13151 2011-05-22  Bruno Haible  <bruno@clisp.org>
13152
13153         symlinkat: Move AC_LIBOBJ invocations to module description.
13154         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13155         here...
13156         * modules/symlinkat (configure.ac): ... to here.
13157
13158 2011-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         symlink: Move AC_LIBOBJ invocations to module description.
13161         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13162         here...
13163         * modules/symlink (configure.ac): ... to here.
13164
13165 2011-05-22  Bruno Haible  <bruno@clisp.org>
13166
13167         strverscmp: Move AC_LIBOBJ invocations to module description.
13168         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13170         from here...
13171         * modules/strverscmp (configure.ac): ... to here.
13172
13173 2011-05-22  Bruno Haible  <bruno@clisp.org>
13174
13175         strtok_r: Move AC_LIBOBJ invocations to module description.
13176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13177         and gl_PREREQ_STRTOK_R invocations from here...
13178         * modules/strtok_r (configure.ac): ... to here.
13179         (Depends-on): Update conditions.
13180
13181 2011-05-22  Bruno Haible  <bruno@clisp.org>
13182
13183         strtoumax: Move AC_LIBOBJ invocations to module description.
13184         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13185         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13186         from here...
13187         * modules/strtoumax (configure.ac): ... to here.
13188
13189 2011-05-22  Bruno Haible  <bruno@clisp.org>
13190
13191         strtoimax: Move AC_LIBOBJ invocations to module description.
13192         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13193         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13194         from here...
13195         * modules/strtoimax (configure.ac): ... to here.
13196
13197 2011-05-22  Bruno Haible  <bruno@clisp.org>
13198
13199         strtoull: Move AC_LIBOBJ invocations to module description.
13200         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13202         from here...
13203         * modules/strtoull (configure.ac): ... to here.
13204
13205 2011-05-22  Bruno Haible  <bruno@clisp.org>
13206
13207         strtoll: Move AC_LIBOBJ invocations to module description.
13208         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13210         here...
13211         * modules/strtoll (configure.ac): ... to here.
13212
13213 2011-05-22  Bruno Haible  <bruno@clisp.org>
13214
13215         strtoul: Move AC_LIBOBJ invocations to module description.
13216         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13217         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13218         * modules/strtoul (configure.ac): ... to here.
13219
13220 2011-05-22  Bruno Haible  <bruno@clisp.org>
13221
13222         strtol: Move AC_LIBOBJ invocations to module description.
13223         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13224         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13225         * modules/strtol (configure.ac): ... to here.
13226
13227 2011-05-22  Bruno Haible  <bruno@clisp.org>
13228
13229         strtod: Move AC_LIBOBJ invocations to module description.
13230         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13231         invocations from here...
13232         * modules/strtod (configure.ac): ... to here.
13233
13234 2011-05-22  Bruno Haible  <bruno@clisp.org>
13235
13236         strstr*: Move AC_LIBOBJ invocations to module description.
13237         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13238         invocations from here...
13239         * modules/strstr-simple (configure.ac): ... to here.
13240         * modules/strstr (configure.ac): ... and here.
13241
13242 2011-05-22  Bruno Haible  <bruno@clisp.org>
13243
13244         strsignal: Move AC_LIBOBJ invocations to module description.
13245         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13246         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13247         * modules/strsignal (configure.ac): ... to here.
13248         (Depends-on): Update conditions.
13249
13250 2011-05-22  Bruno Haible  <bruno@clisp.org>
13251
13252         strsep: Move AC_LIBOBJ invocations to module description.
13253         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13255         here...
13256         * modules/strsep (configure.ac): ... to here.
13257
13258 2011-05-22  Bruno Haible  <bruno@clisp.org>
13259
13260         strptime: Move AC_LIBOBJ invocations to module description.
13261         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13262         gl_PREREQ_STRPTIME invocations from here...
13263         * modules/strptime (configure.ac): ... to here.
13264
13265 2011-05-22  Bruno Haible  <bruno@clisp.org>
13266
13267         strpbrk: Move AC_LIBOBJ invocations to module description.
13268         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13270         here...
13271         * modules/strpbrk (configure.ac): ... to here.
13272
13273 2011-05-22  Bruno Haible  <bruno@clisp.org>
13274
13275         strnlen: Move AC_LIBOBJ invocations to module description.
13276         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13277         invocations from here...
13278         * modules/strnlen (configure.ac): ... to here.
13279
13280 2011-05-22  Bruno Haible  <bruno@clisp.org>
13281
13282         strndup: Move AC_LIBOBJ invocations to module description.
13283         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13284         invocations from here...
13285         * modules/strndup (configure.ac): ... to here.
13286         (Depends-on): Update conditions.
13287
13288 2011-05-22  Bruno Haible  <bruno@clisp.org>
13289
13290         strncat: Move AC_LIBOBJ invocations to module description.
13291         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13292         invocations from here...
13293         * modules/strncat (configure.ac): ... to here.
13294
13295 2011-05-22  Bruno Haible  <bruno@clisp.org>
13296
13297         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13298         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13299         invocations from here...
13300         * modules/strdup (configure.ac): ... to here.
13301         * modules/strdup-posix (configure.ac): ... and here.
13302
13303 2011-05-22  Bruno Haible  <bruno@clisp.org>
13304
13305         strcspn: Move AC_LIBOBJ invocations to module description.
13306         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13308         here...
13309         * modules/strcspn (configure.ac): ... to here.
13310
13311 2011-05-22  Bruno Haible  <bruno@clisp.org>
13312
13313         strchrnul: Move AC_LIBOBJ invocations to module description.
13314         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13315         gl_PREREQ_STRCHRNUL invocations from here...
13316         * modules/strchrnul (configure.ac): ... to here.
13317
13318 2011-05-22  Bruno Haible  <bruno@clisp.org>
13319
13320         strcasestr*: Move AC_LIBOBJ invocations to module description.
13321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13322         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13323         * modules/strcasestr-simple (configure.ac): ... to here.
13324         * modules/strcasestr (configure.ac): ... and here.
13325
13326 2011-05-22  Bruno Haible  <bruno@clisp.org>
13327
13328         strcase: Move AC_LIBOBJ invocations to module description.
13329         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13330         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13331         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13332         gl_PREREQ_STRNCASECMP invocations from here...
13333         * modules/strcase (configure.ac): ... to here.
13334
13335 2011-05-22  Bruno Haible  <bruno@clisp.org>
13336
13337         stpncpy: Move AC_LIBOBJ invocations to module description.
13338         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13339         here...
13340         * modules/stpncpy (configure.ac): ... to here.
13341
13342 2011-05-22  Bruno Haible  <bruno@clisp.org>
13343
13344         stpcpy: Move AC_LIBOBJ invocations to module description.
13345         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13347         here...
13348         * modules/stpcpy (configure.ac): ... to here.
13349
13350 2011-05-21  Bruno Haible  <bruno@clisp.org>
13351
13352         stat: Move AC_LIBOBJ invocations to module description.
13353         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13354         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13355         here...
13356         * modules/stat (configure.ac): ... to here.
13357
13358 2011-05-21  Bruno Haible  <bruno@clisp.org>
13359
13360         sleep: Move AC_LIBOBJ invocations to module description.
13361         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13362         * modules/sleep (configure.ac): ... to here.
13363
13364 2011-05-21  Bruno Haible  <bruno@clisp.org>
13365
13366         signbit: Move AC_LIBOBJ invocations to module description.
13367         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13368         * modules/signbit (configure.ac): ... to here.
13369
13370 2011-05-21  Bruno Haible  <bruno@clisp.org>
13371
13372         sigprocmask: Move AC_LIBOBJ invocations to module description.
13373         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13374         gl_PREREQ_SIGPROMASK invocations from here...
13375         * modules/sigprocmask (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         sigaction: Move AC_LIBOBJ invocations to module description.
13380         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13381         gl_PREREQ_SIGACTION invocations from here...
13382         * modules/sigaction (configure.ac): ... to here.
13383
13384 2011-05-21  Bruno Haible  <bruno@clisp.org>
13385
13386         sig2str: Move AC_LIBOBJ invocations to module description.
13387         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13388         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13389         here...
13390         * modules/sig2str (configure.ac): ... to here.
13391
13392 2011-05-21  Bruno Haible  <bruno@clisp.org>
13393
13394         setlocale: Move AC_LIBOBJ invocations to module description.
13395         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13396         gl_PREREQ_SETLOCALE invocations from here...
13397         * modules/setlocale (configure.ac): ... to here.
13398
13399 2011-05-21  Bruno Haible  <bruno@clisp.org>
13400
13401         unsetenv: Move AC_LIBOBJ invocations to module description.
13402         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13403         and gl_PREREQ_UNSETENV invocations from here...
13404         * modules/unsetenv (configure.ac): ... to here.
13405         (Depends-on): Update.
13406
13407 2011-05-21  Bruno Haible  <bruno@clisp.org>
13408
13409         setenv: Move AC_LIBOBJ invocations to module description.
13410         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13411         here...
13412         * modules/setenv (configure.ac): ... to here.
13413
13414 2011-05-21  Bruno Haible  <bruno@clisp.org>
13415
13416         selinux-h: Move AC_LIBOBJ invocations to module description.
13417         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13418         AC_LIBOBJ invocation from here...
13419         * modules/selinux-h (configure.ac): ... to here.
13420
13421 2011-05-21  Bruno Haible  <bruno@clisp.org>
13422
13423         select: Respect rules for use of AC_LIBOBJ.
13424         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13425         here...
13426         * modules/select (configure.ac): ... to here.
13427
13428 2011-05-21  Bruno Haible  <bruno@clisp.org>
13429
13430         scandir: Move AC_LIBOBJ invocations to module description.
13431         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13432         invocations from here...
13433         * modules/scandir (configure.ac): ... to here.
13434
13435 2011-05-21  Bruno Haible  <bruno@clisp.org>
13436
13437         rpmatch: Move AC_LIBOBJ invocations to module description.
13438         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13440         here...
13441         * modules/rpmatch (configure.ac): ... to here.
13442
13443 2011-05-21  Bruno Haible  <bruno@clisp.org>
13444
13445         rmdir: Respect rules for use of AC_LIBOBJ.
13446         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13447         * modules/rmdir (configure.ac): ... to here.
13448
13449 2011-05-21  Bruno Haible  <bruno@clisp.org>
13450
13451         renameat: Move AC_LIBOBJ invocations to module description.
13452         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13453         here...
13454         * modules/renameat (configure.ac): ... to here.
13455
13456 2011-05-21  Bruno Haible  <bruno@clisp.org>
13457
13458         rename: Respect rules for use of AC_LIBOBJ.
13459         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13460         here...
13461         * modules/rename (configure.ac): ... to here.
13462
13463 2011-05-21  Bruno Haible  <bruno@clisp.org>
13464
13465         remove: Move AC_LIBOBJ invocations to module description.
13466         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13467         here...
13468         * modules/remove (configure.ac): ... to here.
13469
13470 2011-05-21  Bruno Haible  <bruno@clisp.org>
13471
13472         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13473         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13474         macro.
13475         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13476         * modules/relocatable-lib (configure.ac): ... to here.
13477         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13478         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13479
13480 2011-05-21  Bruno Haible  <bruno@clisp.org>
13481
13482         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13483         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13484         here...
13485         * modules/relocatable-prog (configure.ac): ... to here.
13486
13487 2011-05-21  Bruno Haible  <bruno@clisp.org>
13488
13489         regex: Move AC_LIBOBJ invocations to module description.
13490         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13491         invocations from here...
13492         * modules/regex (configure.ac): ... to here.
13493
13494 2011-05-21  Bruno Haible  <bruno@clisp.org>
13495
13496         realloc-*: Move AC_LIBOBJ invocations to module description.
13497         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13498         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13499         AC_LIBOBJ invocations from here...
13500         * modules/realloc-gnu (configure.ac): ... to here.
13501         * modules/realloc-posix (configure.ac): ... and here.
13502
13503 2011-05-21  Bruno Haible  <bruno@clisp.org>
13504
13505         readutmp: Move AC_LIBOBJ invocations to module description.
13506         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13507         * modules/readutmp (configure.ac): ... to here.
13508
13509 2011-05-21  Bruno Haible  <bruno@clisp.org>
13510
13511         readlinkat: Move AC_LIBOBJ invocations to module description.
13512         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13513         here...
13514         * modules/readlinkat (configure.ac): ... to here.
13515
13516 2011-05-21  Bruno Haible  <bruno@clisp.org>
13517
13518         readlink: Move AC_LIBOBJ invocations to module description.
13519         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13520         gl_PREREQ_READLINK invocations from here...
13521         * modules/readlink (configure.ac): ... to here.
13522
13523 2011-05-21  Bruno Haible  <bruno@clisp.org>
13524
13525         readline: Move AC_LIBOBJ invocations to module description.
13526         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13527         gl_PREREQ_READLINE invocations from here...
13528         * modules/readline (configure.ac): ... to here.
13529
13530 2011-05-21  Bruno Haible  <bruno@clisp.org>
13531
13532         read: Move AC_LIBOBJ invocations to module description.
13533         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13534         * modules/read (configure.ac): ... to here.
13535
13536 2011-05-21  Bruno Haible  <bruno@clisp.org>
13537
13538         rawmemchr: Move AC_LIBOBJ invocations to module description.
13539         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13541         from here...
13542         * modules/rawmemchr (configure.ac): ... to here.
13543
13544 2011-05-21  Bruno Haible  <bruno@clisp.org>
13545
13546         random_r: Move AC_LIBOBJ invocations to module description.
13547         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13548         gl_PREREQ_RANDOM_R invocations from here...
13549         * modules/random_r (configure.ac): ... to here.
13550
13551 2011-05-21  Bruno Haible  <bruno@clisp.org>
13552
13553         pwrite: Move AC_LIBOBJ invocations to module description.
13554         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13555         * modules/pwrite (configure.ac): ... to here.
13556
13557 2011-05-21  Bruno Haible  <bruno@clisp.org>
13558
13559         putenv: Move AC_LIBOBJ invocations to module description.
13560         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13561         * modules/putenv (configure.ac): ... to here.
13562
13563 2011-05-21  Bruno Haible  <bruno@clisp.org>
13564
13565         login_tty: Move AC_LIBOBJ invocations to module description.
13566         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13567         * modules/login_tty (configure.ac): ... to here.
13568
13569 2011-05-21  Bruno Haible  <bruno@clisp.org>
13570
13571         openpty: Move AC_LIBOBJ invocations to module description.
13572         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13573         * modules/openpty (configure.ac): ... to here.
13574
13575 2011-05-21  Bruno Haible  <bruno@clisp.org>
13576
13577         forkpty: Move AC_LIBOBJ invocations to module description.
13578         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13579         * modules/forkpty (configure.ac): ... to here.
13580
13581 2011-05-21  Bruno Haible  <bruno@clisp.org>
13582
13583         ptsname: Move AC_LIBOBJ invocations to module description.
13584         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13585         invocations from here...
13586         * modules/ptsname (configure.ac): ... to here.
13587
13588 2011-05-21  Bruno Haible  <bruno@clisp.org>
13589
13590         pread: Move AC_LIBOBJ invocations to module description.
13591         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13592         * modules/pread (configure.ac): ... to here.
13593
13594 2011-05-21  Bruno Haible  <bruno@clisp.org>
13595
13596         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13597         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13598         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13599         * modules/posix_spawn (configure.ac): ... to here.
13600         * modules/posix_spawnp (configure.ac): ... and here.
13601
13602 2011-05-21  Bruno Haible  <bruno@clisp.org>
13603
13604         popen: Move AC_LIBOBJ invocations to module description.
13605         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13606         invocations from here...
13607         * modules/popen (configure.ac): ... to here.
13608
13609 2011-05-21  Bruno Haible  <bruno@clisp.org>
13610
13611         poll: Move AC_LIBOBJ invocations to module description.
13612         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13613         invocations from here...
13614         * modules/poll (configure.ac): ... to here.
13615
13616 2011-05-21  Bruno Haible  <bruno@clisp.org>
13617
13618         pipe-posix: Move AC_LIBOBJ invocations to module description.
13619         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13620         * modules/pipe-posix (configure.ac): ... to here.
13621
13622 2011-05-21  Bruno Haible  <bruno@clisp.org>
13623
13624         openat: Respect rules for use of AC_LIBOBJ.
13625         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13626         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13627         * modules/openat (configure.ac): ... to here.
13628
13629 2011-05-21  Bruno Haible  <bruno@clisp.org>
13630
13631         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13632         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13633         invocation from here...
13634         * modules/obstack-printf (configure.ac): ... to here.
13635         * modules/obstack-printf-posix (configure.ac): ... and here.
13636
13637 2011-05-21  Bruno Haible  <bruno@clisp.org>
13638
13639         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13640         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13641         from here...
13642         * modules/nl_langinfo (configure.ac): ... to here.
13643
13644 2011-05-21  Bruno Haible  <bruno@clisp.org>
13645
13646         nanosleep: Move AC_LIBOBJ invocations to module description.
13647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13648         gl_PREREQ_NANOSLEEP invocations from here...
13649         * modules/nanosleep (configure.ac): ... to here.
13650
13651 2011-05-21  Bruno Haible  <bruno@clisp.org>
13652
13653         mountlist: Move AC_LIBOBJ invocations to module description.
13654         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13655         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13656         * modules/mountlist (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         mktime: Respect rules for use of AC_LIBOBJ.
13661         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13662         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13663         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13664         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13665         * modules/mktime (configure.ac): ... to here.
13666         * modules/mktime-internal (configure.ac): ... and here.
13667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13668
13669 2011-05-21  Bruno Haible  <bruno@clisp.org>
13670
13671         mkstemps: Move AC_LIBOBJ invocations to module description.
13672         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13673         here...
13674         * modules/mkstemps (configure.ac): ... to here.
13675
13676 2011-05-21  Bruno Haible  <bruno@clisp.org>
13677
13678         mkstemp: Move AC_LIBOBJ invocations to module description.
13679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13680         gl_PREREQ_MKSTEMP invocations from here...
13681         * modules/mkstemp (configure.ac): ... to here.
13682
13683 2011-05-21  Bruno Haible  <bruno@clisp.org>
13684
13685         mkostemps: Move AC_LIBOBJ invocations to module description.
13686         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13687         here...
13688         * modules/mkostemps (configure.ac): ... to here.
13689
13690 2011-05-21  Bruno Haible  <bruno@clisp.org>
13691
13692         mkostemp: Move AC_LIBOBJ invocations to module description.
13693         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13694         gl_PREREQ_MKOSTEMP invocations from here...
13695         * modules/mkostemp (configure.ac): ... to here.
13696
13697 2011-05-21  Bruno Haible  <bruno@clisp.org>
13698
13699         mknod: Move AC_LIBOBJ invocations to module description.
13700         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13701         * modules/mknod (configure.ac): ... to here.
13702
13703 2011-05-21  Bruno Haible  <bruno@clisp.org>
13704
13705         mkfifoat: Move AC_LIBOBJ invocations to module description.
13706         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13707         here...
13708         * modules/mkfifoat (configure.ac): ... to here.
13709
13710 2011-05-21  Bruno Haible  <bruno@clisp.org>
13711
13712         mkfifo: Respect rules for use of AC_LIBOBJ.
13713         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13714         here...
13715         * modules/mkfifo (configure.ac): ... to here.
13716
13717 2011-05-21  Bruno Haible  <bruno@clisp.org>
13718
13719         mkdtemp: Move AC_LIBOBJ invocations to module description.
13720         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13721         invocations from here...
13722         * modules/mkdtemp (configure.ac): ... to here.
13723
13724 2011-05-21  Bruno Haible  <bruno@clisp.org>
13725
13726         mkdir: Move AC_LIBOBJ invocations to module description.
13727         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13728         * modules/mkdir (configure.ac): ... to here.
13729
13730 2011-05-21  Bruno Haible  <bruno@clisp.org>
13731
13732         memset: Move AC_LIBOBJ invocations to module description.
13733         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13734         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13735         here...
13736         * modules/memset (configure.ac): ... to here.
13737
13738 2011-05-21  Bruno Haible  <bruno@clisp.org>
13739
13740         memrchr: Move AC_LIBOBJ invocations to module description.
13741         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13743         here...
13744         * modules/memrchr (configure.ac): ... to here.
13745
13746 2011-05-21  Bruno Haible  <bruno@clisp.org>
13747
13748         mempcpy: Move AC_LIBOBJ invocations to module description.
13749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13751         here...
13752         * modules/mempcpy (configure.ac): ... to here.
13753
13754 2011-05-21  Bruno Haible  <bruno@clisp.org>
13755
13756         memmove: Move AC_LIBOBJ invocations to module description.
13757         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13758         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13759         here...
13760         * modules/memmove (configure.ac): ... to here.
13761
13762 2011-05-21  Bruno Haible  <bruno@clisp.org>
13763
13764         memmem*: Move AC_LIBOBJ invocations to module description.
13765         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13766         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13767         here...
13768         (gl_FUNC_MEMMEM): ... and here...
13769         * modules/memmem-simple (configure.ac): ... to here.
13770         * modules/memmem (configure.ac): ... and here.
13771
13772 2011-05-21  Bruno Haible  <bruno@clisp.org>
13773
13774         memcpy: Move AC_LIBOBJ invocations to module description.
13775         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13777         here...
13778         * modules/memcpy (configure.ac): ... to here.
13779
13780 2011-05-21  Bruno Haible  <bruno@clisp.org>
13781
13782         memcmp: Simplify autoconf macro.
13783         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13784         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13785         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13786
13787 2011-05-21  Bruno Haible  <bruno@clisp.org>
13788
13789         memcmp: Move AC_LIBOBJ invocations to module description.
13790         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13791         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13792         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13793         * modules/memcmp (configure.ac): ... to here.
13794         (Depends-on): Update conditions.
13795
13796 2011-05-21  Bruno Haible  <bruno@clisp.org>
13797
13798         memchr: Respect rules for use of AC_LIBOBJ.
13799         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13800         invocations from here...
13801         * modules/memchr (configure.ac): ... to here.
13802
13803 2011-05-21  Bruno Haible  <bruno@clisp.org>
13804
13805         mbtowc: Move AC_LIBOBJ invocations to module description.
13806         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13807         invocations from here...
13808         * modules/mbtowc (configure.ac): ... to here.
13809
13810 2011-05-21  Bruno Haible  <bruno@clisp.org>
13811
13812         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13813         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13814         gl_PREREQ_MBSRTOWCS invocations from here...
13815         * modules/mbsrtowcs (configure.ac): ... to here.
13816
13817 2011-05-21  Bruno Haible  <bruno@clisp.org>
13818
13819         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13820         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13821         gl_PREREQ_MBSNRTOWCS invocations from here...
13822         * modules/mbsnrtowcs (configure.ac): ... to here.
13823
13824 2011-05-21  Bruno Haible  <bruno@clisp.org>
13825
13826         mbsinit: Move AC_LIBOBJ invocations to module description.
13827         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13828         invocations from here...
13829         * modules/mbsinit (configure.ac): ... to here.
13830
13831 2011-05-21  Bruno Haible  <bruno@clisp.org>
13832
13833         mbrlen: Move AC_LIBOBJ invocations to module description.
13834         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13835         invocations from here...
13836         * modules/mbrlen (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         mbrtowc: Respect rules for use of AC_LIBOBJ.
13841         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13842         invocations from here...
13843         * modules/mbrtowc (configure.ac): ... to here.
13844
13845 2011-05-21  Bruno Haible  <bruno@clisp.org>
13846
13847         malloc-*: Move AC_LIBOBJ invocations to module description.
13848         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13849         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13850         AC_LIBOBJ invocations from here...
13851         * modules/malloc-gnu (configure.ac): ... to here.
13852         * modules/malloc-posix (configure.ac): ... and here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         lstat, openat: Respect rules for use of AC_LIBOBJ.
13857         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13858         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13859         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13860         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13861         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13862         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13863         here.
13864         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13865
13866 2011-05-21  Bruno Haible  <bruno@clisp.org>
13867
13868         lseek: Move AC_LIBOBJ invocations to module description.
13869         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13870         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13871         * modules/lseek (configure.ac): ... to here.
13872
13873 2011-05-21  Bruno Haible  <bruno@clisp.org>
13874
13875         linkat: Move AC_LIBOBJ invocations to module description.
13876         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13877         here...
13878         * modules/linkat (configure.ac): ... to here.
13879
13880 2011-05-21  Bruno Haible  <bruno@clisp.org>
13881
13882         link: Respect rules for use of AC_LIBOBJ.
13883         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13884         * modules/link (configure.ac): ... to here.
13885
13886 2011-05-21  Bruno Haible  <bruno@clisp.org>
13887
13888         lchown: Move AC_LIBOBJ invocations to module description.
13889         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13890         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13891         * modules/lchown (configure.ac): ... to here.
13892
13893 2011-05-21  Bruno Haible  <bruno@clisp.org>
13894
13895         iswctype: Move AC_LIBOBJ invocations to module description.
13896         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13897         here...
13898         * modules/iswctype (configure.ac): ... to here.
13899
13900 2011-05-21  Bruno Haible  <bruno@clisp.org>
13901
13902         iswblank: Move AC_LIBOBJ invocations to module description.
13903         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13904         here...
13905         * modules/iswblank (configure.ac): ... to here.
13906
13907 2011-05-21  Bruno Haible  <bruno@clisp.org>
13908
13909         atanl: Move AC_LIBOBJ invocations to module description.
13910         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13911         * modules/atanl (configure.ac): ... to here.
13912
13913 2011-05-21  Bruno Haible  <bruno@clisp.org>
13914
13915         acosl: Move AC_LIBOBJ invocations to module description.
13916         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13917         * modules/acosl (configure.ac): ... to here.
13918
13919 2011-05-21  Bruno Haible  <bruno@clisp.org>
13920
13921         asinl: Respect rules for use of AC_LIBOBJ.
13922         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13923         * modules/asinl (configure.ac): ... to here.
13924
13925 2011-05-21  Bruno Haible  <bruno@clisp.org>
13926
13927         tanl: Move AC_LIBOBJ invocations to module description.
13928         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13929         * modules/tanl (configure.ac): ... to here.
13930
13931 2011-05-21  Bruno Haible  <bruno@clisp.org>
13932
13933         cosl: Move AC_LIBOBJ invocations to module description.
13934         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13935         * modules/cosl (configure.ac): ... to here.
13936
13937 2011-05-21  Bruno Haible  <bruno@clisp.org>
13938
13939         sinl: Move AC_LIBOBJ invocations to module description.
13940         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13941         * modules/sinl (configure.ac): ... to here.
13942
13943 2011-05-21  Bruno Haible  <bruno@clisp.org>
13944
13945         logl: Move AC_LIBOBJ invocations to module description.
13946         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13947         * modules/logl (configure.ac): ... to here.
13948
13949 2011-05-21  Bruno Haible  <bruno@clisp.org>
13950
13951         expl: Move AC_LIBOBJ invocations to module description.
13952         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13953         * modules/expl (configure.ac): ... to here.
13954
13955 2011-05-21  Bruno Haible  <bruno@clisp.org>
13956
13957         roundl: Move AC_LIBOBJ invocations to module description.
13958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13959         * modules/roundl (configure.ac): ... to here.
13960
13961 2011-05-21  Bruno Haible  <bruno@clisp.org>
13962
13963         round: Move AC_LIBOBJ invocations to module description.
13964         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13965         * modules/round (configure.ac): ... to here.
13966
13967 2011-05-21  Bruno Haible  <bruno@clisp.org>
13968
13969         roundf: Move AC_LIBOBJ invocations to module description.
13970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13971         * modules/roundf (configure.ac): ... to here.
13972
13973 2011-05-21  Bruno Haible  <bruno@clisp.org>
13974
13975         truncl: Move AC_LIBOBJ invocations to module description.
13976         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13977         * modules/truncl (configure.ac): ... to here.
13978
13979 2011-05-21  Bruno Haible  <bruno@clisp.org>
13980
13981         trunc: Move AC_LIBOBJ invocations to module description.
13982         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13983         * modules/trunc (configure.ac): ... to here.
13984
13985 2011-05-21  Bruno Haible  <bruno@clisp.org>
13986
13987         truncf: Move AC_LIBOBJ invocations to module description.
13988         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13989         * modules/truncf (configure.ac): ... to here.
13990
13991 2011-05-21  Bruno Haible  <bruno@clisp.org>
13992
13993         ceill: Move AC_LIBOBJ invocations to module description.
13994         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13995         * modules/ceill (configure.ac): ... to here.
13996
13997 2011-05-21  Bruno Haible  <bruno@clisp.org>
13998
13999         ceil: Move AC_LIBOBJ invocations to module description.
14000         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14001         * modules/ceil (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         ceilf: Move AC_LIBOBJ invocations to module description.
14006         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14007         * modules/ceilf (configure.ac): ... to here.
14008
14009 2011-05-21  Bruno Haible  <bruno@clisp.org>
14010
14011         floorl: Respect rules for use of AC_LIBOBJ.
14012         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14013         * modules/floorl (configure.ac): ... to here.
14014
14015 2011-05-21  Bruno Haible  <bruno@clisp.org>
14016
14017         floor: Respect rules for use of AC_LIBOBJ.
14018         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14019         * modules/floor (configure.ac): ... to here.
14020
14021 2011-05-21  Bruno Haible  <bruno@clisp.org>
14022
14023         floorf: Move AC_LIBOBJ invocations to module description.
14024         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14025         * modules/floorf (configure.ac): ... to here.
14026
14027 2011-05-20  Bruno Haible  <bruno@clisp.org>
14028
14029         sqrtl: Respect rules for use of AC_LIBOBJ.
14030         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14031         * modules/sqrtl (configure.ac): ... to here.
14032
14033 2011-05-20  Bruno Haible  <bruno@clisp.org>
14034
14035         ldexpl: Respect rules for use of AC_LIBOBJ.
14036         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14037         * modules/ldexpl (configure.ac): ... to here.
14038
14039 2011-05-20  Bruno Haible  <bruno@clisp.org>
14040
14041         frexpl*: Respect rules for use of AC_LIBOBJ.
14042         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14043         invocation from here...
14044         * modules/frexpl (configure.ac): ... to here.
14045         * modules/frexpl-nolibm (configure.ac): ... and here.
14046
14047 2011-05-20  Bruno Haible  <bruno@clisp.org>
14048
14049         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14050         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14051         invocation from here...
14052         * modules/frexp (configure.ac): ... to here.
14053         * modules/frexp-nolibm (configure.ac): ... and here.
14054
14055 2011-05-20  Bruno Haible  <bruno@clisp.org>
14056
14057         isnan: Respect rules for use of AC_LIBOBJ.
14058         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14059         invocations here.
14060         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14061         REPLACE_ISNAN.
14062         * modules/isnand (configure.ac): Likewise.
14063         * modules/isnanl (configure.ac): Likewise.
14064
14065 2011-05-20  Bruno Haible  <bruno@clisp.org>
14066
14067         isnanl*: Respect rules for use of AC_LIBOBJ.
14068         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14069         invocation from here...
14070         * modules/isnanl (configure.ac): ... to here.
14071         * modules/isnanl-nolibm (configure.ac): ... and here.
14072
14073 2011-05-20  Bruno Haible  <bruno@clisp.org>
14074
14075         isnand*: Move AC_LIBOBJ invocations to module description.
14076         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14077         invocation from here...
14078         * modules/isnand (configure.ac): ... to here.
14079         * modules/isnand-nolibm (configure.ac): ... and here.
14080
14081 2011-05-20  Bruno Haible  <bruno@clisp.org>
14082
14083         isnanf*: Move AC_LIBOBJ invocations to module description.
14084         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14085         invocation from here...
14086         * modules/isnanf (configure.ac): ... to here.
14087         * modules/isnanf-nolibm (configure.ac): ... and here.
14088
14089 2011-05-20  Bruno Haible  <bruno@clisp.org>
14090
14091         isnan*: Separate the AC_LIBOBJ invocations.
14092         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14093         AC_LIBOBJ invocation.
14094         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14095         here.
14096         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14097         AC_LIBOBJ invocation.
14098         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14099         here.
14100         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14101         AC_LIBOBJ invocation.
14102         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14103         here.
14104         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14105
14106 2011-05-08  Bruno Haible  <bruno@clisp.org>
14107
14108         isinf: Move AC_LIBOBJ invocations to module description.
14109         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14110         * modules/isinf (configure.ac): ... to here.
14111
14112 2011-05-08  Bruno Haible  <bruno@clisp.org>
14113
14114         isfinite: Move AC_LIBOBJ invocations to module description.
14115         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14116         * modules/isfinite (configure.ac): ... to here.
14117
14118 2011-05-08  Bruno Haible  <bruno@clisp.org>
14119
14120         isblank: Move AC_LIBOBJ invocations to module description.
14121         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14122         here...
14123         * modules/isblank (configure.ac): ... to here.
14124
14125 2011-05-08  Bruno Haible  <bruno@clisp.org>
14126
14127         isapipe: Move AC_LIBOBJ invocations to module description.
14128         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14129         gl_PREREQ_ISAPIPE invocations from here...
14130         * modules/isapipe (configure.ac): ... to here.
14131         (Depends-on): Update condition.
14132
14133 2011-05-08  Bruno Haible  <bruno@clisp.org>
14134
14135         ioctl: Move AC_LIBOBJ invocations to module description.
14136         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14137         invocations from here...
14138         * modules/ioctl (configure.ac): ... to here.
14139         (Depends-on): Update condition.
14140
14141 2011-05-08  Bruno Haible  <bruno@clisp.org>
14142
14143         imaxdiv: Move AC_LIBOBJ invocations to module description.
14144         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14145         invocations from here...
14146         * modules/imaxdiv (configure.ac): ... to here.
14147
14148 2011-05-08  Bruno Haible  <bruno@clisp.org>
14149
14150         imaxabs: Move AC_LIBOBJ invocations to module description.
14151         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14152         invocations from here...
14153         * modules/imaxabs (configure.ac): ... to here.
14154
14155 2011-05-08  Bruno Haible  <bruno@clisp.org>
14156
14157         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14158         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14159         AC_LIBOBJ invocations from here...
14160         * modules/getaddrinfo (configure.ac): ... to here.
14161         (Depends-on): Add conditions.
14162
14163 2011-05-08  Bruno Haible  <bruno@clisp.org>
14164
14165         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14166         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14167         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14168         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14169         (gl_PREREQ_INET_PTON): ... from here.
14170         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14171         gl_PREREQ_INET_PTON here.
14172         (Depends-on): Update condition.
14173
14174 2011-05-08  Bruno Haible  <bruno@clisp.org>
14175
14176         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14177         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14178         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14179         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14180         (gl_PREREQ_INET_NTOP): ... from here.
14181         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14182         gl_PREREQ_INET_NTOP here.
14183         (Depends-on): Update condition.
14184
14185 2011-05-08  Bruno Haible  <bruno@clisp.org>
14186
14187         iconv_open: Move AC_LIBOBJ invocations to module description.
14188         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14189         AC_LIBOBJ invocations from here...
14190         * modules/iconv_open (configure.ac): ... to here.
14191
14192 2011-05-08  Bruno Haible  <bruno@clisp.org>
14193
14194         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14195         If module 'iconv_open' is among the main modules and module
14196         'iconv_open-utf' is among the tests dependencies, then
14197         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14198         return the special iconv_t values. Therefore iconv() and iconv_close()
14199         must support these special iconv_t values, already in lib, not only in
14200         tests.
14201         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14203         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14204         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14205         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14206         (Depends-on): Add the dependencies of iconv_open-utf.
14207         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14208         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14209         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14210
14211 2011-05-08  Bruno Haible  <bruno@clisp.org>
14212
14213         group-member: Move AC_LIBOBJ invocations to module description.
14214         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14215         gl_PREREQ_GROUP_MEMBER invocations from here...
14216         * modules/group-member (configure.ac): ... to here.
14217
14218 2011-05-08  Bruno Haible  <bruno@clisp.org>
14219
14220         grantpt: Move AC_LIBOBJ invocations to module description.
14221         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14222         invocations from here...
14223         * modules/grantpt (configure.ac): ... to here.
14224
14225 2011-05-08  Bruno Haible  <bruno@clisp.org>
14226
14227         glob: Move AC_LIBOBJ invocations to module description.
14228         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14229         from here...
14230         * modules/glob (configure.ac): ... to here.
14231
14232 2011-05-08  Bruno Haible  <bruno@clisp.org>
14233
14234         getusershell: Move AC_LIBOBJ invocations to module description.
14235         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14236         Move AC_LIBOBJ invocation from here...
14237         * modules/getusershell (configure.ac): ... to here.
14238         (Depends-on): Update condition.
14239
14240 2011-05-08  Bruno Haible  <bruno@clisp.org>
14241
14242         gettimeofday: Move AC_LIBOBJ invocations to module description.
14243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14244         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14245         gl_PREREQ_GETTIMEOFDAY invocations from here...
14246         * modules/gettimeofday (configure.ac): ... to here.
14247
14248 2011-05-08  Bruno Haible  <bruno@clisp.org>
14249
14250         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14251         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14252         just gl_FUNC_TZSET.
14253         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14254         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14255         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14256         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14257
14258 2011-05-08  Bruno Haible  <bruno@clisp.org>
14259
14260         getsubopt: Move AC_LIBOBJ invocations to module description.
14261         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14262         gl_PREREQ_GETSUBOPT invocations from here...
14263         * modules/getsubopt (configure.ac): ... to here.
14264
14265 2011-05-08  Bruno Haible  <bruno@clisp.org>
14266
14267         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14268         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14269         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14270         * modules/getpass-gnu (configure.ac): ... to here.
14271
14272 2011-05-08  Bruno Haible  <bruno@clisp.org>
14273
14274         getpass: Move AC_LIBOBJ invocations to module description.
14275         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14276         gl_PREREQ_GETPASS invocations from here...
14277         * modules/getpass (configure.ac): ... to here.
14278
14279 2011-05-08  Bruno Haible  <bruno@clisp.org>
14280
14281         getpagesize: Move AC_LIBOBJ invocations to module description.
14282         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14283         from here...
14284         * modules/getpagesize (configure.ac): ... to here.
14285
14286 2011-05-08  Bruno Haible  <bruno@clisp.org>
14287
14288         getopt: Move AC_LIBOBJ invocations to module description.
14289         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14290         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14291         invocations from here...
14292         * modules/getopt-gnu (configure.ac): ... to here.
14293         * modules/getopt-posix (configure.ac): ... and here.
14294         (Depends-on): Update condition.
14295
14296 2011-05-08  Bruno Haible  <bruno@clisp.org>
14297
14298         getopt, argp: Respect rules for use of AC_LIBOBJ.
14299         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14300         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14301         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14302         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14303
14304 2011-05-08  Bruno Haible  <bruno@clisp.org>
14305
14306         getlogin_r: Move AC_LIBOBJ invocations to module description.
14307         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14308         gl_PREREQ_GETLOGIN_R invocations from here...
14309         * modules/getlogin_r (configure.ac): ... to here.
14310
14311 2011-05-08  Bruno Haible  <bruno@clisp.org>
14312
14313         getlogin: Move AC_LIBOBJ invocations to module description.
14314         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14315         here...
14316         * modules/getlogin (configure.ac): ... to here.
14317
14318 2011-05-08  Bruno Haible  <bruno@clisp.org>
14319
14320         getloadavg: Move AC_LIBOBJ invocations to module description.
14321         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14322         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14323         * modules/getloadavg (configure.ac): ... to here.
14324
14325 2011-05-08  Bruno Haible  <bruno@clisp.org>
14326
14327         gethrxtime: Move AC_LIBOBJ invocations to module description.
14328         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14329         LIB_GETHRXTIME from here...
14330         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14331         invocations from here...
14332         * modules/gethrxtime (configure.ac): ... to here.
14333
14334 2011-05-08  Bruno Haible  <bruno@clisp.org>
14335
14336         gethostname: Move AC_LIBOBJ invocations to module description.
14337         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14338         gl_PREREQ_GETHOSTNAME invocations from here...
14339         * modules/gethostname (configure.ac): ... to here.
14340
14341 2011-05-08  Bruno Haible  <bruno@clisp.org>
14342
14343         getgroups: Move AC_LIBOBJ invocations to module description.
14344         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14345         here...
14346         * modules/getgroups (configure.ac): ... to here.
14347
14348 2011-05-08  Bruno Haible  <bruno@clisp.org>
14349
14350         getdtablesize: Move AC_LIBOBJ invocations to module description.
14351         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14352         invocation from here...
14353         * modules/getdtablesize (configure.ac): ... to here.
14354
14355 2011-05-08  Bruno Haible  <bruno@clisp.org>
14356
14357         getdomainname: Move AC_LIBOBJ invocations to module description.
14358         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14359         gl_PREREQ_GETDOMAINNAME invocations from here...
14360         * modules/getdomainname (configure.ac): ... to here.
14361
14362 2011-05-08  Bruno Haible  <bruno@clisp.org>
14363
14364         getline: Move AC_LIBOBJ invocations to module description.
14365         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14366         invocations from here...
14367         * modules/getline (configure.ac): ... to here.
14368
14369 2011-05-08  Bruno Haible  <bruno@clisp.org>
14370
14371         getline: Simplify.
14372         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14373         It's already handled through the module dependency.
14374
14375 2011-05-08  Bruno Haible  <bruno@clisp.org>
14376
14377         getdelim: Move AC_LIBOBJ invocations to module description.
14378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14379         and gl_PREREQ_GETDELIM invocations from here...
14380         * modules/getdelim (configure.ac): ... to here.
14381         (Depends-on): Fix condition.
14382
14383 2011-05-08  Bruno Haible  <bruno@clisp.org>
14384
14385         getcwd: Move AC_LIBOBJ invocations to module description.
14386         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14387         invocations from here...
14388         * modules/getcwd (configure.ac): ... to here.
14389
14390 2011-05-08  Bruno Haible  <bruno@clisp.org>
14391
14392         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14393         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14394         here...
14395         * modules/getcwd-lgpl (configure.ac): ... to here.
14396
14397 2011-05-07  Bruno Haible  <bruno@clisp.org>
14398
14399         crypto/gc: Move AC_LIBOBJ invocations to module description.
14400         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14401         * modules/crypto/gc (configure.ac): ... to here.
14402
14403 2011-05-07  Bruno Haible  <bruno@clisp.org>
14404
14405         fwriting: Move AC_LIBOBJ invocations to module description.
14406         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14407         here...
14408         * modules/fwriting (configure.ac): ... to here.
14409
14410 2011-05-07  Bruno Haible  <bruno@clisp.org>
14411
14412         fwritable: Move AC_LIBOBJ invocations to module description.
14413         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14414         here...
14415         * modules/fwritable (configure.ac): ... to here.
14416
14417 2011-05-07  Bruno Haible  <bruno@clisp.org>
14418
14419         futimens: Move AC_LIBOBJ invocations to module description.
14420         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14421         here...
14422         * modules/futimens (configure.ac): ... to here.
14423
14424 2011-05-07  Bruno Haible  <bruno@clisp.org>
14425
14426         ftruncate: Move AC_LIBOBJ invocations to module description.
14427         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14428         gl_PREREQ_FTRUNCATE invocations from here...
14429         * modules/ftruncate (configure.ac): ... to here.
14430
14431 2011-05-07  Bruno Haible  <bruno@clisp.org>
14432
14433         fsync: Move AC_LIBOBJ invocations to module description.
14434         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14435         invocations from here...
14436         * modules/fsync (configure.ac): ... to here.
14437
14438 2011-05-07  Bruno Haible  <bruno@clisp.org>
14439
14440         fsusage: Move AC_LIBOBJ invocations to module description.
14441         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14442         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14443         * modules/fsusage (configure.ac): ... to here.
14444
14445 2011-05-07  Bruno Haible  <bruno@clisp.org>
14446
14447         freopen: Move AC_LIBOBJ invocations to module description.
14448         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14449         invocations from here...
14450         * modules/freopen (configure.ac): ... to here.
14451
14452 2011-05-07  Bruno Haible  <bruno@clisp.org>
14453
14454         free: Move AC_LIBOBJ invocations to module description.
14455         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14456         invocations from here...
14457         * modules/free (configure.ac): ... to here.
14458
14459 2011-05-07  Bruno Haible  <bruno@clisp.org>
14460
14461         freadable: Move AC_LIBOBJ invocations to module description.
14462         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14463         here...
14464         * modules/freadable (configure.ac): ... to here.
14465
14466 2011-05-07  Bruno Haible  <bruno@clisp.org>
14467
14468         fpurge: Move AC_LIBOBJ invocations to module description.
14469         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14470         invocations from here...
14471         * modules/fpurge (configure.ac): ... to here.
14472
14473 2011-05-07  Bruno Haible  <bruno@clisp.org>
14474
14475         fpending: Move AC_LIBOBJ invocations to module description.
14476         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14477         gl_FUNC_FPENDING.
14478         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14479         invocations from here...
14480         * modules/fpending (configure.ac): ... to here.
14481
14482 2011-05-07  Bruno Haible  <bruno@clisp.org>
14483
14484         fopen: Move AC_LIBOBJ invocations to module description.
14485         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14486         invocations from here...
14487         * modules/fopen (configure.ac): ... to here.
14488
14489 2011-05-07  Bruno Haible  <bruno@clisp.org>
14490
14491         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14492         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14493         gl_FUNC_FNMATCH_POSIX.
14494         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14495         invocations from here...
14496         * modules/fnmatch (configure.ac): ... to here.
14497         * modules/fnmatch-gnu (configure.ac): ... and here.
14498
14499 2011-05-07  Bruno Haible  <bruno@clisp.org>
14500
14501         flock: Move AC_LIBOBJ invocations to module description.
14502         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14503         invocations from here...
14504         * modules/flock (configure.ac): ... to here.
14505
14506 2011-05-07  Bruno Haible  <bruno@clisp.org>
14507
14508         fileblocks: Move AC_LIBOBJ invocations to module description.
14509         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14510         gl_PREREQ_FILEBLOCKS invocations from here...
14511         * modules/fileblocks (configure.ac): ... to here.
14512
14513 2011-05-06  Bruno Haible  <bruno@clisp.org>
14514
14515         fflush: Move AC_LIBOBJ invocations to module description.
14516         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14517         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14518         invocations from here...
14519         * modules/fflush (configure.ac): ... to here.
14520
14521 2011-05-06  Bruno Haible  <bruno@clisp.org>
14522
14523         fdopendir: Move AC_LIBOBJ invocations to module description.
14524         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14525         here...
14526         * modules/fdopendir (configure.ac): ... to here.
14527         (Depends-on): Improve conditions.
14528
14529 2011-05-06  Bruno Haible  <bruno@clisp.org>
14530
14531         _Exit: Move AC_LIBOBJ invocations to module description.
14532         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14533         invocations from here...
14534         * modules/_Exit (configure.ac): ... to here.
14535
14536 2011-05-21  Bruno Haible  <bruno@clisp.org>
14537
14538         euidaccess: Respect rules for use of AC_LIBOBJ.
14539         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14541         from here...
14542         * modules/euidaccess (configure.ac): ... to here.
14543
14544 2011-05-06  Bruno Haible  <bruno@clisp.org>
14545
14546         error: Move AC_LIBOBJ invocations to module description.
14547         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14548         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14549         invocations from here...
14550         * modules/error (configure.ac): ... to here.
14551
14552 2011-05-06  Bruno Haible  <bruno@clisp.org>
14553
14554         duplocale: Move AC_LIBOBJ invocations to module description.
14555         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14556         gl_PREREQ_DUPLOCALE invocations from here...
14557         * modules/duplocale (configure.ac): ... to here.
14558
14559 2011-05-05  Bruno Haible  <bruno@clisp.org>
14560
14561         dirfd: Move AC_LIBOBJ invocations to module description.
14562         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14563         gl_FUNC_DIRFD.
14564         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14565         here...
14566         * modules/dirfd (configure.ac): ... to here.
14567         (Depends-on): Fix condition.
14568
14569 2011-05-05  Bruno Haible  <bruno@clisp.org>
14570
14571         chown: Respect rules for use of AC_LIBOBJ.
14572         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14573         * modules/chown (configure.ac): ... to here.
14574
14575 2011-05-05  Bruno Haible  <bruno@clisp.org>
14576
14577         chdir-long: Move AC_LIBOBJ invocations to module description.
14578         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14579         gl_PREREQ_CHDIR_LONG invocations from here...
14580         * modules/chdir-long (configure.ac): ... to here.
14581
14582 2011-05-05  Bruno Haible  <bruno@clisp.org>
14583
14584         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14585         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14586         from here...
14587         * modules/canonicalize-lgpl (configure.ac): ... to here.
14588
14589 2011-05-05  Bruno Haible  <bruno@clisp.org>
14590
14591         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14592         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14593         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14594         REPLACE_CALLOC.
14595         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14596         * modules/calloc-gnu (configure.ac): Likewise.
14597
14598 2011-05-05  Bruno Haible  <bruno@clisp.org>
14599
14600         btowc: Move AC_LIBOBJ invocations to module description.
14601         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14602         invocations from here...
14603         * modules/btowc (configure.ac): ... to here.
14604
14605 2011-05-21  Bruno Haible  <bruno@clisp.org>
14606
14607         atexit: Move AC_LIBOBJ invocations to module description.
14608         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14610         here...
14611         * modules/atexit (configure.ac): ... to here.
14612
14613 2011-05-05  Bruno Haible  <bruno@clisp.org>
14614
14615         atoll: Move AC_LIBOBJ invocations to module description.
14616         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14617         invocations from here...
14618         * modules/atoll (configure.ac): ... to here.
14619
14620 2011-05-05  Bruno Haible  <bruno@clisp.org>
14621
14622         argz: Move AC_LIBOBJ invocations to module description.
14623         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14624         * modules/argz (configure.ac): ... to here.
14625
14626 2011-05-05  Bruno Haible  <bruno@clisp.org>
14627
14628         alphasort: Move AC_LIBOBJ invocations to module description.
14629         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14630         gl_PREREQ_ALPHASORT invocations from here...
14631         * modules/alphasort (configure.ac): ... to here.
14632
14633 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14634
14635         verify: new macro verify_expr; verify_true deprecated
14636         * NEWS: Mention this.
14637         * doc/verify.texi (Compile-time Assertions): Document this.
14638         * lib/verify.h (verify_true): Deprecate.
14639         (verify_expr): New macro.
14640         * tests/test-verify.c (function): Test verify_expr.
14641
14642 2011-06-14  Jim Meyering  <meyering@redhat.com>
14643
14644         init.sh: give more portable redirection-related advice in a comment
14645         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14646         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14647         for lots of discussion.  Stefano Lattarini suggested the solution
14648         of putting "9>&2" after the command.  Reported by Bruno Haible.
14649
14650 2011-06-13  Bruno Haible  <bruno@clisp.org>
14651
14652         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14654         'none'.
14655
14656 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14657
14658         ftoastr: use strtof only if HAVE_STRTOF
14659         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14661         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14662         * modules/ftoastr (configure.ac): Check for strtof.
14663
14664 2011-06-13  Bruno Haible  <bruno@clisp.org>
14665
14666         gnulib-tool: Addendum to 2011-06-08 commit.
14667         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14668         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14669
14670 2011-06-13  Bruno Haible  <bruno@clisp.org>
14671
14672         fseeko: Provide a non-inline replacement of fseek().
14673         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14674         * modules/fseeko (Depends-on): Add fseek.
14675         * modules/fseek (License): Change to LGPLv2+.
14676
14677 2011-06-13  Bruno Haible  <bruno@clisp.org>
14678
14679         ftello: Provide a non-inline replacement of ftell().
14680         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14681         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14682         not have ftello() (such as on mingw).
14683         * modules/ftello (Depends-on): Add ftell.
14684         * modules/ftell (License): Change to LGPLv2+.
14685
14686 2011-05-07  Bruno Haible  <bruno@clisp.org>
14687
14688         ftell: Move AC_LIBOBJ invocations to module description.
14689         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14690         * modules/ftell (configure.ac): ... to here.
14691
14692 2011-05-07  Bruno Haible  <bruno@clisp.org>
14693
14694         ftello: Respect rules for use of AC_LIBOBJ.
14695         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14696         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14697         here...
14698         * modules/ftello (configure.ac): ... to here.
14699
14700 2011-05-07  Bruno Haible  <bruno@clisp.org>
14701
14702         fseeko: Simplify.
14703         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14704         (gl_FUNC_FSEEKO): Inline it here.
14705
14706 2011-05-07  Bruno Haible  <bruno@clisp.org>
14707
14708         fseek: Move AC_LIBOBJ invocations to module description.
14709         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14710         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14711         * modules/fseek (configure.ac): ... to here.
14712
14713 2011-05-07  Bruno Haible  <bruno@clisp.org>
14714
14715         fseek: Respect rules for use of AC_LIBOBJ.
14716         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14717         here...
14718         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14719
14720 2011-05-07  Bruno Haible  <bruno@clisp.org>
14721
14722         fseeko: Respect rules for use of AC_LIBOBJ.
14723         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14724         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14725         here...
14726         * modules/fseeko (configure.ac): ... to here.
14727
14728 2011-06-13  Bruno Haible  <bruno@clisp.org>
14729
14730         gnulib-tool: Allow comments in the 'Depends-on' section.
14731         * doc/gnulib.texi (Module description): Mention comment syntax in the
14732         Depends-on section.
14733         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14734
14735 2011-06-13  Bruno Haible  <bruno@clisp.org>
14736
14737         file-set.h: guard __attibute__ use, now that it's not always defined
14738         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14739         versions that support it.  This fixes a coreutils build failure with
14740         the vendor cc on HP-UX 11.31.
14741
14742 2011-06-12  Bruno Haible  <bruno@clisp.org>
14743
14744         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14745         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14746         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14747         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14748         (acl, aclsort): New declarations.
14749         (aclv_nontrivial): New declaration.
14750         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14751         (file_has_acl): Read also the second kind of HP-UX ACLs.
14752         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14753         kind of HP-UX ACLs if the first kind fails.
14754         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14755         second kind of HP-UX ACLs.
14756         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14757         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14758         agree.
14759         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14760         hpuxjfs.
14761         Handle hpuxjfs.
14762         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14763         hpuxjfs.
14764         Handle hpuxjfs.
14765         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14766         (func_test_same_acls): Use both lsacl and getacl.
14767         Handle hpuxjfs.
14768         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14769         (func_test_same_acls): Use both lsacl and getacl.
14770         Handle hpuxjfs.
14771
14772 2011-06-12  Bruno Haible  <bruno@clisp.org>
14773
14774         acl: Complete the 2010-08-10 fix.
14775         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14776         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14777         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14778         explicitly.
14779         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14780         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14781
14782 2011-06-12  Bruno Haible  <bruno@clisp.org>
14783
14784         spawn-pipe tests: Comments.
14785         * tests/test-spawn-pipe-child.c (main): Update comment.
14786         Reported by James Youngman <jay@gnu.org>.
14787
14788 2011-06-11  James Youngman  <jay@gnu.org>
14789
14790         New module 'stat-size'.
14791         * modules/stat-size: New module.  Provides macros for accessing
14792         file size information in instances of struct stat.  Depends on the
14793         fileblocks module because it calls st_blocks.
14794         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14795         * doc/gnulib.texi: Include stat-size.texi.
14796         * doc/stat-size.texi: Documentation for this module.
14797         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14798         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14799         AC_STRUCT_ST_BLOCKS.
14800
14801 2011-06-09  Bruno Haible  <bruno@clisp.org>
14802
14803         thread: Support pthreads-win32.
14804         * lib/glthread/thread.h (gl_thread_self): Define differently on
14805         pthreads-win32.
14806         (gl_null_thread): New declaration.
14807         (gl_thread_self_pointer): New macro.
14808         * lib/glthread/thread.c (gl_null_thread): New constant.
14809         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14810         gl_thread_self.
14811         * tests/test-tls.c: Likewise.
14812         Suggested by Paul Eggert. Reported by Eric Blake.
14813
14814 2011-06-09  Bruno Haible  <bruno@clisp.org>
14815
14816         thread: Fix confusion between NULL and 0.
14817         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14818         Reported by Paul Eggert.
14819
14820 2011-06-09  Bruno Haible  <bruno@clisp.org>
14821
14822         spawn-pipe tests: Avoid test failure on HP-UX 11.
14823         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14824         is closed.
14825
14826 2011-06-09  Bruno Haible  <bruno@clisp.org>
14827
14828         acl tests: Fix compilation error on HP-UX 11.
14829         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14830
14831 2011-06-09  Bruno Haible  <bruno@clisp.org>
14832
14833         rmdir: Avoid test failure on HP-UX 10.20.
14834         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14835         EEXIST.
14836
14837 2011-06-08  Eric Blake  <eblake@redhat.com>
14838
14839         perror: fix test on mingw
14840         * modules/perror-tests (Depends-on): Add dup2.
14841
14842         strerror_r-posix: fix on MacOS
14843         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14844         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14845         logic bug.
14846         * lib/strerror_r.c (strerror_r): Fix the bug.
14847         * lib/strerror.c (strerror): Likewise.
14848         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14849         problem.
14850         * doc/posix-functions/strerror.texi (strerror): Likewise.
14851         * doc/posix-functions/perror.texi (perror): Likewise.
14852         * tests/test-strerror.c (main): Enhance test.
14853         * tests/test-strerror_r.c (main): Likewise.
14854
14855 2011-06-08  Bruno Haible  <bruno@clisp.org>
14856
14857         gnulib-tool: Better isolation between different gnulib-tool invocations.
14858         * gnulib-tool: New option --witness-c-macro.
14859         (witness_c_macro): New variable.
14860         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14861         AM_CPPFLAGS define it as a C macro.
14862         (func_emit_tests_Makefile_am): Likewise.
14863         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14864         read it from there.
14865         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14866         m4_define, not AC_DEFUN.
14867         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14868         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14869         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14870         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14871         s|...|...|, to substitute the values of the GNULIB_* module indicator
14872         variables.
14873         * modules/dirent (Makefile.am): Likewise.
14874         * modules/fcntl-h (Makefile.am): Likewise.
14875         * modules/iconv-h (Makefile.am): Likewise.
14876         * modules/langinfo (Makefile.am): Likewise.
14877         * modules/locale (Makefile.am): Likewise.
14878         * modules/math (Makefile.am): Likewise.
14879         * modules/netdb (Makefile.am): Likewise.
14880         * modules/poll-h (Makefile.am): Likewise.
14881         * modules/pty (Makefile.am): Likewise.
14882         * modules/search (Makefile.am): Likewise.
14883         * modules/signal (Makefile.am): Likewise.
14884         * modules/spawn (Makefile.am): Likewise.
14885         * modules/stdio (Makefile.am): Likewise.
14886         * modules/stdlib (Makefile.am): Likewise.
14887         * modules/string (Makefile.am): Likewise.
14888         * modules/sys_ioctl (Makefile.am): Likewise.
14889         * modules/sys_select (Makefile.am): Likewise.
14890         * modules/sys_socket (Makefile.am): Likewise.
14891         * modules/sys_stat (Makefile.am): Likewise.
14892         * modules/sys_times (Makefile.am): Likewise.
14893         * modules/sys_utsname (Makefile.am): Likewise.
14894         * modules/sys_wait (Makefile.am): Likewise.
14895         * modules/termios (Makefile.am): Likewise.
14896         * modules/time (Makefile.am): Likewise.
14897         * modules/unistd (Makefile.am): Likewise.
14898         * modules/wchar (Makefile.am): Likewise.
14899
14900 2011-06-08  Eric Blake  <eblake@redhat.com>
14901
14902         strerror: simplify replacement
14903         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14904         * modules/strerror (configure.ac): No prereqs needed here...
14905         * modules/strerror-override (configure.ac): ...but this needs it.
14906         (Files): Add file for needed prereq macro.
14907
14908 2011-06-08  Bruno Haible  <bruno@clisp.org>
14909
14910         strerror_r-posix: Tweaks.
14911         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14912         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14913         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14914         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14915         (gl_FUNC_STRERROR_R): ... to here.
14916         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14917
14918 2011-06-07  Eric Blake  <eblake@redhat.com>
14919
14920         perror: document fixed bugs
14921         * doc/posix-functions/perror.texi (perror): Document recent
14922         patches.
14923
14924 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14925
14926         stat-time: get_stat_birthtime failure is better-defined
14927         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14928         return a timestamp whose tv_sec and tv_nsec values are both -1.
14929         Previously, the spec said only that the tv_nsec value was negative.
14930         This upward-compatible change simplifies GNU tar a bit.
14931
14932 2011-06-07  Eric Blake  <eblake@redhat.com>
14933
14934         strerror_r-posix: work around cygwin 1.7.9
14935         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14936         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14937         bug without replacing strerror_r.
14938         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14939         strerror_r is buggy, but without requiring strerror_r compilation.
14940         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14941
14942         test-perror: relax test to ignore cygwin bug
14943         * tests/test-perror2.c (main): Relax test on requiring detection
14944         of stream errors, and use unbuffered stream.
14945         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14946         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14947         * doc/posix-functions/fputc.texi (fputc): Likewise.
14948         * doc/posix-functions/fputs.texi (fputs): Likewise.
14949         * doc/posix-functions/fputws.texi (fputws): Likewise.
14950         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14951         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14952         * doc/posix-functions/getopt.texi (getopt): Likewise.
14953         * doc/posix-functions/perror.texi (perror): Likewise.
14954         * doc/posix-functions/printf.texi (printf): Likewise.
14955         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14956         * doc/posix-functions/psignal.texi (psignal): Likewise.
14957         * doc/posix-functions/putc.texi (putc): Likewise.
14958         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14959         Likewise.
14960         * doc/posix-functions/putchar.texi (putchar): Likewise.
14961         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14962         Likewise.
14963         * doc/posix-functions/puts.texi (puts): Likewise.
14964         * doc/posix-functions/putwc.texi (putwc): Likewise.
14965         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14966         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14967         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14968         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14969         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14970         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14971         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14972         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14973
14974 2011-05-22  Bruno Haible  <bruno@clisp.org>
14975
14976         strerror: Move AC_LIBOBJ invocations to module description.
14977         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14978         gl_PREREQ_STRERROR invocations from here...
14979         * modules/strerror (configure.ac): ... to here.
14980
14981 2011-05-21  Bruno Haible  <bruno@clisp.org>
14982
14983         perror: Use common idiom.
14984         * modules/perror (configure.ac): Reorder statements.
14985
14986 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14987
14988         tests: fix usage message in 'mktempd_'
14989         * tests/init.sh (mktempd_): In the usage message, use literal
14990         'mktempd_', not '$ME' (which is even undefined), as the name of
14991         the subroutine.
14992
14993 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14994
14995         tests init: new function 'fatal_', for hard errors
14996         Before this patch, the only way offered by tests/init.sh to
14997         properly signal a hard error was the `framework_failure_'
14998         function.  But the error message issued by that function,
14999         as its name would suggest, refers to a set-up failure in the
15000         testsuite, while hard errors can obviously also be due to
15001         other reasons.  The best way to fix this inconsistency is to
15002         introduce a new function with a more general error message.
15003         * tests/init.sh (fatal_): New function.
15004
15005 2011-06-06  Eric Blake  <eblake@redhat.com>
15006
15007         canonicalize-lgpl: use common idiom
15008         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15009         over newer POSIX -Rf.
15010         Reported by Bruno Haible.
15011
15012         canonicalize-lgpl: work around AIX realpath bug
15013         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15014         * doc/posix-functions/realpath.texi (realpath): Document it.
15015         Reported by Bruno Haible.
15016
15017         strerror: work around FreeBSD bug
15018         * lib/strerror.c (strerror): Special case 0.
15019         Reported by Bruno Haible.
15020
15021         strerror-override: avoid bloating errno module
15022         * modules/errno (Files, configure.ac): Move replacement strings...
15023         * modules/strerror-override: ...to new module.
15024         * modules/strerror (Depends-on): Add strerror-override.
15025         * modules/strerror_r-posix (Depends-on): Likewise.
15026         * MODULES.html.sh: Document new module.
15027         Reported by Bruno Haible.
15028
15029 2011-06-06  Bruno Haible  <bruno@clisp.org>
15030
15031         spawn-pipe tests: Rename program.
15032         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15033         * tests/test-spawn-pipe-child.c: Update comment.
15034         * tests/test-spawn-pipe.sh: Update.
15035         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15036
15037         spawn-pipe tests: Link the child program only against libc.
15038         * tests/test-spawn-pipe-child.c: New file, extracted from
15039         tests/test-spawn-pipe.c.
15040         (main): Expect only one argument.
15041         (is_open): New function, copied from tests/test-pipe.c.
15042         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15043         (child_main): Remove function.
15044         (test_pipe): Pass only one argument to the child program.
15045         (main): Remove child process code. Expect the child program's name as
15046         first argument.
15047         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15048         argument.
15049         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15050         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15051         test-spawn-pipe-child against no libraries.
15052
15053 2011-06-06  Bruno Haible  <bruno@clisp.org>
15054
15055         careadlinkat: Avoid mismatch between ssize_t and int.
15056         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15057         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15058
15059 2011-06-06  Jim Meyering  <meyering@redhat.com>
15060
15061         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15062         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15063         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15064
15065 2011-06-05  Bruno Haible  <bruno@clisp.org>
15066
15067         ansi-c++-opt: Interoperability with libtool.
15068         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15069         set the variable to "no", not to ":".
15070         * NEWS: Mention the change.
15071
15072 2011-06-05  Bruno Haible  <bruno@clisp.org>
15073
15074         acl: Fix test failure on AIX 7.
15075         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15076         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15077
15078 2011-06-05  Bruno Haible  <bruno@clisp.org>
15079
15080         pipe-filter-ii: Fix test failure on AIX and IRIX.
15081         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15082         with EAGAIN, retry with a smaller buffer size.
15083
15084 2011-06-05  Bruno Haible  <bruno@clisp.org>
15085
15086         localename: Fix link dependencies.
15087         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15088         * modules/localename-tests (Makefile.am): Link test-localename with
15089         $(LIBTHREAD).
15090
15091 2011-06-05  Bruno Haible  <bruno@clisp.org>
15092
15093         error: Avoid gcc warning.
15094         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15095
15096 2011-06-05  Bruno Haible  <bruno@clisp.org>
15097
15098         unsetenv: Avoid gcc warning.
15099         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15100
15101 2011-06-05  Bruno Haible  <bruno@clisp.org>
15102
15103         setenv: Avoid gcc warning.
15104         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15105
15106 2011-06-05  Bruno Haible  <bruno@clisp.org>
15107
15108         sys_select: Ensure memset is declared also on AIX 7.
15109         * lib/sys_select.in.h: Include <string.h> also on AIX.
15110         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15111         self-contained also on AIX 7.1.
15112
15113 2011-06-04  Jim Meyering  <meyering@redhat.com>
15114
15115         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15116         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15117         function name, "error".
15118         (_gl_translatable_diag_func_re): New configurable variable.
15119
15120 2011-06-04  Bruno Haible  <bruno@clisp.org>
15121
15122         getopt: Avoid gcc warning.
15123         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15124
15125 2011-06-04  Bruno Haible  <bruno@clisp.org>
15126
15127         strerror_r: Fix comments.
15128         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15129         commit.
15130
15131 2011-06-04  Bruno Haible  <bruno@clisp.org>
15132
15133         perror: Fix compilation error.
15134         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15135         Undefine fprintf, not sprintf.
15136         * modules/perror (Depends-on): Remove intprops, verify.
15137
15138 2011-06-04  Bruno Haible  <bruno@clisp.org>
15139
15140         setlocale: Enable replacement on Cygwin 1.5.
15141         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15142         Cygwin 1.5.x.
15143         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15144         LC_CTYPE category also exists on Cygwin 1.5.x.
15145
15146 2011-06-04  Bruno Haible  <bruno@clisp.org>
15147
15148         strerror-override: Don't disable symbol renamings.
15149         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15150         * lib/strerror-override.c: Include config.h.
15151         (strerror_override): Don't undefine.
15152
15153 2011-06-03  Bruno Haible  <bruno@clisp.org>
15154
15155         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15156         * lib/localename.h: Update copyright header.
15157         * lib/localename.c: Likewise.
15158         * lib/relocatable.h: Likewise.
15159         * lib/relocatable.c: Likewise.
15160
15161 2011-06-02  Bruno Haible  <bruno@clisp.org>
15162
15163         doc: Fix a module name.
15164         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15165
15166 2011-06-02  Bruno Haible  <bruno@clisp.org>
15167
15168         pipe2: Remove dependency on 'nonblocking' module.
15169         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15170         O_NONBLOCK is defined by gnulib.
15171         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15172         is zero.
15173         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15174         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15175         defined by gnulib.
15176         (get_nonblocking_flag): New function.
15177         (main): Test O_NONBLOCK flag only if it is nonzero.
15178         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15179
15180 2011-06-03  Jim Meyering  <meyering@redhat.com>
15181
15182         maint: three new prohibit-header-without-use rules
15183         Prohibit use of cloexec.h, posixver.h, same.h without use.
15184         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15185         (sc_prohibit_posixver_without_use): Likewise.
15186         (sc_prohibit_same_without_use): Likewise.
15187
15188 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         allocator: 'die' routine is now given requested size
15191         * lib/allocator.h (struct allocator.die): New size arg.
15192         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15193         If the actual problem is an ssize_t limitation, not a size_t or
15194         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15195
15196 2011-06-01  Eric Blake  <eblake@redhat.com>
15197
15198         strerror: drop strerror_r dependency
15199         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15200         * lib/strerror-override.c (strerror_override): ...to new file.
15201         * lib/strerror-override.h: Add prototype.
15202         * lib/strerror-impl.h: Delete.
15203         * lib/strerror.c (strerror): New implementation.
15204         * modules/errno (Files): Add new files.
15205         (configure.ac): Compile new file as appropriate.
15206         * modules/strerror (Files): Drop unused file.
15207         (Depends-on): Drop strerror_r-posix.
15208         * MODULES.html.sh: Document strerror_r-posix.
15209         Requested by Sam Steingold.
15210
15211         perror: call strerror_r directly
15212         * modules/perror (Files): Drop strerror-impl.h.
15213         * lib/perror.c (perror): Use our own stack buffer, rather than
15214         calling a wrapper that uses static storage.
15215         * doc/posix-functions/perror.texi (perror): Document a limitation
15216         of our replacement.
15217
15218         strerror_r: fix includes for FreeBSD
15219         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15220         since we use abort on some platforms.
15221         Reported by Matthias Bolte.
15222
15223 2011-05-31  Bruno Haible  <bruno@clisp.org>
15224
15225         Fix link errors in tests: openat-die uses gettext-h.
15226         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15227         against $(LIBINTL).
15228         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15229         against $(LIBINTL).
15230         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15231         $(LIBINTL).
15232         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15233         against $(LIBINTL).
15234         * modules/linkat-tests (Makefile.am): Link test-linkat against
15235         $(LIBINTL).
15236         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15237         $(LIBINTL).
15238         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15239         against $(LIBINTL).
15240         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15241         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15242         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15243         $(LIBINTL).
15244         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15245         $(LIBINTL).
15246         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15247         $(LIBINTL).
15248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15249
15250 2011-05-31  Bruno Haible  <bruno@clisp.org>
15251
15252         Fix link errors in tests: wait-process uses gettext-h.
15253         * modules/nonblocking-pipe-tests (Makefile.am): Set
15254         test_nonblocking_pipe_main_LDADD.
15255         * modules/nonblocking-socket-tests (Makefile.am): Link
15256         test-nonblocking-socket-main against $(LIBINTL).
15257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15258
15259 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15260
15261         assert-h: work around 'verify' incompatibility
15262         * lib/verify.h: Use @...@ directives, not ifdef.
15263         * modules/assert-h (assert.h): Implement the directives.
15264         (assert.h): Substitute the symbol-prefix more consistently.
15265
15266 2011-05-29  Jim Meyering  <meyering@redhat.com>
15267
15268         trim: remove three superfluous assignments
15269         * lib/trim.c (trim2): Remove three superfluous assignments
15270         and correct brace positioning.
15271
15272 2011-05-29  Bruno Haible  <bruno@clisp.org>
15273
15274         wctype-h: Avoid namespace pollution on Solaris 2.6.
15275         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15276         identifiers.
15277         * doc/posix-headers/wctype.texi: Mention the problem.
15278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15279
15280 2011-05-28  Jim Meyering  <meyering@redhat.com>
15281
15282         parse-datetime.y: accommodate -Wstrict-overflow
15283         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15284         placate -Wstrict-overflow.
15285
15286         trim: avoid a warning from -O2 -Wstrict-overflow
15287         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15288
15289 2011-05-29  Bruno Haible  <bruno@clisp.org>
15290
15291         gnulib-tool: Fix bug in yesterday's commit.
15292         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15293         twice.
15294
15295 2011-05-29  Bruno Haible  <bruno@clisp.org>
15296
15297         Allow multiple gnulib generated include files to be combined.
15298         * gnulib-tool (func_compute_include_guard_prefix): New function.
15299         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15300         ${gl_include_guard_prefix} references.
15301         (func_import, func_create_testdir): Invoke
15302         func_compute_include_guard_prefix.
15303         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15304         * lib/ctype.in.h: Likewise.
15305         * lib/dirent.in.h: Likewise.
15306         * lib/errno.in.h: Likewise.
15307         * lib/fcntl.in.h: Likewise.
15308         * lib/float.in.h: Likewise.
15309         * lib/getopt.in.h: Likewise.
15310         * lib/iconv.in.h: Likewise.
15311         * lib/langinfo.in.h: Likewise.
15312         * lib/locale.in.h: Likewise.
15313         * lib/math.in.h: Likewise.
15314         * lib/netdb.in.h: Likewise.
15315         * lib/netinet_in.in.h: Likewise.
15316         * lib/poll.in.h: Likewise.
15317         * lib/pthread.in.h: Likewise.
15318         * lib/pty.in.h: Likewise.
15319         * lib/sched.in.h: Likewise.
15320         * lib/se-selinux.in.h: Likewise.
15321         * lib/search.in.h: Likewise.
15322         * lib/signal.in.h: Likewise.
15323         * lib/spawn.in.h: Likewise.
15324         * lib/stdarg.in.h: Likewise.
15325         * lib/stddef.in.h: Likewise.
15326         * lib/stdint.in.h: Likewise.
15327         * lib/stdio.in.h: Likewise.
15328         * lib/stdlib.in.h: Likewise.
15329         * lib/string.in.h: Likewise.
15330         * lib/strings.in.h: Likewise.
15331         * lib/sys_file.in.h: Likewise.
15332         * lib/sys_ioctl.in.h: Likewise.
15333         * lib/sys_select.in.h: Likewise.
15334         * lib/sys_socket.in.h: Likewise.
15335         * lib/sys_stat.in.h: Likewise.
15336         * lib/sys_time.in.h: Likewise.
15337         * lib/sys_times.in.h: Likewise.
15338         * lib/sys_uio.in.h: Likewise.
15339         * lib/sys_utsname.in.h: Likewise.
15340         * lib/sys_wait.in.h: Likewise.
15341         * lib/sysexits.in.h: Likewise.
15342         * lib/termios.in.h: Likewise.
15343         * lib/time.in.h: Likewise.
15344         * lib/unistd.in.h: Likewise.
15345         * lib/wchar.in.h: Likewise.
15346         * lib/wctype.in.h: Likewise.
15347         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15348         * modules/ctype (Makefile.am): Likewise.
15349         * modules/dirent (Makefile.am): Likewise.
15350         * modules/errno (Makefile.am): Likewise.
15351         * modules/fcntl-h (Makefile.am): Likewise.
15352         * modules/float (Makefile.am): Likewise.
15353         * modules/getopt-posix (Makefile.am): Likewise.
15354         * modules/iconv-h (Makefile.am): Likewise.
15355         * modules/langinfo (Makefile.am): Likewise.
15356         * modules/locale (Makefile.am): Likewise.
15357         * modules/math (Makefile.am): Likewise.
15358         * modules/netdb (Makefile.am): Likewise.
15359         * modules/netinet_in (Makefile.am): Likewise.
15360         * modules/poll-h (Makefile.am): Likewise.
15361         * modules/pthread (Makefile.am): Likewise.
15362         * modules/pty (Makefile.am): Likewise.
15363         * modules/sched (Makefile.am): Likewise.
15364         * modules/search (Makefile.am): Likewise.
15365         * modules/selinux-h (Makefile.am): Likewise.
15366         * modules/signal (Makefile.am): Likewise.
15367         * modules/spawn (Makefile.am): Likewise.
15368         * modules/stdarg (Makefile.am): Likewise.
15369         * modules/stddef (Makefile.am): Likewise.
15370         * modules/stdint (Makefile.am): Likewise.
15371         * modules/stdio (Makefile.am): Likewise.
15372         * modules/stdlib (Makefile.am): Likewise.
15373         * modules/string (Makefile.am): Likewise.
15374         * modules/strings (Makefile.am): Likewise.
15375         * modules/sys_file (Makefile.am): Likewise.
15376         * modules/sys_ioctl (Makefile.am): Likewise.
15377         * modules/sys_select (Makefile.am): Likewise.
15378         * modules/sys_socket (Makefile.am): Likewise.
15379         * modules/sys_stat (Makefile.am): Likewise.
15380         * modules/sys_time (Makefile.am): Likewise.
15381         * modules/sys_times (Makefile.am): Likewise.
15382         * modules/sys_uio (Makefile.am): Likewise.
15383         * modules/sys_utsname (Makefile.am): Likewise.
15384         * modules/sys_wait (Makefile.am): Likewise.
15385         * modules/sysexits (Makefile.am): Likewise.
15386         * modules/termios (Makefile.am): Likewise.
15387         * modules/time (Makefile.am): Likewise.
15388         * modules/unistd (Makefile.am): Likewise.
15389         * modules/wchar (Makefile.am): Likewise.
15390         * modules/wctype-h (Makefile.am): Likewise.
15391         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15392
15393 2011-05-29  Bruno Haible  <bruno@clisp.org>
15394
15395         assert-h: Allow multiple gnulib generated replacements to coexist.
15396         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15397
15398 2011-05-29  Bruno Haible  <bruno@clisp.org>
15399
15400         argp: Allow coexistence with strerror_r-posix module.
15401         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15402         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15403         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15404         not the glibc signature.
15405
15406 2011-05-28  Bruno Haible  <bruno@clisp.org>
15407
15408         gnulib-tool: Alternative structure of testdirs, similar to --import.
15409         * gnulib-tool: New option --single-configure.
15410         (func_usage): Document it.
15411         (single_configure): New variable.
15412         (func_modules_transitive_closure_separately,
15413         func_modules_transitive_closure_separately,
15414         func_determine_use_libtests, func_modules_add_dummy_separately,
15415         func_modules_to_filelist_separately): New functions, extracted from
15416         func_import.
15417         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15418         (func_import): Use the new functions.
15419         (func_create_testdir): Set final_modules. Handle $single_configure =
15420         true case.
15421
15422 2011-05-28  Bruno Haible  <bruno@clisp.org>
15423
15424         getloadavg: Remove an unreliable safety check.
15425         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15426         getloadavg.c is in place.
15427         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15428         Reported by Sam Steingold <sds@gnu.org>.
15429
15430 2011-05-28  Bruno Haible  <bruno@clisp.org>
15431
15432         doc: Cleanup yet another file produced by texinfo.tex.
15433         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15434
15435 2011-05-28  Bruno Haible  <bruno@clisp.org>
15436
15437         Finish the conditional dependencies mechanism.
15438         * gnulib-tool: New option --no-conditional-dependencies.
15439         (func_usage): Document it. Don't mark --conditional-dependencies as
15440         experimental.
15441         (cond_dependencies): The possible values can now be true, false, empty.
15442         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15443         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15444         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15445
15446 2011-05-28  Bruno Haible  <bruno@clisp.org>
15447
15448         doc: Use a recent texinfo.tex.
15449         * doc/Makefile (tex_opts): New variable.
15450         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15451
15452 2011-05-28  Jim Meyering  <meyering@redhat.com>
15453
15454         intprops.h: adjust comment to match code change
15455         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15456         only once, it *may* have side effects.  Also fix an unrelated typo.
15457         (_GL_INT_SIGNED): Likewise.
15458
15459 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15460
15461         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15462
15463 2011-05-26  Bruno Haible  <bruno@clisp.org>
15464
15465         mbsrchr: Avoid collision with system function on Interix.
15466         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15467         Reported by Markus Duft <mduft@gentoo.org>.
15468
15469 2011-05-15  James Youngman  <jay@gnu.org>
15470
15471         getopt: for ambiguous options, enumerate the possibilities.
15472         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15473         the ambiguous options when an ambiguous prefix is given. This was
15474         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15475         glibc change was
15476         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15477
15478 2011-05-25  Eric Blake  <eblake@redhat.com>
15479
15480         getcwd: work around mingw bug
15481         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15482         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15483         Reported by Matthias Bolte.
15484
15485 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15486
15487         test-intprops: disable -Wtype-limits diagnostics
15488         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15489         diagnostics.  Otherwise, the integer overflow macros generate many
15490         diagnostics.  Reported by Jim Meyering in
15491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15492
15493         intprops: shorten, to pacify gcc -Woverlength-strings
15494         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15495         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15496         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15497         likely to run afoul of C compiler limits for string constant lengths.
15498         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15499
15500 2011-05-24  Eric Blake  <eblake@redhat.com>
15501
15502         docs: document recently fixed glibc printf bug
15503         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15504         * doc/posix-functions/printf.texi (printf): Likewise.
15505         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15506         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15507
15508         closein-tests: convert to init.sh
15509         * modules/closein-tests (Files): Add init.sh
15510         * tests/test-closein.sh Use it.
15511
15512         yesno-tests: convert to init.sh
15513         * modules/yesno-tests (Files): Add init.sh.
15514         * tests/test-yesno.sh: Use it.
15515
15516         atexit-tests: ensure reliable exit status
15517         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15518         Reported by Bruno Haible.
15519
15520 2011-05-24  Bruno Haible  <bruno@clisp.org>
15521
15522         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15523         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15524         gl_PREREQ_STRERROR_R invocations from here...
15525         * modules/strerror_r-posix (configure.ac): ... to here.
15526
15527 2011-05-24  Eric Blake  <eblake@redhat.com>
15528
15529         strerror_r: fix missing header
15530         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15531
15532         strerror_r: fix AIX test failures
15533         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15534         ERANGE failure.
15535
15536         strerror_r: fix Solaris test failures
15537         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15538         failures.
15539         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15540
15541         strerror_r: enforce POSIX recommendations
15542         * lib/strerror_r.c (safe_copy): New helper method.
15543         (strerror_r): Guarantee a non-empty string.
15544         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15545         recent POSIX rulings and to match our strerror guarantees.
15546         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15547
15548 2011-05-24  Jim Meyering  <meyering@redhat.com>
15549
15550         test-perror2.c: avoid warning about unused variable
15551         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15552
15553 2011-05-24  Eric Blake  <eblake@redhat.com>
15554
15555         perror: avoid spurious test failure on HP-UX
15556         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15557
15558         tests: fix logic bug in init.sh
15559         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15560         shell.
15561
15562 2011-05-24  Jim Meyering  <meyering@redhat.com>
15563
15564         utimensat: do not reference an out-of-scope buffer
15565         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15566         declared in an inner scope, yet "times" would be dereferenced outside
15567         the scope in which "ts" was valid.
15568         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15569         of ts[2] "out/up", so that the use of aliased "times" (via
15570         "times = ts;") does not end up referencing an out-of-scope "ts"
15571
15572         opendir-safer.c: don't clobber errno; don't close negative FD
15573         * lib/opendir-safer.c (opendir_safer):
15574         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15575         file descriptor, and more importantly, don't clobber the
15576         offending errno value with EINVAL.  Before, upon failure
15577         of dup_safer, we would pass the negative file descriptor to
15578         fdopendir, which would clobber errno.
15579
15580 2011-05-23  Bruno Haible  <bruno@clisp.org>
15581
15582         idcache: Fix module description.
15583         * modules/idcache (Include): Set to "idcache.h".
15584
15585 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15586
15587         gnulib-tool: fix portability problem with MacOS sed
15588         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15589         before the "}".  Problem reported by Leo in
15590         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15591         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15592         sed_extract_condition1, sed_extract_condition2.
15593
15594 2011-05-23  Bruno Haible  <bruno@clisp.org>
15595
15596         hash: Simplify autoconf macro.
15597         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15598
15599 2011-05-23  Bruno Haible  <bruno@clisp.org>
15600
15601         getugroups: Fix module description.
15602         * modules/getugroups (Include): Set to "getugroups.h".
15603
15604 2011-05-23  Bruno Haible  <bruno@clisp.org>
15605
15606         linkat: Simplify autoconf macro.
15607         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15608
15609 2011-05-23  Bruno Haible  <bruno@clisp.org>
15610             Eric Blake  <eblake@redhat.com>
15611
15612         linkat, renameat: Update dependencies.
15613         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15614         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15615         symlinkat.
15616
15617 2011-05-23  Jim Meyering  <meyering@redhat.com>
15618
15619         maint.mk: more tight_scope improvements
15620         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15621         (_gl_TS_headers): Define only in if-0'd block.
15622         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15623         sometimes we must *not* use it.  Adjust uses accordingly.
15624         (sc_tight_scope): Use much simpler grep-based test to determine
15625         whether we skip this rule.
15626
15627         maint.mk: generalize/improve the tight-scope rule
15628         * top/maint.mk: Emit a warning when the test is skipped.
15629         (_gl_TS_dir): Add $(srcdir)/ prefix.
15630         (_gl_TS_function_match): Simplify, rather than trying
15631         to enumerate common types.  Otherwise, it would fail to match an
15632         "extern unsigned char const *" declaration in idutils.
15633         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15634         a way to support use of that type of macro.
15635         (_gl_TS_var_match): Simplify regexp.
15636         (_gl_TS_obj_files): New configurable variable.
15637         (_gl_TS_headers): Likewise.
15638
15639 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15640
15641         verify: fix bug when gnulib <assert.h> is also included
15642         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15643         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15644         Perhaps there's a better way, but this fixes the immediate problem.
15645         Problem reported by Bruno Haible in
15646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15647
15648 2011-05-22  Bruno Haible  <bruno@clisp.org>
15649
15650         xgetcwd: Simplify autoconf macro.
15651         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15652
15653 2011-05-22  Bruno Haible  <bruno@clisp.org>
15654
15655         New module 'mktime-internal'.
15656         * modules/mktime-internal: New file.
15657         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15658         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15659         mktime_internal as a C macro if libc has __mktime_internal.
15660         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15661         conditions.
15662         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15663
15664 2011-05-22  Bruno Haible  <bruno@clisp.org>
15665
15666         timegm: Correct mktime replacement statements.
15667         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15668         defining mktime as a C macro. This completes a 2009-07-28 commit.
15669
15670 2011-05-22  Bruno Haible  <bruno@clisp.org>
15671
15672         timegm: Simplify autoconf macro.
15673         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15674
15675 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15676
15677         clock-time: change to LGPLv2+.
15678         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15679         BSD-like but we have no mark for that; this is good enough for now.
15680
15681 2011-05-21  Bruno Haible  <bruno@clisp.org>
15682
15683         strerror_r: Fix comments.
15684         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15685
15686 2011-05-21  Bruno Haible  <bruno@clisp.org>
15687
15688         relocatable-prog-wrapper: Fix possible link error.
15689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15690         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15691         (gl_FUNC_SETENV): ... to here.
15692         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15693         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15694
15695 2011-05-21  Bruno Haible  <bruno@clisp.org>
15696
15697         relocatable-prog-wrapper: Assume strerror() exists.
15698         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15699         m4/strerror.m4.
15700         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15701         * lib/relocwrapper.c: Remove mention of strerror module.
15702         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15704         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15705         C macro.
15706
15707 2011-05-21  Bruno Haible  <bruno@clisp.org>
15708
15709         select: Simplify replacement idiom.
15710         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15711         Win32 platforms.
15712         * lib/sys_select.in.h (select): Simplify accordingly.
15713         * modules/select (Depends-on): Likewise.
15714
15715 2011-05-21  Bruno Haible  <bruno@clisp.org>
15716
15717         mkdir-p: Simplify autoconf macro.
15718         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15719         gl_FUNC_LCHOWN.
15720
15721 2011-05-21  Eric Blake  <eblake@redhat.com>
15722
15723         strerror_r: avoid clobbering strerror on cygwin
15724         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15725         fall back instead to sys_errlist.
15726         * modules/strerror (configure.ac): Add witness.
15727         * tests/test-strerror_r.c (main): Enhance test.
15728         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15729         * tests/test-perror2.c (main): Free memory before exit.
15730
15731 2011-05-21  Bruno Haible  <bruno@clisp.org>
15732
15733         mkdtemp: Use gnulib naming conventions.
15734         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15735         * modules/mkdtemp (configure.ac): Update.
15736
15737 2011-05-20  Eric Blake  <eblake@redhat.com>
15738
15739         strerror_r: avoid corrupting errno on Solaris
15740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15741         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15742
15743         strerror_r: avoid compiler warning
15744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15745
15746         strerror_r: simplify AIX code
15747         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15748
15749         test-perror: avoid spurious failure on FreeBSD
15750         * modules/perror-tests (Depends-on): Add strerror, now that
15751         strerror_r no longer pulls it in.
15752
15753 2011-05-20  Bruno Haible  <bruno@clisp.org>
15754
15755         strerror_r-posix: Remove unused dependencies.
15756         * modules/strerror_r-posix (Depends-on): Remove strerror.
15757         Reported by Eric Blake.
15758
15759 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15760
15761         intprops: remove assumption about A|B representation
15762         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15763         is a valid integer if both A and B are.  Although this is true for
15764         all known practical hosts, the C standard doesn't guarantee it,
15765         and the code need not assume it.  Also, this change may work around
15766         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15768
15769 2011-05-20  Eric Blake  <eblake@redhat.com>
15770
15771         perror: work around FreeBSD bug
15772         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15773         is broken.  Move AC_LIBOBJ...
15774         * modules/perror (configure.ac): Here.
15775         * doc/posix-functions/perror.texi (perror): Document this.
15776         * tests/test-perror2.c (main): Enhance test.
15777
15778         test-perror: check for strerror interactions
15779         * tests/macros.h (STREQ): Add macro.
15780         * modules/perror-tests (Files): Add second test.
15781         * tests/test-perror2.c (main): New file.
15782         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15783
15784         test-perror: rewrite to use init script
15785         * modules/perror-tests (Files): Add init.sh.
15786         * tests/test-perror.sh: Use temporary directory.
15787
15788 2011-05-20  Jim Meyering  <meyering@redhat.com>
15789
15790         maint: replace misused "a" with "an"
15791         * doc/intprops.texi: "a integer"
15792         * doc/regex.texi: "a explanation"
15793         * lib/alignof.h: "a object"
15794         * lib/argmatch.h: "a explanation"
15795         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15796         * lib/stdint.in.h: "a integer"
15797         * lib/userspec.c: "a owner"
15798         * doc/gnulib.texi: Fix "a idea", and reword.
15799
15800 2011-05-19  Jim Meyering  <meyering@redhat.com>
15801
15802         maint: correct misuse of "a" and "an"
15803         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15804         * lib/argp-help.c: "an docum...": s/an/a/
15805         * lib/argp-parse.c: "An vector": s/An/A/
15806         * lib/execute.c: "an native": s/an/a/
15807         * lib/spawn-pipe.c: Likewise.
15808         * lib/gc.h: "an Gc_rc": s/an/a/
15809         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15810         * lib/fts.c: "an stat.st_dev": s/an/a/
15811
15812 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15813
15814         intprops-tests: work around HP-UX 11.23 cc bug with constants
15815         * tests/test-intprops.c (VERIFY): New macro.
15816         (main): Use it, instead of verify, to work around the compiler bug; see
15817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15818
15819         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15820         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15821         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15822         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15823         (_GL_REMAINDER_OVERFLOW): Use it.
15824
15825         intprops-tests: revert unsigned part of previous change
15826         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15827         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15828         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15830
15831 2011-05-19  Bruno Haible  <bruno@clisp.org>
15832
15833         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15834         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15835         strerror_r() returned without filling the buffer.
15836         Reported by Eric Blake.
15837
15838 2011-05-19  Eric Blake  <eblake@redhat.com>
15839
15840         strerror_r: guarantee unchanged errno
15841         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15842         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15843         failure.
15844         * tests/test-strerror_r.c (main): Enhance test.
15845
15846 2011-05-19  Bruno Haible  <bruno@clisp.org>
15847
15848         strerror_r: Reorder #if blocks.
15849         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15850         for consistency with the previous commit.
15851
15852 2011-05-19  Bruno Haible  <bruno@clisp.org>
15853
15854         perror: Avoid clobbering the strerror buffer when possible.
15855         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15856         * lib/strerror.c: Include it.
15857         * modules/strerror (Files): Add lib/strerror-impl.h.
15858         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15859         (my_strerror): New function, defined through lib/strerror-impl.h.
15860         (perror): Use it instead of strerror.
15861         * modules/perror (Files): Add lib/strerror-impl.h.
15862         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15863
15864 2011-05-19  Eric Blake  <eblake@redhat.com>
15865
15866         strerror_r: fix on newer cygwin
15867         * lib/strerror_r.c (strerror_r): Cygwin now has
15868         __xpg_strerror_r, use it.
15869
15870 2011-05-19  Bruno Haible  <bruno@clisp.org>
15871
15872         strerror_r: Avoid clobbering the strerror buffer when possible.
15873         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15874         (sys_nerr, sys_errlist): New declarations.
15875         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15876         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15877         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15878
15879 2011-05-19  Bruno Haible  <bruno@clisp.org>
15880
15881         strerror_r: Fix test failure on mingw.
15882         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15883         EXTEND_STRERROR_R.
15884         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15885         macros from errno.in.h instead.
15886
15887 2011-05-19  Eric Blake  <eblake@redhat.com>
15888
15889         strerror: relax test for Solaris
15890         * tests/test-strerror.c (main): Permit Solaris behavior.
15891         * tests/test-strerror_r.c (main): Likewise.
15892
15893         strerror: enforce POSIX ruling on strerror(0)
15894         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15896         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15897         * doc/posix-functions/strerror.texi (strerror): Document it.
15898         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15899         * tests/test-strerror.c (main): Strengthen test.
15900         * tests/test-strerror_r.c (main): Likewise.
15901
15902 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15903
15904         intprop-tests: port to older and more-pedantic compilers
15905         * modules/intprops-tests (Files): Add tests/macros.h.
15906         * tests/test-intprops.c: Include macros.h.
15907         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15908         it's no longer documented to expand to an integer constant expression.
15909         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15910         argument is floating point, as it's no longer documented to expand
15911         to an integer constant expression in that case.
15912         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15913         compiler bugs reported by Bruno Haible.  See
15914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15915         (U0, U1): New constants, to work around the same bugs.  Also,
15916         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15917
15918         intprops: work around C compiler bugs
15919         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15920         bug in Sun C 5.11 2010/08/13 and other compilers; see
15921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15922
15923         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15924         * doc/intprops.texi (Integer Type Determination): Fix
15925         documentation for TYPE_IS_INTEGER: it returns an constant
15926         expression, not an integer constant expression.  Fix doc for
15927         TYPE_SIGNED: it returns an integer constant expression only if its
15928         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15929         hardly worth documented that way....)
15930
15931 2011-05-18  Bruno Haible  <bruno@clisp.org>
15932
15933         strerror_r: Avoid clobbering the strerror buffer when possible.
15934         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15935         Handle gnulib defined errno values here. When strerror() returns NULL
15936         or an empty string, return EINVAL.
15937         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15938         gnulib defined errno values here.
15939         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15940
15941 2011-05-18  Eric Blake  <eblake@redhat.com>
15942
15943         fnmatch: avoid compiler warning
15944         * lib/fnmatch_loop.c (FCT): Use correct type.
15945         Reported by Matthias Bolte.
15946
15947 2011-05-13  Jim Meyering  <meyering@redhat.com>
15948
15949         maint.mk: three new prohibit_<HDR>_without_use rules
15950         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15951         (sc_prohibit_stdio-safer_without_use): Likewise.
15952         (sc_prohibit_xfreopen_without_use): Likewise.
15953
15954 2011-05-17  Jim Meyering  <meyering@redhat.com>
15955
15956         announce-gen: fail if the NEWS delta is empty
15957         If there's nothing noteworthy in NEWS, then either you forgot
15958         or you shouldn't be releasing.
15959         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15960
15961 2011-05-17  Pádraig Brady <P@draigBrady.com>
15962
15963         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15964         reserved symbols starting with double underscore from the check.
15965
15966 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15967
15968         intprops: add doc
15969         * doc/intprops.texi: New file, documenting intprops.
15970         * doc/gnulib.texi (Particular Modules): Include it.
15971
15972         verify: add doc to gnulib manual and fix example
15973         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15974         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15975         (Compile-time Assertions): Fix example so it can't overflow.
15976
15977 2011-05-17  Jim Meyering  <meyering@redhat.com>
15978
15979         warnings.m4: don't usurp save_CPPFLAGS variable name
15980         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15981
15982         doc: fix typo
15983         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15984
15985 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15986             Bruno Haible  <bruno@clisp.org>
15987
15988         doc: Tweak recent change.
15989         * README (Portability guidelines): Tweak new text.
15990         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15991         Interix 6.1.
15992
15993 2011-05-16  Eric Blake  <eblake@redhat.com>
15994
15995         inttypes: avoid autoconf warning
15996         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15997         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15998
15999 2011-05-16  Sam Steingold <sds@gnu.org>
16000         and Eric Blake  <eblake@redhat.com>
16001
16002         vc-list-files: accept multiple directory operands
16003         * build-aux/vc-list-files: Iterate over all remaining operands.
16004
16005 2011-05-16  Bruno Haible  <bruno@clisp.org>
16006
16007         Fix confusion regarding deprecated modules.
16008         * modules/calloc (Status, Notice): Mark module as deprecated, not
16009         obsolete.
16010         * modules/fnmatch-posix (Status, Notice): Likewise.
16011         * modules/getdate (Status, Notice): Likewise.
16012         * modules/getopt (Status, Notice): Likewise.
16013         * modules/malloc (Status, Notice): Likewise.
16014         * modules/pipe (Status, Notice): Likewise.
16015         * modules/realloc (Status, Notice): Likewise.
16016         * modules/rename-dest-slash (Status, Notice): Likewise.
16017         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16018         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16019         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16020         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16021         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16022
16023 2011-05-16  Bruno Haible  <bruno@clisp.org>
16024
16025         doc: List the target platforms.
16026         * doc/gnulib-intro.texi (Target Platforms): New section.
16027         * doc/gnulib.texi (Introduction): Update menu.
16028         * README (Portability guidelines): Refer to the new section. Update
16029         statement about oldest supported environment. Remove rationale why
16030         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16031         unportable C89 function.
16032         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16033         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16034
16035 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16038
16039 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16040
16041         intprops-tests: new module
16042         * modules/intprops-tests, tests/test-intprops.c: New files.
16043
16044         intprops: add safe, portable integer overflow checking
16045         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16046         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16047         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16048         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16049         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16050         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16051         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16052         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16053         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16054         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16055         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16056
16057 2011-05-12  James Youngman  <jay@gnu.org>
16058
16059         Add a test for glibc's Bugzilla bug #12378.
16060         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16061         doesn't allow the literal matching of a lone "[" (which is
16062         required by POSIX).
16063         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16064
16065 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16066
16067         Sync glibc change fixing Bugzilla bug #12378.
16068         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16069         beginning and fall back to matching as normal character if the
16070         string ends before the matching ']' is found.  This is what POSIX
16071         requires.
16072
16073 2011-05-13  Eric Blake  <eblake@redhat.com>
16074
16075         getcwd-lgpl: relax test for FreeBSD
16076         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16077         issue.
16078         * tests/test-getcwd-lgpl.c (main): Relax test.
16079         Reported by Matthias Bolte.
16080
16081 2011-05-11  Eric Blake  <eblake@redhat.com>
16082
16083         test-fflush: silence compiler warning
16084         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16085
16086 2011-05-11  Bruno Haible  <bruno@clisp.org>
16087
16088         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16089         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16090         * modules/canonicalize (Depends-on): Add 'nocrash'.
16091         * modules/canonicalize-lgpl (Depends-on): Likewise.
16092         * doc/posix-functions/realpath.texi: Update platforms list.
16093         Reported by Ryan Schmidt <ryandesign@macports.org>.
16094
16095 2011-05-11  Bruno Haible  <bruno@clisp.org>
16096
16097         group-member: Declare function in <unistd.h>.
16098         * lib/unistd.in.h (group_member): New declaration.
16099         * lib/group-member.h: Remove file.
16100         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16101         * tests/test-unistd-c++.cc: Check signature of group_member.
16102         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16103         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16104         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16105         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16106         HAVE_GROUP_MEMBER.
16107         * modules/group-member (Files): Remove lib/group-member.h.
16108         (Depends-on): Add unistd. Specify conditions.
16109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16110         (Include): Change to <unistd.h>.
16111         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16112         HAVE_GROUP_MEMBER.
16113         * NEWS: Mention the change.
16114         * lib/euidaccess.c: Don't include group-member.h.
16115
16116 2011-05-11  Bruno Haible  <bruno@clisp.org>
16117
16118         group-member: Document module.
16119         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16120         module.
16121
16122 2011-05-11  Bruno Haible  <bruno@clisp.org>
16123
16124         fclose: Fix mistake earlier today.
16125         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16126
16127 2011-05-11  Eric Blake  <eblake@redhat.com>
16128
16129         fclose: preserve fflush errors
16130         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16131         Reported by Jim Meyering.
16132
16133         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16134         * build-aux/bootstrap (check_versions): When no specific version
16135         is required, merely check that the app produces an exit status
16136         that indicates its existence.
16137
16138         maint.mk: drop redundant check
16139         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16140         the same but better.
16141
16142 2011-05-11  Bruno Haible  <bruno@clisp.org>
16143
16144         fclose: Fix possible link error.
16145         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16146         unregister_shadow_fd. Improve comments.
16147         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16148         Eric Blake.
16149
16150 2011-05-11  Jim Meyering  <meyering@redhat.com>
16151
16152         maint.mk: improve "can not" detection and generalize rule name
16153         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16154         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16155         Use the same technique as in sc_prohibit_doubled_word, so that
16156         we recognize "can not" also when the words are separated by a newline.
16157         Suggested by Eric Blake.
16158         (perl_filename_lineno_text_): Define.  Factored out of...
16159         (prohibit_doubled_word_): ...here.  Use the new definition.
16160         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16161         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16162         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16163
16164 2011-05-10  Eric Blake  <eblake@redhat.com>
16165
16166         fclose: avoid double close race when possible
16167         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16168         all but WINDOWS_SOCKETS.
16169
16170 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16171
16172         openat: correct new comment
16173         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16174
16175 2011-05-10  Jim Meyering  <meyering@redhat.com>
16176
16177         openat: add comments
16178         * lib/openat-proc.c (openat_proc_name): Add comments,
16179         mostly from Eric Blake.
16180
16181 2011-05-09  Eric Blake  <eblake@redhat.com>
16182
16183         openat: reduce syscalls in first probe of /proc
16184         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16185         be a directory.  Simplify the probe for .. bugs.
16186         * modules/openat (Depends-on): Drop same-inode.
16187         Reported by Bastien ROUCARIES.
16188
16189 2011-05-09  Jim Meyering  <meyering@redhat.com>
16190
16191         maint.mk: change semantics/name of tight_scope variables
16192         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16193         Rename variables to align with semantics that make them more useful.
16194
16195         maint.mk: tweak new rule's name not to impinge
16196         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16197         (sc_tight_scope): Use new rule name rather than $@-0.
16198
16199         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16200         * top/maint.mk (sc_tight_scope): New rule.
16201         (sc_tight_scope-0): New rule, ifdef'd out.
16202         (_gl_TS_dir): Default.
16203         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16204         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16205
16206 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16207
16208         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16209         Haible <bruno@clisp.org>.
16210
16211 2011-05-08  Bruno Haible  <bruno@clisp.org>
16212
16213         Comments.
16214         * m4/isnanf.m4: Add comment.
16215         * m4/isnanl.m4: Likewise.
16216
16217 2011-05-08  Bruno Haible  <bruno@clisp.org>
16218
16219         glob: Remove obsolete macro.
16220         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16221
16222 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16223
16224         intprops: Sun C 5.11 supports __typeof__
16225         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16226         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16227         which is new.
16228         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16229
16230         intprops: switch to usual gnulib indenting and naming
16231         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16232         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16233
16234         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16235
16236 2011-05-08  Jim Meyering  <meyering@redhat.com>
16237
16238         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16239         * top/maint.mk (release-prep): Use make's --no-print-directory
16240         option when generating the announcement.  This eliminates the
16241         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16242         generated announcement template.
16243
16244 2011-05-08  Bruno Haible  <bruno@clisp.org>
16245
16246         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16247         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16248         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16249
16250 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16251
16252         ignore-value, verify: Omit include files from lib_SOURCES.
16253         * modules/ignore-value, modules/verify (Makefile.am):
16254         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16255         that leads Automake to duplicate use of am__objects_... variables
16256         in Makefile.in.  See
16257         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16258
16259 2011-05-07  Bruno Haible  <bruno@clisp.org>
16260
16261         fclose: Simplify autoconf macro.
16262         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16263         defined.
16264
16265 2011-05-07  Bruno Haible  <bruno@clisp.org>
16266
16267         canonicalize-lgpl: Fix autoconf macro ordering bug.
16268         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16269         gl_STDLIB_H_DEFAULTS.
16270
16271 2011-05-06  Eric Blake  <eblake@redhat.com>
16272
16273         maintainer-makefile: make sc_po_check easier to tune
16274         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16275         to probe for strings, such as an alternate location for gnulib.
16276
16277         fclose: guarantee behavior on seekable stdin
16278         * modules/fclose (Depends-on): Add fflush.
16279         * doc/posix-functions/fclose.texi (fclose): Document this.
16280         * tests/test-fclose.c (main): Make test for this unconditional.
16281
16282 2011-05-06  Bruno Haible  <bruno@clisp.org>
16283
16284         fflush, fpurge: Relicense under LGPLv2+.
16285         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16286         * modules/fpurge (License): Likewise.
16287         With permission from Eric Blake and Jim Meyering.
16288         Suggested by Eric Blake.
16289
16290 2011-05-06  Karl Berry  <karl@gnu.org>
16291
16292         * MODULES.html.sh (func_all_modules): remove exit.
16293
16294 2011-05-06  Jim Meyering  <meyering@redhat.com>
16295
16296         maint.mk: use info-gnu@ as the default only for a stable release
16297         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16298         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16299         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16300         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16301
16302 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16303
16304         assert-h: new module, which supports C1X-style static_assert
16305         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16306         * lib/verify.h: Revamp so that this can be copied into assert.h,
16307         while retaining the ability to use it standalone as before.
16308         Rename private identifiers so as not to encroach on the
16309         standard C namespace, since this is now used by assert.h.
16310         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16311         the old verify_true.
16312         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16313         the old verify_true.  Use _GL_VERIFY_TYPE.
16314         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16315         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16316         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16317         defined when this file is copied into the replacement assert.h.
16318         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16319         and _Static_assert is not built in.
16320         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16321         defined, and use the new macros mentioned above.
16322         * doc/posix-headers/assert.texi: Document this.
16323
16324 2011-05-05  Bruno Haible  <bruno@clisp.org>
16325
16326         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16327         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16328         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16329         gl_REPLACE_FCLOSE here.
16330         * modules/fflush (Depends-on): Remove fclose.
16331         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16332         combination with module 'fclose'.
16333
16334 2011-05-05  Bruno Haible  <bruno@clisp.org>
16335
16336         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16337         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16338         gl_FUNC_FFLUSH.
16339         (gl_FUNC_FFLUSH): Use it.
16340         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16342         gl_REPLACE_FSEEKO here.
16343
16344 2011-05-05  Bruno Haible  <bruno@clisp.org>
16345
16346         tzset: Relicense under LGPL.
16347         * modules/tzset (License): Change to LGPL.
16348         No agreement needed; it's a no-op.
16349
16350         strtoimax, strtoumax: Relicense under LGPL.
16351         * modules/strtoimax (License): Change to LGPL.
16352         * modules/strtoumax (License): Likewise.
16353         With permission from Jim Meyering, Paul Eggert:
16354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16356
16357         getgroups: Relicense under LGPL.
16358         * modules/getgroups (License): Change to LGPL.
16359         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16363
16364         nanosleep: Relicense under LGPL.
16365         * modules/nanosleep (License): Change to LGPL.
16366         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16367         Haible:
16368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16372
16373         futimens: Relicense under LGPL.
16374         * modules/futimens (License): Change to LGPL.
16375         With permission from Eric Blake:
16376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16377
16378         fflush: Relicense under LGPL.
16379         * modules/fflush (License): Change to LGPL.
16380         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16384
16385         tmpfile: Relicense under LGPL.
16386         * modules/tmpfile (License): Change to LGPL.
16387         With permission from Ben Pfaff:
16388         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16389
16390         isfinite: Relicense under LGPL.
16391         * modules/isfinite (License): Change to LGPL.
16392         With permission from Ben Pfaff, Bruno Haible:
16393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16395
16396         acosl..tanl: Relicense under LGPL.
16397         * modules/acosl (License): Change to LGPL.
16398         * modules/asinl (License): Likewise.
16399         * modules/atanl (License): Likewise.
16400         * modules/cosl (License): Likewise.
16401         * modules/expl (License): Likewise.
16402         * modules/logl (License): Likewise.
16403         * modules/sinl (License): Likewise.
16404         * modules/sqrtl (License): Likewise.
16405         * modules/tanl (License): Likewise.
16406         Source code originally from glibc and Paolo Bonzini. Agreements:
16407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16409
16410 2011-05-05  Bruno Haible  <bruno@clisp.org>
16411
16412         signal: Define sighandler_t.
16413         * lib/signal.in.h (sighandler_t): New type.
16414         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16415         whether sighandler_t is defined.
16416         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16417         * modules/signal (Depends-on): Add extensions.
16418         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16419         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16420         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16421
16422 2011-05-05  Eric Blake  <eblake@redhat.com>
16423
16424         maint: remove useless REPLACE_*_H macros
16425         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16426         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16427         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16428         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16429         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16430         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16431         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16432         * m4/btowc.m4: Update callers.
16433         * m4/dirfd.m4: Likewise.
16434         * m4/duplocale.m4: Likewise.
16435         * m4/fchdir.m4: Likewise.
16436         * m4/fdopendir.m4: Likewise.
16437         * m4/inet_ntop.m4: Likewise.
16438         * m4/inet_pton.m4: Likewise.
16439         * m4/ioctl.m4: Likewise.
16440         * m4/mbrlen.m4: Likewise.
16441         * m4/mbrtowc.m4: Likewise.
16442         * m4/mbsinit.m4: Likewise.
16443         * m4/mbsnrtowcs.m4: Likewise.
16444         * m4/mbsrtowcs.m4: Likewise.
16445         * m4/poll.m4: Likewise.
16446         * m4/setlocale.m4: Likewise.
16447         * m4/wcrtomb.m4: Likewise.
16448         * m4/wcsnrtombs.m4: Likewise.
16449         * m4/wcsrtombs.m4: Likewise.
16450         * m4/wctob.m4: Likewise.
16451         * m4/wcwidth.m4: Likewise.
16452         * modules/posix_spawn: Likewise.
16453         * modules/posix_spawn_file_actions_addclose: Likewise.
16454         * modules/posix_spawn_file_actions_adddup2: Likewise.
16455         * modules/posix_spawn_file_actions_addopen: Likewise.
16456         * modules/posix_spawn_file_actions_destroy: Likewise.
16457         * modules/posix_spawn_file_actions_init: Likewise.
16458         * modules/posix_spawnattr_destroy: Likewise.
16459         * modules/posix_spawnattr_getflags: Likewise.
16460         * modules/posix_spawnattr_getpgroup: Likewise.
16461         * modules/posix_spawnattr_getschedparam: Likewise.
16462         * modules/posix_spawnattr_getschedpolicy: Likewise.
16463         * modules/posix_spawnattr_getsigdefault: Likewise.
16464         * modules/posix_spawnattr_getsigmask: Likewise.
16465         * modules/posix_spawnattr_init: Likewise.
16466         * modules/posix_spawnattr_setflags: Likewise.
16467         * modules/posix_spawnattr_setpgroup: Likewise.
16468         * modules/posix_spawnattr_setschedparam: Likewise.
16469         * modules/posix_spawnattr_setschedpolicy: Likewise.
16470         * modules/posix_spawnattr_setsigdefault: Likewise.
16471         * modules/posix_spawnattr_setsigmask: Likewise.
16472         * modules/posix_spawnp: Likewise.
16473
16474 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16475
16476         Add option to do-release-commit-and-tag to specify branch.
16477         * build-aux/do-release-commit-and-tag: Add --branch.
16478
16479 2011-05-03  Bruno Haible  <bruno@clisp.org>
16480
16481         Avoid unnecessary compilation units, through conditional dependencies.
16482         * modules/accept (Depends-on): Add conditions to the dependencies.
16483         * modules/acosl (Depends-on): Likewise.
16484         * modules/argz (Depends-on): Likewise.
16485         * modules/asinl (Depends-on): Likewise.
16486         * modules/atanl (Depends-on): Likewise.
16487         * modules/atoll (Depends-on): Likewise.
16488         * modules/bind (Depends-on): Likewise.
16489         * modules/btowc (Depends-on): Likewise.
16490         * modules/canonicalize-lgpl (Depends-on): Likewise.
16491         * modules/ceil (Depends-on): Likewise.
16492         * modules/ceilf (Depends-on): Likewise.
16493         * modules/ceill (Depends-on): Likewise.
16494         * modules/chdir-long (Depends-on): Likewise.
16495         * modules/chown (Depends-on): Likewise.
16496         * modules/close (Depends-on): Likewise.
16497         * modules/connect (Depends-on): Likewise.
16498         * modules/cosl (Depends-on): Likewise.
16499         * modules/dirfd (Depends-on): Likewise.
16500         * modules/dprintf (Depends-on): Likewise.
16501         * modules/dprintf-posix (Depends-on): Likewise.
16502         * modules/error (Depends-on): Likewise.
16503         * modules/euidaccess (Depends-on): Likewise.
16504         * modules/expl (Depends-on): Likewise.
16505         * modules/faccessat (Depends-on): Likewise.
16506         * modules/fchdir (Depends-on): Likewise.
16507         * modules/fclose (Depends-on): Likewise.
16508         * modules/fcntl (Depends-on): Likewise.
16509         * modules/fdopendir (Depends-on): Likewise.
16510         * modules/fflush (Depends-on): Likewise.
16511         * modules/floor (Depends-on): Likewise.
16512         * modules/floorf (Depends-on): Likewise.
16513         * modules/floorl (Depends-on): Likewise.
16514         * modules/fnmatch (Depends-on): Likewise.
16515         * modules/fopen (Depends-on): Likewise.
16516         * modules/fprintf-posix (Depends-on): Likewise.
16517         * modules/frexp (Depends-on): Likewise.
16518         * modules/frexp-nolibm (Depends-on): Likewise.
16519         * modules/frexpl (Depends-on): Likewise.
16520         * modules/frexpl-nolibm (Depends-on): Likewise.
16521         * modules/fseek (Depends-on): Likewise.
16522         * modules/fsusage (Depends-on): Likewise.
16523         * modules/ftell (Depends-on): Likewise.
16524         * modules/ftello (Depends-on): Likewise.
16525         * modules/futimens (Depends-on): Likewise.
16526         * modules/getcwd (Depends-on): Likewise.
16527         * modules/getcwd-lgpl (Depends-on): Likewise.
16528         * modules/getdelim (Depends-on): Likewise.
16529         * modules/getdomainname (Depends-on): Likewise.
16530         * modules/getgroups (Depends-on): Likewise.
16531         * modules/gethostname (Depends-on): Likewise.
16532         * modules/getline (Depends-on): Likewise.
16533         * modules/getlogin_r (Depends-on): Likewise.
16534         * modules/getopt-posix (Depends-on): Likewise.
16535         * modules/getpeername (Depends-on): Likewise.
16536         * modules/getsockname (Depends-on): Likewise.
16537         * modules/getsockopt (Depends-on): Likewise.
16538         * modules/getsubopt (Depends-on): Likewise.
16539         * modules/getusershell (Depends-on): Likewise.
16540         * modules/glob (Depends-on): Likewise.
16541         * modules/grantpt (Depends-on): Likewise.
16542         * modules/iconv_open (Depends-on): Likewise.
16543         * modules/iconv_open-utf (Depends-on): Likewise.
16544         * modules/inet_ntop (Depends-on): Likewise.
16545         * modules/inet_pton (Depends-on): Likewise.
16546         * modules/ioctl (Depends-on): Likewise.
16547         * modules/isapipe (Depends-on): Likewise.
16548         * modules/isfinite (Depends-on): Likewise.
16549         * modules/isinf (Depends-on): Likewise.
16550         * modules/lchown (Depends-on): Likewise.
16551         * modules/ldexpl (Depends-on): Likewise.
16552         * modules/link (Depends-on): Likewise.
16553         * modules/linkat (Depends-on): Likewise.
16554         * modules/listen (Depends-on): Likewise.
16555         * modules/logl (Depends-on): Likewise.
16556         * modules/lstat (Depends-on): Likewise.
16557         * modules/mbrlen (Depends-on): Likewise.
16558         * modules/mbrtowc (Depends-on): Likewise.
16559         * modules/mbsinit (Depends-on): Likewise.
16560         * modules/mbsnrtowcs (Depends-on): Likewise.
16561         * modules/mbsrtowcs (Depends-on): Likewise.
16562         * modules/mbtowc (Depends-on): Likewise.
16563         * modules/memcmp (Depends-on): Likewise.
16564         * modules/mkdir (Depends-on): Likewise.
16565         * modules/mkdtemp (Depends-on): Likewise.
16566         * modules/mkfifo (Depends-on): Likewise.
16567         * modules/mkfifoat (Depends-on): Likewise.
16568         * modules/mknod (Depends-on): Likewise.
16569         * modules/mkostemp (Depends-on): Likewise.
16570         * modules/mkostemps (Depends-on): Likewise.
16571         * modules/mkstemp (Depends-on): Likewise.
16572         * modules/mkstemps (Depends-on): Likewise.
16573         * modules/mktime (Depends-on): Likewise.
16574         * modules/nanosleep (Depends-on): Likewise.
16575         * modules/open (Depends-on): Likewise.
16576         * modules/openat (Depends-on): Likewise.
16577         * modules/perror (Depends-on): Likewise.
16578         * modules/poll (Depends-on): Likewise.
16579         * modules/popen (Depends-on): Likewise.
16580         * modules/posix_spawn (Depends-on): Likewise.
16581         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16582         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16583         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16584         * modules/posix_spawnp (Depends-on): Likewise.
16585         * modules/pread (Depends-on): Likewise.
16586         * modules/printf-posix (Depends-on): Likewise.
16587         * modules/ptsname (Depends-on): Likewise.
16588         * modules/putenv (Depends-on): Likewise.
16589         * modules/pwrite (Depends-on): Likewise.
16590         * modules/readline (Depends-on): Likewise.
16591         * modules/readlink (Depends-on): Likewise.
16592         * modules/readlinkat (Depends-on): Likewise.
16593         * modules/recv (Depends-on): Likewise.
16594         * modules/recvfrom (Depends-on): Likewise.
16595         * modules/regex (Depends-on): Likewise.
16596         * modules/remove (Depends-on): Likewise.
16597         * modules/rename (Depends-on): Likewise.
16598         * modules/renameat (Depends-on): Likewise.
16599         * modules/rmdir (Depends-on): Likewise.
16600         * modules/round (Depends-on): Likewise.
16601         * modules/roundf (Depends-on): Likewise.
16602         * modules/roundl (Depends-on): Likewise.
16603         * modules/rpmatch (Depends-on): Likewise.
16604         * modules/select (Depends-on): Likewise.
16605         * modules/send (Depends-on): Likewise.
16606         * modules/sendto (Depends-on): Likewise.
16607         * modules/setenv (Depends-on): Likewise.
16608         * modules/setlocale (Depends-on): Likewise.
16609         * modules/setsockopt (Depends-on): Likewise.
16610         * modules/shutdown (Depends-on): Likewise.
16611         * modules/sigaction (Depends-on): Likewise.
16612         * modules/signbit (Depends-on): Likewise.
16613         * modules/sigprocmask (Depends-on): Likewise.
16614         * modules/sinl (Depends-on): Likewise.
16615         * modules/sleep (Depends-on): Likewise.
16616         * modules/snprintf (Depends-on): Likewise.
16617         * modules/snprintf-posix (Depends-on): Likewise.
16618         * modules/socket (Depends-on): Likewise.
16619         * modules/sprintf-posix (Depends-on): Likewise.
16620         * modules/sqrtl (Depends-on): Likewise.
16621         * modules/stat (Depends-on): Likewise.
16622         * modules/strchrnul (Depends-on): Likewise.
16623         * modules/strdup-posix (Depends-on): Likewise.
16624         * modules/strerror (Depends-on): Likewise.
16625         * modules/strerror_r-posix (Depends-on): Likewise.
16626         * modules/strndup (Depends-on): Likewise.
16627         * modules/strnlen (Depends-on): Likewise.
16628         * modules/strptime (Depends-on): Likewise.
16629         * modules/strsep (Depends-on): Likewise.
16630         * modules/strsignal (Depends-on): Likewise.
16631         * modules/strstr-simple (Depends-on): Likewise.
16632         * modules/strtod (Depends-on): Likewise.
16633         * modules/strtoimax (Depends-on): Likewise.
16634         * modules/strtok_r (Depends-on): Likewise.
16635         * modules/strtoumax (Depends-on): Likewise.
16636         * modules/symlink (Depends-on): Likewise.
16637         * modules/symlinkat (Depends-on): Likewise.
16638         * modules/tanl (Depends-on): Likewise.
16639         * modules/tcgetsid (Depends-on): Likewise.
16640         * modules/tmpfile (Depends-on): Likewise.
16641         * modules/trunc (Depends-on): Likewise.
16642         * modules/truncf (Depends-on): Likewise.
16643         * modules/truncl (Depends-on): Likewise.
16644         * modules/uname (Depends-on): Likewise.
16645         * modules/unlink (Depends-on): Likewise.
16646         * modules/unlockpt (Depends-on): Likewise.
16647         * modules/unsetenv (Depends-on): Likewise.
16648         * modules/usleep (Depends-on): Likewise.
16649         * modules/utimensat (Depends-on): Likewise.
16650         * modules/vasprintf (Depends-on): Likewise.
16651         * modules/vdprintf (Depends-on): Likewise.
16652         * modules/vdprintf-posix (Depends-on): Likewise.
16653         * modules/vfprintf-posix (Depends-on): Likewise.
16654         * modules/vprintf-posix (Depends-on): Likewise.
16655         * modules/vsnprintf (Depends-on): Likewise.
16656         * modules/vsnprintf-posix (Depends-on): Likewise.
16657         * modules/vsprintf-posix (Depends-on): Likewise.
16658         * modules/wcrtomb (Depends-on): Likewise.
16659         * modules/wcscasecmp (Depends-on): Likewise.
16660         * modules/wcscspn (Depends-on): Likewise.
16661         * modules/wcsdup (Depends-on): Likewise.
16662         * modules/wcsncasecmp (Depends-on): Likewise.
16663         * modules/wcsnrtombs (Depends-on): Likewise.
16664         * modules/wcspbrk (Depends-on): Likewise.
16665         * modules/wcsrtombs (Depends-on): Likewise.
16666         * modules/wcsspn (Depends-on): Likewise.
16667         * modules/wcsstr (Depends-on): Likewise.
16668         * modules/wcstok (Depends-on): Likewise.
16669         * modules/wcswidth (Depends-on): Likewise.
16670         * modules/wctob (Depends-on): Likewise.
16671         * modules/wctomb (Depends-on): Likewise.
16672         * modules/wctype (Depends-on): Likewise.
16673         * modules/wcwidth (Depends-on): Likewise.
16674         * modules/write (Depends-on): Likewise.
16675
16676 2011-05-03  Bruno Haible  <bruno@clisp.org>
16677
16678         Support for conditional dependencies.
16679         * doc/gnulib.texi (Module description): Document the syntax of
16680         conditional dependencies.
16681         * gnulib-tool: New option --conditional-dependencies.
16682         (func_usage): Document it.
16683         (cond_dependencies): New variable.
16684         (func_get_automake_snippet_conditional,
16685         func_get_automake_snippet_unconditional): New functions, extracted from
16686         func_get_automake_snippet.
16687         (func_get_automake_snippet): Use them.
16688         (sed_first_32_chars): New variable.
16689         (func_module_shellfunc_name): New function.
16690         (func_module_shellvar_name): New function.
16691         (func_module_conditional_name): New function.
16692         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16693         func_cond_module_condition): New functions.
16694         (func_modules_transitive_closure): Add support for conditional
16695         dependencies.
16696         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16697         conditional automake snippet in an automake conditional.
16698         (func_emit_autoconf_snippets): Emit shell functions that contain the
16699         code for conditional modules.
16700         (func_import, func_create_testdir): Update specification.
16701
16702 2011-05-03  Eric Blake  <eblake@redhat.com>
16703
16704         test-getaddrinfo: report error information
16705         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16706
16707 2011-05-03  Jim Meyering  <meyering@redhat.com>
16708
16709         bootstrap: avoid build failure when $GZIP is set
16710         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16711         program name.  If defined at all, it is supposed to list gzip options.
16712         Reported by Alan Curry in http://debbugs.gnu.org/8609
16713
16714 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16715
16716         readme-release: new module with release instructions
16717         * modules/readme-release: New module.
16718         * top/README-release: New file, from coreutils, grep, diffutils.
16719         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16720
16721 2011-05-02  Eric Blake  <eblake@redhat.com>
16722
16723         fflush: also replace fclose when fixing fflush
16724         * modules/fflush (Depends-on): Add fclose.
16725         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16726         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16727         memstreams with no backing fd.
16728         * doc/posix-functions/fclose.texi (fclose): Document the use of
16729         fflush module to fix the bug.
16730         * tests/test-fclose.c (main): Relax test when fclose is used in
16731         isolation.
16732
16733         fclose: add some tests
16734         * modules/fclose-tests: New test module.
16735         * tests/test-fclose.c: New file.
16736         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16737
16738         fclose: reduced dependencies
16739         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16740         simpler lseek.
16741         * lib/fclose.c (rpl_fclose): Likewise.
16742         Reported by Simon Josefsson.
16743
16744         exit: drop remaining clients
16745         * modules/argmatch (Depends-on): Replace exit with stdlib.
16746         * modules/copy-file (Depends-on): Likewise.
16747         * modules/execute (Depends-on): Likewise.
16748         * modules/exitfail (Depends-on): Likewise.
16749         * modules/obstack (Depends-on): Likewise.
16750         * modules/pagealign_alloc (Depends-on): Likewise.
16751         * modules/pipe-filter-gi (Depends-on): Likewise.
16752         * modules/pipe-filter-ii (Depends-on): Likewise.
16753         * modules/savewd (Depends-on): Likewise.
16754         * modules/spawn-pipe (Depends-on): Likewise.
16755         * modules/wait-process (Depends-on): Likewise.
16756         * modules/xsetenv (Depends-on): Likewise.
16757         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16758         * modules/git-merge-changelog (Depends-on): Likewise.
16759         * modules/long-options (Depends-on): Likewise.
16760         * modules/pt_chown (Depends-on): Likewise.
16761         * modules/sysexits (Depends-on): Likewise.
16762
16763         freading: relax license from LGPLv3+ to LGPLv2+
16764         * modules/freading (License): Relax LGPL version.
16765
16766 2011-05-02  Bruno Haible  <bruno@clisp.org>
16767
16768         fchdir: Remove unused dependencies.
16769         * modules/fchdir (Depends-on): Remove include_next.
16770
16771 2011-05-02  Bruno Haible  <bruno@clisp.org>
16772
16773         gnulib-tool: Refactor.
16774         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16775         from func_emit_autoconf_snippets.
16776         (func_emit_autoconf_snippets): Use it.
16777
16778 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16779
16780         * NEWS: Document removal of 'exit'.
16781         * modules/exit: Remove file.
16782
16783 2011-05-01  Bruno Haible  <bruno@clisp.org>
16784
16785         Update DEPENDENCIES.
16786         * DEPENDENCIES (gettext): Recommend the newest release.
16787         Reported by Simon Josefsson.
16788
16789 2011-05-01  Bruno Haible  <bruno@clisp.org>
16790
16791         gnulib-tool: Reduce code duplication.
16792         * gnulib-tool (func_emit_autoconf_snippets): New function.
16793         (func_import, func_create_testdir): Use it.
16794
16795 2011-04-30  Eric Blake  <eblake@redhat.com>
16796
16797         fclose: don't fail on non-seekable input stream
16798         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16799         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16800         since fflush is allowed to fail in that case.
16801
16802 2011-04-30  Bruno Haible  <bruno@clisp.org>
16803
16804         dup3: cleanup
16805         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16806
16807 2011-04-30  Bruno Haible  <bruno@clisp.org>
16808
16809         netdb: Make it work in C++ mode.
16810         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16811         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16812         module.
16813         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16814         gl_MODULE_INDICATOR_FOR_TESTS.
16815         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16816         * modules/netdb-c++-tests: New file.
16817         * tests/test-netdb-c++.cc: New file.
16818
16819 2011-04-30  Bruno Haible  <bruno@clisp.org>
16820
16821         New modules 'vfscanf', 'vscanf'.
16822         * modules/vfscanf: New file.
16823         * modules/vscanf: New file.
16824         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16825         here.
16826         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16827         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16828
16829 2011-04-30  Bruno Haible  <bruno@clisp.org>
16830
16831         passfd: Add comments.
16832         * lib/passfd.c: Add comments about platforms.
16833
16834 2011-04-30  Bruno Haible  <bruno@clisp.org>
16835
16836         sys_uio: Make <sys/uio.h> self-contained.
16837         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16838         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16839
16840 2011-04-30  Bruno Haible  <bruno@clisp.org>
16841
16842         sys_socket: Ensure 'struct iovec' definition.
16843         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16844         <sys/socket.h>.
16845         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16846
16847 2011-04-30  Bruno Haible  <bruno@clisp.org>
16848
16849         sys_uio: Protect definition of 'struct iovec'.
16850         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16851         it as a C struct.
16852
16853 2011-04-30  Bruno Haible  <bruno@clisp.org>
16854
16855         manywarnings: fix indentation
16856         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16857
16858 2011-04-30  Pádraig Brady <P@draigBrady.com>
16859
16860         manywarnings: add -Wno-missing-field-initializers if needed.
16861         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16862         option if it's needed to allow initialization with { 0, }
16863
16864 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16865
16866         announce-gen: cosmetic improvement
16867         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16868
16869 2011-04-29  Jim Meyering  <meyering@redhat.com>
16870
16871         vc-list-files: indent with spaces, not TABs
16872         * build-aux/vc-list-files: Convert leading TABs to spaces,
16873         to match the style of most other files in gnulib.
16874
16875         announce-gen: indent with spaces, not TABs
16876         * build-aux/announce-gen: Convert all TABs to spaces, to match
16877         the style of most other files in gnulib.
16878
16879 2011-04-29  Eric Blake  <eblake@redhat.com>
16880
16881         quotearg: avoid uninitialized variable use
16882         * lib/quotearg.c (quoting_options_from_style): Initialize
16883         remaining fields, and ensure that custom styles are only used via
16884         quoting_options rather than quoting_style.
16885
16886 2011-04-29  Jim Meyering  <meyering@redhat.com>
16887
16888         maint.mk: remove unused VC-tag variable
16889         * top/maint.mk (VC-tag): Remove unused variable.
16890
16891 2011-04-29  Bruno Haible  <bruno@clisp.org>
16892
16893         netdb: fix gai_strerror replacements
16894         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16895         * modules/netdb: Substitute it.
16896
16897 2011-04-29  Jim Meyering  <meyering@redhat.com>
16898
16899         test-getcwd.c: avoid new set-but-not-used warning
16900         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16901         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16902         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16903         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16904
16905         test-hash.c: avoid a new shadowing warning
16906         * tests/test-hash.c (main): Don't shadow "dup".
16907
16908 2011-04-28  Eric Blake  <eblake@redhat.com>
16909
16910         getaddrinfo: fix gai_strerror signature
16911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16912         and work around mingw with UNICODE defined.
16913         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16914         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16915         * modules/netdb (Makefile.am): Substitute it.
16916         * lib/netdb.in.h (gai_strerror): Declare replacement.
16917         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16918         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16919         the fix.
16920
16921         getsockopt: avoid compiler warning
16922         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16923         Reported by Matthias Bolte.
16924
16925         tests: drop unused link dependency
16926         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16927         * modules/dirent-safer-tests (Makefile.am): Likewise.
16928         * modules/fdopendir-tests (Makefile.am): Likewise.
16929         * modules/mkfifoat-tests (Makefile.am): Likewise.
16930         * modules/openat-safer-tests (Makefile.am): Likewise.
16931         * modules/openat-tests (Makefile.am): Likewise.
16932         * modules/readlinkat-tests (Makefile.am): Likewise.
16933         * modules/symlinkat-tests (Makefile.am): Likewise.
16934         * modules/linkat-tests (Makefile.am): Likewise.
16935         (Depends-on): Switch to filenamecat-lgpl.
16936         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16937         LIBINTL.
16938         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16939         * tests/test-linkat.c (main): Don't require xalloc.
16940
16941         hash, mgetgroups: drop xalloc dependency
16942         * lib/hash.c (includes): Adjust includes.
16943         * lib/mgetgroups.c (includes): Likewise.
16944         (xgetgroups): Move...
16945         * lib/xgetgroups.c: ...to new file.
16946         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16947         * modules/xgetgroups: New file, split from...
16948         * modules/mgetgroups: ...here.
16949         (Depends-on): Add xalloc-oversized.
16950         * modules/hash (Depends-on): Likewise.
16951         * modules/hash-tests (Depends-on): Drop xalloc.
16952         (test_hash_LDADD): Drop unused library.
16953         * tests/test-hash.c (main): Break xalloc dependency.
16954         (includes): Drop unused include.
16955
16956         xalloc-oversized: new module
16957         * modules/xalloc-oversized: New module.
16958         * modules/xalloc (Depends-on): Add it.
16959         * lib/xalloc.h (xalloc_oversized): Move...
16960         * lib/xalloc-oversized.h: ...into new file.
16961
16962         utimecmp: drop dependency on xmalloc
16963         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16964         due to memory pressure.
16965         * modules/utimecmp (Depends-on): Drop xalloc.
16966
16967 2011-04-27  Eric Blake  <eblake@redhat.com>
16968
16969         getcwd: fix mingw bugs
16970         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16971         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16972         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16973
16974 2011-04-27  Bruno Haible  <bruno@clisp.org>
16975
16976         mkstemps: Ensure declaration on MacOS X 10.5.
16977         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16978         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16979         MacOS X.
16980
16981 2011-04-27  Bruno Haible  <bruno@clisp.org>
16982
16983         mkstemp: More documentation.
16984         * doc/posix-functions/mkstemp.texi: Document header file problem on
16985         MacOS X.
16986
16987 2011-04-27  Bruno Haible  <bruno@clisp.org>
16988
16989         mkstemp: Tweak configure message when cross-compiling.
16990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16991         result as a guess.
16992
16993 2011-04-27  Bruno Haible  <bruno@clisp.org>
16994
16995         clean-temp: Clarify what it does.
16996         * lib/clean-temp.h: Add more comments.
16997         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16998         module.
16999         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17000         * doc/glibc-functions/mkstemps.texi: Likewise.
17001         * doc/glibc-functions/mkostemps.texi: Likewise.
17002
17003 2011-04-27  Eric Blake  <eblake@redhat.com>
17004
17005         fchdir: avoid extra chdir and fix test
17006         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17007         getcwd-lgpl.
17008         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17009         have to be canonical.
17010         (canonicalize_file_name): Drop unused macro.
17011         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17012
17013         filenamecat-lgpl: fix licence
17014         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17015         when it was first created.
17016
17017         linkat, renameat: add missing dependency
17018         * modules/linkat (Depends-on): Require getcwd-lgpl.
17019         * modules/renameat (Depends-on): Likewise.
17020
17021         tests: reduce dependencies
17022         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17023         * tests/test-renameat.c (main): Likewise.
17024         * modules/linkat-tests (Depends-on): Relax dependency.
17025         * modules/renameat-tests (Depends-on): Likewise.
17026         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17027         dependency explicit.
17028
17029         save-cwd: reduce default dependency
17030         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17031         * lib/save-cwd.c: Update comments.
17032         * NEWS: Document the semantic change.
17033
17034         getcwd: enhance tests
17035         * tests/test-getcwd-lgpl.c: New file, taken from...
17036         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17037         repeat long path stress tests from m4 probe.
17038         * modules/getcwd-lgpl-tests: New module.
17039         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17040         * m4/getcwd-abort-bug.m4: Update comment.
17041         * m4/getcwd-path-max.m4: Likewise.
17042
17043         getcwd-lgpl: new module
17044         * modules/getcwd-lgpl: New module.
17045         * lib/getcwd-lgpl.c: New file.
17046         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17047         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17048         * modules/getcwd (configure.ac): Set C witness.
17049         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17050
17051         getcwd: tweak comments
17052         * m4/getcwd-abort-bug.m4: Fix comments.
17053         * m4/getcwd-path-max.m4: Likewise.
17054         * m4/getcwd.m4: Likewise.
17055
17056 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17057         and Eric Blake  <eblake@redhat.com>
17058
17059         mkstemp: replace if system version uses wrong permissions
17060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17061         read/write mode bits set in file created by mkstemp.
17062         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17063
17064 2011-04-27  Eric Blake  <eblake@redhat.com>
17065
17066         passfd: avoid compiler warning
17067         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17068         Reported by Laine Stump.
17069
17070 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17071
17072         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17073         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17074
17075 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17076         and Eric Blake  <eblake@redhat.com>
17077
17078         mkstemp: mention clean-temp module
17079         * lib/mkstemp.c: Add comment.
17080         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17081
17082 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17083
17084         inttypes: also provide default values for 32-bit tests
17085         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17086         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17087
17088 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17089
17090         strtoumax: remove dependency on strtoimax
17091         This is like the strtoull change of yesterday.
17092         * modules/strtoumax (Files): Add lib/strtoimax.c.
17093         (Depends-on): Remove strtoimax and add verify.
17094
17095         inttypes-incomplete: new module
17096         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17097         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17098         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17099         of gl_INTTYPES_H.
17100         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17101         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17102         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17103         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17104         * modules/strtoumax, modules/xstrtol (Depends-on):
17105         Depend on inttypes-incomplete, not inttypes.
17106         * modules/inttypes-incomplete: New module, containing the contents
17107         of the old modules/inttypes module, except that the Files: section
17108         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17109         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17110         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17111         (Depends-on): Depend only on inttypes-incomplete.
17112         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17113
17114         inttypes: omit now-redundant strtoimax and strtoumax work
17115         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17116         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17117
17118         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17119         This supports apps that need pointers to strtoimax and strtoumax,
17120         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17121         nonexistent functions.  See
17122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17123         et seq.
17124         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17126         a macro.
17127         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17128
17129 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17130
17131         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17132
17133 2011-04-25  Bruno Haible  <bruno@clisp.org>
17134
17135         strtol, strtoul: Mark modules as obsolete.
17136         * modules/strtol (Status, Notice): New sections.
17137         * modules/strtoul (Status, Notice): New sections.
17138
17139 2011-04-25  Bruno Haible  <bruno@clisp.org>
17140
17141         strtod: Remove check for strtod, unless supporting old platforms.
17142         * modules/strtod-obsolete: New file.
17143         * m4/strtod-obsolete.m4: New file.
17144         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17145         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17146         * modules/strtod (Depends-on): Add strtod-obsolete.
17147         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17148
17149 2011-04-25  Bruno Haible  <bruno@clisp.org>
17150
17151         strcase: Make module obsolete.
17152         * modules/strcase (Status, Notice): New sections.
17153
17154 2011-04-25  Bruno Haible  <bruno@clisp.org>
17155
17156         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17157         * modules/dup2-obsolete: New file.
17158         * m4/dup2-obsolete.m4: New file.
17159         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17160         gl_FUNC_DUP2_OBSOLETE is not also defined.
17161         * modules/dup2 (Depends-on): Add dup2-obsolete.
17162         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17163
17164 2011-04-25  Bruno Haible  <bruno@clisp.org>
17165
17166         strnlen: Avoid memchr related link error on old obsolete platforms.
17167         * modules/memchr-obsolete: New file.
17168         * m4/memchr-obsolete.m4: New file.
17169         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17170         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17171         * modules/memchr (Depends-on): Add memchr-obsolete.
17172         * modules/strnlen (Depends-on): Likewise.
17173         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17174
17175 2011-04-25  Jim Meyering  <meyering@redhat.com>
17176
17177         maint.mk: makefile_at_at_check extend and clean up
17178         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17179         in addition to */Makefile.am.
17180         Exempt legitimate uses of @VAR@ notation, e.g.,
17181         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17182         Remove obsolete coreutils-specific comment.
17183         Prompted by discussion here:
17184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17185
17186 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17187
17188         strtoul: remove dependency on strtol
17189         This is so that 'configure' need not check for strtol merely because
17190         the application needs strtoul.
17191         * modules/strtoul (Files): Add lib/strtol.c.
17192         (Depends-on): Remove strtol.
17193
17194         strtoull: remove dependency on strtoul
17195         This is like the strtoll change.
17196         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17197         (Depends-on): Remove strtoul.
17198
17199         strtoll: remove dependency on strtol
17200         This is so that 'configure' need not check for strtol merely because
17201         the application needs strtoll.
17202         * modules/strtoll (Files): Add lib/strtol.c.
17203         (Depends-on): Remove strtol.
17204
17205 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17206
17207         inttypes: Move some configure check to module 'imaxdiv'.
17208         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17209         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17210         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17211
17212 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17213
17214         inttypes: Move some configure check to module 'imaxabs'.
17215         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17216         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17217         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17218
17219 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17220
17221         inttypes: Remove configure tests that are not needed since 2009-12-31.
17222         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17223         gl_cv_header_working_inttypes_h.
17224
17225 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17226
17227         * modules/strnlen (Depends-on): Remove memchr.
17228         The strnlen implementation doesn't need the memchr module's fixes; see
17229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17230
17231         strtol: remove dependency on wchar
17232         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17233         * modules/strtol (Depends-on): Remove wchar.
17234
17235 2011-04-21  Eric Blake  <eblake@redhat.com>
17236
17237         passfd: fix test regression on Linux
17238         * modules/passfd-tests (configure.ac): Correct socketpair check.
17239
17240         passfd: speed up configure and drop unused code
17241         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17242         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17243         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17244         Instead of probing at configure for unix_scm_rights_bsd44_way,
17245         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17246         check to a struct member probe.
17247         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17248         (sendfd, recvfd): Update preprocessor checks.
17249         * modules/passfd (Files): Reflect rename, and drop unused file.
17250         (Depends-on): Drop unused dependency.
17251
17252         passfd: allow compilation on mingw
17253         * modules/sys_socket (Depends-on): Add sys_uio.
17254         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17255         iovec and a minimal struct msghdr.
17256         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17257         * tests/test-sys_socket.c (main): Enhance test.
17258         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17259         guaranteed to provide what we need.
17260         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17261         * modules/passfd-tests (Depends-on): Add sys_wait.
17262         * tests/test-passfd.c (main): Skip test on mingw, for now.
17263         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17264         partial 'struct msghdr' implementation.
17265
17266         sys_uio: new module
17267         * modules/sys_uio: New module.
17268         * modules/sys_uio-tests: Likewise.
17269         * lib/sys_uio.in.h: New file.
17270         * m4/sys_uio_h.m4: Likewise.
17271         * tests/test-sys_uio.c: Likewise.
17272         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17273         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17274
17275 2011-04-20  Jim Meyering  <meyering@redhat.com>
17276
17277         useless-if-before-free: avoid false-positive
17278         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17279         disjunct so that it too requires a terminating ";".  Without that,
17280         this script would identify as useless one statement from gcc that
17281         was not:
17282           if (aligned_ptr)
17283             free (((void **) aligned_ptr) [-1]);
17284
17285 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17286
17287         doc: update users.txt.
17288         * users.txt: Add barcode.
17289
17290 2011-04-19  Bruno Haible  <bruno@clisp.org>
17291
17292         ioctl: Remove link dependency on native Windows.
17293         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17294         (gl_close_fn, gl_ioctl_fn): New types.
17295         (struct fd_hook): Renamed from struct close_hook. Change type of
17296         private_close_fn field. Add private_ioctl_fn field.
17297         (close_hook_fn): Add parameter for primary close method.
17298         (execute_close_hooks, execute_all_close_hooks): Likewise.
17299         (ioctl_hook_fn): New type.
17300         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17301         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17302         argument.
17303         (unregister_fd_hook): Renamed from unregister_close_hook.
17304         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17305         Don't include <unistd.h>.
17306         (close): Remove undef.
17307         (anchor): Update.
17308         (execute_close_hooks): Add argument for primary close method.
17309         (execute_all_close_hooks): Likewise.
17310         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17311         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17312         argument. Allow each argument to be NULL.
17313         (unregister_fd_hook): Renamed from unregister_close_hook.
17314         * lib/close.c (rpl_close): Pass 'close' function pointer to
17315         execute_all_close_hooks.
17316         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17317         (primary_ioctl): New function.
17318         (ioctl): Don't call ioctlsocket here. Instead, call
17319         execute_all_ioctl_hooks.
17320         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17321         close method.
17322         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17323         (fd_sockets_hook): Renamed from close_sockets_hook.
17324         (gl_sockets_startup, gl_sockets_cleanup): Update.
17325         * modules/fd-hook: Renamed from modules/close-hook. Update.
17326         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17327         * modules/sockets (Depends-on): Likewise.
17328         * modules/ioctl (Depends-on): Add fd-hook.
17329         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17330         GNULIB_SOCKET.
17331
17332 2011-04-19  Bruno Haible  <bruno@clisp.org>
17333
17334         Move the support of O_NONBLOCK in open() to the 'open' module.
17335         * modules/nonblocking (Depends-on): Remove 'open'.
17336         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17337         gl_cv_have_open_O_NONBLOCK.
17338         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17339         O_NONBLOCK support.
17340         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17341
17342 2011-04-17  Bruno Haible  <bruno@clisp.org>
17343
17344         pipe2: Simplify code.
17345         * lib/pipe2.c (pipe2): Reduce code duplication.
17346
17347 2011-04-17  Bruno Haible  <bruno@clisp.org>
17348
17349         nonblocking: Add comment.
17350         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17351
17352 2011-04-17  Bruno Haible  <bruno@clisp.org>
17353
17354         nonblocking: Add tests for sockets.
17355         * tests/test-nonblocking-socket.sh: New file.
17356         * tests/test-nonblocking-socket-main.c: New file.
17357         * tests/test-nonblocking-socket-child.c: New file.
17358         * tests/test-nonblocking-socket.h: New file.
17359         * tests/socket-server.h: New file.
17360         * tests/socket-client.h: New file.
17361         * modules/nonblocking-socket-tests: New file.
17362         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17363
17364 2011-04-17  Bruno Haible  <bruno@clisp.org>
17365
17366         nonblocking: Add tests for pipes.
17367         * tests/test-nonblocking-pipe.sh: New file.
17368         * tests/test-nonblocking-pipe-main.c: New file.
17369         * tests/test-nonblocking-pipe-child.c: New file.
17370         * tests/test-nonblocking-pipe.h: New file.
17371         * tests/test-nonblocking-writer.h: New file.
17372         * tests/test-nonblocking-reader.h: New file.
17373         * tests/test-nonblocking-misc.h: New file.
17374         * modules/nonblocking-pipe-tests: New file.
17375         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17376
17377 2011-04-16  Bruno Haible  <bruno@clisp.org>
17378
17379         gettext: Clarify the needed programmer actions.
17380         * modules/gettext (Notice): New field.
17381         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17382
17383 2011-04-16  Bruno Haible  <bruno@clisp.org>
17384
17385         strchrnul: Tweak last commit.
17386         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17387         bug.
17388         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17389         as in _GL_FUNCDECL_SYS.
17390         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17391         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17392
17393 2011-04-15  Eric Blake  <eblake@redhat.com>
17394
17395         strchrnul: work around cygwin bug
17396         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17397         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17399         * modules/string (Makefile.am): Substitute it.
17400         * lib/string.in.h (strchrnul): Use it.
17401
17402 2011-04-15  Bruno Haible  <bruno@clisp.org>
17403
17404         Don't require lib/stdio-write.c when only module 'stdio' is used.
17405         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17406         invocation.
17407         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17408
17409 2011-04-14  Bruno Haible  <bruno@clisp.org>
17410
17411         Support non-blocking pipe I/O in read() on native Windows.
17412         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17413         (read): New declaration.
17414         * lib/read.c: New file.
17415         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17416         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17417         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17418         vscanf): New declarations.
17419         * lib/stdio-read.c: New file.
17420         * m4/read.m4: New file.
17421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17422         REPLACE_READ.
17423         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17424         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17425         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17426         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17427         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17428         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17429         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17430         * modules/read: New file.
17431         * modules/nonblocking (Files): Add lib/stdio-read.c.
17432         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17433         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17434         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17435         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17436         * modules/pread (Depends-on): Add read.
17437         * modules/safe-read (Depends-on): Likewise.
17438         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17439         gets, scanf, vfscanf, vscanf): Verify signatures.
17440         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17441         problem with non-blocking pipes.
17442         * doc/posix-functions/fgetc.texi: Likewise.
17443         * doc/posix-functions/fgets.texi: Likewise.
17444         * doc/posix-functions/fread.texi: Likewise.
17445         * doc/posix-functions/fscanf.texi: Likewise.
17446         * doc/posix-functions/getc.texi: Likewise.
17447         * doc/posix-functions/getchar.texi: Likewise.
17448         * doc/posix-functions/gets.texi: Likewise.
17449         * doc/posix-functions/scanf.texi: Likewise.
17450         * doc/posix-functions/vfscanf.texi: Likewise.
17451         * doc/posix-functions/vscanf.texi: Likewise.
17452
17453 2011-04-14  Bruno Haible  <bruno@clisp.org>
17454
17455         Support non-blocking pipe I/O in write() on native Windows.
17456         * lib/write.c (rpl_write): Split a write request that failed merely
17457         because the byte count was larger than the pipe buffer's size.
17458         * doc/posix-functions/write.texi: Mention the problem with large byte
17459         counts.
17460
17461 2011-04-14  Bruno Haible  <bruno@clisp.org>
17462
17463         wchar: Ensure that wchar_t gets defined on uClibc.
17464         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17465         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17466
17467 2011-04-13  Bruno Haible  <bruno@clisp.org>
17468
17469         safe-write, full-read: Avoid unnecessary compilation units.
17470         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17471         (Depends-on): Remove safe-read. Add ssize_t.
17472         * modules/full-read (Files): Add lib/full-write.c.
17473         (Depends-on): Add full-write.
17474
17475 2011-04-13  Bruno Haible  <bruno@clisp.org>
17476
17477         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17478         * modules/pwrite (Depends-on): Add 'write'.
17479
17480 2011-04-13  Bruno Haible  <bruno@clisp.org>
17481
17482         Support non-blocking pipe I/O in write() on native Windows.
17483         * lib/unistd.in.h (write): Enable replacement also if
17484         GNULIB_UNISTD_H_NONBLOCKING is 1.
17485         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17486         (rpl_write): When failing to write on a non-blocking pipe, change
17487         errno from ENOSPC to EAGAIN.
17488         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17489         putchar, puts, vfprintf, vprintf): Enable replacement also if
17490         GNULIB_STDIO_H_NONBLOCKING is 1.
17491         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17492         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17493         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17494         CALL_WITH_SIGPIPE_EMULATION.
17495         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17496         * m4/nonblocking.m4: New file.
17497         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17498         for non-blocking I/O support.
17499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17500         GNULIB_UNISTD_H_NONBLOCKING.
17501         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17502         required for non-blocking I/O support.
17503         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17504         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17505         lib/stdio-write.c, m4/asm-underscore.m4.
17506         (Depends-on): Add stdio, unistd.
17507         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17508         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17509         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17510         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17511         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17512         problem with non-blocking pipes.
17513         * doc/posix-functions/fputc.texi: Likewise.
17514         * doc/posix-functions/fputs.texi: Likewise.
17515         * doc/posix-functions/fwrite.texi: Likewise.
17516         * doc/posix-functions/printf.texi: Likewise.
17517         * doc/posix-functions/putc.texi: Likewise.
17518         * doc/posix-functions/putchar.texi: Likewise.
17519         * doc/posix-functions/puts.texi: Likewise.
17520         * doc/posix-functions/vfprintf.texi: Likewise.
17521         * doc/posix-functions/vprintf.texi: Likewise.
17522         * doc/posix-functions/write.texi: Likewise.
17523
17524 2011-04-10  Jim Meyering  <meyering@redhat.com>
17525
17526         maint.mk: prohibit doubled words
17527         Detect them also when they're separated by a newline.
17528         There are 3 ways to customize it:
17529           - disable the test on a per file basis, as usual with rules using
17530             $(VC_LIST_EXCEPT)
17531           - replace the default doubled-word-selecting regexp (affects all files)
17532           - ignore a particular file-vs-doubled-word match
17533         I nearly used that last one to ignore the "is is" match in
17534         coreutils' NEWS file, since the text was "ls -is is ..."
17535         To do that, I would have added this line to cfg.mk:
17536           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17537         but it would have ignored any "is is" match in NEWS.
17538         Low probability, but still...
17539         Instead, I changed the text, slightly:
17540           -  ls -is is now consistent with ls -lis in ignoring values returned
17541           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17542         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17543         (prohibit_doubled_word_): Define.
17544         (sc_prohibit_doubled_word): New rule.
17545         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17546
17547 2011-04-10  Jim Meyering  <meyering@redhat.com>
17548
17549         maint: fix doubled-word typo in comment
17550         * m4/gethostname.m4: s/is is/it is/
17551         * m4/getdomainname.m4: Likewise.
17552
17553 2011-04-10  Jim Meyering  <meyering@redhat.com>
17554
17555         maint: remove doubled word: s/it it/it/
17556         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17557
17558 2011-04-10  Jim Meyering  <meyering@redhat.com>
17559
17560         maint.mk: remove useless semicolon and backslash
17561         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17562         semicolon and backslash.
17563
17564 2011-04-10  Bruno Haible  <bruno@clisp.org>
17565
17566         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17567         * modules/stdint-tests (Depends-on): Add wchar.
17568
17569 2011-04-10  Jim Meyering  <meyering@redhat.com>
17570
17571         maint: remove doubled words in comments, e.g., s/a a/a/
17572         * lib/strptime.c (day_of_the_week): s/the the/the/
17573         * tests/test-chown.h (test_chown): s/a a/a/
17574
17575         test-chown.h: correct a cast
17576         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17577         when the destination is a stat.st_gid.
17578
17579 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17580
17581         getaddrinfo: Fix test for sa_len member.
17582         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17583         include <sys/types.h> before <sys/socket.h>.
17584
17585 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17586
17587         maint: change "can not" to "cannot"
17588         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17589         boundaries.
17590
17591 2011-04-09  Jim Meyering  <meyering@redhat.com>
17592
17593         maint: change "a a" to "a"
17594         * tests/test-lchown.h (test_lchown): s/a a/a/
17595
17596         maint.mk: prohibit \<the the\>
17597         * top/maint.mk (sc_prohibit_the_the): New rule.
17598
17599         maint: fix "the the" in comment
17600         * lib/count-one-bits.h: s/the the/the/
17601
17602         maint: change "can not" to "cannot"
17603         But do not change the occurrences in maintain.texi or in
17604         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17605         * doc/gnulib-tool.texi: s/can not/cannot/
17606         * doc/posix-functions/accept.texi (accept): Likewise.
17607         * doc/posix-functions/socket.texi (socket): Likewise.
17608         * lib/mbrtowc.c: Likewise.
17609
17610         maint.mk: prohibit use of "can not"
17611         * top/maint.mk (sc_prohibit_can_not): New rule.
17612         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17613
17614 2011-04-09  Bruno Haible  <bruno@clisp.org>
17615
17616         careadlinkat: Guard against misuse of careadlinkatcwd.
17617         * lib/careadlinkat.c: Include <stdlib.h>.
17618         (careadlinkatcwd): Check that the fd argument is as expected.
17619
17620 2011-04-09  Bruno Haible  <bruno@clisp.org>
17621
17622         careadlinkat: Use common coding style.
17623         * lib/careadlinkat.c: Move gnulib includes after system includes.
17624
17625 2011-04-09  Bruno Haible  <bruno@clisp.org>
17626
17627         careadlinkat: Clarify specification.
17628         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17629         (careadlinkatcwd): Add comment.
17630         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17631
17632 2011-04-09  Bruno Haible  <bruno@clisp.org>
17633
17634         areadlinkat: Avoid link error on many platforms.
17635         * modules/areadlinkat (Depends-on): Add areadlink.
17636
17637 2011-04-09  Bruno Haible  <bruno@clisp.org>
17638
17639         allocator, careadlinkat: Fix double-inclusion guard.
17640         * lib/allocator.h: Fix double-inclusion guard.
17641         * lib/careadlinkat.h: Likewise.
17642
17643 2011-04-09  Bruno Haible  <bruno@clisp.org>
17644
17645         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17646         * lib/relocwrapper.c: Update dependencies hierarchy.
17647         * build-aux/install-reloc: Update list of files to be compiled.
17648         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17649         lib/allocator.[hc].
17650
17651 2011-04-08  Eric Blake  <eblake@redhat.com>
17652
17653         strftime: silence gnulib-tool warning
17654         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17655
17656 2011-04-08  Bruno Haible  <bruno@clisp.org>
17657
17658         verify: Fix syntax error with GCC 4.6 in C++ mode.
17659         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17660         (HAVE_STATIC_ASSERT): New macro.
17661         (verify_true, verify): Use 'static_assert' if it is supported and
17662         '_Static_assert' is not supported.
17663
17664 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17665
17666         allocator: New module.
17667         * modules/allocator, lib/allocator.c: New files.
17668         * lib/allocator.h (stdlib_allocator): New decl.
17669         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17670         Remove.  Do not include <stdlib.h>.
17671         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17672         * modules/careadlinkat (Files): Remove lib/allocator.h.
17673         (Depends-on): Add allocator.
17674
17675         stdlib: let modules use system malloc, realloc
17676         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17677         if !_GL_USE_STDLIB_ALLOC.
17678         (malloc, realloc): Limit this change to a smaller scope.
17679
17680         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17681         (malloc, realloc): Don't #undef; no longer needed.
17682         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17683         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17684         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17685         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17686         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17687         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17688         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17689         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17690
17691         careadlinkat: rename members to avoid problem
17692         * lib/allocator.h (struct allocator): Rename members from
17693         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17694         and realloc are #define'd.  Reported by Eric Blake in
17695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17696         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17697
17698 2011-04-08  Eric Blake  <eblake@redhat.com>
17699
17700         nonblocking: reduce dependency
17701         * tests/test-nonblocking.c: Only test sockets when in use.
17702         * modules/nonblocking-tests (Depends-on): Drop socket.
17703         (Makefile.am): Link even if sockets are not present.
17704         * modules/pipe2-tests (Makefile.am): Likewise.
17705         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17706
17707         pipe2: fix O_NONBLOCK support on mingw
17708         * modules/pipe2 (Depends-on): Add nonblocking.
17709         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17710         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17711         * tests/test-nonblocking.c (main): Likewise.
17712         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17713
17714         fcntl-h: fix O_ACCMODE on cygwin
17715         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17716         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17717
17718         pipe-filter: drop O_NONBLOCK workarounds
17719         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17720         * modules/pipe-filter-ii (Depends-on): Likewise.
17721         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17722
17723         nonblocking: provide O_NONBLOCK for mingw
17724         * modules/nonblocking (Depends-on): Add open.
17725         (configure.ac): Set new witness macro.
17726         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17727         * modules/fcntl-h (Makefile.am): Substitute it.
17728         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17729         nonblocking module is in use.
17730         * lib/nonblocking.c: Adjust portability test.
17731         * lib/open.c (open): Don't let native open see gnulib flag.
17732         * tests/test-fcntl-h.c (main): Enhance test.
17733         * tests/test-open.h (test_open): Likewise.
17734         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17735
17736         careadlinkat: fix compilation error on mingw
17737         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17738         within struct allocator.
17739
17740 2011-04-06  Eric Blake  <eblake@redhat.com>
17741
17742         binary-io: relicense under LGPLv2+
17743         * modules/binary-io (License): Relax to LGPLv2+.
17744         Requested for libvirt, and required by pipe2.
17745
17746 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17747
17748         verify: use _Static_assert if available
17749         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17750         (verify_true, verify): Use it if available.  This generates better
17751         diagnostics with GCC 4.6.0 and later.
17752
17753 2011-04-05  Bruno Haible  <bruno@clisp.org>
17754
17755         Remove leftover generated .h files after config.status changed.
17756
17757         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17758         GL_GENERATE_ALLOCA_H.
17759         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17760         GL_GENERATE_ALLOCA_H evaluates to false.
17761
17762         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17763         GL_GENERATE_ARGZ_H.
17764         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17765         evaluates to false.
17766
17767         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17768         GL_GENERATE_BYTESWAP_H.
17769         * modules/byteswap (Makefile.am): Remove byteswap.h if
17770         GL_GENERATE_BYTESWAP_H evaluates to false.
17771
17772         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17773         GL_GENERATE_ERRNO_H.
17774         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17775         evaluates to false.
17776
17777         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17778         GL_GENERATE_FLOAT_H.
17779         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17780         evaluates to false.
17781
17782         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17783         GL_GENERATE_FNMATCH_H.
17784         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17785         GL_GENERATE_FNMATCH_H evaluates to false.
17786
17787         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17788         GL_GENERATE_GLOB_H.
17789         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17790         evaluates to false.
17791
17792         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17793         automake conditional GL_GENERATE_ICONV_H.
17794         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17795         evaluates to false.
17796
17797         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17798         GL_GENERATE_NETINET_IN_H.
17799         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17800         GL_GENERATE_NETINET_IN_H evaluates to false.
17801
17802         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17803         conditional GL_GENERATE_PTHREAD_H.
17804         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17805         * modules/pthread (Makefile.am): Remove pthread.h if
17806         GL_GENERATE_PTHREAD_H evaluates to false.
17807
17808         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17809         GL_GENERATE_SCHED_H.
17810         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17811         evaluates to false.
17812
17813         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17814         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17815         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17816         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17817
17818         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17819         GL_GENERATE_STDARG_H.
17820         * modules/stdarg (Makefile.am): Remove stdarg.h if
17821         GL_GENERATE_STDARG_H evaluates to false.
17822
17823         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17824         GL_GENERATE_STDBOOL_H.
17825         * modules/stdbool (Makefile.am): Remove stdbool.h if
17826         GL_GENERATE_STDBOOL_H evaluates to false.
17827
17828         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17829         conditional GL_GENERATE_STDDEF_H.
17830         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17831         * modules/stddef (Makefile.am): Remove stddef.h if
17832         GL_GENERATE_STDDEF_H evaluates to false.
17833
17834         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17835         GL_GENERATE_STDINT_H.
17836         * modules/stdint (Makefile.am): Remove stdint.h if
17837         GL_GENERATE_STDINT_H evaluates to false.
17838
17839         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17840         GL_GENERATE_SYSEXITS_H.
17841         * modules/sysexits (Makefile.am): Remove sysexits.h if
17842         GL_GENERATE_SYSEXITS_H evaluates to false.
17843
17844         Reported by Karl Berry and Ralf Wildenhues.
17845
17846 2011-04-05  Bruno Haible  <bruno@clisp.org>
17847
17848         Ensure to rebuild generated .h files when config.status has changed.
17849         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17850         config.status.
17851         * modules/ctype (Makefile.am): Likewise.
17852         * modules/dirent (Makefile.am): Likewise.
17853         * modules/errno (Makefile.am): Likewise.
17854         * modules/fcntl-h (Makefile.am): Likewise.
17855         * modules/float (Makefile.am): Likewise.
17856         * modules/getopt-posix (Makefile.am): Likewise.
17857         * modules/glob (Makefile.am): Likewise.
17858         * modules/iconv-h (Makefile.am): Likewise.
17859         * modules/inttypes (Makefile.am): Likewise.
17860         * modules/langinfo (Makefile.am): Likewise.
17861         * modules/locale (Makefile.am): Likewise.
17862         * modules/math (Makefile.am): Likewise.
17863         * modules/netdb (Makefile.am): Likewise.
17864         * modules/netinet_in (Makefile.am): Likewise.
17865         * modules/poll-h (Makefile.am): Likewise.
17866         * modules/pthread (Makefile.am): Likewise.
17867         * modules/pty (Makefile.am): Likewise.
17868         * modules/sched (Makefile.am): Likewise.
17869         * modules/search (Makefile.am): Likewise.
17870         * modules/selinux-h (Makefile.am): Likewise.
17871         * modules/signal (Makefile.am): Likewise.
17872         * modules/spawn (Makefile.am): Likewise.
17873         * modules/stdarg (Makefile.am): Likewise.
17874         * modules/stdbool (Makefile.am): Likewise.
17875         * modules/stddef (Makefile.am): Likewise.
17876         * modules/stdint (Makefile.am): Likewise.
17877         * modules/stdio (Makefile.am): Likewise.
17878         * modules/stdlib (Makefile.am): Likewise.
17879         * modules/string (Makefile.am): Likewise.
17880         * modules/strings (Makefile.am): Likewise.
17881         * modules/sys_file (Makefile.am): Likewise.
17882         * modules/sys_ioctl (Makefile.am): Likewise.
17883         * modules/sys_select (Makefile.am): Likewise.
17884         * modules/sys_socket (Makefile.am): Likewise.
17885         * modules/sys_stat (Makefile.am): Likewise.
17886         * modules/sys_time (Makefile.am): Likewise.
17887         * modules/sys_times (Makefile.am): Likewise.
17888         * modules/sys_utsname (Makefile.am): Likewise.
17889         * modules/sys_wait (Makefile.am): Likewise.
17890         * modules/sysexits (Makefile.am): Likewise.
17891         * modules/termios (Makefile.am): Likewise.
17892         * modules/time (Makefile.am): Likewise.
17893         * modules/unistd (Makefile.am): Likewise.
17894         * modules/wchar (Makefile.am): Likewise.
17895         * modules/wctype-h (Makefile.am): Likewise.
17896         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17897
17898 2011-04-05  Bruno Haible  <bruno@clisp.org>
17899
17900         pipe2: Relicense under LGPLv2+.
17901         * modules/pipe2 (License): Change to LGPLv2+.
17902         Requested by Eric Blake, for libvirt.
17903
17904 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17905
17906         bootstrap: compute gnulib_extra_files after updating build_aux
17907         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17908         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17909
17910 2011-04-05  Eric Blake  <eblake@redhat.com>
17911
17912         bootstrap: preserve git whitelist item sorting
17913         * build-aux/bootstrap (sort_patterns): New function.
17914         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17915
17916 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17917
17918         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17919         sc_space_tab check.
17920
17921 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17922
17923         areadlink, areadlinkat: rewrite in terms of careadlinkat
17924         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17925         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17926         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17927         (malloc, realloc): Remove #undefs.
17928         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17929         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17930         readlink, ssize_t, stdint, unistd.
17931         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17932         areadlink, stdint.
17933
17934         careadlinkat: new module
17935         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17936         * modules/careadlinkat: New files, written by me with
17937         a review and feedback from Ben Pfaff in
17938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17939
17940 2011-04-01  Bruno Haible  <bruno@clisp.org>
17941
17942         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17943         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17944         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17945         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17946         Reported by Bruce Korb <bruce.korb@gmail.com>.
17947
17948 2011-04-01  Bruno Haible  <bruno@clisp.org>
17949
17950         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17951         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17952         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17953         * modules/wcpcpy (Depends-on): Add extensions.
17954         * modules/wcpncpy (Depends-on): Likewise.
17955         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17956         systems.
17957         * doc/posix-functions/wcpncpy.texi: Likewise.
17958         * doc/posix-functions/wcwidth.texi: Likewise.
17959
17960 2011-03-31  Eric Blake  <eblake@redhat.com>
17961
17962         nonblocking: fix mingw test failures
17963         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17964         non-blocking flag on regular file.
17965         (get_nonblocking_flag): Set errno on invalid fd.
17966         * tests/test-nonblocking.c (main): Avoid test failure on
17967         directories if fchdir is not active.
17968         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17969
17970 2011-03-31  Bruno Haible  <bruno@clisp.org>
17971
17972         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17973         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17974         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17975         Reported by Simon Josefsson <simon@josefsson.org>.
17976
17977 2011-03-31  Bruno Haible  <bruno@clisp.org>
17978         and Eric Blake  <eblake@redhat.com>
17979
17980         nonblocking: new module
17981         * modules/nonblocking: New module.
17982         * modules/nonblocking-tests: Likewise.
17983         * lib/nonblocking.h: New file.
17984         * lib/nonblocking.c: Likewise.
17985         * tests/test-nonblocking.c: New test.
17986         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17987
17988 2011-03-30  Bruno Haible  <bruno@clisp.org>
17989
17990         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17991         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17992         instead of 'printf' format for GCC >= 4.4.
17993         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17994         (fprintf, printf, vfprintf, vprintf): Declare with
17995         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17996         the system's vfprintf() function.
17997         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17998
17999 2011-03-30  Eric Blake  <eblake@redhat.com>
18000
18001         passfd: fix scoping bug
18002         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18003         before sendmsg/recvmsg.
18004
18005         passfd: standardize coding conventions
18006         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18007         can be learned at compile time.
18008         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18009         ifdefs.
18010         (sendfd, recvfd): Follow gnulib code conventions.
18011
18012         passfd: fix incorrect sendmsg arguments
18013         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18014         incorrect msg_controllen value.
18015         * modules/passfd-tests (Depends-on): Check for alarm.
18016         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18017         Reported by Bastien ROUCARIES.
18018
18019 2011-03-30  Bruno Haible  <bruno@clisp.org>
18020
18021         c-strcasestr: Relicense under LGPLv2+.
18022         * modules/c-strcasestr (License): Change to LGPLv2+.
18023         Requested by Eric Blake, for libvirt.
18024
18025 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18026
18027         * users.txt: Add libidn2.  Fix libtasn1 link.
18028
18029 2011-03-30  Jim Meyering  <meyering@redhat.com>
18030
18031         tests: readlink* ("",... fails with EINVAL on newer kernels
18032         readlink and readlinkat have typically failed with ENOENT for
18033         the invalid, empty file name,  "".  However, with the advent
18034         of linux-2.6.39, they fail with EINVAL.
18035         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18036         when operating on the empty file name.
18037         * tests/test-readlink.h (test_readlink): Likewise.
18038
18039 2011-03-29  Bruno Haible  <bruno@clisp.org>
18040
18041         Relicense some modules under LGPLv2+, for libidn2.
18042         * modules/array-mergesort (License): Change to LGPLv2+.
18043         * modules/c-strcaseeq (License): Likewise.
18044         * modules/striconveh (License): Likewise.
18045         * modules/striconveha (License): Likewise.
18046         * modules/uniconv/base (License): Likewise.
18047         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18048         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18049         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18050         * modules/unictype/base (License): Likewise.
18051         * modules/unictype/bidiclass-of (License): Likewise.
18052         * modules/unictype/category-M (License): Likewise.
18053         * modules/unictype/category-none (License): Likewise.
18054         * modules/unictype/category-of (License): Likewise.
18055         * modules/unictype/category-test (License): Likewise.
18056         * modules/unictype/category-test-withtable (License): Likewise.
18057         * modules/unictype/combining-class (License): Likewise.
18058         * modules/unictype/joiningtype-of (License): Likewise.
18059         * modules/unictype/scripts (License): Likewise.
18060         * modules/uninorm/base (License): Likewise.
18061         * modules/uninorm/canonical-decomposition (License): Likewise.
18062         * modules/uninorm/composition (License): Likewise.
18063         * modules/uninorm/decompose-internal (License): Likewise.
18064         * modules/uninorm/decomposition-table (License): Likewise.
18065         * modules/uninorm/nfc (License): Likewise.
18066         * modules/uninorm/nfd (License): Likewise.
18067         * modules/uninorm/u32-normalize (License): Likewise.
18068         * modules/unistr/base (License): Likewise.
18069         * modules/unistr/u32-cpy (License): Likewise.
18070         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18071         * modules/unistr/u32-to-u8 (License): Likewise.
18072         * modules/unistr/u32-uctomb (License): Likewise.
18073         * modules/unistr/u8-check (License): Likewise.
18074         * modules/unistr/u8-mblen (License): Likewise.
18075         * modules/unistr/u8-mbtouc (License): Likewise.
18076         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18077         * modules/unistr/u8-mbtoucr (License): Likewise.
18078         * modules/unistr/u8-prev (License): Likewise.
18079         * modules/unistr/u8-strlen (License): Likewise.
18080         * modules/unistr/u8-to-u32 (License): Likewise.
18081         * modules/unistr/u8-uctomb (License): Likewise.
18082         * modules/unitypes (License): Likewise.
18083         Requested by Simon Josefsson.
18084
18085 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18086
18087         lib-symbol-visibility: Add a notice.
18088         * modules/lib-symbol-visibility (Notice): New field.
18089
18090 2011-03-29  Bruno Haible  <bruno@clisp.org>
18091
18092         getaddrinfo: Doc fix.
18093         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18094         section "fixed in Gnulib".
18095
18096 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18097
18098         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18099         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18100
18101 2011-03-26  Bruno Haible  <bruno@clisp.org>
18102
18103         unictype/property-byname: Reduce the number of load-time relocations.
18104         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18105         (UC_PROPERTY_INDEX_*): New enumeration values.
18106         (uc_property_byname): Convert an index from the lookup table to an
18107         uc_property_t.
18108         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18109         values.
18110
18111 2011-03-26  Bruno Haible  <bruno@clisp.org>
18112
18113         unictype/property-byname: Allow omitted word separators and aliases.
18114         * lib/unictype/pr_byname.gperf: Add property names without word
18115         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18116         for 'space'.
18117
18118 2011-03-26  Bruno Haible  <bruno@clisp.org>
18119
18120         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18121         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18122         also hyphens to space.
18123         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18124         without spaces.
18125         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18126
18127 2011-03-26  Bruno Haible  <bruno@clisp.org>
18128
18129         unictype/joiningtype-byname: Recognize long names as well.
18130         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18131         a long name.
18132         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18133         unictype/joiningtype_byname.h.
18134         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18135         * lib/unictype/joiningtype_byname.gperf: New file.
18136         * modules/unictype/joiningtype-byname (Files): Add
18137         lib/unictype/joiningtype_byname.gperf.
18138         (Depends-on): Add gperf.
18139         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18140         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18141         long names.
18142
18143         Tests for module 'unictype/joiningtype-longname'.
18144         * modules/unictype/joiningtype-longname-tests: New file.
18145         * tests/unictype/test-joiningtype_longname.c: New file.
18146
18147         New module 'unictype/joiningtype-longname'.
18148         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18149         * lib/unictype/joiningtype_longname.c: New file.
18150         * modules/unictype/joiningtype-longname: New file.
18151         * modules/unictype/joiningtype-all (Depends-on): Add
18152         unictype/joiningtype-longname.
18153
18154 2011-03-26  Bruno Haible  <bruno@clisp.org>
18155
18156         unictype/bidiclass-byname: Recognize long names as well.
18157         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18158         name.
18159         * lib/unictype/bidi_byname.c: Include <string.h>,
18160         unictype/bidi_byname.h.
18161         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18162         * lib/unictype/bidi_byname.gperf: New file.
18163         * modules/unictype/bidiclass-byname (Files): Add
18164         lib/unictype/bidi_byname.gperf.
18165         (Depends-on): Add gperf.
18166         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18167         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18168         long names.
18169
18170         Tests for module 'unictype/bidiclass-longname'.
18171         * modules/unictype/bidiclass-longname-tests: New file.
18172         * tests/unictype/test-bidi_longname.c: New file.
18173
18174         New module 'unictype/bidiclass-longname'.
18175         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18176         * lib/unictype/bidi_longname.c: New file.
18177         * modules/unictype/bidiclass-longname: New file.
18178         * modules/unictype/bidiclass-all (Depends-on): Add
18179         unictype/bidiclass-longname.
18180
18181 2011-03-26  Bruno Haible  <bruno@clisp.org>
18182
18183         unictype/bidi*: Rename modules.
18184         * modules/unictype/bidiclass-all: Renamed from
18185         modules/unictype/bidicategory-all.
18186         * modules/unictype/bidiclass-name: Renamed from
18187         modules/unictype/bidiclass-name.
18188         (Description): Update.
18189         * modules/unictype/bidiclass-name-tests: Renamed from
18190         modules/unictype/bidicategory-name-tests.
18191         * modules/unictype/bidiclass-byname: Renamed from
18192         modules/unictype/bidicategory-byname.
18193         (Description): Update.
18194         * modules/unictype/bidiclass-byname-tests: Renamed from
18195         modules/unictype/bidicategory-byname-tests.
18196         * modules/unictype/bidiclass-of: Renamed from
18197         modules/unictype/bidicategory-of.
18198         (Description): Update.
18199         * modules/unictype/bidiclass-of-tests: Renamed from
18200         modules/unictype/bidicategory-of-tests.
18201         * modules/unictype/bidiclass-test: Renamed from
18202         modules/unictype/bidicategory-test.
18203         (Description): Update.
18204         * modules/unictype/bidiclass-test-tests: Renamed from
18205         modules/unictype/bidicategory-test-tests.
18206         * modules/unictype/bidicategory-all: New file, a simple redirection.
18207         * modules/unictype/bidicategory-name: Likewise.
18208         * modules/unictype/bidicategory-byname: Likewise.
18209         * modules/unictype/bidicategory-of: Likewise.
18210         * modules/unictype/bidicategory-test: Likewise.
18211         * modules/unictype/property-bidi-* (Dependencies): Update.
18212         * lib/unictype/bidi_*.c: Update comment.
18213
18214 2011-03-26  Bruno Haible  <bruno@clisp.org>
18215
18216         unictype/bidi*: Rename functions, part 2.
18217         * modules/unictype/bidicategory-name (configure.ac): Update required
18218         libunistring version.
18219         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18220
18221 2011-03-25  Bruno Haible  <bruno@clisp.org>
18222
18223         New module 'unictype/combining-class-all'.
18224         * modules/unictype/combining-class-all: New file.
18225
18226         Tests for module 'unictype/combining-class-byname'.
18227         * modules/unictype/combining-class-byname-tests: New file.
18228         * tests/unictype/test-combiningclass_byname.c: New file.
18229
18230         New module 'unictype/combining-class-byname'.
18231         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18232         * lib/unictype/combiningclass_byname.c: New file.
18233         * lib/unictype/combiningclass_byname.gperf: New file.
18234         * modules/unictype/combining-class-byname: New file.
18235
18236         Tests for module 'unictype/combining-class-longname'.
18237         * modules/unictype/combining-class-longname-tests: New file.
18238         * tests/unictype/test-combiningclass_longname.c: New file.
18239
18240         New module 'unictype/combining-class-longname'.
18241         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18242         * lib/unictype/combiningclass_longname.c: New file.
18243         * modules/unictype/combining-class-longname: New file.
18244
18245         Tests for module 'unictype/combining-class-name'.
18246         * modules/unictype/combining-class-name-tests: New file.
18247         * tests/unictype/test-combiningclass_name.c: New file.
18248
18249         New module 'unictype/combining-class-name'.
18250         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18251         * lib/unictype/combiningclass_name.c: New file.
18252         * modules/unictype/combining-class-name: New file.
18253
18254 2011-03-25  Bruno Haible  <bruno@clisp.org>
18255
18256         unictype/combining-class: Rename source files.
18257         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18258         of unictype/combining.h.
18259         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18260         Update.
18261         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18262         * modules/unictype/combining-class (Description): Fix.
18263         (Files, Makefile.am): Update.
18264         * tests/unictype/test-combiningclass.c: Renamed from
18265         tests/unictype/test-combining.c.
18266         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18267
18268 2011-03-25  Bruno Haible  <bruno@clisp.org>
18269
18270         unictype: Update list of canonical combining classes.
18271         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18272
18273 2011-03-25  Bruno Haible  <bruno@clisp.org>
18274
18275         unictype/category-byname: Recognize long names as well.
18276         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18277         a long name.
18278         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18279         unictype/categ_byname.h.
18280         (UC_CATEGORY_INDEX_*): New enumeration values.
18281         (uc_general_category_byname): Use uc_general_category_lookup and
18282         convert from index to value.
18283         * lib/unictype/categ_byname.gperf: New file.
18284         * modules/unictype/category-byname (Files): Add
18285         lib/unictype/categ_byname.gperf.
18286         (Depends-on): Add gperf.
18287         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18288         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18289         long names.
18290
18291         Tests for module 'unictype/category-longname'.
18292         * modules/unictype/category-longname-tests: New file.
18293         * tests/unictype/test-categ_longname.c: New file.
18294
18295         New module 'unictype/category-longname'.
18296         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18297         * lib/unictype/categ_longname.c: New file.
18298         * modules/unictype/category-longname: New file.
18299         * modules/unictype/category-all (Depends-on): Add it.
18300
18301 2011-03-25  Bruno Haible  <bruno@clisp.org>
18302
18303         Tests for module 'unictype/category-LC'.
18304         * modules/unictype/category-LC-tests: New file.
18305         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18306
18307         New module 'unictype/category-LC'.
18308         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18309         (UC_CATEGORY_LC): New declaration.
18310         (UC_CASED_LETTER): New macro.
18311         * lib/gen-uni-tables.c (is_category_LC): New function.
18312         (output_categories): Also handle category LC.
18313         (UC_CATEGORY_MASK_LC): New enumeration value.
18314         (general_category_byname): Also handle category LC.
18315         * lib/unictype/categ_LC.c: New file.
18316         * lib/unictype/categ_LC.h: New file, automatically generated.
18317         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18318         category LC.
18319         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18320         * modules/unictype/category-LC: New file.
18321         * modules/unictype/category-byname (Depends-on): Add
18322         unictype/category-LC.
18323         * modules/unictype/category-all (Depends-on): Likewise.
18324
18325 2011-03-25  Eric Blake  <eblake@redhat.com>
18326
18327         xmalloc: revert yesterday's regression
18328         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18329         realloc's underlying behavior (allowing allocation of zero-size
18330         objects, especially if malloc-gnu is also in use).
18331
18332 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18333
18334         maint.mk: add missing version to VC-tag
18335         * top/maint.mk: git tag was missing actual tag name; add it.
18336
18337         valgrind: do leak checking, and exit with code 1 on error (not 0)
18338         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18339         to VALGRIND.
18340
18341 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18342
18343         posix-modules: say what it does.
18344         * posix-modules: Add a line to the --help output saying what it does.
18345
18346 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18347
18348         xmalloc: Do not leak if underlying realloc is C99 compatible.
18349         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18350         This avoids a leak on C99-based systems.  See
18351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18352
18353 2011-03-24  Eric Blake  <eblake@redhat.com>
18354
18355         realloc: document portability problem
18356         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18357         passing 0 size to realloc.
18358
18359 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18360
18361         doc: update users.txt
18362         * users.txt: Add cvsps, tmpwatch
18363
18364 2011-03-23  Matt Rice  <ratmice@gmail.com>
18365
18366         doc: update users.txt
18367         * users.txt: Add gdb.
18368
18369 2011-03-23  Jim Meyering  <meyering@redhat.com>
18370
18371         doc: update users.txt
18372         Looking through matches up to the following URL (there are still
18373         several more pages), I found several projects that use gnulib:
18374         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18375         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18376         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18377
18378 2011-03-22  Bruno Haible  <bruno@clisp.org>
18379
18380         unictype/bidi*: Rename functions.
18381         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18382         uc_bidi_class, uc_is_bidi_class): New declarations.
18383         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18384         uc_bidi_category_byname.
18385         (uc_bidi_category_byname): New function.
18386         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18387         u_bidi_category_name.
18388         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18389         (uc_bidi_category_name): New function.
18390         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18391         uc_bidi_category.
18392         (uc_bidi_category): New function.
18393         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18394         uc_is_bidi_category. Invoke uc_bidi_class.
18395         (uc_is_bidi_category): New function.
18396         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18397         instead of uc_bidi_category_byname.
18398         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18399         instead of uc_bidi_category_name.
18400         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18401         uc_bidi_category.
18402         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18403         instead of uc_is_bidi_category.
18404
18405 2011-03-21  Bruno Haible  <bruno@clisp.org>
18406
18407         New module 'unictype/joininggroup-all'.
18408         * modules/unictype/joininggroup-all: New file.
18409
18410         Tests for module 'unictype/joininggroup-of'.
18411         * modules/unictype/joininggroup-of-tests: New file.
18412         * tests/unictype/test-joininggroup_of.c: New file.
18413         * tests/unictype/test-joininggroup_of.h: New file, automatically
18414         generated by gen-uni-tables.
18415
18416         New module 'unictype/joininggroup-of'.
18417         * modules/unictype/joininggroup-of: New file.
18418         * lib/unictype/joininggroup_of.c: New file.
18419         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18420         gen-uni-tables.
18421
18422         Tests for module 'unictype/joininggroup-byname'.
18423         * modules/unictype/joininggroup-byname-tests: New file.
18424         * tests/unictype/test-joininggroup_byname.c: New file.
18425
18426         New module 'unictype/joininggroup-byname'.
18427         * modules/unictype/joininggroup-byname: New file.
18428         * lib/unictype/joininggroup_byname.c: New file.
18429         * lib/unictype/joininggroup_byname.gperf: New file.
18430
18431         Tests for module 'unictype/joininggroup-name'.
18432         * modules/unictype/joininggroup-name-tests: New file.
18433         * tests/unictype/test-joininggroup_name.c: New file.
18434
18435         New module 'unictype/joininggroup-name'.
18436         * modules/unictype/joininggroup-name: New file.
18437         * lib/unictype/joininggroup_name.c: New file.
18438         * lib/unictype/joininggroup_name.h: New file.
18439
18440         New module 'unictype/joiningtype-all'.
18441         * modules/unictype/joiningtype-all: New file.
18442
18443         Tests for module 'unictype/joiningtype-of'.
18444         * modules/unictype/joiningtype-of-tests: New file.
18445         * tests/unictype/test-joiningtype_of.c: New file.
18446         * tests/unictype/test-joiningtype_of.h: New file, automatically
18447         generated by gen-uni-tables.
18448
18449         New module 'unictype/joiningtype-of'.
18450         * modules/unictype/joiningtype-of: New file.
18451         * lib/unictype/joiningtype_of.c: New file.
18452         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18453         gen-uni-tables.
18454
18455         Tests for module 'unictype/joiningtype-byname'.
18456         * modules/unictype/joiningtype-byname-tests: New file.
18457         * tests/unictype/test-joiningtype_byname.c: New file.
18458
18459         New module 'unictype/joiningtype-byname'.
18460         * modules/unictype/joiningtype-byname: New file.
18461         * lib/unictype/joiningtype_byname.c: New file.
18462
18463         Tests for module 'unictype/joiningtype-name'.
18464         * modules/unictype/joiningtype-name-tests: New file.
18465         * tests/unictype/test-joiningtype_name.c: New file.
18466
18467         New module 'unictype/joiningtype-name'.
18468         * modules/unictype/joiningtype-name: New file.
18469         * lib/unictype/joiningtype_name.c: New file.
18470
18471         unictype: Add support for Arabic shaping properties.
18472         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18473         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18474         declarations.
18475         (UC_JOINING_GROUP_*): New enumeration values.
18476         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18477         declarations.
18478         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18479         (unicode_joining_type): New variable.
18480         (UC_JOINING_GROUP_*): New enumeration values.
18481         (unicode_joining_group): New variable.
18482         (fill_arabicshaping, joining_type_as_c_identifier,
18483         output_joining_type_test, output_joining_type,
18484         joining_group_as_c_identifier, output_joining_group_test,
18485         output_joining_group): New functions.
18486         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18487         fill_arabicshaping and output_joining_type_test, output_joining_type,
18488         output_joining_group_test, output_joining_group.
18489         Reported by Simon Josefsson.
18490
18491 2011-03-21  Jim Meyering  <meyering@redhat.com>
18492
18493         strftime: fix a bug in yesterday's change
18494         * lib/strftime.c (add): Accommodate width's initial value of -1.
18495         Otherwise, nstrftime would copy uninitialized data into
18496         the result buffer.
18497
18498 2011-03-21  Jim Meyering  <meyering@redhat.com>
18499
18500         tests: add strftime-tests module
18501         * tests/test-strftime.c: New file.
18502         * modules/strftime-tests: New module.
18503
18504 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18505
18506         strftime: don't assume a byte count fits in 'int'
18507         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18508         found this problem by static analysis, using gcc -Wstrict-overflow
18509         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18510         on an integer overflow having undefined behavior, but it turns out
18511         that the argument is a size, which might not fit in 'int' anyway,
18512
18513 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18514
18515         stdio: don't require ignore_value around fwrite
18516
18517         This patch works around libc bug 11959
18518         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18519         Without this patch, applications must often write
18520         ignore_value (fwrite (...)) even though the ignore_value is
18521         not helpful here.  It's common to write many objects, using
18522         fwrite/printf/etc., and then use ferror to detect output error.
18523
18524         I considered making this patch optional, but decided against it,
18525         because libc is obviously being inconsistent here: there is no
18526         reason libc should insist that user code must inspect fwrite
18527         return's value without also insisting that it inspect printf's,
18528         putchar's, etc.  If user code wants to have a strict style where
18529         all these functions' values are checked (so that ferror need not
18530         be checked), we could add support for that style in a new gnulib
18531         module, but in the meantime it's better to be consistent and to
18532         support common usage.
18533
18534         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18535         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18536         that we are compiling in checking mode, and if not C++, and
18537         if not already wrapping fwrite for some other reason.
18538         (fwrite): #define to rpl_fwrite if the latter is defined.
18539
18540 2011-03-20  Bruno Haible  <bruno@clisp.org>
18541
18542         verror: Fix compilation error introduced on 2011-02-13.
18543         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18544         instead of __attribute__.
18545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18546
18547 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18548             Bruno Haible  <bruno@clisp.org>
18549
18550         socklen: do not depend on sys_socket
18551         While trying to modify Emacs to use gnulib's socklen module,
18552         I discovered a circular dependency: socklen depends on sys_socket
18553         and vice versa.  Emacs can use socklen, but it does not need
18554         sys_socket because it has its own substitute for sys/socket.h.
18555         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18556         gl_TYPE_SOCKLEN_T.
18557         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18558         gl_PREREQ_SYS_H_SOCKET.
18559         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18560         gl_PREREQ_SYS_H_SOCKET.
18561         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18562         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18563         * modules/socklen (Depends-on): Do not depend on sys_socket.
18564         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18565
18566 2011-03-20  Jim Meyering  <meyering@redhat.com>
18567
18568         maint.mk: sort file names *after* new transformation
18569         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18570         prefix would have led to an unwarranted failure in GNU parted.
18571         Sort after that transformation.
18572
18573 2011-03-19  Jim Meyering  <meyering@redhat.com>
18574
18575         maint.mk: fix po-file syntax-check rule
18576         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18577         Patch by Bruno Haible.
18578
18579 2011-03-19  Bruno Haible  <bruno@clisp.org>
18580
18581         socklen: Update comment.
18582         * m4/socklen.m4: Update comment about platforms.
18583
18584 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18585             Bruno Haible  <bruno@clisp.org>
18586
18587         inet_ntop, inet_pton: Simplify.
18588         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18589         documented to provide socklen_t and we already depend on sys_socket.
18590         * modules/inet_pton (Depends-on): Likewise.
18591         * lib/arpa_inet.in.h: Adjust comment.
18592
18593 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18594             Bruno Haible  <bruno@clisp.org>
18595
18596         netdb: Simplify.
18597         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18598         documented to provide socklen_t and we already depend on sys_socket.
18599         * lib/netdb.in.h: Adjust comment.
18600
18601 2011-03-19  Bruno Haible  <bruno@clisp.org>
18602
18603         sys_socket, netdb: Document problem with socklen_t.
18604         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18605         platforms.
18606         * doc/posix-headers/netdb.texi: Likewise.
18607
18608 2011-03-18  Eric Blake  <eblake@redhat.com>
18609
18610         maint.mk: let po check work in VPATH build
18611         * top/maint.mk (po_file): Allow cfg.mk override.
18612         (sc_po_check): Allow VPATH use.
18613         Reported by Jiri Denemark.
18614
18615 2011-03-16  Jim Meyering  <meyering@redhat.com>
18616
18617         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18618         Before, you would have had to create one .x-sc_ file per rule in order
18619         to exempt offending files.  Now, you may instead use a Make variable --
18620         usually defined in cfg.mk -- whose name identifies the affected rule.
18621         * top/maint.mk (_sc_excl): Define.
18622         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18623         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18624
18625 2011-03-13  Bruno Haible  <bruno@clisp.org>
18626
18627         ignore-value tests: Avoid warnings.
18628         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18629         empty for gcc < 3.4.
18630
18631 2011-03-13  Bruno Haible  <bruno@clisp.org>
18632
18633         passfd: Fix link error on Solaris.
18634         * modules/passfd (Description): Correct.
18635         (Depends-on): Add socketlib.
18636         (Link): New section.
18637         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18638
18639 2011-03-13  Bruno Haible  <bruno@clisp.org>
18640
18641         passfd: Fix link error on AIX 5.2.
18642         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18643
18644 2011-03-13  Bruno Haible  <bruno@clisp.org>
18645
18646         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18647         * lib/sys_socket.in.h: Include <stddef.h>.
18648         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18649         CMSG_FIRSTHDR. Remove unused variable.
18650
18651 2011-03-13  Bruno Haible  <bruno@clisp.org>
18652
18653         passfd: Fix compilation error on OpenBSD.
18654         * lib/passfd.c: Include <sys/uio.h>.
18655
18656 2011-03-13  Bruno Haible  <bruno@clisp.org>
18657
18658         passfd test: Fix warnings.
18659         * tests/test-passfd.c: Include <sys/wait.h>.
18660         (main): Fix typo.
18661
18662 2011-03-13  Bruno Haible  <bruno@clisp.org>
18663
18664         passfd module, part 4, tweaks.
18665         * tests/test-passfd.c: Reorder includes.
18666         (main): Fix perror and printf calls.
18667
18668 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18669
18670         passfd module, part 4.
18671         * modules/passfd-tests: New file.
18672         * tests/test-passfd.c: New file.
18673
18674 2011-03-13  Jim Meyering  <meyering@redhat.com>
18675
18676         Makefile: rely on GNU make; derive syntax-check rule names
18677         Rather than requiring that each sc_ rule be listed as a dependent
18678         of "check", use features of GNU make to derive the list.
18679         * Makefile (syntax-check-rules): Define.
18680         (check): Depend on the new variable, not the hard-coded list.
18681
18682 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18683             Bruno Haible  <bruno@clisp.org>
18684
18685         passfd module, part 3.
18686         * lib/passfd.h (recvfd): Add a flags argument.
18687         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18688         (recvfd): Add a flags argument.
18689         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18690         exists.
18691         * modules/passfd (Depends-on): Add cloexec.
18692         Suggested by Eric Blake.
18693
18694 2011-03-13  Bruno Haible  <bruno@clisp.org>
18695
18696         passfd module, part 2, tweaks.
18697         * modules/passfd (Files): Reorder.
18698         (Depends-on): Remove errno.
18699         (Include): Remove <sys/socket.h>, <sys/un.h>.
18700         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18701         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18702         specification header. Include <sys/socket.h> always. Don't include
18703         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18704         (sendfd): Clarify that it sets errno when it fails.
18705         (recvfd): Fix specification.
18706
18707 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18708
18709         passfd module, part 2.
18710         * modules/passfd: New file.
18711         * lib/passfd.h: New file.
18712         * lib/passfd.c: New file.
18713
18714 2011-03-12  Bruno Haible  <bruno@clisp.org>
18715
18716         wcswidth, mbswidth: Avoid integer overflow.
18717         * lib/wcswidth.c: Include <limits.h>.
18718         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18719         * lib/mbswidth.c: Include <limits.h>.
18720         (mbsnwidth): Avoid 'int' overflow.
18721         Reported by Jim Meyering.
18722
18723 2011-03-12  Bruno Haible  <bruno@clisp.org>
18724
18725         futimens, utimensat: Avoid endless recursion on Solaris 10.
18726         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18727         Solaris.
18728         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18729         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18730
18731 2011-03-11  Jim Meyering  <meyering@redhat.com>
18732
18733         maint.mk: relax a regexp to accommodate other formatting styles
18734         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18735         between "ngettext" and the following "(".
18736
18737 2011-03-11  Pádraig Brady <P@draigBrady.com>
18738
18739         maint.mk: suppress a false positive warning
18740         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18741         diagnostics are marked with ngettext.
18742
18743 2011-03-10  Eric Blake  <eblake@redhat.com>
18744
18745         wchar: add explicit dependencies, for Tru64
18746         * modules/mbmemcasecoll (Depends-on): Add wchar.
18747         * modules/mbtowc (Depends-on): Likewise.
18748         * modules/vasnprintf (Depends-on): Likewise.
18749         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18750         * modules/wctomb (Depends-on): Likewise.
18751         Reported by Peter O'Gorman.
18752
18753 2011-03-08  Bruno Haible  <bruno@clisp.org>
18754
18755         passfd module, part 1, tweaks.
18756         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18757         Improve indentation. Improve AC_MSG_CHECKING messages.
18758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18759         gl_SOCKET_FAMILIES.
18760
18761 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18762
18763         passfd module, part 1.
18764         * m4/afunix.m4: New file.
18765         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18766         sockets.
18767
18768 2011-03-08  Bruno Haible  <bruno@clisp.org>
18769
18770         regex-quote: New API.
18771         * lib/regex-quote.h: Include <stdbool.h>.
18772         (struct regex_quote_spec): New type.
18773         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18774         New declarations.
18775         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18776         'const struct regex_quote_spec *' argument.
18777         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18778         (pcre_special): New constant.
18779         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18780         New functions.
18781         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18782         'const struct regex_quote_spec *' argument.
18783         * modules/regex-quote (Depends-on): Add stdbool.
18784         * tests/test-regex-quote.c (check): Update for new API. Add test for
18785         anchored results.
18786         * NEWS: Mention the API change.
18787         Reported by Reuben Thomas and Eric Blake.
18788
18789 2011-03-06  Bruno Haible  <bruno@clisp.org>
18790
18791         regex-quote: Fix creation of POSIX extended regular expressions.
18792         * lib/regex-quote.c (ere_special): Add grouping and alternation
18793         operators.
18794
18795 2011-03-05  Bruno Haible  <bruno@clisp.org>
18796
18797         doc: Improve doc regarding autopoint vs. gnulib.
18798         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18799         disable autopoint while running autoreconf.
18800         Suggested by Ralf Wildenhues.
18801
18802 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18803
18804         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18805         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18806
18807 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18808
18809         parse-duration: remove xalloc.h dependency
18810         * lib/parse-duration.c (parse_period): handle NULL return from
18811         strdup instead of calling xstrdup().
18812         * modules/parse-duration: remove "xalloc" dependency
18813
18814 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18815
18816         bootstrap: honor m4_base when running aclocal
18817         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18818
18819 2011-03-02  Jim Meyering  <meyering@redhat.com>
18820
18821         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18822         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18823         on request from Matt Booth.
18824
18825 2011-03-01  Eric Blake  <eblake@redhat.com>
18826
18827         test-link: work on Hurd
18828         * tests/test-link.h (test_link): Hurd rejects linking directories
18829         with EISDIR instead of the POSIX-mandated EPERM.
18830
18831 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         stdio: simplify by moving files to printf-posix, sigpipe
18834         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18835         since this symbol is needed only if printf is replaced.
18836         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18837         Require gl_ASM_SYMBOL_PREFIX.
18838         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18839         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18840         (Depends-on): Add 'raise'.
18841         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18842         * modules/stdio (Files): Remove lib/stdio-write.c,
18843         m4/asm-underscore.m4.
18844         (Depends-on): Remove 'raise'.
18845
18846         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18847         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18848         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18849         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18850
18851 2011-02-28  Bruno Haible  <bruno@clisp.org>
18852
18853         localcharset: Assume ANSI C behaviour of free().
18854         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18855         calling free().
18856         Suggested by Simon Josefsson <simon@josefsson.org>.
18857
18858 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18859             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18860             Bruno Haible  <bruno@clisp.org>  (tiny change)
18861
18862         On Cygwin, use /proc file system instead of win32 API.
18863         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18864         Win32 file names.
18865         (DllMain): Simplify by removing Cygwin specific code.
18866         (find_shared_library_fullname): Use Linux specific implementation also
18867         for Cygwin.
18868         (get_shared_library_fullname): Update accordingly.
18869         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18870         Win32 file names.
18871         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18872         Cygwin specific code.
18873
18874 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18875             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18876
18877         Fix OpenMP flag detection for various Fortran compilers.
18878         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18879         OpenMP-conditional compilation construct, to force compile
18880         failure with missing OpenMP flag.
18881         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18882
18883 2011-02-25  Eric Blake  <eblake@redhat.com>
18884
18885         strstr: expand test coverage
18886         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18887         compilation.
18888         * tests/test-memmem.c (main): Duplicate tests.
18889         * tests/test-strcasestr.c (main): Likewise.
18890         * tests/test-c-strcasestr.c (main): Likewise.
18891
18892 2011-02-25  Jim Meyering  <meyering@redhat.com>
18893
18894         maint.mk: detect missing-NL-at-EOF, too
18895         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18896         it also detects when a file lacks a newline at EOF.
18897         (require_exactly_one_NL_at_EOF_): Renamed from
18898         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18899         since people may well have .x-sc_... file names tied to the
18900         existing name.  Suggested by Eric Blake.
18901
18902 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18903
18904         dirname: move m4/dos.m4 functionality into lib/dosname.h
18905
18906         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18907         extracts symbols from it, puts them into config.h; but it's much
18908         easier to use the symbols directly.  filename.h already does this,
18909         but it disagrees with dos.m4 in some respects.  This patch
18910         introduces a different include file dosname.h that packages up
18911         dos.m4, and then later we can work on merging filename.h and
18912         dosname.h.  Applications that need only the easy-to-configure
18913         symbols should consider including dosname.h rather than dirname.h.
18914         * NEWS: Mention incompatible changes.
18915         * m4/dos.m4: Remove.
18916         * lib/dosname.h, modules/dosname: New files.
18917         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18918         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18919         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18920         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18921         Include dosname.h, not dirname.h.
18922         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18923         Include dosname.h, for definitions of symbols like ISSLASH
18924         that used to be in config.h.
18925         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18927         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18928         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18929         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18930         * modules/rmdir (Files): Likewise.
18931         * modules/stat (Files): Likewise.
18932         * modules/unlink (Files): Likewise.
18933         * modules/dirname-lgpl (Depends-on): Add dosname.
18934         * modules/lstat (Depends-on): Likewise.
18935         * modules/openat (Depends-on): Likewise.
18936         * modules/rmdir (Depends-on): Likewise.
18937         * modules/savewd (Depends-on): Likewise.
18938         * modules/stat (Depends-on): Likewise.
18939         * modules/unlink (Depends-on): Likewise.
18940         * modules/openat (Depends-on): Remove dirname-lgpl.
18941         * modules/savewd (Depends-on): Likewise.
18942         * tests/test-dirname.c: Do not use removed symbols like
18943         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18944         the remaining symbols, e.g., ISSLASH ('\\').
18945
18946 2011-02-25  Eric Blake  <eblake@redhat.com>
18947
18948         strstr: revert patches that introduced bug and pessimization
18949         * lib/str-two-way.h: Add another reference.
18950         (two_way_short_needle, two_way_long_needle): Revert changes from
18951         2011-02-24; they pessimize search speed.
18952         (critical_factorization): Partially revert changes from
18953         2010-06-22; they violate the requirement that the left half of the
18954         needle be smaller than the period of the needle.
18955
18956 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18957
18958         filenamecat: remove unnecessary dependency on dirname-lgpl
18959         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18960         is no direct dependency, just an indirect one via filenamecat-lgpl.
18961
18962         remove: remove unnecessary use of m4/dos.m4
18963         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18964         * modules/remove (FILES): Remove m4/dos.m4.
18965
18966         * lib/openat-proc.c: Don't include dirname.h; not needed.
18967
18968         backupfile: remove unnecessary use of m4/dos.m4
18969         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18970         of its symbols are used by the backupfile code.  backupfile.c does
18971         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18972         for the rare case of programs that want all their backup file
18973         names to live within 8+3 limits, and dos.m4 doesn't address that.
18974         * modules/backupfile (Files): Remove m4/dos.m4.
18975
18976 2011-02-24  Jim Meyering  <meyering@redhat.com>
18977
18978         strstr: fix a bug whereby strstr would mistakenly return NULL
18979         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18980         in period calculation.
18981         (two_way_long_needle): Likewise.
18982         The original problem was reported by Mike Stump in
18983         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18984         Ralf Wildenhues provided the short needle and haystack.
18985         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18986         Add a more involved test to trigger the bug in two_way_long_needle.
18987
18988 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18989
18990         gnulib-tool: remove use of bold display in help screen
18991         * gnulib-tool (func_usage): Do not use bold display anymore in the
18992         help screen.  That was just meant to be a temporary emphasis for a
18993         backward-incompatible change.
18994
18995 2011-02-23  Bruno Haible  <bruno@clisp.org>
18996
18997         Fix misindentation of preprocessor directives.
18998         * lib/argp-namefrob.h: Reindent preprocessor directives.
18999         * lib/getopt_int.h (struct _getopt_data): Likewise.
19000         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19001         * lib/vasnprintf.c (decode_long_double): Likewise.
19002         * tests/test-argmatch.c: Insert blank lines, for clarity.
19003         * tests/test-exclude.c: Likewise.
19004
19005 2011-02-22  Bruno Haible  <bruno@clisp.org>
19006
19007         ioctl: Fix for MacOS X in 64-bit mode.
19008         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19009         value.
19010         Suggested by Eric Blake.
19011         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19012
19013 2011-02-22  Jim Meyering  <meyering@redhat.com>
19014
19015         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19016         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19017         in lib/.
19018
19019 2011-02-22  Eric Blake  <eblake@redhat.com>
19020
19021         maint: avoid any CDPATH issue
19022         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19023
19024         maint: adjust cpp indentation for my modules, as well
19025         * Makefile (sc_cpp_indent_check): Add my name.
19026         * lib/fbufmode.c: Filter through cppi.
19027         * lib/fpurge.c: Likewise.
19028         * lib/freadable.c: Likewise.
19029         * lib/freading.c: Likewise.
19030         * lib/fwritable.c: Likewise.
19031         * lib/fwriting.c: Likewise.
19032         * lib/sigaction.c: Likewise.
19033
19034 2011-02-22  Jim Meyering  <meyering@redhat.com>
19035
19036         maint: adjust cpp indentation to reflect nesting depth
19037         I.e., in a block of code that begins with an unnested "#if",
19038         put one space between the "#" in column 1 and following token.
19039         For example,
19040         -#include <sys/vfs.h>
19041         +# include <sys/vfs.h>
19042         Do this only in .c files that are part of a module I maintain.
19043         * lib/linkat.c: Filter through cppi.
19044         * lib/nanosleep.c: Likewise.
19045         * lib/openat.c: Likewise.
19046         * lib/openat-die.c: Likewise.
19047         * lib/dup3.c: Likewise.
19048         * lib/fchownat.c: Likewise.
19049         * lib/flock.c: Likewise.
19050         * lib/fsync.c: Likewise.
19051         * lib/fts.c: Likewise.
19052         * lib/getpass.c: Likewise.
19053         * lib/gettimeofday.c: Likewise.
19054         * lib/userspec.c: Likewise.
19055         * Makefile (sc_cpp_indent_check): New rule, to check this.
19056
19057 2011-02-22  Bruno Haible  <bruno@clisp.org>
19058
19059         New module 'wctomb'.
19060         * lib/stdlib.in.h (wctomb): New declaration.
19061         * lib/wctomb.c: New file.
19062         * lib/wctomb-impl.h: New file.
19063         * m4/wctomb.m4: New file.
19064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19065         REPLACE_WCTOMB.
19066         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19067         REPLACE_WCTOMB.
19068         * modules/wctomb: New file.
19069         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19070         * doc/posix-functions/wctomb.texi: Mention the new module.
19071         * modules/wctob (Depends-on): Add wctomb.
19072
19073 2011-02-22  Bruno Haible  <bruno@clisp.org>
19074
19075         New module 'mbtowc'.
19076         * lib/stdlib.in.h (mbtowc): New declaration.
19077         * lib/mbtowc.c: New file.
19078         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19079         * m4/mbtowc.m4: New file.
19080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19081         REPLACE_MBTOWC.
19082         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19083         REPLACE_MBTOWC.
19084         * modules/mbtowc: New file.
19085         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19086         * doc/posix-functions/mbtowc.texi: Mention the new module.
19087         * modules/btowc (Depends-on): Add mbtowc.
19088
19089 2011-02-22  Bruno Haible  <bruno@clisp.org>
19090
19091         wcrtomb: Add more tests for native Windows platforms.
19092         * tests/test-wcrtomb-w32-1.sh: New file.
19093         * tests/test-wcrtomb-w32-2.sh: New file.
19094         * tests/test-wcrtomb-w32-3.sh: New file.
19095         * tests/test-wcrtomb-w32-4.sh: New file.
19096         * tests/test-wcrtomb-w32-5.sh: New file.
19097         * tests/test-wcrtomb-w32.c: New file.
19098         * modules/wcrtomb-tests (Files): Add them.
19099         (Makefile.am): Arrange to run these tests.
19100         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19101         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19102
19103 2011-02-20  Bruno Haible  <bruno@clisp.org>
19104
19105         wcrtomb: Enhance test.
19106         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19107
19108 2011-02-20  Bruno Haible  <bruno@clisp.org>
19109
19110         mbrtowc: Tiny optimization.
19111         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19112
19113 2011-02-20  Jim Meyering  <meyering@redhat.com>
19114
19115         test-exclude.c: remove unmatched #endif
19116         * tests/test-exclude.c: Remove stray #endif, left over from
19117         the change of a week ago.
19118
19119 2011-02-19  Jim Meyering  <meyering@redhat.com>
19120
19121         git-version-gen: skip "-dirty" check when appropriate
19122         * build-aux/git-version-gen: Don't run any git commands when the
19123         version string comes from .tarball-version.  Prior to this, we
19124         would run git update-index --refresh even from a just-unpacked
19125         tarball directory, and that could affect a .git/ directory in a
19126         parent of the build directory.  Reported by Mike Frysinger.
19127
19128 2011-02-19  Bruno Haible  <bruno@clisp.org>
19129
19130         unictype/property-byname: Reduce the size of the 'data' segment.
19131         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19132
19133 2011-02-19  Bruno Haible  <bruno@clisp.org>
19134
19135         unictype/scripts: Reduce the size of the 'data' segment.
19136         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19137         '%pic'.
19138         * lib/unictype/scripts_byname.gperf: Regenerated.
19139
19140 2011-02-19  Bruno Haible  <bruno@clisp.org>
19141
19142         stdint: Update documentation.
19143         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19144
19145 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19146
19147         stdint: omit redundant check for wchar.h
19148         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19149         always tests whether wchar.h exists, so remove the now-redundant test.
19150
19151 2011-02-18  Bruno Haible  <bruno@clisp.org>
19152
19153         stdint: Cut dependency to module 'wchar'.
19154         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19155         include the necessary prerequisites.
19156         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19157         * modules/stdint (Depends-on): Remove wchar.
19158         (Makefile.am): Substitute HAVE_WCHAR_H.
19159         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19160
19161 2011-02-18  Eric Blake  <eblake@redhat.com>
19162
19163         longlong: skip, rather than fail, on cross-compilation
19164         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19165         when cross-compiling; regression from 2011-02-16.
19166
19167 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19168
19169         * NEWS: Mention 2011-02-08 change to stdlib.
19170
19171 2011-02-17  Bruno Haible  <bruno@clisp.org>
19172
19173         getloadavg: Add comments about platforms.
19174         * m4/getloadavg.m4: Add comment.
19175         * lib/getloadavg.c: Likewise.
19176
19177 2011-02-17  Bruno Haible  <bruno@clisp.org>
19178
19179         getloadavg: Fix link error on Solaris 2.6.
19180         * modules/getloadavg (Link): New section.
19181         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19182         linking test-getloadavg.
19183         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19184         getloadavg.
19185
19186 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19189         It was 'int', but this doesn't match the IRIX 6.5 manual.
19190         Suggested by Bruno Haible in
19191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19192
19193 2011-02-17  Bruno Haible  <bruno@clisp.org>
19194
19195         havelib: Fix comments.
19196         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19197         change.
19198
19199 2011-02-17  Bruno Haible  <bruno@clisp.org>
19200
19201         havelib: Update config.rpath.
19202         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19203
19204 2011-02-17  Bruno Haible  <bruno@clisp.org>
19205
19206         getloadavg test: Add some plausibility checks.
19207         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19208         is improbable.
19209
19210 2011-02-16  Eric Blake  <eblake@redhat.com>
19211
19212         maintainer-makefile: make syntax-check a no-op from tarballs
19213         * top/maint.mk (no-vc-detected): New rule.
19214         (local-checks-available): Use it to avoid hanging if someone tries
19215         'make syntax-check' from a tarball.  Also append to any non-syntax
19216         checks already defined in cfg.mk.
19217
19218 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19219
19220         longlong: tune, particularly for common case of c99
19221
19222         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19223         or running anything if c99, or if unsigned long long int does not
19224         work.  In either case, we know the answer without further tests.
19225         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19226         it at most once, and use its results for both long long int and
19227         unsigned long long int.  This is more likely to be efficient in
19228         the common case where the program wants to check for both long
19229         long int and unsigned long long int.
19230         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19231         since the answer is already known.
19232
19233 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19234
19235         getloadavg: set errno
19236         * lib/getloadavg.c: Set errno when returning -1.  If no other
19237         error number looks appropriate, set it to ENOSYS if the getloadavg
19238         looks like it can't possibly ever work, ENOTSUP otherwise.
19239         Suggested by Bruno Haible in
19240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19241
19242         getloadavg: trim unused parts and speed up 'configure'
19243         * NEWS: Document this.
19244         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19245         always compiled if getloadavg is absent.
19246         Move test code to ...
19247         * tests/test-getloadavg.c: New file, containing previous
19248         contents of test from lib/getloadavg.c.  It also contains
19249         suggestions by Bruno Haible in
19250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19251         * modules/getloadavg-tests: New file.
19252         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19253         Do tests in the same order as they're needed for getloadavg.c.
19254         Omit setgid-related tests that generate symbols KMEM_GROUP,
19255         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19256         Do only the tests that are needed to see whether the system has
19257         getloadavg, moving the other tests into ...
19258         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19259         NLIST_NAME_UNION; nobody should be using it.  Do not define
19260         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19261         relevant, as the user of this module shouldn't care how getloadavg
19262         is implemented.
19263
19264         getloadavg: omit unused var
19265         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19266
19267 2011-02-15  Jim Meyering  <meyering@redhat.com>
19268
19269         doc: update users.txt
19270         * users.txt: Update iwhd's URL.
19271
19272 2011-02-13  Bruno Haible  <bruno@clisp.org>
19273
19274         Consistent macro naming for macros that use GCC __attribute__.
19275         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19276         _ATTRIBUTE_NONNULL_.
19277         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19278         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19279         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19280         ATTRIBUTE_DEPRECATED.
19281         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19282         ATTRIBUTE_NORETURN.
19283         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19284         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19285         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19286         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19287         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19288         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19289         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19290         ATTRIBUTE_SENTINEL.
19291         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19292         ATTRIBUTE_RETURN_CHECK.
19293         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19294         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19295         ATTRIBUTE_NORETURN.
19296         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19297         Reported by Paul Eggert.
19298
19299 2011-02-13  Bruno Haible  <bruno@clisp.org>
19300
19301         Don't interfere with a program's definition of __attribute__.
19302         * lib/argp.h (__attribute__): Remove definition.
19303         (_GL_ATTRIBUTE_FORMAT): New macro.
19304         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19305         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19306         (_GL_ATTRIBUTE_FORMAT): New macro.
19307         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19308         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19309         GCC 3 or newer.
19310         * lib/error.h (__attribute__): Remove definition.
19311         (_GL_ATTRIBUTE_FORMAT): New macro.
19312         (error, error_at_line): Use it.
19313         * lib/hash.h (__attribute__): Remove definition.
19314         (ATTRIBUTE_WUR): Update definition. Define always.
19315         * lib/openat.h (__attribute__): Remove definition.
19316         (ATTRIBUTE_NORETURN): Update definition. Define always.
19317         * lib/sigpipe-die.h (__attribute__): Remove definition.
19318         (ATTRIBUTE_NORETURN): Update definition. Define always.
19319         * lib/vasnprintf.h (__attribute__): Remove definition.
19320         (_GL_ATTRIBUTE_FORMAT): New macro.
19321         (asnprintf, vasnprintf): Use it.
19322         * lib/xalloc.h (__attribute__): Remove definition.
19323         (ATTRIBUTE_NORETURN): Update definition. Define always.
19324         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19325         * lib/xmemdup0.h (__attribute__): Remove definition.
19326         (ATTRIBUTE_NORETURN): Update definition. Define always.
19327         * lib/xprintf.h (__attribute__): Remove definition.
19328         (_GL_ATTRIBUTE_FORMAT): New macro.
19329         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19330         * lib/xstrtol.h (__attribute__): Remove definition.
19331         (ATTRIBUTE_NORETURN): Update definition. Define always.
19332         * lib/xvasprintf.h (__attribute__): Remove definition.
19333         (_GL_ATTRIBUTE_FORMAT): New macro.
19334         (xasprintf, xvasprintf): Use it.
19335         * tests/test-argmatch.c (__attribute__): Remove definition.
19336         (ATTRIBUTE_NORETURN): Update definition. Define always.
19337         * tests/test-exclude.c (__attribute__): Remove definition.
19338         (ATTRIBUTE_NORETURN): Update definition. Define always.
19339         Reported by Paul Eggert.
19340
19341 2011-02-13  Bruno Haible  <bruno@clisp.org>
19342
19343         mbrtowc: Add more tests for native Windows platforms.
19344         * tests/test-mbrtowc-w32-1.sh: New file.
19345         * tests/test-mbrtowc-w32-2.sh: New file.
19346         * tests/test-mbrtowc-w32-3.sh: New file.
19347         * tests/test-mbrtowc-w32-4.sh: New file.
19348         * tests/test-mbrtowc-w32-5.sh: New file.
19349         * tests/test-mbrtowc-w32.c: New file.
19350         * modules/mbrtowc-tests (Files): Add them.
19351         (Makefile.am): Arrange to run these tests.
19352         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19353         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19354
19355 2011-02-13  Bruno Haible  <bruno@clisp.org>
19356
19357         mbrtowc: Work around native Windows bug.
19358         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19359         guess when no suitable locale for testing was found.
19360         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19361
19362 2011-02-13  Bruno Haible  <bruno@clisp.org>
19363
19364         mbsinit: Work around mingw bug.
19365         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19366         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19367         Windows.
19368         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19369
19370 2011-02-13  Bruno Haible  <bruno@clisp.org>
19371
19372         mbsinit: Don't crash for a NULL argument.
19373         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19374         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19375
19376 2011-02-13  Bruno Haible  <bruno@clisp.org>
19377
19378         Don't interfere with a program's definition of __attribute__.
19379         * lib/stdio.in.h (__attribute__): Remove definition.
19380         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19381         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19382         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19383         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19384         * lib/string.in.h (__attribute__): Remove definition.
19385         Reported by Paul Eggert.
19386
19387 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         stdlib: don't get in the way of non-GCC __attribute__
19390         See thread starting at
19391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19392         Revert previous stdlib change, installing the following instead:
19393         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19394         to get in the way of a non-GCC compiler that supports __attribute__.
19395         (_GL_ATTRIBUTE_RETURN): New macro.
19396         (_Exit): Use it instead of __attribute__.
19397
19398 2011-02-12  Bruno Haible  <bruno@clisp.org>
19399
19400         quotearg test: Avoid test failure on mingw.
19401         * tests/test-quotearg.sh: Convert the locale identifier from native
19402         Windows syntax to Unix syntax.
19403
19404 2011-02-12  Bruno Haible  <bruno@clisp.org>
19405
19406         setlocale: Prefer gnulib's override over libintl's override.
19407         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19408         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19409         GNULIB_defined_setlocale is set.
19410
19411 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19412
19413         stdlib: support non-GCC __attribute__
19414
19415         Fix a serious and tricky problem encountered when attempting to
19416         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19417         5.5, but it crashed due to memory corruption on Solaris 10 with
19418         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19419         bits that are otherwise zero.  This tagging is optional inside
19420         Emacs but is preferred and is used when __attribute__ ((__aligned
19421         (8))) works, as it does with both recent-enough GCC and with Sun C
19422         5.11.  However, Sun C 5.11 is not GCC and does not #define
19423         __GNUC__ and __GNUC_MINOR__.
19424
19425         When I added the getloadavg module to Emacs, it brought in
19426         stdlib.in.h, which contained this fragment:
19427
19428            #ifndef __attribute__
19429            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19430            #  define __attribute__(Spec)   /* empty */
19431            # endif
19432            #endif
19433
19434         When files that include <stdlib.h> were compiled with Sun C 5.11,
19435         the above code disabled __attribute__ ((__aligned (8))), which
19436         caused variables to not be properly aligned, which eventually led
19437         to the pointer corruption mentioned above.  (This was a bit hard
19438         to diagnose, unfortunately.)
19439
19440         Several "#define __attribute__(X) /* empty */" code snippets need
19441         to be eradicated from Gnulib to work with non-GCC compilers that
19442         support __attribute__.  The Autoconf way to do this is to test for
19443         each kind of attribute that we want support for, and selectively
19444         enable that in source code.
19445
19446         Fix this problem just for stdlib.h, by adding a test for the
19447         __noreturn__ attribute, and change stdlib.in.h to use that test
19448         when needed.  This technique can be easily generalized to the
19449         other *.in.h files and attributes, and a similar technique can be
19450         used for *.h and *.c files.  This patch is enough to solve the
19451         problem for Emacs + getloadavg, and I thought I'd publish it for
19452         feedback before undertaking further, similar fixes in other
19453         modules.
19454
19455         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19456         because it's not needed for stdlib.h.  It merely substitutes the
19457         value directly into stdlib.h.  We may well need to #define it, or
19458         similar symbols, for other modules, but it's nice to also have an
19459         option to not #define it for applications like Emacs that do not
19460         need it.
19461
19462         * lib/stdlib.in.h (__attribute__): Do not #define.
19463         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19464         be defined only if the _Exit module is also used.
19465         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19467         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19468         platforms.
19469         * modules/_Exit (Files): Add m4/attribute.m4.
19470         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19471         * m4/attribute.m4: New file.
19472
19473 2011-02-12  Bruno Haible  <bruno@clisp.org>
19474
19475         wcsrtombs: Work around bug on native Windows.
19476         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19477         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19478         instead of len.
19479         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19480
19481 2011-02-12  Bruno Haible  <bruno@clisp.org>
19482
19483         mbsrtowcs: Work around bug on native Windows.
19484         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19485         against mingw bug.
19486         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19487
19488 2011-02-12  Bruno Haible  <bruno@clisp.org>
19489
19490         Avoid setlocale bugs in tests.
19491         * modules/btowc (Dependencies): Add setlocale.
19492         * modules/c-strcase (Dependencies): Likewise.
19493         * modules/mbmemcasecmp (Dependencies): Likewise.
19494         * modules/mbmemcasecoll (Dependencies): Likewise.
19495         * modules/mbrtowc (Dependencies): Likewise.
19496         * modules/mbscasecmp (Dependencies): Likewise.
19497         * modules/mbscasestr (Dependencies): Likewise.
19498         * modules/mbschr (Dependencies): Likewise.
19499         * modules/mbscspn (Dependencies): Likewise.
19500         * modules/mbsinit (Dependencies): Likewise.
19501         * modules/mbsncasecmp (Dependencies): Likewise.
19502         * modules/mbsnrtowcs (Dependencies): Likewise.
19503         * modules/mbspbrk (Dependencies): Likewise.
19504         * modules/mbspcasecmp (Dependencies): Likewise.
19505         * modules/mbsrchr (Dependencies): Likewise.
19506         * modules/mbsrtowcs (Dependencies): Likewise.
19507         * modules/mbsspn (Dependencies): Likewise.
19508         * modules/mbsstr (Dependencies): Likewise.
19509         * modules/nl_langinfo (Dependencies): Likewise.
19510         * modules/quotearg (Dependencies): Likewise.
19511         * modules/unicase/locale-language (Dependencies): Likewise.
19512         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19513         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19514         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19515         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19516         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19517         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19518         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19519         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19520         * modules/vasnprintf-posix (Dependencies): Likewise.
19521         * modules/wcrtomb (Dependencies): Likewise.
19522         * modules/wcsnrtombs (Dependencies): Likewise.
19523         * modules/wcsrtombs (Dependencies): Likewise.
19524
19525 2011-02-12  Bruno Haible  <bruno@clisp.org>
19526
19527         setlocale: Workaround native Windows bug.
19528         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19529         succeeds but sets LC_CTYPE to "C", report a failure.
19530         * tests/test-setlocale2.sh: New file.
19531         * tests/test-setlocale2.c: New file.
19532         * modules/setlocale-tests (Files): Add the new files.
19533         (Makefile.am): Enable test-setlocale2.sh test.
19534         * doc/posix-functions/setlocale.texi: Mention workaround.
19535
19536 2011-02-11  Bruno Haible  <bruno@clisp.org>
19537
19538         Tests for module 'setlocale'.
19539         * modules/setlocale-tests: New file.
19540         * tests/test-setlocale1.sh: New file.
19541         * tests/test-setlocale1.c: New file.
19542
19543         New module 'setlocale'.
19544         * lib/locale.in.h (setlocale): New declaration.
19545         * lib/setlocale.c: New file, based on
19546         gettext/gettext-runtime/intl/setlocale.c.
19547         * m4/setlocale.m4: New file.
19548         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19549         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19550         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19551         REPLACE_SETLOCALE.
19552         * modules/setlocale: New file.
19553         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19554         * doc/posix-functions/setlocale.texi: Mention the new module.
19555
19556 2011-02-11  Bruno Haible  <bruno@clisp.org>
19557
19558         Prepare for locale dependent tests on mingw.
19559         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19560         because it has the wrong locale encoding.
19561         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19562         French_France.1252 instead of "fr".
19563         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19564         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19565         because it has the wrong locale encoding.
19566         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19567         native Windows, try Turkish_Turkey.65001.
19568         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19569         Chinese_China.54936.
19570
19571         Prepare for locale dependent tests on mingw.
19572         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19573         differently.
19574         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19575         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19576         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19578
19579 2011-02-11  Eric Blake  <eblake@redhat.com>
19580
19581         strptime: avoid compiler warnings
19582         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19583         compiler warnings about dead code.
19584         Reported by Daniel P. Berrange.
19585
19586 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19587
19588         doc: update users.txt
19589         * users.txt: Add rcs.
19590
19591 2011-02-10  John W. Eaton  <jwe@gnu.org>
19592
19593         doc: update users.txt
19594         * users.txt: Add octave.
19595
19596 2011-02-10  Jim Meyering  <meyering@redhat.com>
19597
19598         doc: update users.txt
19599         * users.txt: Add iwhd.
19600
19601 2011-02-09  Bruno Haible  <bruno@clisp.org>
19602
19603         gnulib-tool: Make copyright notice adjustment more robust.
19604         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19605         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19606         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19607         License".
19608         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19609
19610 2011-02-06  Bruno Haible  <bruno@clisp.org>
19611
19612         New module 'towctrans'.
19613         * modules/towctrans: New file.
19614         * lib/wctype.in.h (towctrans): New declaration.
19615         * lib/towctrans.c: New file.
19616         * lib/towctrans-impl.h: New file.
19617         * m4/towctrans.m4: New file.
19618         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19619         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19620         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19621         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19622         * doc/posix-functions/towctrans.texi: Mention the new module.
19623
19624 2011-02-06  Bruno Haible  <bruno@clisp.org>
19625
19626         New module 'wctrans'.
19627         * modules/wctrans: New file.
19628         * lib/wctype.in.h (wctrans): New declaration.
19629         * lib/wctrans.c: New file.
19630         * lib/wctrans-impl.h: New file.
19631         * m4/wctrans.m4: New file.
19632         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19633         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19634         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19635         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19636         * doc/posix-functions/wctrans.texi: Mention the new module.
19637
19638 2011-02-06  Bruno Haible  <bruno@clisp.org>
19639
19640         New module 'iswctype'.
19641         * modules/iswctype: New file.
19642         * lib/wctype.in.h (iswctype): New declaration.
19643         * lib/iswctype.c: New file.
19644         * lib/iswctype-impl.h: New file.
19645         * m4/iswctype.m4: New file.
19646         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19647         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19648         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19649         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19650         * doc/posix-functions/iswctype.texi: Mention the new module and the
19651         HP-UX 11.00 problem.
19652
19653 2011-02-06  Bruno Haible  <bruno@clisp.org>
19654
19655         New module 'wctype'.
19656         * modules/wctype: Change to represent the wctype() substitute.
19657         * lib/wctype.in.h (wctype): New declaration.
19658         * lib/wctype.c: New file.
19659         * lib/wctype-impl.h: New file.
19660         * m4/wctype.m4: New file.
19661         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19662         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19663         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19664         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19665         * doc/posix-functions/wctype.texi: Mention the new module and the
19666         HP-UX 11.00 problem.
19667
19668 2011-02-06  Bruno Haible  <bruno@clisp.org>
19669
19670         wctype-h: Ensure wctype_t and wctrans_t are defined.
19671         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19672         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19673         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19674         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19675         HAVE_WCTRANS_T.
19676         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19677
19678 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19679
19680         flock: fix license typo
19681
19682         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19683         omitted.
19684
19685 2011-02-08  Bruno Haible  <bruno@clisp.org>
19686
19687         Split large sed scripts, for HP-UX sed.
19688         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19689         to avoid HP-UX limit of 99 commands, in the near future.
19690         * modules/stdlib (Makefile.am): Likewise.
19691         * modules/unistd (Makefile.am): Likewise.
19692         * modules/wchar (Makefile.am): Likewise.
19693         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19694         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19695         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19696
19697 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19698             Bruno Haible  <bruno@clisp.org>
19699
19700         stdlib: improve random_r modularization
19701         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19702         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19703         you also need the random_r module to get this material right.
19704         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19705         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19706         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19707
19708 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19709
19710         stdlib: don't depend on stdint
19711         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19712         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19713         be independent of whether stdint.h is needed.
19714         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19715         here, instead of ...
19716         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19717         struct random_data should be using the random_r module, not just
19718         the stdlib module (which wouldn't make sense: what package needs
19719         just struct random_data without also needing random_r?).
19720         * modules/stdlib (Depends-on): Remove stdint.
19721
19722         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19723         See the thread rooted at
19724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19725         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19726         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19727         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19728         __VMS)); previously it was always included (via fcntl--.h).
19729         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19730         hand; this is good enough for load averages.  Also, do not use
19731         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19732         flags directly if available and don't bother otherwise.  (Packages
19733         that need the extra reliability should use the modules that define
19734         these flags on older platforms that lack them.)
19735         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19736         fcntl-safer.
19737
19738 2011-02-08  Jim Meyering  <meyering@redhat.com>
19739
19740         di-set.h, ino-map.h: add multiple-inclusion guard
19741         Technically, the guard is required only for ino-map.h, due to its
19742         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19743         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19744         * lib/ino-map.h: Likewise.
19745
19746 2011-02-06  Bruno Haible  <bruno@clisp.org>
19747
19748         iswblank: Ensure declaration on glibc systems.
19749         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19750         * modules/iswblank (Dependencies): Add 'extensions'.
19751         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19752
19753 2011-02-06  Bruno Haible  <bruno@clisp.org>
19754
19755         New module 'iswblank'.
19756         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19757         * modules/iswblank: New file.
19758         * modules/wctype-h (Files): Remove lib/iswblank.c.
19759         (Makefile.am): Substitute GNULIB_ISWBLANK.
19760         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19761         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19762         (gl_WCTYPE_H_DEFAULTS): New macro.
19763         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19764         * modules/iswblank-tests: New file.
19765         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19766         * tests/test-wctype-h.c (main): Remove iswblank tests.
19767         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19768         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19769         of 'wctype-h'.
19770         * NEWS: Mention the change.
19771         * modules/mbchar (Depends-on): Add iswblank.
19772
19773 2011-02-08  Bruno Haible  <bruno@clisp.org>
19774
19775         di-set tests: Refactor.
19776         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19777         unnecessary includes.
19778         (ASSERT): Remove macro.
19779         (main): Make C90 compliant by avoiding variable declaration after
19780         statement.
19781         * modules/di-set-tests (Files): Add tests/macros.h.
19782
19783 2011-02-08  Bruno Haible  <bruno@clisp.org>
19784
19785         ino-map tests: Refactor.
19786         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19787         unnecessary includes.
19788         (ASSERT): Remove macro.
19789         (main): Make C90 compliant by avoiding variable declaration after
19790         statement.
19791         * modules/ino-map-tests (Files): Add tests/macros.h.
19792
19793 2011-02-08  Jim Meyering  <meyering@redhat.com>
19794
19795         di-set: add "const" to a cast
19796         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19797         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19798
19799 2011-02-06  Bruno Haible  <bruno@clisp.org>
19800
19801         Rename module 'wctype' to 'wctype-h'.
19802         * modules/wctype-h: Renamed from modules/wctype.
19803         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19804         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19805         (Files, Depends-on, Makefile.am): Update.
19806         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19807         (Files, Makefile.am): Update.
19808         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19809         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19810         * doc/posix-headers/wctype.texi: Update.
19811         * doc/posix-functions/iswalnum.texi: Update.
19812         * doc/posix-functions/iswalpha.texi: Update.
19813         * doc/posix-functions/iswblank.texi: Update.
19814         * doc/posix-functions/iswcntrl.texi: Update.
19815         * doc/posix-functions/iswdigit.texi: Update.
19816         * doc/posix-functions/iswgraph.texi: Update.
19817         * doc/posix-functions/iswlower.texi: Update.
19818         * doc/posix-functions/iswprint.texi: Update.
19819         * doc/posix-functions/iswpunct.texi: Update.
19820         * doc/posix-functions/iswspace.texi: Update.
19821         * doc/posix-functions/iswupper.texi: Update.
19822         * doc/posix-functions/iswxdigit.texi: Update.
19823         * doc/posix-functions/towlower.texi: Update.
19824         * doc/posix-functions/towupper.texi: Update.
19825         * NEWS: Mention the change.
19826         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19827         * modules/mbchar (Dependencies): Likewise.
19828         * modules/mbswidth (Dependencies): Likewise.
19829         * modules/quotearg (Dependencies): Likewise.
19830         * modules/regex (Dependencies): Likewise.
19831         * modules/wcscasecmp (Dependencies): Likewise.
19832         * modules/wcsncasecmp (Dependencies): Likewise.
19833         * modules/wcwidth (Dependencies): Likewise.
19834
19835 2011-02-06  Bruno Haible  <bruno@clisp.org>
19836
19837         New module 'wcswidth'.
19838         * modules/wcswidth: New file.
19839         * lib/wchar.in.h (wcswidth): New declaration.
19840         * lib/wcswidth.c: New file.
19841         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19842         * m4/wcswidth.m4: New file.
19843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19845         REPLACE_WCSWIDTH.
19846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19847         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19848         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19849         * doc/posix-functions/wcswidth.texi: Mention the new module.
19850
19851 2011-02-06  Bruno Haible  <bruno@clisp.org>
19852
19853         New module 'wcstok'.
19854         * modules/wcstok: New file.
19855         * lib/wchar.in.h (wcstok): New declaration.
19856         * lib/wcstok.c: New file.
19857         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19858         * m4/wcstok.m4: New file.
19859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19862         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19863         * doc/posix-functions/wcstok.texi: Mention the new module.
19864
19865 2011-02-06  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'wcsstr'.
19868         * modules/wcsstr: New file.
19869         * lib/wchar.in.h (wcsstr): New declaration.
19870         * lib/wcsstr.c: New file.
19871         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19872         * m4/wcsstr.m4: New file.
19873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19876         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19877         * doc/posix-functions/wcsstr.texi: Mention the new module.
19878
19879 2011-02-06  Bruno Haible  <bruno@clisp.org>
19880
19881         New module 'wcspbrk'.
19882         * modules/wcspbrk: New file.
19883         * lib/wchar.in.h (wcspbrk): New declaration.
19884         * lib/wcspbrk.c: New file.
19885         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19886         * m4/wcspbrk.m4: New file.
19887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19890         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19891         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19892
19893 2011-02-06  Bruno Haible  <bruno@clisp.org>
19894
19895         New module 'wcsspn'.
19896         * modules/wcsspn: New file.
19897         * lib/wchar.in.h (wcsspn): New declaration.
19898         * lib/wcsspn.c: New file.
19899         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19900         * m4/wcsspn.m4: New file.
19901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19904         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19905         * doc/posix-functions/wcsspn.texi: Mention the new module.
19906
19907 2011-02-06  Bruno Haible  <bruno@clisp.org>
19908
19909         New module 'wcscspn'.
19910         * modules/wcscspn: New file.
19911         * lib/wchar.in.h (wcscspn): New declaration.
19912         * lib/wcscspn.c: New file.
19913         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19914         * m4/wcscspn.m4: New file.
19915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19918         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19919         * doc/posix-functions/wcscspn.texi: Mention the new module.
19920
19921 2011-02-06  Bruno Haible  <bruno@clisp.org>
19922
19923         New module 'wcsrchr'.
19924         * modules/wcsrchr: New file.
19925         * lib/wchar.in.h (wcsrchr): New declaration.
19926         * lib/wcsrchr.c: New file.
19927         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19928         * m4/wcsrchr.m4: New file.
19929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19932         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19933         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19934
19935 2011-02-06  Bruno Haible  <bruno@clisp.org>
19936
19937         New module 'wcschr'.
19938         * modules/wcschr: New file.
19939         * lib/wchar.in.h (wcschr): New declaration.
19940         * lib/wcschr.c: New file.
19941         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19942         * m4/wcschr.m4: New file.
19943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19946         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19947         * doc/posix-functions/wcschr.texi: Mention the new module.
19948
19949 2011-02-06  Bruno Haible  <bruno@clisp.org>
19950
19951         New module 'wcsdup'.
19952         * modules/wcsdup: New file.
19953         * lib/wchar.in.h (wcsdup): New declaration.
19954         * lib/wcsdup.c: New file.
19955         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19956         * m4/wcsdup.m4: New file.
19957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19960         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19961         * doc/posix-functions/wcsdup.texi: Mention the new module.
19962
19963 2011-02-06  Bruno Haible  <bruno@clisp.org>
19964
19965         New module 'wcsxfrm'.
19966         * modules/wcsxfrm: New file.
19967         * lib/wchar.in.h (wcsxfrm): New declaration.
19968         * lib/wcsxfrm.c: New file.
19969         * lib/wcsxfrm-impl.h: New file.
19970         * m4/wcsxfrm.m4: New file.
19971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19974         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19975         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19976
19977 2011-02-06  Bruno Haible  <bruno@clisp.org>
19978
19979         New module 'wcscoll'.
19980         * modules/wcscoll: New file.
19981         * lib/wchar.in.h (wcscoll): New declaration.
19982         * lib/wcscoll.c: New file.
19983         * lib/wcscoll-impl.h: New file.
19984         * m4/wcscoll.m4: New file.
19985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19988         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19989         * doc/posix-functions/wcscoll.texi: Mention the new module.
19990
19991 2011-02-06  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'wcsncasecmp'.
19994         * modules/wcsncasecmp: New file.
19995         * lib/wchar.in.h (wcsncasecmp): New declaration.
19996         * lib/wcsncasecmp.c: New file.
19997         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19998         * m4/wcsncasecmp.m4: New file.
19999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20002         HAVE_WCSNCASECMP.
20003         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20004         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20005
20006 2011-02-06  Bruno Haible  <bruno@clisp.org>
20007
20008         New module 'wcscasecmp'.
20009         * modules/wcscasecmp: New file.
20010         * lib/wchar.in.h (wcscasecmp): New declaration.
20011         * lib/wcscasecmp.c: New file.
20012         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20013         * m4/wcscasecmp.m4: New file.
20014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20017         HAVE_WCSCASECMP.
20018         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20019         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20020
20021 2011-02-05  Bruno Haible  <bruno@clisp.org>
20022
20023         New module 'wcsncmp'.
20024         * modules/wcsncmp: New file.
20025         * lib/wchar.in.h (wcsncmp): New declaration.
20026         * lib/wcsncmp.c: New file.
20027         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20028         * m4/wcsncmp.m4: New file.
20029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20032         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20033         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20034
20035 2011-02-05  Bruno Haible  <bruno@clisp.org>
20036
20037         New module 'wcscmp'.
20038         * modules/wcscmp: New file.
20039         * lib/wchar.in.h (wcscmp): New declaration.
20040         * lib/wcscmp.c: New file.
20041         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20042         * m4/wcscmp.m4: New file.
20043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20046         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20047         * doc/posix-functions/wcscmp.texi: Mention the new module.
20048
20049 2011-02-05  Bruno Haible  <bruno@clisp.org>
20050
20051         New module 'wcsncat'.
20052         * modules/wcsncat: New file.
20053         * lib/wchar.in.h (wcsncat): New declaration.
20054         * lib/wcsncat.c: New file.
20055         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20056         * m4/wcsncat.m4: New file.
20057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20060         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20061         * doc/posix-functions/wcsncat.texi: Mention the new module.
20062
20063 2011-02-05  Bruno Haible  <bruno@clisp.org>
20064
20065         New module 'wcscat'.
20066         * modules/wcscat: New file.
20067         * lib/wchar.in.h (wcscat): New declaration.
20068         * lib/wcscat.c: New file.
20069         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20070         * m4/wcscat.m4: New file.
20071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20074         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20075         * doc/posix-functions/wcscat.texi: Mention the new module.
20076
20077 2011-02-05  Bruno Haible  <bruno@clisp.org>
20078
20079         New module 'wcpncpy'.
20080         * modules/wcpncpy: New file.
20081         * lib/wchar.in.h (wcpncpy): New declaration.
20082         * lib/wcpncpy.c: New file.
20083         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20084         * m4/wcpncpy.m4: New file.
20085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20087         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20088         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20089         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20090
20091 2011-02-05  Bruno Haible  <bruno@clisp.org>
20092
20093         New module 'wcsncpy'.
20094         * modules/wcsncpy: New file.
20095         * lib/wchar.in.h (wcsncpy): New declaration.
20096         * lib/wcsncpy.c: New file.
20097         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20098         * m4/wcsncpy.m4: New file.
20099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20102         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20103         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20104
20105 2011-02-05  Bruno Haible  <bruno@clisp.org>
20106
20107         New module 'wcpcpy'.
20108         * modules/wcpcpy: New file.
20109         * lib/wchar.in.h (wcpcpy): New declaration.
20110         * lib/wcpcpy.c: New file.
20111         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20112         * m4/wcpcpy.m4: New file.
20113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20115         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20116         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20117         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20118
20119 2011-02-05  Bruno Haible  <bruno@clisp.org>
20120
20121         New module 'wcscpy'.
20122         * modules/wcscpy: New file.
20123         * lib/wchar.in.h (wcscpy): New declaration.
20124         * lib/wcscpy.c: New file.
20125         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20126         * m4/wcscpy.m4: New file.
20127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20130         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20131         * doc/posix-functions/wcscpy.texi: Mention the new module.
20132
20133 2011-02-05  Bruno Haible  <bruno@clisp.org>
20134
20135         New module 'wcsnlen'.
20136         * modules/wcsnlen: New file.
20137         * lib/wchar.in.h (wcsnlen): New declaration.
20138         * lib/wcsnlen.c: New file.
20139         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20140         * m4/wcsnlen.m4: New file.
20141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20144         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20145         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20146
20147 2011-02-05  Bruno Haible  <bruno@clisp.org>
20148
20149         New module 'wcslen'.
20150         * modules/wcslen: New file.
20151         * lib/wchar.in.h (wcslen): New declaration.
20152         * lib/wcslen.c: New file.
20153         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20154         * m4/wcslen.m4: New file.
20155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20158         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20159         * doc/posix-functions/wcslen.texi: Mention the new module.
20160
20161 2011-02-05  Bruno Haible  <bruno@clisp.org>
20162
20163         New module 'wmemset'.
20164         * modules/wmemset: New file.
20165         * lib/wchar.in.h (wmemset): New declaration.
20166         * lib/wmemset.c: New file.
20167         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20168         * m4/wmemset.m4: New file.
20169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20171         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20172         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20173         * doc/posix-functions/wmemset.texi: Mention the new module.
20174
20175 2011-02-05  Bruno Haible  <bruno@clisp.org>
20176
20177         New module 'wmemmove'.
20178         * modules/wmemmove: New file.
20179         * lib/wchar.in.h (wmemmove): New declaration.
20180         * lib/wmemmove.c: New file.
20181         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20182         * m4/wmemmove.m4: New file.
20183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20185         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20186         HAVE_WMEMMOVE.
20187         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20188         * doc/posix-functions/wmemmove.texi: Mention the new module.
20189
20190 2011-02-05  Bruno Haible  <bruno@clisp.org>
20191
20192         New module 'wmemcpy'.
20193         * modules/wmemcpy: New file.
20194         * lib/wchar.in.h (wmemcpy): New declaration.
20195         * lib/wmemcpy.c: New file.
20196         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20197         * m4/wmemcpy.m4: New file.
20198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20200         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20201         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20202         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20203
20204 2011-02-05  Bruno Haible  <bruno@clisp.org>
20205
20206         New module 'wmemcmp'.
20207         * modules/wmemcmp: New file.
20208         * lib/wchar.in.h (wmemcmp): New declaration.
20209         * lib/wmemcmp.c: New file.
20210         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20211         * m4/wmemcmp.m4: New file.
20212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20214         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20215         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20216         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20217
20218 2011-02-07  Jim Meyering  <meyering@redhat.com>
20219
20220         di-set, ino-map: new modules, from coreutils
20221         * lib/di-set.c: New file.
20222         * lib/di-set.h: Likewise.
20223         * lib/ino-map.c: Likewise.
20224         * lib/ino-map.h: Likewise.
20225         * modules/di-set: Likewise.
20226         * modules/di-set-tests: Likewise.
20227         * modules/ino-map: Likewise.
20228         * modules/ino-map-tests: Likewise.
20229         * tests/test-di-set.c: Likewise.
20230         * tests/test-ino-map.c: Likewise.
20231
20232 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20233
20234         getloadavg: merge minor changes from Emacs
20235
20236         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20237         (getloadavg): Use memset, not bzero.
20238
20239         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20240         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20241         clash (bug#86).
20242
20243 2010-11-14  Bruno Haible  <bruno@clisp.org>
20244
20245         Allow multiple gnulib generated replacements to coexist.
20246         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20247         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20248         * lib/langinfo.in.h (nl_item): Likewise.
20249         * lib/math.in.h (_NaN, NAN): Likewise.
20250         * lib/netdb.in.h (struct addrinfo): Likewise.
20251         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20252         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20253         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20254         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20255         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20256         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20257         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20258         pthread_mutexattr_init, pthread_mutexattr_settype,
20259         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20260         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20261         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20262         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20263         * lib/sched.in.h (struct sched_param): Likewise.
20264         * lib/se-selinux.in.h (security_class_t, security_context_t,
20265         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20266         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20267         lsetfilecon, fsetfilecon, security_check_context,
20268         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20269         Likewise.
20270         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20271         Likewise.
20272         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20273         _gl_function_taking_int_returning_void_t, union sigval,
20274         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20275         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20276         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20277         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20278         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20279         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20280         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20281         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20282         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20283         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20284         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20285         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20286         socklen_t, rpl_fd_isset): Likewise.
20287         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20288         * lib/sys_time.in.h (struct timeval): Likewise.
20289         * lib/sys_times.in.h (struct tms): Likewise.
20290         * lib/sys_utsname.in.h (struct utsname):
20291         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20292         * lib/unistd.in.h (getpagesize): Likewise.
20293         * lib/wchar.in.h (mbstate_t): Likewise.
20294         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20295         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20296         towlower, towupper): Likewise.
20297         Reported by Sam Steingold <sds@gnu.org>.
20298
20299 2011-02-05  Eric Blake  <eblake@redhat.com>
20300
20301         unsetenv: work around Haiku issues
20302         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20303         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20304
20305 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20306
20307         libposix: avoid calling error() within libposix
20308         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20309         is defined.
20310
20311 2011-02-05  Eric Blake  <eblake@redhat.com>
20312
20313         strerror_r-posix: port to cygwin
20314         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20315         implementation.
20316         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20317         * tests/test-strerror_r.c (main): Fix test.
20318         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20319         issue.
20320
20321 2011-02-05  Bruno Haible  <bruno@clisp.org>
20322
20323         New module 'wmemchr'.
20324         * modules/wmemchr: New file.
20325         * lib/wchar.in.h (wmemchr): New declaration.
20326         * lib/wmemchr.c: New file.
20327         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20328         * m4/wmemchr.m4: New file.
20329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20331         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20332         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20333         * doc/posix-functions/wmemchr.texi: Mention the new module.
20334
20335 2011-02-04  Eric Blake  <eblake@redhat.com>
20336
20337         fdopendir: detect FreeBSD bug
20338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20339         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20340
20341 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20342
20343         stdbool: do not define HAVE_STDBOOL_H
20344         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20345         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20346         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20347         imported from the latest Autoconf git.  It was motivated by Emacs,
20348         which uses gnulib but does not need HAVE_STDBOOL_H.
20349
20350 2011-02-04  Bruno Haible  <bruno@clisp.org>
20351
20352         wcsnrtombs: Prepare for new module wwcsnrtombs.
20353         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20354         * lib/wcsnrtombs.c: Include it.
20355         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20356
20357         wcsrtombs: Prepare for new module wwcsrtombs.
20358         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20359         * lib/wcsrtombs.c: Include it.
20360         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20361
20362         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20363         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20364         * lib/mbsnrtowcs.c: Include it.
20365         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20366
20367         mbsrtowcs: Prepare for new module mbsrtowwcs.
20368         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20369         * lib/mbsrtowcs.c: Include it.
20370         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20371
20372 2011-02-04  Bruno Haible  <bruno@clisp.org>
20373
20374         vasnprintf: Reduce use of malloc for small format strings.
20375         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20376         (arguments): Add room for the first 7 arguments.
20377         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20378         (char_directives, u8_directives, u16_directives, u32_directives): Add
20379         room for the first 7 directives.
20380         * lib/printf-parse.c: Include <string.h>.
20381         (PRINTF_PARSE): Change memory handling code so that it uses the first
20382         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20383         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20384         Reported by Pádraig Brady <P@draigbrady.com>.
20385
20386 2011-01-31  Eric Blake  <eblake@redhat.com>
20387
20388         dup2: work around Haiku bug
20389         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20390         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20391         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20392         * tests/test-dup2.c (main): Enhance test.
20393
20394 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20395
20396         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20397         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20398         declared by eglibc 2.11.2.
20399         * lib/stdio.in.h: Likewise.
20400
20401 2011-01-31  Eric Blake  <eblake@redhat.com>
20402
20403         ignore-value: add missing test dependency
20404         * tests/test-ignore-value.c: Revert previous change; stdio.h
20405         provides off_t.
20406         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20407
20408 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         mktime: clarify long_int width checking
20411         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20412         the top level, to make it clearer that the assumption about
20413         long_int width is being checked.  See
20414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20415
20416 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20417
20418         ignore-value: Fix self-test.
20419         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20420
20421 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20422
20423         TYPE_MAXIMUM: avoid theoretically undefined behavior
20424         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20425         negative number, which the C Standard says has undefined behavior.
20426         In practice this is not a problem, but might as well do it by the book.
20427         Reported by Rich Felker and Eric Blake; see
20428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20429         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20430         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20431         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20432         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20433         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20434         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20435
20436         mktime: #undef mktime before #defining it
20437         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20438
20439         mktime: systematically normalize tm_isdst comparisons
20440         * lib/mktime.c (isdst_differ): New function.
20441         (__mktime_internal): Use it systematically for all isdst comparisons.
20442         This completes the fix for libc BZ #6723, and removes the need for
20443         normalizing tm_isdst.  See
20444         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20445         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20446
20447         mktime: fix some integer overflow issues and sidestep the rest
20448
20449         This was prompted by a bug report by Benjamin Lindner for MinGW
20450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20451         His bug is due to signed integer overflow (0 - INT_MIN), and I
20452         I scanned through mktime.c looking for other integer overflow
20453         problems, fixing all the bugs I found.
20454
20455         Although the C Standard says the resulting code is still not safe
20456         in the presence of integer overflow, in practice it should be good
20457         enough for all real-world two's-complement implementations, except
20458         for debugging environments that deliberately trap on integer
20459         overflow (e.g., gcc -ftrapv).
20460
20461         * lib/mktime.c (WRAPV): New macro.
20462         (SHR): Also check that long_int and time_t shift right in the
20463         usual way, before using the fast-but-unportable method.
20464         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20465         used.  The code already assumed two's complement, so there's
20466         no need to test for alternatives.  All uses removed.
20467         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20468         the C standard.  Problem reported by Rich Felker in
20469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20470         (twos_complement_arithmetic): Also check long_int and time_t.
20471         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20472         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20473         (__mktime_internal): Avoid integer overflow with unary subtraction
20474         in two instances where -1 - X is an adequate replacement for -X,
20475         since the calculations are approximate.
20476
20477 2011-01-29  Eric Blake  <eblake@redhat.com>
20478
20479         mktime: avoid infinite loop
20480         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20481         type; behavior is still undefined but portable to all known targets.
20482         Reported by Rich Felker.
20483
20484 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20485
20486         rename, unlink, same-inode: Relicense.
20487         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20488         * modules/unlink (License): Likewise.
20489         * modules/same-inode (License): Likewise.
20490
20491 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20492
20493         mktime: avoid problems on NetBSD 5 / i386
20494         * lib/mktime.c (long_int): New type.  This works around a problem
20495         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20496         but time_t is 64 bits, and where I expect the existing code is
20497         wrong in some cases.
20498         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20499         (ydhms_diff): Bring back the compile-time check for wide-enough
20500         year and yday.
20501
20502         mktime: fix misspelling in comment
20503         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20504         This merges all recent glibc changes of importance.
20505
20506 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20507
20508         move-if-change: cope with concurrent mv of identical file.
20509         * build-aux/move-if-change (CMPPROG): Accept environment
20510         variable as an override for `cmp'.
20511         (usage): Document CMPPROG.
20512         Adjust comparison to drop stdout.  Cope with failure of mv if
20513         the target file exists and is identical to the source, for
20514         parallel builds.
20515         Report from H.J. Lu against binutils in PR binutils/12283.
20516
20517 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20518
20519         * users.txt: Mention sharutils.
20520
20521 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20522
20523         * users.txt: Mention OATH Toolkit.
20524
20525 2011-01-27  Bruno Haible  <bruno@clisp.org>
20526
20527         Prepare for supporting FreeBSD 10.
20528         * build-aux/config.libpath: Remove handling of freebsd1*.
20529
20530 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20531
20532         Prepare for supporting FreeBSD 10.
20533         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20534         match FreeBSD 10.0.
20535
20536 2011-01-27  Bruno Haible  <bruno@clisp.org>
20537
20538         vma-iter, get-rusage-as: Add OpenBSD support.
20539         * modules/vma-iter (configure.ac): Test for mquery.
20540         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20541         * lib/vma-iter.c: Include <sys/mman.h>.
20542         (vma_iterate): Add an implementation based on mquery().
20543         * lib/resource-ext.h (get_rusage_as): Update comments.
20544         * lib/get-rusage-as.c: Likewise.
20545         * lib/get-rusage-data.c: Likewise.
20546
20547 2011-01-26  Karl Berry  <karl@gnu.org>
20548
20549         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20550         variables to make it easier to override the makeinfo program used.
20551
20552 2011-01-26  Eric Blake  <eblake@redhat.com>
20553
20554         fcntl: work around Haiku F_DUPFD bugs
20555         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20556         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20557         cloexec bit on duplication.
20558         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20559
20560 2011-01-26  Bruno Haible  <bruno@clisp.org>
20561
20562         Enable memory leak tests on AIX.
20563         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20564         * tests/test-fprintf-posix3.c (main): Likewise.
20565
20566 2011-01-26  Bruno Haible  <bruno@clisp.org>
20567
20568         Tests for module 'get-rusage-data'.
20569         * modules/get-rusage-data-tests: New file.
20570         * tests/test-get-rusage-data.c: New file.
20571
20572         New module 'get-rusage-data'.
20573         * lib/resource-ext.h (get_rusage_data): New declaration.
20574         * lib/get-rusage-data.c: New file.
20575         * modules/get-rusage-data: New file.
20576
20577 2011-01-25  Bruno Haible  <bruno@clisp.org>
20578
20579         get-rusage-as: Allow for easier testing.
20580         * lib/resource-ext.h (get_rusage_as): Add comment.
20581         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20582         (main): New function for interactive testing.
20583
20584 2011-01-25  Bruno Haible  <bruno@clisp.org>
20585
20586         vma-iter: Treat Haiku like BeOS.
20587         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20588         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20589
20590 2011-01-25  Eric Blake  <eblake@redhat.com>
20591
20592         c-stack: fix regression on cygwin when libsigsegv is present
20593         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20594
20595 2011-01-24  Bruno Haible  <bruno@clisp.org>
20596
20597         vma-iter: Avoid empty intervals.
20598         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20599         on an empty interval.
20600
20601 2011-01-24  Jim Meyering  <meyering@redhat.com>
20602
20603         u64: remove unnecessary #include
20604         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20605
20606 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20609         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20610
20611 2011-01-23  Bruno Haible  <bruno@clisp.org>
20612
20613         New module 'vma-iter'.
20614         * lib/vma-iter.h: New file.
20615         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20616         * modules/vma-iter: New file.
20617         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20618         for get_rusage_as_via_iterator.
20619         (vma_iterate_callback): New function.
20620         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20621         * modules/get-rusage-as (Depends-on): Add vma-iter.
20622
20623 2011-01-23  Bruno Haible  <bruno@clisp.org>
20624
20625         uninorm: Tweak includes.
20626         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20627         Reported by Jim Meyering.
20628
20629 2011-01-23  Bruno Haible  <bruno@clisp.org>
20630
20631         get-rusage-as: Improve on NetBSD.
20632         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20633         /proc, like on FreeBSD.
20634
20635 2011-01-23  Jim Meyering  <meyering@redhat.com>
20636
20637         xreadlink.h: remove unnecessary #include
20638         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20639
20640         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20641         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20642
20643 2011-01-23  Bruno Haible  <bruno@clisp.org>
20644
20645         get-rusage-as: Fix bug.
20646         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20647         original limit when aborting the first loop.
20648
20649 2011-01-23  Bruno Haible  <bruno@clisp.org>
20650
20651         wctype: Ensure valid C syntax.
20652         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20653         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20654
20655 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20659         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20660         as they are needed only for configure's test case.
20661         This removes two unnecessary symbols from config.h.
20662
20663         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20664         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20666         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20667         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20668         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20669         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20670         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20671         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20672         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20673         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20676         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20677         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20678         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20679         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20680         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20681
20682 2011-01-21  Eric Blake  <eblake@redhat.com>
20683
20684         maintainer-makefile: work with older git for submodule check
20685         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20686         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20687         Reported by Matthias Bolte.
20688
20689         bootstrap: minor portability fixes
20690         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20691         (usage): Omit leading capital and trailing . on help phrases, per
20692         GNU Coding Standards.
20693         (check_versions, top level): Prefix messages with script name.
20694
20695 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20696
20697         bootstrap: support --no-git option
20698         * build-aux/bootstrap: Add --no-git option, to be used when
20699         --gnulib-srcdir points to the exact desired checkout.
20700
20701 2011-01-21  Eric Blake  <eblake@redhat.com>
20702
20703         strerror_r-posix: work with glibc 2.13
20704         * lib/strerror_r.c (strerror_r): Fix return type.
20705
20706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20707             Bruno Haible  <bruno@clisp.org>
20708
20709         uN_strstr: New unit tests.
20710         * modules/unistr/u8-strstr-tests: New file.
20711         * modules/unistr/u16-strstr-tests: New file.
20712         * modules/unistr/u32-strstr-tests: New file.
20713         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20714         * tests/unistr/test-u8-strstr.c: New file.
20715         * tests/unistr/test-u16-strstr.c: New file.
20716         * tests/unistr/test-u32-strstr.c: New file.
20717
20718 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20719             Bruno Haible  <bruno@clisp.org>
20720
20721         Make uN_strstr functions O(n) worst-case.
20722         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20723         16-bit and 32-bit unit cases, use the unibyte algorithm from
20724         lib/mbsstr.c.
20725         * lib/unistr/u8-strstr.c: Include <string.h>.
20726         (UNIT_IS_UINT8_T): New macro.
20727         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20728         (U_STRLEN, U_STRNLEN): New macros.
20729         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20730         (U_STRLEN, U_STRNLEN): New macros.
20731         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20732         (configure.ac): Update required libunistring version.
20733         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20734         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20735         malloca.
20736         (configure.ac): Update required libunistring version.
20737         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20738         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20739         malloca.
20740         (configure.ac): Update required libunistring version.
20741
20742 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20743             Bruno Haible  <bruno@clisp.org>
20744
20745         Prepare for faster uN_strstr functions.
20746         * lib/str-kmp.h: Support definable UNITs.
20747         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20748         needle_len argument.
20749         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20750         * lib/mbscasestr.c (mbscasestr): Likewise.
20751
20752 2011-01-21  Pádraig Brady <P@draigBrady.com>
20753
20754         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20755         * tests/test-malloca.c (main): Unset the environment variable
20756         to greatly speed up the test.
20757         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20758         * modules/malloca-tests: Depend on unsetenv.
20759
20760 2011-01-21  Pádraig Brady <P@draigBrady.com>
20761
20762         ignore-value: remove stdint dependency
20763         * lib/ignore-value.h: Remove <stdint.h>
20764         * modules/ignore-value: Remove stdint dependency.
20765
20766 2011-01-21  Jim Meyering  <meyering@redhat.com>
20767
20768         maint.mk: adjust variable name to be consistent with other gl_ vars
20769         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20770         to be lower case.
20771
20772 2011-01-20  Jim Meyering  <meyering@redhat.com>
20773
20774         maint.mk: make "check" depend on public-submodule-commit by default
20775         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20776
20777 2011-01-20  Bruno Haible  <bruno@clisp.org>
20778
20779         mbfile, mbiter: Complete change from 2008-12-21.
20780         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20781         * m4/mbiter.m4 (gl_MBITER): Likewise.
20782
20783 2011-01-20  Jim Meyering  <meyering@redhat.com>
20784
20785         init.sh: insert space between each function name and "()"
20786         * tests/init.sh: Make it a little easier to see that a function's
20787         name is "warn_", and not "warn" when looking at the first part of
20788         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20789
20790 2011-01-20  Jim Meyering  <meyering@redhat.com>
20791
20792         mountlist: clean up code formatting
20793         * lib/mountlist.c (read_file_system_list): Split a long line,
20794         correct bracing style, use NULL in place of "(struct statfs *)0",
20795         don't parenthesize return value, add spaces around "=" and after
20796         ";-in-for-stmt".
20797
20798 2011-01-14  Markus Duft <mduft@gentoo.org>
20799
20800         mountlist: add support for Interix
20801         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20802         Apply statvfs to all entries of /dev/fs.
20803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20804         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20805
20806 2011-01-20  Jim Meyering  <meyering@redhat.com>
20807
20808         maint.mk: improve the public-submodule-commit rule
20809         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20810         to suppress printing of its commands... unless V=1.
20811         Add git submodule's --quiet option to suppress printing of e.g.,
20812         "Entering gnulib" output.
20813         "cd" into $(srcdir) before running git submodule.
20814
20815 2011-01-20  Bruno Haible  <bruno@clisp.org>
20816
20817         include_next: Fix bug introduced on 2011-01-18.
20818         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20819         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20820         ac_cv_header_... variable if the second argument is not 'check'.
20821         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20822         gl_NEXT_HEADERS_INTERNAL.
20823
20824 2011-01-20  Bruno Haible  <bruno@clisp.org>
20825
20826         Allow the user to avoid the GNULIB_TEST_* macros.
20827         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20828         Suggested by Paul Eggert.
20829
20830 2011-01-14  Jim Meyering  <meyering@redhat.com>
20831
20832         bootstrap: avoid failure when there is no .gitmodules file
20833         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20834         has been assigned to, even when its value is the empty string.
20835         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20836         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20837         Reported by John W. Eaton <jwe@gnu.org>.
20838
20839 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20840
20841         assume <ctype.h>, ..., <time.h> exist
20842         For years gnulib has been assuming the existence of the headers
20843         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20844         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20845         them, since they don't appear to be needed.
20846         * README (Portability guidelines): Document this.
20847         * lib/flock.c: Assume <fcntl.h> exists.
20848         * lib/regex_internal.h: Assume <locale.h> exists.
20849         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20850         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20851         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20852         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20853         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20854         * m4/regex.m4 (gl_REGEX): Likewise.
20855         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20856         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20857         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20858         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20859         * tests/test-argp.c: Likewise.
20860         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20861
20862         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20863         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20864         AA_APPLE_UNIVERSAL_BUILD.  See
20865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20866         * NEWS: Document this.
20867
20868 2011-01-19  Eric Blake  <eblake@redhat.com>
20869
20870         c-stack: assume stack overflow if SA_SIGINFO unsupported
20871         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20872         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20873         sigaction will work.
20874         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20875         behavior match Linux.
20876         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20877
20878         stdbool-tests: accomodate Haiku
20879         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20880
20881         binary-io: fix O_TEXT on Haiku
20882         * modules/binary-io (Depends-on): Add fcntl-h.
20883         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20884         than blindly undefining O_TEXT.
20885         Reported by Scott McCreary.
20886
20887 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         include_next: do not check for standard headers like stddef.h
20890
20891         I found this problem when modifying Emacs to use gnulib.
20892         I noticed that it added HAVE_STDDEF_H to config.h, even though
20893         gnulib always assumes <stddef.h> exists as per README and this
20894         symbol is unnecessary.
20895         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20896         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20897         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20898         faster for headers like stddef.h that are known to exist.
20899         (gl_CHECK_NEXT_HEADERS): Use it.
20900         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20901         rather than gl_CHECK_NEXT_HEADERS.
20902         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20903         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20904
20905 2011-01-18  Eric Blake  <eblake@redhat.com>
20906
20907         ansi-c++-opt: skip C++ dependency style if C++ is unused
20908         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20909         tests when we know C++ compilation is not desired.
20910         Reported by Scott McCreary.
20911
20912 2011-01-18  Bruno Haible  <bruno@clisp.org>
20913
20914         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20915         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20916         (main): Perform test also when getrlimit and setrlimit don't exist or
20917         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20918         limiting the address space size using setrlimit, compare the address
20919         space size before and after the the test.
20920         * tests/test-dprintf-posix2.c: Likewise.
20921         * tests/test-fprintf-posix3.sh: Update skip messages.
20922         * tests/test-dprintf-posix2.sh: Likewise.
20923         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20924         * modules/dprintf-posix-tests (Depends-on): Likewise.
20925         Reported by Bruce Korb <bkorb@gnu.org> and
20926         Gary V. Vaughan <gary@gnu.org>.
20927
20928 2011-01-18  Bruno Haible  <bruno@clisp.org>
20929
20930         get-rusage-as: Improvement for Cygwin.
20931         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20932         areas that are merely reserved.
20933
20934 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20935
20936         strftime: remove dependencies on multibyte modules
20937
20938         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20939         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20940         only if __osf__ is defined, and I suspect OSF doesn't need these
20941         other modules.  If my guess is wrong, we'll need to come up with a
20942         variant of strftime that doesn't need the multibyte modules.
20943
20944         I discovered this problem when attempting modify Emacs to use the
20945         strftime module.  With the previous gnulib, this caused Emacs to
20946         need 31 new files, ranging from lib/config.charset to
20947         m4/wint_t.m4.  This was overkill and I expect would be offputting
20948         to the Emacs maintainers.  After this change, only 6 new files are
20949         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20950         stdbool.m4, and tm_gmtoff.m4.
20951
20952         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20953         Suggested by Bruno Haible in
20954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20955         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20956         and do not check for wchar.h.
20957         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20958         (Depends-on): Remove mbrlen, mbsinit, wchar.
20959
20960 2011-01-18  Bruno Haible  <bruno@clisp.org>
20961
20962         Tests for module 'get-rusage-as'.
20963         * modules/get-rusage-as-tests: New file.
20964         * tests/test-get-rusage-as.c: New file.
20965
20966         New module 'get-rusage-as'.
20967         * modules/get-rusage-as: New file.
20968         * lib/resource-ext.h: New file.
20969         * lib/get-rusage-as.c: New file.
20970
20971 2011-01-17  Eric Blake  <eblake@redhat.com>
20972
20973         sigaction: relax license from LGPLv3+ to LGPLv2+
20974         * modules/sigaction (License): Relax to LGPLv2+.
20975
20976 2011-01-14  Bruno Haible  <bruno@clisp.org>
20977
20978         filemode: Make function declarations usable in C++ mode.
20979         * lib/filemode.h: Enclose function declarations in extern "C" block.
20980         Reported by John W. Eaton <jwe@gnu.org>.
20981
20982 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20983
20984         save-cwd: no longer include "xgetcwd.h"
20985         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20986         This avoids a compilation failure in projects that use save-cwd
20987         without also using the xgetcwd module.
20988
20989 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20990
20991         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20992         This is so that a program like Emacs, which needs only dtoastr,
20993         does not have to bother with distributing and compiling ftoastr
20994         and ldtoastr.
20995         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20996         * modules/dtoastr, modules/ldtoastr: New files.
20997         * modules/ftoastr: Now works just for 'float'.
20998         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20999         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21000         dtoastr.c, ldtoastr.c.
21001
21002 2011-01-11  Jim Meyering  <meyering@redhat.com>
21003
21004         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21005         There is no need to work around the lack of the fchdir function,
21006         since gnulib can now provide a replacement when required.
21007         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21008         * modules/save-cwd (Depends-on): Add fchdir.
21009
21010 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         openat, save-cwd: avoid xmalloc
21013
21014         This removes a direct (but undocumented) dependency of openat on
21015         xalloc, along with an indirect dependency via save-cwd.  It also
21016         removes a dependency of save-cwd on xgetcwd, and thereby
21017         indirectly on xalloc.  This change causes the openat substitute
21018         to fall back on save_cwd when memory is tight, and for save_cwd to
21019         fail instead of dying when memory is tight, but that's good enough.
21020         Problem and initial idea for fix reported by Bastien Roucaries in
21021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21022
21023         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21024         xalloc.h (for xmalloc).
21025         (openat_proc_name): Use malloc, not xmalloc.
21026         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21027         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21028
21029         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21030         This avoids heap allocation for file names whose lengths are in
21031         the range 512..1023, with the upper bound increasing to at most
21032         4031 depending on the platform's PATH_MAX.  (We do not want
21033         pathmax.h here as it might supply a non-constant PATH_MAX.)
21034         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21035         Perhaps they should be moved to malloca.h?
21036         (OPENAT_BUFFER_SIZE): Use them.
21037
21038 2011-01-10  Bruno Haible  <bruno@clisp.org>
21039
21040         doc: Update users.txt.
21041         * users.txt: Add recutils.
21042
21043 2011-01-09  Karl Berry  <karl@gnu.org>
21044
21045         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21046
21047         * doc/configmake.texi: New file.
21048         * doc/gnulib.texi: Include it.
21049         * modules/configmake: Move documentation from here.
21050
21051 2011-01-09  Bruno Haible  <bruno@clisp.org>
21052
21053         Update to Unicode 6.0.0.
21054         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21055         (get_lbp): Update for Unicode 6.0.0.
21056         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21057         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21058         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21059         U+11001, U+11038..U+11046. Remove U+06DE.
21060         (uc_width): Fix bounds of planes.
21061         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21062         lib/uniwidth/width.c.
21063         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21064         trailing whitespace removed.
21065         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21066         without comments, but with the original copyright notice.
21067         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21068         * lib/unicase/ignorable.h: Likewise.
21069         * lib/unicase/tocasefold.h: Likewise.
21070         * lib/unicase/tolower.h: Likewise.
21071         * lib/unicase/totitle.h: Likewise.
21072         * lib/unicase/toupper.h: Likewise.
21073         * lib/unictype/bidi_of.h: Likewise.
21074         * lib/unictype/blocks.h: Likewise.
21075         * lib/unictype/categ_C.h: Likewise.
21076         * lib/unictype/categ_Cn.h: Likewise.
21077         * lib/unictype/categ_L.h: Likewise.
21078         * lib/unictype/categ_Ll.h: Likewise.
21079         * lib/unictype/categ_Lm.h: Likewise.
21080         * lib/unictype/categ_Lo.h: Likewise.
21081         * lib/unictype/categ_Lu.h: Likewise.
21082         * lib/unictype/categ_M.h: Likewise.
21083         * lib/unictype/categ_Mc.h: Likewise.
21084         * lib/unictype/categ_Me.h: Likewise.
21085         * lib/unictype/categ_Mn.h: Likewise.
21086         * lib/unictype/categ_N.h: Likewise.
21087         * lib/unictype/categ_Nd.h: Likewise.
21088         * lib/unictype/categ_No.h: Likewise.
21089         * lib/unictype/categ_P.h: Likewise.
21090         * lib/unictype/categ_Po.h: Likewise.
21091         * lib/unictype/categ_S.h: Likewise.
21092         * lib/unictype/categ_Sc.h: Likewise.
21093         * lib/unictype/categ_Sk.h: Likewise.
21094         * lib/unictype/categ_Sm.h: Likewise.
21095         * lib/unictype/categ_So.h: Likewise.
21096         * lib/unictype/categ_of.h: Likewise.
21097         * lib/unictype/combining.h: Likewise.
21098         * lib/unictype/ctype_alnum.h: Likewise.
21099         * lib/unictype/ctype_alpha.h: Likewise.
21100         * lib/unictype/ctype_graph.h: Likewise.
21101         * lib/unictype/ctype_lower.h: Likewise.
21102         * lib/unictype/ctype_print.h: Likewise.
21103         * lib/unictype/ctype_punct.h: Likewise.
21104         * lib/unictype/ctype_upper.h: Likewise.
21105         * lib/unictype/decdigit.h: Likewise.
21106         * lib/unictype/digit.h: Likewise.
21107         * lib/unictype/numeric.h: Likewise.
21108         * lib/unictype/pr_alphabetic.h: Likewise.
21109         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21110         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21111         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21112         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21113         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21114         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21115         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21116         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21117         * lib/unictype/pr_case_ignorable.h: Likewise.
21118         * lib/unictype/pr_cased.h: Likewise.
21119         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21120         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21121         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21122         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21123         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21124         * lib/unictype/pr_combining.h: Likewise.
21125         * lib/unictype/pr_composite.h: Likewise.
21126         * lib/unictype/pr_currency_symbol.h: Likewise.
21127         * lib/unictype/pr_decimal_digit.h: Likewise.
21128         * lib/unictype/pr_deprecated.h: Likewise.
21129         * lib/unictype/pr_format_control.h: Likewise.
21130         * lib/unictype/pr_grapheme_base.h: Likewise.
21131         * lib/unictype/pr_grapheme_extend.h: Likewise.
21132         * lib/unictype/pr_grapheme_link.h: Likewise.
21133         * lib/unictype/pr_id_continue.h: Likewise.
21134         * lib/unictype/pr_id_start.h: Likewise.
21135         * lib/unictype/pr_ideographic.h: Likewise.
21136         * lib/unictype/pr_lowercase.h: Likewise.
21137         * lib/unictype/pr_math.h: Likewise.
21138         * lib/unictype/pr_numeric.h: Likewise.
21139         * lib/unictype/pr_other_alphabetic.h: Likewise.
21140         * lib/unictype/pr_other_id_continue.h: Likewise.
21141         * lib/unictype/pr_other_math.h: Likewise.
21142         * lib/unictype/pr_punctuation.h: Likewise.
21143         * lib/unictype/pr_sentence_terminal.h: Likewise.
21144         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21145         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21146         * lib/unictype/pr_unified_ideograph.h: Likewise.
21147         * lib/unictype/pr_uppercase.h: Likewise.
21148         * lib/unictype/pr_xid_continue.h: Likewise.
21149         * lib/unictype/pr_xid_start.h: Likewise.
21150         * lib/unictype/scripts.h: Likewise.
21151         * lib/unictype/scripts_byname.gperf: Likewise.
21152         * lib/unictype/sy_java_ident.h: Likewise.
21153         * lib/unigbrk/gbrkprop.h: Likewise.
21154         * lib/unilbrk/lbrkprop1.h: Likewise.
21155         * lib/unilbrk/lbrkprop2.h: Likewise.
21156         * lib/uninorm/decomposition-table2.h: Likewise.
21157         * lib/uniwbrk/wbrkprop.h: Likewise.
21158         * tests/unicase/test-cased.c: Likewise.
21159         * tests/unicase/test-ignorable.c: Likewise.
21160         * tests/unicase/test-uc_tolower.c: Likewise.
21161         * tests/unicase/test-uc_totitle.c: Likewise.
21162         * tests/unicase/test-uc_toupper.c: Likewise.
21163         * tests/unictype/test-categ_C.c: Likewise.
21164         * tests/unictype/test-categ_Cn.c: Likewise.
21165         * tests/unictype/test-categ_L.c: Likewise.
21166         * tests/unictype/test-categ_Ll.c: Likewise.
21167         * tests/unictype/test-categ_Lm.c: Likewise.
21168         * tests/unictype/test-categ_Lo.c: Likewise.
21169         * tests/unictype/test-categ_Lu.c: Likewise.
21170         * tests/unictype/test-categ_M.c: Likewise.
21171         * tests/unictype/test-categ_Mc.c: Likewise.
21172         * tests/unictype/test-categ_Me.c: Likewise.
21173         * tests/unictype/test-categ_Mn.c: Likewise.
21174         * tests/unictype/test-categ_N.c: Likewise.
21175         * tests/unictype/test-categ_Nd.c: Likewise.
21176         * tests/unictype/test-categ_No.c: Likewise.
21177         * tests/unictype/test-categ_P.c: Likewise.
21178         * tests/unictype/test-categ_Po.c: Likewise.
21179         * tests/unictype/test-categ_S.c: Likewise.
21180         * tests/unictype/test-categ_Sc.c: Likewise.
21181         * tests/unictype/test-categ_Sk.c: Likewise.
21182         * tests/unictype/test-categ_Sm.c: Likewise.
21183         * tests/unictype/test-categ_So.c: Likewise.
21184         * tests/unictype/test-ctype_alnum.c: Likewise.
21185         * tests/unictype/test-ctype_alpha.c: Likewise.
21186         * tests/unictype/test-ctype_graph.c: Likewise.
21187         * tests/unictype/test-ctype_lower.c: Likewise.
21188         * tests/unictype/test-ctype_print.c: Likewise.
21189         * tests/unictype/test-ctype_punct.c: Likewise.
21190         * tests/unictype/test-ctype_upper.c: Likewise.
21191         * tests/unictype/test-decdigit.h: Likewise.
21192         * tests/unictype/test-digit.h: Likewise.
21193         * tests/unictype/test-numeric.h: Likewise.
21194         * tests/unictype/test-pr_alphabetic.c: Likewise.
21195         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21196         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21197         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21198         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21199         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21200         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21201         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21202         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21203         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21204         * tests/unictype/test-pr_cased.c: Likewise.
21205         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21206         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21207         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21208         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21209         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21210         * tests/unictype/test-pr_combining.c: Likewise.
21211         * tests/unictype/test-pr_composite.c: Likewise.
21212         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21213         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21214         * tests/unictype/test-pr_deprecated.c: Likewise.
21215         * tests/unictype/test-pr_format_control.c: Likewise.
21216         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21217         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21218         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21219         * tests/unictype/test-pr_id_continue.c: Likewise.
21220         * tests/unictype/test-pr_id_start.c: Likewise.
21221         * tests/unictype/test-pr_ideographic.c: Likewise.
21222         * tests/unictype/test-pr_lowercase.c: Likewise.
21223         * tests/unictype/test-pr_math.c: Likewise.
21224         * tests/unictype/test-pr_numeric.c: Likewise.
21225         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21226         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21227         * tests/unictype/test-pr_other_math.c: Likewise.
21228         * tests/unictype/test-pr_punctuation.c: Likewise.
21229         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21230         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21231         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21232         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21233         * tests/unictype/test-pr_uppercase.c: Likewise.
21234         * tests/unictype/test-pr_xid_continue.c: Likewise.
21235         * tests/unictype/test-pr_xid_start.c: Likewise.
21236         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21237         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21238         changes.
21239         * lib/unictype/categ_Cc.h: Likewise.
21240         * lib/unictype/categ_Cf.h: Likewise.
21241         * lib/unictype/categ_Co.h: Likewise.
21242         * lib/unictype/categ_Cs.h: Likewise.
21243         * lib/unictype/categ_Lt.h: Likewise.
21244         * lib/unictype/categ_Nl.h: Likewise.
21245         * lib/unictype/categ_Pc.h: Likewise.
21246         * lib/unictype/categ_Pd.h: Likewise.
21247         * lib/unictype/categ_Pe.h: Likewise.
21248         * lib/unictype/categ_Pf.h: Likewise.
21249         * lib/unictype/categ_Pi.h: Likewise.
21250         * lib/unictype/categ_Ps.h: Likewise.
21251         * lib/unictype/categ_Z.h: Likewise.
21252         * lib/unictype/categ_Zl.h: Likewise.
21253         * lib/unictype/categ_Zp.h: Likewise.
21254         * lib/unictype/categ_Zs.h: Likewise.
21255         * lib/unictype/ctype_blank.h: Likewise.
21256         * lib/unictype/ctype_cntrl.h: Likewise.
21257         * lib/unictype/ctype_digit.h: Likewise.
21258         * lib/unictype/ctype_space.h: Likewise.
21259         * lib/unictype/ctype_xdigit.h: Likewise.
21260         * lib/unictype/mirror.h: Likewise.
21261         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21262         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21263         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21264         * lib/unictype/pr_bidi_control.h: Likewise.
21265         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21266         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21267         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21268         * lib/unictype/pr_bidi_pdf.h: Likewise.
21269         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21270         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21271         * lib/unictype/pr_dash.h: Likewise.
21272         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21273         * lib/unictype/pr_diacritic.h: Likewise.
21274         * lib/unictype/pr_extender.h: Likewise.
21275         * lib/unictype/pr_hex_digit.h: Likewise.
21276         * lib/unictype/pr_hyphen.h: Likewise.
21277         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21278         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21279         * lib/unictype/pr_ignorable_control.h: Likewise.
21280         * lib/unictype/pr_iso_control.h: Likewise.
21281         * lib/unictype/pr_join_control.h: Likewise.
21282         * lib/unictype/pr_left_of_pair.h: Likewise.
21283         * lib/unictype/pr_line_separator.h: Likewise.
21284         * lib/unictype/pr_logical_order_exception.h: Likewise.
21285         * lib/unictype/pr_non_break.h: Likewise.
21286         * lib/unictype/pr_not_a_character.h: Likewise.
21287         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21288         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21289         * lib/unictype/pr_other_id_start.h: Likewise.
21290         * lib/unictype/pr_other_lowercase.h: Likewise.
21291         * lib/unictype/pr_other_uppercase.h: Likewise.
21292         * lib/unictype/pr_paired_punctuation.h: Likewise.
21293         * lib/unictype/pr_paragraph_separator.h: Likewise.
21294         * lib/unictype/pr_pattern_syntax.h: Likewise.
21295         * lib/unictype/pr_pattern_white_space.h: Likewise.
21296         * lib/unictype/pr_private_use.h: Likewise.
21297         * lib/unictype/pr_quotation_mark.h: Likewise.
21298         * lib/unictype/pr_radical.h: Likewise.
21299         * lib/unictype/pr_soft_dotted.h: Likewise.
21300         * lib/unictype/pr_space.h: Likewise.
21301         * lib/unictype/pr_titlecase.h: Likewise.
21302         * lib/unictype/pr_variation_selector.h: Likewise.
21303         * lib/unictype/pr_white_space.h: Likewise.
21304         * lib/unictype/pr_zero_width.h: Likewise.
21305         * lib/unictype/sy_c_ident.h: Likewise.
21306         * lib/unictype/sy_c_whitespace.h: Likewise.
21307         * lib/unictype/sy_java_whitespace.h: Likewise.
21308         * lib/uninorm/composition-table.gperf: Likewise.
21309         * lib/uninorm/decomposition-table1.h: Likewise.
21310         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21311         LB8.
21312         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21313         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21314         * modules/unictype/*: Bump version number of expected libunistring
21315         version.
21316
21317 2011-01-09  Bruno Haible  <bruno@clisp.org>
21318
21319         Update to Unicode 5.2.0.
21320         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21321         trailing whitespace removed.
21322
21323 2011-01-09  Bruno Haible  <bruno@clisp.org>
21324
21325         New Unicode character properties, from Unicode 5.2.0.
21326         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21327         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21328         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21329         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21330         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21331         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21332         uc_is_property_cased, uc_is_property_case_ignorable,
21333         uc_is_property_changes_when_lowercased,
21334         uc_is_property_changes_when_uppercased,
21335         uc_is_property_changes_when_titlecased,
21336         uc_is_property_changes_when_casefolded,
21337         uc_is_property_changes_when_casemapped): New declarations.
21338         * lib/unictype/pr_byname.gperf: Add the new properties.
21339         * modules/unictype/property-byname (Depends-on): Depend on the new
21340         properties modules.
21341         * modules/unictype/property-all (Depends-on): Likewise.
21342         * MODULES.html.sh (Unicode string functions): Add
21343         unictype/property-case-ignorable, unictype/property-cased,
21344         unictype/property-changes-when-casefolded,
21345         unictype/property-changes-when-casemapped,
21346         unictype/property-changes-when-lowercased,
21347         unictype/property-changes-when-titlecased,
21348         unictype/property-changes-when-uppercased.
21349
21350         New module 'unictype/property-changes-when-casemapped'.
21351         * modules/unictype/property-changes-when-casemapped: New file.
21352         * lib/unictype/pr_changes_when_casemapped.c: New file.
21353         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21354         generated by gen-uni-tables.
21355         * modules/unictype/property-changes-when-casemapped-tests: New file.
21356         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21357         automatically generated by gen-uni-tables.
21358
21359         New module 'unictype/property-changes-when-casefolded'.
21360         * modules/unictype/property-changes-when-casefolded: New file.
21361         * lib/unictype/pr_changes_when_casefolded.c: New file.
21362         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21363         generated by gen-uni-tables.
21364         * modules/unictype/property-changes-when-casefolded-tests: New file.
21365         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21366         automatically generated by gen-uni-tables.
21367
21368         New module 'unictype/property-changes-when-titlecased'.
21369         * modules/unictype/property-changes-when-titlecased: New file.
21370         * lib/unictype/pr_changes_when_titlecased.c: New file.
21371         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21372         generated by gen-uni-tables.
21373         * modules/unictype/property-changes-when-titlecased-tests: New file.
21374         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21375         automatically generated by gen-uni-tables.
21376
21377         New module 'unictype/property-changes-when-uppercased'.
21378         * modules/unictype/property-changes-when-uppercased: New file.
21379         * lib/unictype/pr_changes_when_uppercased.c: New file.
21380         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21381         generated by gen-uni-tables.
21382         * modules/unictype/property-changes-when-uppercased-tests: New file.
21383         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21384         automatically generated by gen-uni-tables.
21385
21386         New module 'unictype/property-changes-when-lowercased'.
21387         * modules/unictype/property-changes-when-lowercased: New file.
21388         * lib/unictype/pr_changes_when_lowercased.c: New file.
21389         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21390         generated by gen-uni-tables.
21391         * modules/unictype/property-changes-when-lowercased-tests: New file.
21392         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21393         automatically generated by gen-uni-tables.
21394
21395         New module 'unictype/property-case-ignorable'.
21396         * modules/unictype/property-case-ignorable: New file.
21397         * lib/unictype/pr_case_ignorable.c: New file.
21398         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21399         by gen-uni-tables.
21400         * modules/unictype/property-case-ignorable-tests: New file.
21401         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21402         generated by gen-uni-tables.
21403
21404         New module 'unictype/property-cased'.
21405         * modules/unictype/property-cased: New file.
21406         * lib/unictype/pr_cased.c: New file.
21407         * lib/unictype/pr_cased.h: New file, automatically generated by
21408         gen-uni-tables.
21409         * modules/unictype/property-cased-tests: New file.
21410         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21411         gen-uni-tables.
21412
21413 2011-01-09  Bruno Haible  <bruno@clisp.org>
21414
21415         Update to Unicode 5.2.0.
21416         * lib/gen-uni-tables.c (output_predicate, output_category,
21417         output_combclass, output_bidi_category, output_decimal_digit_test,
21418         output_decimal_digit, output_digit_test, output_digit,
21419         output_numeric_test, output_numeric, output_mirror, output_scripts,
21420         output_scripts_byname, output_blocks, output_ident_category): Fix
21421         comment header.
21422         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21423         get_wbp.
21424         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21425         items.
21426         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21427         Changes_When_Lowercased, Changes_When_Uppercased,
21428         Changes_When_Titlecased, Changes_When_Casefolded,
21429         Changes_When_Casemapped.
21430         (is_property_alphabetic, is_property_default_ignorable_code_point):
21431         Update for Unicode 5.2.0.
21432         (is_property_cased, is_property_case_ignorable,
21433         is_property_changes_when_lowercased,
21434         is_property_changes_when_uppercased,
21435         is_property_changes_when_titlecased,
21436         is_property_changes_when_casefolded,
21437         is_property_changes_when_casemapped): New functions.
21438         (output_properties): Output also the properties cased, case_ignorable,
21439         changes_when_lowercased, changes_when_uppercased,
21440         changes_when_titlecased, changes_when_casefolded,
21441         changes_when_casemapped.
21442         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21443         Unicode TR#11 revision 17 -> 19.
21444         (LBP_CP): New enumeration value.
21445         (LBP_*): Adjust values accordingly.
21446         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21447         TR#14 revision 22 -> 24.
21448         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21449         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21450         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21451         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21452         is_WBP_MIDLETTER.
21453         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21454         the code1 and code2 of each composition rule.
21455         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21456         * lib/unicase/ignorable.h: Likewise.
21457         * lib/unicase/tocasefold.h: Likewise.
21458         * lib/unicase/tolower.h: Likewise.
21459         * lib/unicase/totitle.h: Likewise.
21460         * lib/unicase/toupper.h: Likewise.
21461         * lib/unictype/bidi_of.h: Likewise.
21462         * lib/unictype/blocks.h: Likewise.
21463         * lib/unictype/categ_C.h: Likewise.
21464         * lib/unictype/categ_Cf.h: Likewise.
21465         * lib/unictype/categ_Cn.h: Likewise.
21466         * lib/unictype/categ_L.h: Likewise.
21467         * lib/unictype/categ_Ll.h: Likewise.
21468         * lib/unictype/categ_Lm.h: Likewise.
21469         * lib/unictype/categ_Lo.h: Likewise.
21470         * lib/unictype/categ_Lu.h: Likewise.
21471         * lib/unictype/categ_M.h: Likewise.
21472         * lib/unictype/categ_Mc.h: Likewise.
21473         * lib/unictype/categ_Mn.h: Likewise.
21474         * lib/unictype/categ_N.h: Likewise.
21475         * lib/unictype/categ_Nd.h: Likewise.
21476         * lib/unictype/categ_Nl.h: Likewise.
21477         * lib/unictype/categ_No.h: Likewise.
21478         * lib/unictype/categ_P.h: Likewise.
21479         * lib/unictype/categ_Pd.h: Likewise.
21480         * lib/unictype/categ_Po.h: Likewise.
21481         * lib/unictype/categ_S.h: Likewise.
21482         * lib/unictype/categ_Sc.h: Likewise.
21483         * lib/unictype/categ_So.h: Likewise.
21484         * lib/unictype/categ_of.h: Likewise.
21485         * lib/unictype/combining.h: Likewise.
21486         * lib/unictype/ctype_alnum.h: Likewise.
21487         * lib/unictype/ctype_alpha.h: Likewise.
21488         * lib/unictype/ctype_graph.h: Likewise.
21489         * lib/unictype/ctype_lower.h: Likewise.
21490         * lib/unictype/ctype_print.h: Likewise.
21491         * lib/unictype/ctype_punct.h: Likewise.
21492         * lib/unictype/ctype_upper.h: Likewise.
21493         * lib/unictype/decdigit.h: Likewise.
21494         * lib/unictype/digit.h: Likewise.
21495         * lib/unictype/numeric.h: Likewise.
21496         * lib/unictype/pr_alphabetic.h: Likewise.
21497         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21498         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21499         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21500         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21501         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21502         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21503         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21504         * lib/unictype/pr_combining.h: Likewise.
21505         * lib/unictype/pr_composite.h: Likewise.
21506         * lib/unictype/pr_currency_symbol.h: Likewise.
21507         * lib/unictype/pr_dash.h: Likewise.
21508         * lib/unictype/pr_decimal_digit.h: Likewise.
21509         * lib/unictype/pr_deprecated.h: Likewise.
21510         * lib/unictype/pr_diacritic.h: Likewise.
21511         * lib/unictype/pr_extender.h: Likewise.
21512         * lib/unictype/pr_grapheme_base.h: Likewise.
21513         * lib/unictype/pr_grapheme_extend.h: Likewise.
21514         * lib/unictype/pr_grapheme_link.h: Likewise.
21515         * lib/unictype/pr_id_continue.h: Likewise.
21516         * lib/unictype/pr_id_start.h: Likewise.
21517         * lib/unictype/pr_ideographic.h: Likewise.
21518         * lib/unictype/pr_ignorable_control.h: Likewise.
21519         * lib/unictype/pr_logical_order_exception.h: Likewise.
21520         * lib/unictype/pr_lowercase.h: Likewise.
21521         * lib/unictype/pr_numeric.h: Likewise.
21522         * lib/unictype/pr_other_alphabetic.h: Likewise.
21523         * lib/unictype/pr_punctuation.h: Likewise.
21524         * lib/unictype/pr_sentence_terminal.h: Likewise.
21525         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21526         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21527         * lib/unictype/pr_unified_ideograph.h: Likewise.
21528         * lib/unictype/pr_uppercase.h: Likewise.
21529         * lib/unictype/pr_xid_continue.h: Likewise.
21530         * lib/unictype/pr_xid_start.h: Likewise.
21531         * lib/unictype/pr_zero_width.h: Likewise.
21532         * lib/unictype/scripts.h: Likewise.
21533         * lib/unictype/scripts_byname.gperf: Likewise.
21534         * lib/unictype/sy_java_ident.h: Likewise.
21535         * lib/unigbrk/gbrkprop.h: Likewise.
21536         * lib/unilbrk/lbrkprop1.h: Likewise.
21537         * lib/unilbrk/lbrkprop2.h: Likewise.
21538         * lib/unilbrk/lbrktables.h: Likewise.
21539         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21540         LBP_CP. Implement rule LB30.
21541         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21542         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21543         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21544         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21545         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21546         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21547         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21548         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21549         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21550         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21551         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21552         bits instead of 16 bits in the code1 and code2 of each composition
21553         rule.
21554         (uc_composition): Update for Unicode 5.2.0.
21555         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21556         * lib/uninorm/decomposition-table2.h: Likewise.
21557         * lib/uniwbrk/wbrkprop.h: Likewise.
21558         * tests/unicase/test-cased.c: Likewise.
21559         * tests/unicase/test-ignorable.c: Likewise.
21560         * tests/unicase/test-uc_tolower.c: Likewise.
21561         * tests/unicase/test-uc_totitle.c: Likewise.
21562         * tests/unicase/test-uc_toupper.c: Likewise.
21563         * tests/unictype/test-categ_C.c: Likewise.
21564         * tests/unictype/test-categ_Cf.c: Likewise.
21565         * tests/unictype/test-categ_Cn.c: Likewise.
21566         * tests/unictype/test-categ_L.c: Likewise.
21567         * tests/unictype/test-categ_Ll.c: Likewise.
21568         * tests/unictype/test-categ_Lm.c: Likewise.
21569         * tests/unictype/test-categ_Lo.c: Likewise.
21570         * tests/unictype/test-categ_Lu.c: Likewise.
21571         * tests/unictype/test-categ_M.c: Likewise.
21572         * tests/unictype/test-categ_Mc.c: Likewise.
21573         * tests/unictype/test-categ_Mn.c: Likewise.
21574         * tests/unictype/test-categ_N.c: Likewise.
21575         * tests/unictype/test-categ_Nd.c: Likewise.
21576         * tests/unictype/test-categ_Nl.c: Likewise.
21577         * tests/unictype/test-categ_No.c: Likewise.
21578         * tests/unictype/test-categ_P.c: Likewise.
21579         * tests/unictype/test-categ_Pd.c: Likewise.
21580         * tests/unictype/test-categ_Po.c: Likewise.
21581         * tests/unictype/test-categ_S.c: Likewise.
21582         * tests/unictype/test-categ_Sc.c: Likewise.
21583         * tests/unictype/test-categ_So.c: Likewise.
21584         * tests/unictype/test-ctype_alnum.c: Likewise.
21585         * tests/unictype/test-ctype_alpha.c: Likewise.
21586         * tests/unictype/test-ctype_graph.c: Likewise.
21587         * tests/unictype/test-ctype_lower.c: Likewise.
21588         * tests/unictype/test-ctype_print.c: Likewise.
21589         * tests/unictype/test-ctype_punct.c: Likewise.
21590         * tests/unictype/test-ctype_upper.c: Likewise.
21591         * tests/unictype/test-decdigit.h: Likewise.
21592         * tests/unictype/test-digit.h: Likewise.
21593         * tests/unictype/test-numeric.h: Likewise.
21594         * tests/unictype/test-pr_alphabetic.c: Likewise.
21595         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21596         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21597         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21598         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21599         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21600         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21601         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21602         * tests/unictype/test-pr_combining.c: Likewise.
21603         * tests/unictype/test-pr_composite.c: Likewise.
21604         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21605         * tests/unictype/test-pr_dash.c: Likewise.
21606         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21607         * tests/unictype/test-pr_deprecated.c: Likewise.
21608         * tests/unictype/test-pr_diacritic.c: Likewise.
21609         * tests/unictype/test-pr_extender.c: Likewise.
21610         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21611         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21612         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21613         * tests/unictype/test-pr_id_continue.c: Likewise.
21614         * tests/unictype/test-pr_id_start.c: Likewise.
21615         * tests/unictype/test-pr_ideographic.c: Likewise.
21616         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21617         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21618         * tests/unictype/test-pr_lowercase.c: Likewise.
21619         * tests/unictype/test-pr_numeric.c: Likewise.
21620         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21621         * tests/unictype/test-pr_punctuation.c: Likewise.
21622         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21623         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21624         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21625         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21626         * tests/unictype/test-pr_uppercase.c: Likewise.
21627         * tests/unictype/test-pr_xid_continue.c: Likewise.
21628         * tests/unictype/test-pr_xid_start.c: Likewise.
21629         * tests/unictype/test-pr_zero_width.c: Likewise.
21630         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21631         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21632         changed behaviour: line breaking is now disallowed between a letter
21633         or '=' and '('.
21634         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21635         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21636         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21637         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21638         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21639         lib/uniwidth/width.c.
21640         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21641         without comments, but with the original copyright notice.
21642         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21643         changes.
21644         * lib/unictype/categ_Cc.h: Likewise.
21645         * lib/unictype/categ_Co.h: Likewise.
21646         * lib/unictype/categ_Cs.h: Likewise.
21647         * lib/unictype/categ_Lt.h: Likewise.
21648         * lib/unictype/categ_Me.h: Likewise.
21649         * lib/unictype/categ_Pc.h: Likewise.
21650         * lib/unictype/categ_Pe.h: Likewise.
21651         * lib/unictype/categ_Pf.h: Likewise.
21652         * lib/unictype/categ_Pi.h: Likewise.
21653         * lib/unictype/categ_Ps.h: Likewise.
21654         * lib/unictype/categ_Sk.h: Likewise.
21655         * lib/unictype/categ_Sm.h: Likewise.
21656         * lib/unictype/categ_Z.h: Likewise.
21657         * lib/unictype/categ_Zl.h: Likewise.
21658         * lib/unictype/categ_Zp.h: Likewise.
21659         * lib/unictype/categ_Zs.h: Likewise.
21660         * lib/unictype/ctype_blank.h: Likewise.
21661         * lib/unictype/ctype_cntrl.h: Likewise.
21662         * lib/unictype/ctype_digit.h: Likewise.
21663         * lib/unictype/ctype_space.h: Likewise.
21664         * lib/unictype/ctype_xdigit.h: Likewise.
21665         * lib/unictype/mirror.h: Likewise.
21666         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21667         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21668         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21669         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21670         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21671         * lib/unictype/pr_bidi_control.h: Likewise.
21672         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21673         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21674         * lib/unictype/pr_bidi_pdf.h: Likewise.
21675         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21676         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21677         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21678         * lib/unictype/pr_format_control.h: Likewise.
21679         * lib/unictype/pr_hex_digit.h: Likewise.
21680         * lib/unictype/pr_hyphen.h: Likewise.
21681         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21682         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21683         * lib/unictype/pr_iso_control.h: Likewise.
21684         * lib/unictype/pr_join_control.h: Likewise.
21685         * lib/unictype/pr_left_of_pair.h: Likewise.
21686         * lib/unictype/pr_line_separator.h: Likewise.
21687         * lib/unictype/pr_math.h: Likewise.
21688         * lib/unictype/pr_non_break.h: Likewise.
21689         * lib/unictype/pr_not_a_character.h: Likewise.
21690         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21691         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21692         * lib/unictype/pr_other_id_continue.h: Likewise.
21693         * lib/unictype/pr_other_id_start.h: Likewise.
21694         * lib/unictype/pr_other_lowercase.h: Likewise.
21695         * lib/unictype/pr_other_math.h: Likewise.
21696         * lib/unictype/pr_other_uppercase.h: Likewise.
21697         * lib/unictype/pr_paired_punctuation.h: Likewise.
21698         * lib/unictype/pr_paragraph_separator.h: Likewise.
21699         * lib/unictype/pr_pattern_syntax.h: Likewise.
21700         * lib/unictype/pr_pattern_white_space.h: Likewise.
21701         * lib/unictype/pr_private_use.h: Likewise.
21702         * lib/unictype/pr_quotation_mark.h: Likewise.
21703         * lib/unictype/pr_radical.h: Likewise.
21704         * lib/unictype/pr_soft_dotted.h: Likewise.
21705         * lib/unictype/pr_space.h: Likewise.
21706         * lib/unictype/pr_titlecase.h: Likewise.
21707         * lib/unictype/pr_variation_selector.h: Likewise.
21708         * lib/unictype/pr_white_space.h: Likewise.
21709         * lib/unictype/sy_c_ident.h: Likewise.
21710         * lib/unictype/sy_c_whitespace.h: Likewise.
21711         * lib/unictype/sy_java_whitespace.h: Likewise.
21712         * modules/uni*/*: Bump version number of expected libunistring version.
21713         Reported by Simon Josefsson.
21714
21715 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21716
21717         useless-if-before-free: fix typo in --help and make the internal,
21718         automatic version date update process work once again.
21719         --help output contained a NUL character instead of the
21720         backslash-zero that was intended.  Also, the "must lie within
21721         the first 8 lines" line is on line 9, and hence not getting
21722         automatically updated.
21723         * build-aux/useless-if-before-free: Fix the former by adding a
21724         backslash, and the latter by condensing the three lines of what-it-does
21725         to a single line, leaving one line of slack for the future.
21726
21727 2011-01-09  Bruno Haible  <bruno@clisp.org>
21728
21729         uniwidth/width: Fix width of U+1D173..U+1D17A.
21730         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21731         symbolic_width, output_width_property_test): New functions.
21732         (main): Invoke output_nonspacing_property, output_width_property_test.
21733         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21734         U+1D173..U+1D17A.
21735         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21736         1.
21737         * modules/uniwidth/*: Bump version number of expected libunistring
21738         version.
21739         * modules/unilbrk/*: Likewise.
21740
21741 2011-01-08  Bruno Haible  <bruno@clisp.org>
21742
21743         uninorm tests: Preserve copyright of Unicode data file.
21744         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21745         Mention modifications.
21746
21747 2011-01-08  Bruno Haible  <bruno@clisp.org>
21748
21749         gen-uni-tables: Prepare for Unicode 5.2.0.
21750         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21751         (debug_output_lbp, output_lbp): Update.
21752
21753 2011-01-08  Bruno Haible  <bruno@clisp.org>
21754
21755         unilbrk: Clarify gen-uni-tables.c code.
21756         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21757         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21758         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21759
21760 2011-01-07  Bruno Haible  <bruno@clisp.org>
21761
21762         strtod: Restore errno when successfully parsing Infinity or NaN.
21763         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21764         restore the original errno.
21765
21766 2011-01-07  Bruno Haible  <bruno@clisp.org>
21767
21768         remove test: Avoid failure on HP-UX 11.
21769         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21770
21771 2011-01-07  Bruno Haible  <bruno@clisp.org>
21772
21773         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21774         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21775         error code.
21776
21777 2011-01-07  Pádraig Brady <P@draigBrady.com>
21778
21779         ignore-value: fixup comments, and add Eric Blake
21780         as an author since he rewrote the macros.
21781         * lib/ignore-value.h (ignore_value):  State that
21782         we now support aggregates.  Also specify exactly
21783         when the GCC warn_unused_result feature was added.
21784
21785 2011-01-06  Eric Blake  <eblake@redhat.com>
21786
21787         ignore-value: support aggregate types
21788         * lib/ignore-value.h (ignore_value): Provide separate gcc
21789         definition.
21790         * modules/ignore-value-tests: New test module.
21791         * tests/test-ignore-value.c: New test.
21792
21793         maint.mk: improve sc_prohibit_strcmp regex
21794         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21795         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21796         definition of STRNEQ.
21797
21798         signal: work around Haiku issue with SIGBUS
21799         * lib/siglist.h: Add comment.
21800         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21801         strsignal's favoring of SIGSEGV.
21802         * tests/test-signal.c (main): Avoid test failure.
21803         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21804         Reported by Scott McCreary.
21805
21806         maint.mk: add pre-release check to ensure submodule commits are public
21807         * top/maint.mk (public-submodule-commit): New rule.
21808         (submodule-checks): New variable.
21809         (alpha beta stable): Depend on the variable.
21810
21811 2011-01-05  Pádraig Brady <P@draigBrady.com>
21812         and Jim Meyering  <meyering@redhat.com>
21813
21814         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21815         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21816         (ATTRIBUTE_DEPRECATED): Define.
21817         (_ignore_case): New function.
21818         (ignore_value): New macro, to replace the old function.
21819         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21820         * modules/ignore-value (Depends-on): Add stdint.
21821
21822 2011-01-04  Eric Blake  <eblake@redhat.com>
21823
21824         doc: regenerate INSTALL
21825         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21826         @firstparagraphindent support, now that autoconf dropped it.
21827         (INSTALL_PRELUDE): Reinstate old macro.
21828         * doc/install.texi: Resync from autoconf.
21829         * doc/INSTALL: Reflect recent autoconf update.
21830         * doc/INSTALL.ISO: Likewise.
21831         * doc/INSTALL.UTF-8: Likewise.
21832         Reported by Karl Berry.
21833
21834 2011-01-04  Bruce Korb  <address@hidden>
21835
21836         git-version-gen: avoid a sub-shell
21837         * build-aux/git-version-gen: Redirect stderr in `...` via
21838         "exec 2>...", rather than via an added sub-shell.
21839
21840 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21841
21842         git-version-gen: use (...) rather than sh -c '...'
21843         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21844         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21845
21846 2011-01-03  Jim Meyering  <meyering@redhat.com>
21847
21848         git-version-gen: convert leading TABs to spaces
21849         * build-aux/git-version-gen: Expand leading TABs.
21850
21851         git-version-gen: handle failed "git rev-list"
21852         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21853         from git and proceeding as if it had succeeded but printed no SHA1
21854         checksums, suppress the diagnostic and handle the failure.
21855         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21856
21857         git-version-gen: include command name in one more diagnostic
21858         * build-aux/git-version-gen: When the required .tarball-version file
21859         was missing or unreadable, you might see the diagnostic from "cat",
21860         but no trace of the name of the invoking script.  Now, you still see
21861         the diagnostic from cat, but also get one from "git-version-gen: ".
21862         Inspired by a patch from Bruce Korb.
21863
21864         update-copyright: adjust test to match changed code
21865         * tests/test-update-copyright.sh: Change test's expected output
21866         to match new actual output.
21867
21868 2011-01-02  Bruno Haible  <bruno@clisp.org>
21869
21870         getlogin_r: Avoid test failure on HP-UX 11.
21871         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21872         ERANGE when the second argument is zero.
21873         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21874         portability problem.
21875
21876 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21877
21878         * build-aux/update-copyright: doc Simon's changes
21879
21880 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21881
21882         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21883         environment variable.
21884
21885 2011-01-02  Bruno Haible  <bruno@clisp.org>
21886
21887         unigbrk: Avoid gcc warnings.
21888         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21889         unused variable.
21890         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21891         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21892         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21893         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21894         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21895         Change type of first argument to 'const char *'.
21896         (main): Remove unused variable.
21897         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21898         type of first argument to 'const char *'.
21899         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21900         Likewise.
21901         (main): Change type of variable 's'.
21902         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21903         to 'int'.
21904
21905 2011-01-02  Bruno Haible  <bruno@clisp.org>
21906
21907         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21908         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21909         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21910         bug.
21911         * lib/pwrite.c: Undo 2010-12-31 patch.
21912         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21913
21914 2011-01-02  Bruno Haible  <bruno@clisp.org>
21915
21916         pread: Fix test whether it works.
21917         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21918
21919 2011-01-02  Bruno Haible  <bruno@clisp.org>
21920
21921         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21922         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21923         ends in "6". Don't require a specific month name. Try also the locale
21924         names found on HP-UX 11 and Solaris 7.
21925
21926 2011-01-02  Bruno Haible  <bruno@clisp.org>
21927
21928         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21929         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21930         C linkage.
21931         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21932
21933 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21934
21935         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21936         for consistency, since the "cluster" term is not used elsewhere.
21937         * lib/unigbrk.in.h: Update name.
21938         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21939         * lib/unigbrk/u16-grapheme-next.c: Update name.
21940         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21941         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21942         * lib/unigbrk/u32-grapheme-next.c: Update name.
21943         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21944         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21945         * lib/unigbrk/u8-grapheme-next.c: Update name.
21946         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21947         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21948         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21949         Suggested by Bruno Haible.
21950
21951 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21952
21953         Remove module 'u8-grapheme-len' as too redundant with
21954         'u8-grapheme-next'.
21955         * modules/unigbrk/u8-grapheme-len: Delete file.
21956         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21957         * lib/unigbrk.in.h: Remove prototype for deleted function.
21958         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21959         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21960
21961         Remove module 'u16-grapheme-len' as too redundant with
21962         'u16-grapheme-next'.
21963         * modules/unigbrk/u16-grapheme-len: Delete file.
21964         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21965         * lib/unigbrk.in.h: Remove prototype for deleted function.
21966         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21967         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21968
21969         Remove module 'u32-grapheme-len' as too redundant with
21970         'u32-grapheme-next'.
21971         * modules/unigbrk/u32-grapheme-len: Delete file.
21972         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21973         * lib/unigbrk.in.h: Remove prototype for deleted function.
21974         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21975         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21976
21977         Suggested by Bruno Haible.
21978
21979 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21980
21981         * unigbrk.in.h: Fix typo: "ben" => "been".
21982         Reported by Bruno Haible.
21983
21984 2011-01-01  Jim Meyering  <meyering@redhat.com>
21985
21986         maint: update almost all copyright ranges to include 2011
21987         Run the new "make update-copyright" rule.
21988
21989 2011-01-01  Jim Meyering  <meyering@redhat.com>
21990
21991         maint: update-copyright: exempt doc/INSTALL*
21992         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21993         since they are generated.  Suggested by Bruno Haible.
21994
21995 2011-01-01  Jim Meyering  <meyering@redhat.com>
21996
21997         maint: refine the update-copyright rule
21998         * Makefile (update-copyright): Also exclude any file that includes
21999         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22000         code that merely generates the comment.
22001
22002 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22003
22004         New module 'u8-grapheme-len'.
22005         * modules/unigbrk/u8-grapheme-len: New file.
22006         * modules/unigbrk/u8-grapheme-len-tests: New file.
22007         * lib/unigbrk.in.h: Add prototype for new function.
22008         * lib/unigbrk/u8-grapheme-len.c: New file.
22009         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22010
22011         New module 'u16-grapheme-len'.
22012         * modules/unigbrk/u16-grapheme-len: New file.
22013         * modules/unigbrk/u16-grapheme-len-tests: New file.
22014         * lib/unigbrk.in.h: Add prototype for new function.
22015         * lib/unigbrk/u16-grapheme-len.c: New file.
22016         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22017
22018         New module 'u32-grapheme-len'.
22019         * modules/unigbrk/u32-grapheme-len: New file.
22020         * modules/unigbrk/u32-grapheme-len-tests: New file.
22021         * lib/unigbrk.in.h: Add prototype for new function.
22022         * lib/unigbrk/u32-grapheme-len.c: New file.
22023         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22024
22025         New module 'u8-grapheme-next'.
22026         * modules/unigbrk/u8-grapheme-next: New file.
22027         * modules/unigbrk/u8-grapheme-next-tests: New file.
22028         * lib/unigbrk.in.h: Add prototype for new function.
22029         * lib/unigbrk/u8-grapheme-next.c: New file.
22030         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22031
22032         New module 'u16-grapheme-next'.
22033         * modules/unigbrk/u16-grapheme-next: New file.
22034         * modules/unigbrk/u16-grapheme-next-tests: New file.
22035         * lib/unigbrk.in.h: Add prototype for new function.
22036         * lib/unigbrk/u16-grapheme-next.c: New file.
22037         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22038
22039         New module 'u32-grapheme-next'.
22040         * modules/unigbrk/u32-grapheme-next: New file.
22041         * modules/unigbrk/u32-grapheme-next-tests: New file.
22042         * lib/unigbrk.in.h: Add prototype for new function.
22043         * lib/unigbrk/u32-grapheme-next.c: New file.
22044         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22045
22046         New module 'u8-grapheme-prev'.
22047         * modules/unigbrk/u8-grapheme-prev: New file.
22048         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22049         * lib/unigbrk.in.h: Add prototype for new function.
22050         * lib/unigbrk/u8-grapheme-prev.c: New file.
22051         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22052
22053         New module 'u16-grapheme-prev'.
22054         * modules/unigbrk/u16-grapheme-prev: New file.
22055         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22056         * lib/unigbrk.in.h: Add prototype for new function.
22057         * lib/unigbrk/u16-grapheme-prev.c: New file.
22058         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22059
22060         New module 'u32-grapheme-prev'.
22061         * modules/unigbrk/u32-grapheme-prev: New file.
22062         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22063         * lib/unigbrk.in.h: Add prototype for new function.
22064         * lib/unigbrk/u32-grapheme-prev.c: New file.
22065         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22066
22067         New module 'u8-grapheme-breaks'.
22068         * modules/unigbrk/u8-grapheme-breaks: New file.
22069         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22070         * lib/unigbrk.in.h: Add prototype for new function.
22071         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22072         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22073
22074         New module 'u16-grapheme-breaks'.
22075         * modules/unigbrk/u16-grapheme-breaks: New file.
22076         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22077         * lib/unigbrk.in.h: Add prototype for new function.
22078         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22079         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22080
22081         New module 'u32-grapheme-breaks'.
22082         * modules/unigbrk/u32-grapheme-breaks: New file.
22083         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22084         * lib/unigbrk.in.h: Add prototype for new function.
22085         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22086         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22087
22088         New module 'ulc-grapheme-breaks'.
22089         * modules/unigbrk/ulc-grapheme-breaks: New file.
22090         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22091         * m4/locale-ar.m4: New file.
22092         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22093         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22094         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22095
22096 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22097
22098         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22099         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22100         modified how this file was generated before I initially submitted
22101         the module, but failed to regenerate it.  This meant that several
22102         of the level2 entries were wrong.
22103         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22104         Remove the division-by-2 that is folded into the table now that
22105         gbrkprop.h has been regenerated properly.  Now -1 entries are
22106         handled correctly.
22107
22108         New module 'unigbrk/uc-gbrk-prop-tests'.
22109         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22110         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22111         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22112         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22113
22114 2011-01-01  Bruno Haible  <bruno@clisp.org>
22115
22116         Avoid use of hexadecimal escapes.
22117         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22118         instead of hexadecimal escapes.
22119
22120 2011-01-01  Jim Meyering  <meyering@redhat.com>
22121
22122         maint: new rule to update copyright year ranges
22123         * Makefile (update-copyright): New rule.
22124
22125         maint: indent with TABs in Makefile
22126         * Makefile: Expand leading sequences of spaces to TABs
22127
22128         version-etc: update the copyright year it reports
22129         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22130
22131 2010-12-31  Bruno Haible  <bruno@clisp.org>
22132
22133         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22134         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22135         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22136         zero.
22137
22138 2010-12-31  Bruno Haible  <bruno@clisp.org>
22139
22140         pwrite: Work around HP-UX 11.11 bug.
22141         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22142         works and set REPLACE_PWRITE if not.
22143         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22144         function.
22145         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22146
22147 2010-12-31  Bruno Haible  <bruno@clisp.org>
22148
22149         pread: Work around HP-UX 11 bugs.
22150         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22151         and set REPLACE_PREAD if not.
22152         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22153
22154 2010-12-31  Eric Blake  <eblake@redhat.com>
22155
22156         nl_langinfo: fix YESEXPR on Irix 6.5
22157         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22158         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22159         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22160         it.
22161
22162 2010-12-31  Bruno Haible  <bruno@clisp.org>
22163
22164         iconv: Document HP-UX 11 bug.
22165         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22166
22167 2010-12-31  Bruno Haible  <bruno@clisp.org>
22168
22169         ldexpl: Fix link error on HP-UX 11.
22170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22171         LDEXPL_LIBM, using $ISNANL_LIBM.
22172
22173 2010-12-31  Eric Blake  <eblake@redhat.com>
22174
22175         ftello: avoid compilation failure with SunStudio c89
22176         * lib/ftello.c (ftello): Use lseek, not llseek.
22177
22178         tests: avoid failing coreutils tests on cygwin
22179         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22180         (create_exe_shims_): Return 0 when skipping.
22181
22182 2010-12-31  Bruno Haible  <bruno@clisp.org>
22183
22184         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22185         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22186
22187 2010-12-31  Bruno Haible  <bruno@clisp.org>
22188
22189         waitpid: Fix link error in C++ mode.
22190         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22191
22192 2010-12-31  Bruno Haible  <bruno@clisp.org>
22193
22194         isnan: Use GCC built-ins when possible.
22195         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22196         __builtin_isnan.
22197         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22198         (isnan): Define using GCC built-ins for GCC >= 4.0.
22199
22200 2010-12-31  Bruno Haible  <bruno@clisp.org>
22201
22202         isnand: Fix mistake.
22203         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22204         __builtin_isnand.
22205
22206 2010-12-31  Bruno Haible  <bruno@clisp.org>
22207
22208         open: Avoid C++ error on HP-UX 11.
22209         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22210
22211 2010-12-31  Bruno Haible  <bruno@clisp.org>
22212
22213         time_r: Add missing declarations on HP-UX 11.
22214         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22215         instead of HAVE_LOCALTIME_R.
22216         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22217         HAVE_LOCALTIME_R always.
22218         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22219         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22220         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22221         HAVE_LOCALTIME_R.
22222         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22223         * doc/posix-functions/localtime_r.texi: Likewise.
22224
22225 2010-12-29  Eric Blake  <eblake@redhat.com>
22226
22227         mountlist: tweak previous commit
22228         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22229         Reported by Paul Eggert.
22230
22231         mountlist: fix local drive detection on cygwin
22232         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22233         that works for cygwin.
22234
22235 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         ftoastr, snprintf: ftoastr + snprintf module
22238         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22239         since the snprintf module now should be good enough here.
22240         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22241         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22242         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22243         GNULIB_SNPRINTF only for the test directory, and the latter
22244         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22245         seems to suffice by itself.
22246
22247 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22248
22249         alloca: one step towards thread-safety
22250         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22251         need for a static variable.  All callers changed.  This does not
22252         make the alloca replacement thread-safe, but it's one step.
22253
22254         tests: minor indenting change
22255         * tests/init.sh: Sync from coreutils housekeeping patch
22256         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22257         to keep lines within 80 columns.
22258
22259 2010-12-28  Jim Meyering  <meyering@redhat.com>
22260
22261         regex: don't infloop on persistent failing calloc
22262         * lib/regexec.c (build_trtable): Return failure indication upon
22263         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22264         In glibc, this was fixed for version 2.13:
22265         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22266
22267 2010-12-28  Bruno Haible  <bruno@clisp.org>
22268             Paul Eggert <eggert@cs.ucla.edu>
22269
22270         linkat: Make implementation robust against system behaviour variations.
22271         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22272         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22273         way, and to -2 if it needs a generic runtime test.
22274         * lib/linkat.c (solaris_optimized_link_immediate,
22275         solaris_optimized_link_follow): New functions.
22276         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22277         (check_same_link): Use it.
22278
22279 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22280
22281         New module 'unigbrk/base'.
22282         * modules/unigbrk/base: New file.
22283         * lib/unigbrk.in.h: New file.
22284
22285         New module 'unigbrk/uc-gbrk-prop'.
22286         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22287         * modules/unigbrk/uc-gbrk-prop: New file.
22288         * lib/unigbrk/gbrkprop.h: New file.
22289         * lib/unigbrk/uc-gbrk-prop.c: New file.
22290
22291         New module 'unigbrk/uc-is-grapheme-break'.
22292         * modules/unigbrk/uc-is-grapheme-break: New file.
22293         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22294         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22295         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22296         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22297         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22298
22299         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22300
22301 2010-12-27  Bruno Haible  <bruno@clisp.org>
22302
22303         linkat test: Avoid failure on Solaris 11 2010-11.
22304         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22305
22306 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22307
22308         utimens: work around glibc rounding bug on more platforms
22309         * lib/utimens.c (fdutimens): Work around rounding bug even if
22310         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22311         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22312
22313 2010-12-27  Bruno Haible  <bruno@clisp.org>
22314
22315         select tests: Improve comments.
22316         * tests/test-select.c (do_select): Add comments.
22317
22318 2010-12-27  Bruno Haible  <bruno@clisp.org>
22319
22320         select tests: Safer way of handling timeout.
22321         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22322         at every invocation.
22323
22324 2010-12-27  Bruno Haible  <bruno@clisp.org>
22325
22326         select tests: Use 'bool' where appropriate.
22327         * tests/test-select.c (connect_to_socket): Change argument type to
22328         'bool'.
22329
22330 2010-12-27  Bruno Haible  <bruno@clisp.org>
22331
22332         select tests: Use existing modules.
22333         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22334         (configure.ac): Don't test for unistd.h.
22335         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22336         declared in <unistd.h>.
22337
22338 2010-12-27  Bruno Haible  <bruno@clisp.org>
22339
22340         mbrtowc: Work around a Solaris 7 bug.
22341         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22342         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22343         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22344         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22345         MBRTOWC_NULL_ARG1_BUG.
22346         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22347         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22348         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22349         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22350
22351 2010-12-27  Jim Meyering  <meyering@redhat.com>
22352
22353         read-file.c: tweak syntax
22354         * lib/read-file.c (fread_file): Remove space after "*" in function
22355         definitions.
22356
22357 2010-12-27  Bruno Haible  <bruno@clisp.org>
22358
22359         times test: Avoid gcc warnings on OSF/1.
22360         * tests/test-times.c (main): Cast printf arguments from clock_t to
22361         'long int'.
22362
22363 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         utimens: work around glibc rounding bug on older Linux kernels
22366         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22367         on Linux with a glibc whose utimes might not work, then work
22368         around a longstanding glibc bug involving rounding rather than
22369         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22370         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22371
22372 2010-12-26  Bruno Haible  <bruno@clisp.org>
22373
22374         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22375         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22376         _GL_CXXALIAS_SYS.
22377         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22378
22379 2010-12-26  Bruno Haible  <bruno@clisp.org>
22380
22381         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22382         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22384         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22385         looking for the declaration.
22386         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22387         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22388         problem.
22389         * doc/posix-functions/inet_pton.texi: Likewise.
22390
22391 2010-12-26  Bruno Haible  <bruno@clisp.org>
22392
22393         arpa_inet: Use the common idioms with C++ support.
22394         * lib/arpa_inet.in.h: Include c++defs.h.
22395         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22396         support.
22397         * modules/arpa_inet (Depends-on): Add c++defs.
22398         (Makefile.am): Substitute the contents of c++defs.h.
22399         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22400         * modules/arpa_inet-c++-tests: New file.
22401         * tests/test-arpa_inet-c++.cc: New file.
22402
22403 2010-12-25  Bruno Haible  <bruno@clisp.org>
22404
22405         Fix more C++ link errors on Solaris 8.
22406         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22407         $(LIB_EACCESS).
22408         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22409         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22410         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22411         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22412         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22413
22414 2010-12-25  Bruno Haible  <bruno@clisp.org>
22415
22416         printf-posix: Fix link error when a non-GCC compiler is used.
22417         * lib/stdio.in.h (printf): When not using GCC, override printf
22418         correctly.
22419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22420
22421 2010-12-25  Bruno Haible  <bruno@clisp.org>
22422
22423         strerror_r-posix: Update doc.
22424         * doc/posix-functions/strerror_r.texi: Update doc about the return
22425         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22426
22427 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22428
22429         utimens: simplify the logic of the previous change
22430         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22431         This should not affect whether the test succeeds or fails.
22432
22433         utimens: configure better on hosts with NFS clock skew
22434         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22435         uses the clock of the local host.  It might use the clock of the
22436         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22438
22439 2010-12-25  Bruno Haible  <bruno@clisp.org>
22440
22441         ptsname test: Avoid failure on Solaris.
22442         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22443         open a pseudo-terminal; don't use BSD-style ptys.
22444         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22445
22446 2010-12-25  Bruno Haible  <bruno@clisp.org>
22447
22448         ptsname: Avoid ERANGE failure on some systems.
22449         * lib/ptsname.c (buffer): Increase size.
22450
22451 2010-12-25  Bruno Haible  <bruno@clisp.org>
22452
22453         rename, renameat: Avoid test failures at NFS mounted locations.
22454         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22455         so that subsequent mkdir calls succeed.
22456
22457 2010-12-25  Bruno Haible  <bruno@clisp.org>
22458
22459         iswblank: Fix C++ link error on Solaris 8.
22460         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22461         _GL_FUNCDECL_SYS.
22462
22463 2010-12-25  Bruno Haible  <bruno@clisp.org>
22464
22465         unistd: Fix C++ link error on Solaris 8.
22466         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22467
22468 2010-12-25  Bruno Haible  <bruno@clisp.org>
22469
22470         readlink doc: Mention an old glibc bug.
22471         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22472
22473 2010-12-25  Bruno Haible  <bruno@clisp.org>
22474
22475         fcntl-h: Fix for use of C++ on glibc systems.
22476         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22477         also on glibc systems in C++ mode.
22478         Reported by Gary V. Vaughan <gary@gnu.org>.
22479
22480 2010-12-25  Bruno Haible  <bruno@clisp.org>
22481
22482         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22483         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22484
22485 2010-12-25  Bruno Haible  <bruno@clisp.org>
22486
22487         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22488         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22489         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22490         test whether truncl works according to ISO C 99 with IEC 60559.
22491         * m4/truncl-ieee.m4: New file.
22492         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22493         m4/signbit.m4.
22494         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22495
22496 2010-12-25  Bruno Haible  <bruno@clisp.org>
22497
22498         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22499         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22500         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22501         test whether ceill works according to ISO C 99 with IEC 60559.
22502         * m4/ceill-ieee.m4: New file.
22503         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22504         m4/signbit.m4.
22505         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22506
22507 2010-12-25  Bruno Haible  <bruno@clisp.org>
22508
22509         Ensure all prerequisites of <wchar.h> are included.
22510         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22511         before <wchar.h>.
22512         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22513         gl_MBRLEN_NUL_RETVAL): Likewise.
22514         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22515         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22516         AC_FUNC_MBRTOWC): Likewise.
22517         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22518         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22519         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22520         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22521         Likewise.
22522         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22523         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22524         (gl_WCHAR_H): Improve comments.
22525         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22526
22527 2010-12-25  Bruno Haible  <bruno@clisp.org>
22528
22529         strtok_r: Fix C syntax error in autoconf macro.
22530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22531         characters in test program.
22532
22533 2010-12-24  Bruno Haible  <bruno@clisp.org>
22534
22535         ceil, trunc, round: Fix gcc warnings.
22536         * lib/ceil.c (MIN): Undefine before redefining.
22537         * lib/trunc.c (MIN): Likewise.
22538         * lib/round.c (MIN): Likewise.
22539         Include <math.h> first.
22540
22541 2010-12-24  Bruno Haible  <bruno@clisp.org>
22542
22543         select tests: Avoid failures on OSF/1 5.1.
22544         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22545         failure of closing the last socket; it may fail with ECONNRESET.
22546
22547 2010-12-24  Eric Blake  <eblake@redhat.com>
22548
22549         stdint: avoid HP-UX 10.20 preprocessor bug
22550         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22551         than #if.
22552         * tests/test-floor2.c (main): Likewise.
22553         Reported by Peter O'Gorman.
22554
22555         pipe: make obsoletion transition easier
22556         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22557         * modules/pipe (Files): Include revived file.
22558         (Include): Drop reference, to mirror getdate's behavior.
22559
22560 2010-12-24  Bruno Haible  <bruno@clisp.org>
22561
22562         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22563         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22564         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22565         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22566
22567 2010-12-24  Bruno Haible  <bruno@clisp.org>
22568
22569         gethostname: Ensure declaration on NonStop Kernel.
22570         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22571         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22572
22573 2010-12-24  Bruno Haible  <bruno@clisp.org>
22574
22575         sys_select: Ensure all necessary types on NonStop Kernel.
22576         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22577         include <sys/time.h>.
22578         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22579         NonStop Kernel.
22580         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22581
22582 2010-12-24  Bruno Haible  <bruno@clisp.org>
22583
22584         sys_select: Remove unneeded include.
22585         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22586         have <sys/select.h>.
22587
22588 2010-12-24  Bruno Haible  <bruno@clisp.org>
22589
22590         gethostname: Provide a fallback for HOST_NAME_MAX.
22591         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22592         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22593         instead.
22594         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22595
22596 2010-12-24  Bruno Haible  <bruno@clisp.org>
22597
22598         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22599         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22600         (SA_RESTART): Likewise.
22601         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22602
22603 2010-12-24  Bruno Haible  <bruno@clisp.org>
22604
22605         signal: Define NSIG.
22606         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22607         * tests/test-signal.c (nsig): New variable.
22608         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22609
22610 2010-12-24  Bruno Haible  <bruno@clisp.org>
22611
22612         rename, renameat: Avoid test failures on OSF/1 5.1.
22613         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22614         alternative error codes.
22615         * tests/test-renameat.c (main): Likewise.
22616
22617 2010-12-24  Bruno Haible  <bruno@clisp.org>
22618
22619         *printf: Detect large precisions bug on Solaris 10/SPARC.
22620         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22621         by Paul Eggert.
22622         * tests/test-snprintf-posix.h (test_function): Add this test code here
22623         too.
22624         * tests/test-sprintf-posix.h (test_function): Likewise.
22625         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22626         * tests/test-vasprintf-posix.c (test_function): Likewise.
22627         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22628         around by gnulib.
22629         * doc/posix-functions/printf.texi: Likewise.
22630         * doc/posix-functions/snprintf.texi: Likewise.
22631         * doc/posix-functions/sprintf.texi: Likewise.
22632         * doc/posix-functions/vfprintf.texi: Likewise.
22633         * doc/posix-functions/vprintf.texi: Likewise.
22634         * doc/posix-functions/vsnprintf.texi: Likewise.
22635         * doc/posix-functions/vsprintf.texi: Likewise.
22636         * doc/posix-functions/dprintf.texi: Undo last commit.
22637         * doc/posix-functions/vdprintf.texi: Likewise.
22638
22639 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         tests: port test-fdutimensat.c to Solaris 8
22642         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22643         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22644         On Solaris 8, it fails with errno == ENOSYS, because there is no
22645         futimens (so it can't use the fd), and there is no lutimens (so it
22646         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22647
22648         vsnprintf: make more consistent with snprintf; doc fixes
22649
22650         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22651         the byte count return problem was promoted from the snprintf-posix
22652         to the snprintf module.
22653         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22654         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22655         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22656         * tests/test-snprintf.c (main): Check the byte count returned.
22657         * tests/test-vsnprintf.c (main): Likewise.
22658
22659 2010-12-23  Eric Blake  <eblake@redhat.com>
22660
22661         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22662         * modules/sigpipe (License): Relax license.
22663
22664 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22665
22666         doc: document Solaris printf bug with large float precisions
22667         * doc/posix-functions/dprintf.texi (dprintf):
22668         * doc/posix-functions/fprintf.texi (fprintf):
22669         * doc/posix-functions/printf.texi (printf):
22670         * doc/posix-functions/snprintf.texi (snprintf):
22671         * doc/posix-functions/sprintf.texi (sprintf):
22672         * doc/posix-functions/vdprintf.texi (vdprintf):
22673         * doc/posix-functions/vfprintf.texi (vfprintf):
22674         * doc/posix-functions/vprintf.texi (vprintf):
22675         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22676         * doc/posix-functions/vsprintf.texi (vsprintf):
22677         Mention that these functions mishandle large floating point
22678         precisions on Solaris 10.  The same bug is also present in Solaris
22679         8, and I assume earlier.  This causes "cd gnulib-tests; make
22680         check" to fail on Solaris 8 (and I assume, later) when building
22681         the latest coreutils, in test-vasprintf-posix's call to
22682         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22683         the wide flavors (e.g., wprintf) so this patch just updates the
22684         documentation for the narrow ones.
22685
22686         test-posixtm.c: add two tests
22687         * tests/test-posixtm.c: Add two tests, to highlight the
22688         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22689         around this bug; this is merely to document it.
22690
22691 2010-12-22  Bruno Haible  <bruno@clisp.org>
22692
22693         getlogin_r: Work around portability problem on OSF/1.
22694         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22695         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22696         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22697         test for a truncated result.
22698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22699         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22700         * modules/getlogin_r (Depends-on): Add memchr.
22701         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22702
22703 2010-12-22  Bruno Haible  <bruno@clisp.org>
22704
22705         ptsname: Avoid test failure on OSF/1 5.1.
22706         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22707         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22708         (same_slave): New function.
22709         (main): Use it to compare ptsname's result with the expected file name.
22710
22711 2010-12-22  Bruno Haible  <bruno@clisp.org>
22712
22713         Port extended stdio modules to HP NonStop Kernel.
22714         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22715         macros.
22716         * lib/fbufmode.c: Update comments.
22717         * lib/fflush.c: Likewise.
22718         * lib/fpurge.c: Likewise.
22719         * lib/freadable.c: Likewise.
22720         * lib/freadahead.c: Likewise.
22721         * lib/freading.c: Likewise.
22722         * lib/freadptr.c: Likewise.
22723         * lib/freadseek.c: Likewise.
22724         * lib/fseeko.c: Likewise.
22725         * lib/fseterr.c: Likewise.
22726         * lib/fwritable.c: Likewise.
22727         * lib/fwriting.c: Likewise.
22728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22729
22730 2010-12-22  Bruno Haible  <bruno@clisp.org>
22731
22732         ttyname_r: Work around bug on OSF/1 5.1.
22733         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22734         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22735         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22736         present.
22737         * lib/ttyname_r.c (ttyname_r): Update comments.
22738
22739 2010-12-22  Bruno Haible  <bruno@clisp.org>
22740
22741         round: Implement result sign according to IEEE 754.
22742         * lib/round.c (MIN, MINUS_ZERO): New macros.
22743         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22744         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22745         * tests/test-round-ieee.c (main): Likewise.
22746         * tests/test-roundl-ieee.c (main): Likewise.
22747
22748         trunc: Implement result sign according to IEEE 754.
22749         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22750         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22751         * tests/test-trunc2.c: Include minus-zero.h.
22752         (MINUS_ZERO): New macro.
22753         (trunc_reference): Keep in sync with lib/trunc.c.
22754         * tests/test-truncf2.c: Include minus-zero.h.
22755         (MINUS_ZERO): New macro.
22756         (truncf_reference): Keep in sync with lib/trunc.c.
22757         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22758         * tests/test-trunc-ieee.c (main): Likewise.
22759         * tests/test-truncl-ieee.c (main): Likewise.
22760
22761         ceil: Implement result sign according to IEEE 754.
22762         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22763         (FUNC): Return -0.0 for -1 < x < 0.
22764         * tests/test-ceil2.c: Include minus-zero.h.
22765         (MINUS_ZERO): New macro.
22766         (ceil_reference): Keep in sync with lib/ceil.c.
22767         * tests/test-ceilf2.c: Include minus-zero.h.
22768         (MINUS_ZERO): New macro.
22769         (ceilf_reference): Keep in sync with lib/ceil.c.
22770         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22771         * tests/test-ceil-ieee.c (main): Likewise.
22772         * tests/test-ceill-ieee.c (main): Likewise.
22773
22774         floor: Implement result sign according to IEEE 754.
22775         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22776         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22777         * tests/test-floorf2.c (floorf_reference): Likewise.
22778         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22779         * tests/test-floor-ieee.c (main): Likewise.
22780         * tests/test-floorl-ieee.c (main): Likewise.
22781
22782 2010-12-22  Bruno Haible  <bruno@clisp.org>
22783
22784         getaddrinfo: Update doc.
22785         * doc/posix-functions/gai_strerror.texi: Return type is also different
22786         on AIX and HP-UX.
22787
22788 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22789
22790         getaddrinfo, inet_ntop: Update doc for Solaris.
22791         * doc/posix-functions/gai_strerror.texi: Return type is also an
22792         issue on Solaris 9 and earlier.
22793         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22794         on Solaris 10 and earlier.
22795
22796 2010-12-21  Bruno Haible  <bruno@clisp.org>
22797
22798         New module 'roundl-ieee'.
22799         * modules/roundl-ieee: New file.
22800         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22801         test whether roundl works according to ISO C 99 with IEC 60559.
22802         * m4/roundl-ieee.m4: New file.
22803         * modules/roundl-ieee-tests: New file.
22804         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22805         * tests/test-roundl.c (main): Remove signbit tests.
22806         * modules/roundl-tests (Depends-on): Remove signbit.
22807         * doc/posix-functions/roundl.texi: Mention the new module.
22808
22809 2010-12-21  Bruno Haible  <bruno@clisp.org>
22810
22811         New module 'truncl-ieee'.
22812         * modules/truncl-ieee: New file.
22813         * modules/truncl-ieee-tests: New file.
22814         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22815         * tests/test-truncl.c (main): Remove signbit tests.
22816         * modules/truncl-tests (Depends-on): Remove signbit.
22817         * doc/posix-functions/truncl.texi: Mention the new module.
22818
22819 2010-12-21  Bruno Haible  <bruno@clisp.org>
22820
22821         New module 'ceill-ieee'.
22822         * modules/ceill-ieee: New file.
22823         * modules/ceill-ieee-tests: New file.
22824         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22825         * tests/test-ceill.c (main): Remove signbit tests.
22826         * modules/ceill-tests (Depends-on): Remove signbit.
22827         * doc/posix-functions/ceill.texi: Mention the new module.
22828
22829 2010-12-21  Bruno Haible  <bruno@clisp.org>
22830
22831         New module 'floorl-ieee'.
22832         * modules/floorl-ieee: New file.
22833         * modules/floorl-ieee-tests: New file.
22834         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22835         * tests/test-floorl.c (main): Remove signbit tests.
22836         * modules/floorl-tests (Depends-on): Remove signbit.
22837         * doc/posix-functions/floorl.texi: Mention the new module.
22838
22839 2010-12-21  Bruno Haible  <bruno@clisp.org>
22840
22841         New module 'round-ieee'.
22842         * modules/round-ieee: New file.
22843         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22844         whether round works according to ISO C 99 with IEC 60559.
22845         * m4/round-ieee.m4: New file.
22846         * modules/round-ieee-tests: New file.
22847         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22848         * tests/test-round1.c (main): Remove signbit tests.
22849         * modules/round-tests (Depends-on): Remove 'signbit'.
22850         * doc/posix-functions/round.texi: Mention the new module.
22851
22852 2010-12-21  Bruno Haible  <bruno@clisp.org>
22853
22854         New module 'trunc-ieee'.
22855         * modules/trunc-ieee: New file.
22856         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22857         whether trunc works according to ISO C 99 with IEC 60559.
22858         * m4/trunc-ieee.m4: New file.
22859         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22861         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22862         * modules/trunc-ieee-tests: New file.
22863         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22864         * tests/test-trunc1.c (main): Remove signbit tests.
22865         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22866         * doc/posix-functions/trunc.texi: Mention the new module.
22867
22868 2010-12-21  Bruno Haible  <bruno@clisp.org>
22869
22870         New module 'ceil-ieee'.
22871         * modules/ceil-ieee: New file.
22872         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22873         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22874         ISO C 99 with IEC 60559.
22875         * m4/ceil-ieee.m4: New file.
22876         * modules/ceil (Files): Add lib/ceil.c.
22877         (Depends-on): Add 'float'.
22878         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22879         * lib/math.in.h (ceil): New declaration.
22880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22881         REPLACE_CEIL.
22882         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22883         * modules/ceil-ieee-tests: New file.
22884         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22885         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22886         * doc/posix-functions/ceil.texi: Mention the new module.
22887
22888 2010-12-21  Bruno Haible  <bruno@clisp.org>
22889
22890         New module 'floor-ieee'.
22891         * modules/floor-ieee: New file.
22892         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22893         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22894         ISO C 99 with IEC 60559.
22895         * m4/floor-ieee.m4: New file.
22896         * modules/floor (Files): Add lib/floor.c.
22897         (Depends-on): Add 'float'.
22898         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22899         * lib/math.in.h (floor): New declaration.
22900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22901         REPLACE_FLOOR.
22902         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22903         * modules/floor-ieee-tests: New file.
22904         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22905         * tests/test-math-c++.cc: Check the signature of 'floor'.
22906         * doc/posix-functions/floor.texi: Mention the new module.
22907
22908 2010-12-21  Bruno Haible  <bruno@clisp.org>
22909
22910         New module 'roundf-ieee'.
22911         * modules/roundf-ieee: New file.
22912         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22913         test whether roundf works according to ISO C 99 with IEC 60559.
22914         * m4/roundf-ieee.m4: New file.
22915         * modules/roundf-ieee-tests: New file.
22916         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22917         * tests/test-roundf1.c (main): Remove signbit tests.
22918         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22919         * doc/posix-functions/roundf.texi: Mention the new module.
22920
22921 2010-12-21  Bruno Haible  <bruno@clisp.org>
22922
22923         New module 'truncf-ieee'.
22924         * modules/truncf-ieee: New file.
22925         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22926         test whether truncf works according to ISO C 99 with IEC 60559.
22927         * m4/truncf-ieee.m4: New file.
22928         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22930         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22931         * modules/truncf-ieee-tests: New file.
22932         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22933         * tests/test-truncf1.c (main): Remove signbit tests.
22934         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22935         * doc/posix-functions/truncf.texi: Mention the new module.
22936
22937 2010-12-21  Bruno Haible  <bruno@clisp.org>
22938
22939         New module 'ceilf-ieee'.
22940         * modules/ceilf-ieee: New file.
22941         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22942         test whether ceilf works according to ISO C 99 with IEC 60559.
22943         * m4/ceilf-ieee.m4: New file.
22944         * modules/ceilf-ieee-tests: New file.
22945         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22946         * tests/test-ceilf1.c (main): Remove signbit tests.
22947         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22948         * doc/posix-functions/ceilf.texi: Mention the new module.
22949
22950 2010-12-21  Bruno Haible  <bruno@clisp.org>
22951
22952         New module 'floorf-ieee'.
22953         * modules/floorf-ieee: New file.
22954         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22955         test whether floorf works according to ISO C 99 with IEC 60559.
22956         * m4/floorf-ieee.m4: New file.
22957         * modules/floorf-ieee-tests: New file.
22958         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22959         * tests/test-floorf1.c (main): Remove signbit tests.
22960         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22961         * doc/posix-functions/floorf.texi: Mention the new module.
22962
22963 2010-12-21  Bruno Haible  <bruno@clisp.org>
22964
22965         Support for minus zero in autoconf macros.
22966         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22967         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22968         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22969         * tests/minus-zero.h: Update comments.
22970
22971 2010-12-21  Bruno Haible  <bruno@clisp.org>
22972
22973         Tests for module 'ceil'.
22974         * modules/ceil-tests: New file.
22975         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22976         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22977
22978 2010-12-21  Bruno Haible  <bruno@clisp.org>
22979
22980         Tests for module 'floor'.
22981         * modules/floor-tests: New file.
22982         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22983         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22984
22985 2010-12-21  Bruno Haible  <bruno@clisp.org>
22986
22987         math: Fix indentation.
22988         * lib/math.in.h (floorf): Fix indentation.
22989
22990 2010-12-21  Bruno Haible  <bruno@clisp.org>
22991
22992         Fix cross-compilation guesses on Solaris.
22993         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22994         not match "solaris2.10".
22995         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22996         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22997         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22998
22999 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23000
23001         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23002         This fixes a problem observed with the latest coreutils snapshot
23003         that caused a test to fail on Solaris 8.  src/csplit.c's call
23004         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23005         earlier, instead of returning the number of bytes that would have
23006         been generated; this causes csplit to incorrectly report memory
23007         exhaustion.
23008         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23009         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23010         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23011         comments to match.
23012         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23013         Fix typo in matching older versions of Solaris: "solaris2.10"
23014         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23015         only for guessing while cross-compiling.
23016         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23017
23018 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23019
23020         ftoastr: fix comment again
23021         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23023         Also, simplify example a bit by using flags = 0.
23024
23025 2010-12-20  Bruno Haible  <bruno@clisp.org>
23026
23027         round*, trunc*: Update documentation regarding glibc.
23028         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23029         * doc/posix-functions/round.texi: Likewise.
23030         * doc/posix-functions/roundl.texi: Likewise.
23031         * doc/posix-functions/truncf.texi: Likewise.
23032         * doc/posix-functions/trunc.texi: Likewise.
23033         * doc/posix-functions/truncl.texi: Likewise.
23034
23035 2010-12-20  Bruno Haible  <bruno@clisp.org>
23036
23037         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23038         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23039         * doc/posix-functions/round.texi: Likewise.
23040         * doc/posix-functions/roundl.texi: Likewise.
23041
23042 2010-12-20  Bruno Haible  <bruno@clisp.org>
23043
23044         ttyname_r: Add missing declaration on HP-UX 11.
23045         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23046         HAVE_TTYNAME_R.
23047         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23048         declared. Set HAVE_TTYNAME_R always.
23049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23050         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23051         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23052         HAVE_TTYNAME_R.
23053         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23054
23055 2010-12-20  Bruno Haible  <bruno@clisp.org>
23056
23057         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23058         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23059         * doc/posix-functions/getlogin_r.texi: Likewise.
23060         * tests/test-getlogin.c: Include <errno.h>.
23061         (main): Avoid test failure on HP-UX 11.11.
23062         * tests/test-getlogin_r.c (main): Likewise.
23063
23064 2010-12-20  Bruno Haible  <bruno@clisp.org>
23065
23066         getlogin_r: Add missing declaration on HP-UX 11.
23067         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23068         declared also when it exists as a function.
23069         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23070
23071 2010-12-20  Bruno Haible  <bruno@clisp.org>
23072
23073         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23074         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23075         through wcrtomb.
23076
23077 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         ftoastr: fix comment
23080         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23081         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23082
23083 2010-12-19  Bruno Haible  <bruno@clisp.org>
23084
23085         isnan: Ensure it is a macro.
23086         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23087         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23088         Solaris.
23089
23090 2010-12-19  Bruno Haible  <bruno@clisp.org>
23091
23092         ldexpl test: Fix link error on OSF/1 5.1.
23093         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23094
23095 2010-12-19  Bruno Haible  <bruno@clisp.org>
23096
23097         wctype: Make it work in C++ mode on OSF/1 5.1.
23098         * lib/wctype.in.h (iswblank): Declare but not define here.
23099         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23100         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23101         * modules/wctype (Files): Add lib/iswblank.c.
23102
23103 2010-12-19  Bruno Haible  <bruno@clisp.org>
23104
23105         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23106         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23107         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23108
23109 2010-12-19  Bruno Haible  <bruno@clisp.org>
23110
23111         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23112         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23113         _POSIX_PII_SOCKET.
23114         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23115         * doc/posix-functions/recvfrom.texi: Likewise.
23116         * doc/posix-functions/send.texi: Likewise.
23117         * doc/posix-functions/sendto.texi: Likewise.
23118
23119 2010-12-19  Bruno Haible  <bruno@clisp.org>
23120
23121         tcgetsid: Add missing declaration on OSF/1 5.1.
23122         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23123         HAVE_TCGETSID.
23124         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23125         Don't set HAVE_TCGETSID.
23126         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23127         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23128         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23129         HAVE_TCGETSID.
23130         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23131
23132 2010-12-19  Bruno Haible  <bruno@clisp.org>
23133
23134         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23135         * lib/stdio.in.h: During the include_next statement, let recursive
23136         includes of this file include only the system header file.
23137
23138 2010-12-19  Bruno Haible  <bruno@clisp.org>
23139
23140         iconv_open: Fix regression from 2010-12-04.
23141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23142         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23143
23144 2010-12-19  Bruno Haible  <bruno@clisp.org>
23145
23146         stdbool test: Avoid a gcc warning.
23147         * tests/test-stdbool.c (main): Fail if e1 is false.
23148         Reported by Jim Meyering.
23149
23150 2010-12-19  Jim Meyering  <meyering@redhat.com>
23151
23152         setenv: restore to working order
23153         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23154         mistakenly removed.
23155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23156         HAVE_SETENV.
23157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23158         HAVE_SETENV.
23159
23160 2010-12-19  Bruno Haible  <bruno@clisp.org>
23161
23162         Document some different function declarations on OSF/1 5.1.
23163         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23164         * doc/posix-functions/inet_ntop.texi: Likewise.
23165         * doc/posix-functions/gethostname.texi: Likewise.
23166         * lib/unistd.in.h (gethostname): Update comment.
23167
23168 2010-12-19  Bruno Haible  <bruno@clisp.org>
23169
23170         doc: Mention vasprintf-posix module.
23171         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23172         the 'vasprintf-posix' module.
23173         * doc/glibc-functions/vasprintf.texi: Likewise.
23174
23175 2010-12-19  Bruno Haible  <bruno@clisp.org>
23176
23177         unsetenv: Add missing declaration on OSF/1 5.1.
23178         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23179         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23180         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23182         not HAVE_UNSETENV.
23183         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23184         HAVE_UNSETENV.
23185         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23186
23187 2010-12-19  Bruno Haible  <bruno@clisp.org>
23188
23189         setenv: Add missing declaration on OSF/1 5.1.
23190         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23192         declared. Don't set HAVE_SETENV.
23193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23194         not HAVE_SETENV.
23195         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23196         HAVE_SETENV.
23197         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23198
23199 2010-12-19  Bruno Haible  <bruno@clisp.org>
23200
23201         nl_langinfo tests: Avoid gcc warning.
23202         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23203
23204 2010-12-19  Bruno Haible  <bruno@clisp.org>
23205
23206         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23207         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23208         _GL_CXXALIAS_SYS.
23209
23210 2010-12-19  Bruno Haible  <bruno@clisp.org>
23211
23212         stdbool: Relax test.
23213         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23214         address to 'bool' work in static initializer, for compilers other than
23215         GCC.
23216
23217 2010-12-19  Bruno Haible  <bruno@clisp.org>
23218
23219         ftello: Add missing declaration on OSF/1 5.1.
23220         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23221         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23223         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23224         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23225
23226 2010-12-19  Bruno Haible  <bruno@clisp.org>
23227
23228         fseeko: Add missing declaration on OSF/1 5.1.
23229         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23232         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23233         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23234
23235 2010-12-19  Bruno Haible  <bruno@clisp.org>
23236
23237         fchdir: Add missing declaration on OSF/1 5.1.
23238         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23241         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23242         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23243
23244 2010-12-19  Bruno Haible  <bruno@clisp.org>
23245
23246         relocatable-prog-wrapper: Separate from relocatable-prog.
23247         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23248         uninstall-relocwrapper rule here.
23249         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23250         Reported by Ian Beckwith <ianb@erislabs.net>.
23251
23252 2010-12-19  Bruno Haible  <bruno@clisp.org>
23253
23254         unistr/u8-mbsnlen: Add missing dependency.
23255         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23256         Reported by Ian Beckwith <ianb@erislabs.net>.
23257
23258 2010-12-19  Bruno Haible  <bruno@clisp.org>
23259
23260         iconv: Make it possible again to use this module without 'iconv-h'.
23261         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23262         if it is not defined.
23263         Reported by Ian Beckwith <ianb@erislabs.net>.
23264
23265 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23266
23267         acl: port to Solaris 8 when copying from tmpfs to ufs
23268         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23269         error number.  Problem observed on Solaris 8 with latest
23270         coreutils, with "mv A B", where A is on a tmpfs file system and B
23271         is on a ufs file system.  This caused coreutils' mv/part-symlink
23272         test to fail.
23273
23274         tests: set fail=0 at start
23275         * tests/init.sh (setup_): Move fail=0 initialization here ...
23276         (mktempd_): ... from here, so that tests can rely on fail being
23277         set to 0 initially.  This fixes a problem in coreutils; see:
23278         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23279
23280 2010-12-18  Bruno Haible  <bruno@clisp.org>
23281
23282         memmem-simple: Stylistic changes.
23283         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23284         Fix preprocessor directive indentation.
23285
23286 2010-12-15  Pádraig Brady <P@draigBrady.com>
23287
23288         memmem, memmem-simple: reorganize and expand empty needle check
23289         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23290         functional checks to memmem-simple so that one has a fully functional
23291         memmem by using just this module.
23292         Restrict the performance only check to the memmem module.
23293         Also expand the empty needle check to ensure the correct
23294         pointer is returned, not just a non NULL pointer.
23295         * doc/glibc-functions/memmem.texi: Rearrange the portability
23296         documentation to correlate with the rearranged checks.
23297         Clarify exactly how the memmem and memmem-simple modules
23298         relate to each other.
23299
23300 2010-12-15  Pádraig Brady <P@draigBrady.com>
23301             Bruno Haible  <bruno@clisp.org>
23302
23303         Improve cross-compilation guesses for uClibc.
23304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23305         that uClibc does not have the glibc bug.
23306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23307         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23308
23309 2010-12-14  Eric Blake  <eblake@redhat.com>
23310
23311         configmake: provide fallbacks for oldest supported autotools
23312         * m4/configmake.m4: New file.
23313         * modules/configmake (Files): Ship it.
23314         (configure.ac): Use it to guarantee fallbacks.
23315
23316 2010-12-13  Pádraig Brady <P@draigBrady.com>
23317
23318         read-file: Improve handling of large files
23319         * lib/read-file.c (fread_file): Minimize realloc()s
23320         for regular files, and better manage sizes around SIZE_MAX.
23321
23322 2010-12-13  Eric Blake  <eblake@redhat.com>
23323
23324         cloexec, fcntl: relax license
23325         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23326         consent from all contributors.
23327         * modules/fcntl (License): Likewise.
23328
23329 2010-12-10  Bruno Haible  <bruno@clisp.org>
23330
23331         Tests for module 'pipe-posix'.
23332         * modules/pipe-posix-tests: New file.
23333         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23334
23335 2010-12-10  Bruno Haible  <bruno@clisp.org>
23336
23337         pipe-posix: Make it work in C++ mode.
23338         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23339         (pipe): Use common idiom, not a macro definition.
23340         * lib/pipe.c: New file.
23341         * m4/pipe.m4: New file.
23342         * modules/pipe-posix (Description): Enhance.
23343         (Files): Add lib/pipe.c, m4/pipe.m4.
23344         (configure.ac): Invoke gl_FUNC_PIPE.
23345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23346         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23347         * tests/test-unistd-c++.cc: Check the signature of pipe.
23348
23349 2010-12-10  Bruno Haible  <bruno@clisp.org>
23350
23351         Rename module 'pipe' to 'spawn-pipe'.
23352         * modules/spawn-pipe: New file, renamed from modules/pipe.
23353         (Files, configure.ac, Makefile.am): Update.
23354         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23355         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23356         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23357         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23358         "spawn-pipe.h" instead of "pipe.h".
23359         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23360         to gl_SPAWN_PIPE.
23361         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23362         (Files, Makefile.am): Update.
23363         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23364         Update.
23365         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23366         Include "spawn-pipe.h" instead of "pipe.h".
23367         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23368         * lib/javacomp.c: Likewise.
23369         * lib/javaversion.c: Likewise.
23370         * lib/pipe-filter-gi.c: Likewise.
23371         * lib/pipe-filter-ii.c: Likewise.
23372         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23373         * modules/javacomp (Depends-on): Likewise.
23374         * modules/javaversion (Depends-on): Likewise.
23375         * modules/pipe-filter-gi (Depends-on): Likewise.
23376         * modules/pipe-filter-ii (Depends-on): Likewise.
23377         * MODULES.html.sh (Executing programs): Update.
23378         * NEWS: Mention the change.
23379
23380 2010-12-10  Eric Blake  <eblake@redhat.com>
23381
23382         pipe-posix: new module
23383         * modules/pipe-posix: New file.
23384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23385         (gl_UNISTD_H): Check for declaration.
23386         * modules/unistd (Makefile.am): Substitute it.
23387         * lib/unistd.in.h (pipe): Provide it for mingw.
23388         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23389         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23390
23391 2010-12-07  Bruno Haible  <bruno@clisp.org>
23392
23393         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23394         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23395         u8_strcmp_gnu.
23396         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23397
23398 2010-12-06  Bruno Haible  <bruno@clisp.org>
23399
23400         Update internal documentation.
23401         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23402
23403 2010-12-04  Bruno Haible  <bruno@clisp.org>
23404
23405         Put more information about failed tests into the test return codes.
23406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23407         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23408         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23409         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23410         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23411         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23412         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23413         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23414         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23417         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23418         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23419         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23420         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23421         returns a bit mask.
23422         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23423         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23424         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23425         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23426         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23430         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23431         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23432         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23433         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23434         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23435         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23436         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23437         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23438         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23439         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23440         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23441         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23442         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23443         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23445         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23446         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23447         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23448         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23449         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23450         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23451         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23452         gl_PRINTF_PRECISION): Likewise.
23453         * m4/regex.m4 (gl_REGEX): Likewise.
23454         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23455         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23456         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23457         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23458         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23460         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23461         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23462         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23463         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23465         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23466         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23467         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23468         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23469         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23470         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23473         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23474         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23475         enumerated value.
23476         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23477
23478 2010-12-04  Bruno Haible  <bruno@clisp.org>
23479
23480         Update for Solaris 11 2010-11.
23481         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23482         Express, released in November 2010.
23483
23484 2010-12-04  Bruno Haible  <bruno@clisp.org>
23485
23486         nproc: Relax license.
23487         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23488         and Paul Eggert.
23489         Requested by Ludovic Courtès <ludo@gnu.org>.
23490
23491 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23492
23493         utimecmp: fine-grained src to nearby coarse-grained dest
23494
23495         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23496         and the source is on a file system with higher-resolution time
23497         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23498         not work, and the time stamps are close together, the algorithm to
23499         determine the exact resolution from the read-back mtime was buggy:
23500         it had a "!=" where it should have had an "==".  This bug has been
23501         in the code ever since it was introduced to gnulib.
23502         Problem reported by Dan Jacobson in
23503         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23504
23505 2010-11-30  Bruno Haible  <bruno@clisp.org>
23506
23507         strerror_r-posix: Fix autoconf test.
23508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23509
23510 2010-11-28  Bruno Haible  <bruno@clisp.org>
23511             Paul Eggert  <eggert@cs.ucla.edu>
23512
23513         Tests for module 'getdomainname'.
23514         * modules/getdomainname-tests: New file.
23515         * tests/test-getdomainname.c: New file, based on
23516         tests/test-gethostname.c.
23517
23518 2010-11-28  Bruno Haible  <bruno@clisp.org>
23519             Paul Eggert  <eggert@cs.ucla.edu>
23520
23521         getdomainname: Use the system function when possible.
23522         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23523         (getdomainname): Replace if needed. Provide the declaration if it is
23524         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23525         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23526         (getdomainname): When the system has getdomainname, call the system
23527         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23528         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23529         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23530         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23531         the function if its second argument is of type 'int' or if it is found
23532         in libnsl.
23533         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23534         <sys/systeminfo.h> and sysinfo().
23535         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23537         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23538         HAVE_GETDOMAINNAME.
23539         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23540         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23541         * doc/glibc-functions/getdomainname.texi: Document the problems with
23542         the getdomainname declaration.
23543
23544 2010-11-28  Bruno Haible  <bruno@clisp.org>
23545
23546         sys_socket: Ensure ss_family field on AIX.
23547         * lib/sys_socket.in.h (ss_family): New macro definition.
23548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23549         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23550         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23551         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23552         * modules/sys_socket (Makefile.am): Substitute
23553         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23554         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23555
23556 2010-11-27  Bruno Haible  <bruno@clisp.org>
23557
23558         readline: Improve configure output.
23559         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23560         "checking for readline..." result understandable.
23561
23562 2010-11-27  Bruno Haible  <bruno@clisp.org>
23563
23564         *printf-posix: Detect a bug on Solaris 10/x86.
23565         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23566         for floating-point output.
23567         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23568         directive.
23569         * tests/test-snprintf-posix.h (test_function): Likewise.
23570         * tests/test-sprintf-posix.h (test_function): Likewise.
23571         * tests/test-vasprintf-posix.c (test_function): Likewise.
23572         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23573         * doc/posix-functions/printf.texi: Likewise.
23574         * doc/posix-functions/snprintf.texi: Likewise.
23575         * doc/posix-functions/sprintf.texi: Likewise.
23576         * doc/posix-functions/vfprintf.texi: Likewise.
23577         * doc/posix-functions/vprintf.texi: Likewise.
23578         * doc/posix-functions/vsnprintf.texi: Likewise.
23579         * doc/posix-functions/vsprintf.texi: Likewise.
23580         * doc/glibc-functions/obstack_printf.texi: Likewise.
23581         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23582
23583 2010-11-27  Bruno Haible  <bruno@clisp.org>
23584
23585         Fix link error when module libunistring-optional is in use.
23586         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23587         * modules/striconveha-tests (Makefile.am): Likewise.
23588
23589 2010-11-27  Bruno Haible  <bruno@clisp.org>
23590
23591         regex: Mention link dependencies.
23592         * modules/regex (Link): New section.
23593         * modules/rpmatch (Link): Likewise.
23594         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23595
23596 2010-11-27  Bruno Haible  <bruno@clisp.org>
23597
23598         ftoastr: Fix compilation error on Solaris.
23599         * lib/ftoastr.c: Include <config.h>.
23600
23601 2010-11-27  Bruno Haible  <bruno@clisp.org>
23602
23603         getloadavg: Update documentation.
23604         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23605
23606 2010-11-27  Bruno Haible  <bruno@clisp.org>
23607
23608         sys_socket: Fix test whether the functions are declared.
23609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23610         not <sys/select.h>.
23611
23612 2010-11-27  Bruno Haible  <bruno@clisp.org>
23613
23614         getpass: Make sure to get system declaration on some platforms.
23615         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23616         gl_USE_SYSTEM_EXTENSIONS.
23617         * modules/getpass (Depends-on): Add extensions.
23618
23619 2010-11-26  Bruno Haible  <bruno@clisp.org>
23620
23621         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23622         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23623         'iconv' module is present.
23624         (ICONV_CONST): New macro.
23625         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23626         ICONV_CONST.
23627         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23628         set ICONV_CONST.
23629         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23630         here.
23631         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23632         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23633         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23634         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23635         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23636         present.
23637
23638 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23639
23640         ftoastr: comment fix
23641         * lib/ftoastr.c: "little" -> "little or no" in comment
23642
23643 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23644
23645         stdint: port to GCC 4.3 + OSX + Octave
23646         On this platform, stdint.h is buggy and defines int64_t to long
23647         long int.  The replacement defined it to long int, causing
23648         problems with C++ style name mangling.  Instead, trust the system
23649         definition if INT64_MAX is defined, and likewise for the unsigned
23650         variant.   Problem reported by Jarno Rajahalme in
23651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23652         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23653         and don't mess with int64_t and INT64_MAX in this case.
23654         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23655
23656 2010-11-24  Bruno Haible  <bruno@clisp.org>
23657
23658         doc: Corrections regarding MacOS X 10.4 and 10.5.
23659         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23660         MacOS X.
23661         Reported by Simon Josefsson.
23662
23663 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23664
23665         Uninstall ".bin" files installed by relocwrapper.
23666         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23667         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23668         unless it is already there.
23669
23670 2010-11-21  Bruno Haible  <bruno@clisp.org>
23671
23672         Update for NetBSD 5.0.
23673         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23674         NetBSD; the test fails on NetBSD 5.0.
23675         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23676         about NetBSD.
23677
23678 2010-11-21  Bruno Haible  <bruno@clisp.org>
23679
23680         Update for HP-UX 11.23 and HP-UX 11.31.
23681         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23682         HP-UX.
23683
23684 2010-11-21  Bruno Haible  <bruno@clisp.org>
23685
23686         Update for MacOS X 10.5.
23687         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23688         MacOS X; the test fails on MacOS X 10.5.8.
23689         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23690         about MacOS X.
23691
23692 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23693
23694         bootstrap: add bootstrap_sync option.
23695         See discussion at
23696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23697         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23698         * build-aux/bootstrap: Accept --bootstrap-sync to update
23699         bootstrap if it is not identical to the local gnulib's
23700         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23701         enable this by default.  Accept --no-bootstrap-sync to disable
23702         it.
23703
23704 2010-11-20  Bruno Haible  <bruno@clisp.org>
23705
23706         Ensure that <features.h> is included before __GLIBC__ is tested.
23707         * lib/printf-parse.h: Include <features.h>.
23708         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23709         Reported by Mike Frysinger <vapier@gentoo.org>.
23710
23711         Ensure that <features.h> is included before __GLIBC__ is tested.
23712         * lib/wchar.in.h: Include <features.h>.
23713         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23714         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23715         Reported by Mike Frysinger <vapier@gentoo.org>.
23716
23717         Ensure that <features.h> is included before __GLIBC__ is tested.
23718         * lib/arpa_inet.in.h: Include <features.h>.
23719         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23720         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23721         Reported by Mike Frysinger <vapier@gentoo.org>.
23722
23723         Ensure that <features.h> is included before __GLIBC__ is tested.
23724         * build-aux/link-warning.h: Include <features.h>.
23725         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23726         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23727         Reported by Mike Frysinger <vapier@gentoo.org>.
23728
23729         Ensure that <features.h> is included before __GLIBC__ is tested.
23730         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23731         Reported by Mike Frysinger <vapier@gentoo.org>.
23732
23733 2010-11-20  Bruno Haible  <bruno@clisp.org>
23734
23735         memmem: Fix autoconf test.
23736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23737
23738 2010-11-20  Bruno Haible  <bruno@clisp.org>
23739
23740         Port to uClibc.
23741         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23742         * lib/fcntl.in.h: Likewise.
23743         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23744         * lib/mbrtowc.c (mbrtowc): Likewise.
23745         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23746         * lib/strerror_r.c: Likewise.
23747         * lib/unistr/u8-strnlen.c: Likewise.
23748         * lib/vasnprintf.c (decimal_point_char): Likewise.
23749         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23750         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23751         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23752         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23753         * tests/test-sigaction.c (handler, main): Likewise.
23754         * lib/freading.h: Treat uClibc like a non-glibc platform.
23755         * lib/freading.c: Likewise.
23756         * lib/gettext.h: Likewise.
23757         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23758         Likewise.
23759         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23760         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23761         * lib/propername.c (proper_name_utf8): Likewise.
23762         * lib/spawn.in.h: Likewise.
23763         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23764         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23765         mem_cd_iconveh_internal): Likewise.
23766         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23767         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23768         strstr, strcasestr): Likewise.
23769         * lib/unicodeio.c (unicode_to_mb): Likewise.
23770         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23771         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23772         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23773         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23774         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23775         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23776         * lib/unistr/u8-stpncpy.c: Likewise.
23777         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23778         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23780         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23781         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23783         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23784         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23786         Likewise.
23787         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23788         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23792         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23793         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23794         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23795         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23796         * tests/test-striconveha.c (main): Likewise.
23797         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23798         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23799         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23800         * doc/posix-functions/getline.texi: Likewise.
23801         Reported by Mike Frysinger <vapier@gentoo.org>.
23802
23803 2010-11-20  Bruno Haible  <bruno@clisp.org>
23804
23805         nproc: Fix condition.
23806         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23807         HAVE_PTHREAD_AFFINITY_NP.
23808
23809 2010-11-20  Bruno Haible  <bruno@clisp.org>
23810
23811         Fix a comment.
23812         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23813
23814 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23815
23816         ftoastr: don't assume snprintf
23817         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23818         Implement a subset of snprintf here, by using sprintf safely.
23819         * modules/ftoastr (Depends-on): Remove snprintf.
23820
23821 2010-11-19  Jim Meyering  <meyering@redhat.com>
23822
23823         test-rename.h: fix compilation failure
23824         * tests/test-rename.h (test_rename): Add omitted "}".
23825
23826 2010-11-17  Jim Meyering  <meyering@redhat.com>
23827
23828         maint.mk: add a URL discussing the no-@acronym policy
23829         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23830
23831 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         ftoastr: depend on snprintf, improve comments
23834         * lib/ftoastr.c: Also mention Loitsch's draft.
23835         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23836         needed in the current implementation, but it might simplify
23837         speeding up the code later.
23838         * modules/ftoastr: Depend on snprintf; this improves portability.
23839         Suggested by Bruno Haible in the same email.
23840
23841         ftoastr: port to hosts lacking strtof and strtold
23842         Problem reported by Bruno Haible in
23843         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23844         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23845         environment and strtold (and presumably strtof) are not available.
23846         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23847         (configure.ac): Require gl_C99_STRTOLD.
23848
23849 2010-11-18  Bruno Haible  <bruno@clisp.org>
23850
23851         c-strtold: Avoid link error on AIX 7.
23852         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23853         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23854         (gl_C_STRTOLD): Test whether strtold_l exists.
23855         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23856
23857 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23858
23859         intprops: new macro INT_BITS_STRLEN_BOUND
23860         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23861         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23862         not exposed.  Also, it uses a slightly tighter bound than before;
23863         though this makes no practical difference, we might as well be as
23864         tight as we easily can.
23865
23866         ftoastr: new module, for lossless conversion of floats to short strings
23867         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23868         * modules/ftoastr: New files.
23869
23870 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23871
23872         bootstrap: port to Solaris sed
23873         * build-aux/bootstrap (get_version): Port to Solaris sed.
23874         See Ralf Wildenhues's note in
23875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23876
23877 2010-11-14  Jim Meyering  <meyering@redhat.com>
23878
23879         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23880         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23881         and move definition closer to sole use.
23882
23883 2010-11-13  Jim Meyering  <meyering@redhat.com>
23884
23885         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23886         Now we require at least autoconf-2.59, which means the work-around
23887         is no longer needed.
23888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23889         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23890         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23891         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23892         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23893
23894 2010-11-13  Bruno Haible  <bruno@clisp.org>
23895
23896         rename, renameat: Avoid test failures at NFS mounted locations.
23897         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23898         functions.
23899         (test_rename): Use assert_nonexistent.
23900         * tests/test-rename.c: Include <dirent.h>.
23901         * tests/test-renameat.c: Likewise.
23902         Reported by Gary V. Vaughan <gary@gnu.org>.
23903
23904         rename, renameat: Document Linux bug with NFS
23905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23906         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23907         * doc/posix-functions/renameat.texi: Likewise.
23908         Suggested by Eric Blake.
23909
23910 2010-11-13  Bruno Haible  <bruno@clisp.org>
23911
23912         rename test: Add comments.
23913         * tests/test-rename.h (test_rename): Add structure and comments.
23914
23915 2010-11-13  Eric Blake  <eblake@redhat.com>
23916
23917         maintainer-makefile: cover a few more files
23918         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23919         scripts generated within C files, for libvirt.
23920
23921 2010-11-13  Bruno Haible  <bruno@clisp.org>
23922
23923         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23924         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23925         character, return the number of bytes that belong together, not always
23926         1.
23927         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23928         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23929         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23930         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23931         number of bytes of an invalid character.
23932         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23933         (main): Invoke it.
23934         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23935         results.
23936         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23937         malformed byte sequences.
23938         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23939         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23940         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23941         Reported by Ben Pfaff and Paolo Bonzini.
23942
23943 2010-11-13  Bruno Haible  <bruno@clisp.org>
23944
23945         openat: Work around glibc bug with fchownat() and empty file names.
23946         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23947         (gl_FUNC_FCHOWNAT): Invoke it.
23948         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23949         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23950         Reported by Gary V. Vaughan <gary@gnu.org>.
23951
23952 2010-11-13  Bruno Haible  <bruno@clisp.org>
23953
23954         openat: Ensure autoconf macro ordering.
23955         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23956         gl_USE_SYSTEM_EXTENSIONS.
23957         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23958
23959 2010-11-13  Bruno Haible  <bruno@clisp.org>
23960
23961         Update comments.
23962         * lib/unistr/u8-check.c: Update file name in comments.
23963         * lib/unistr/u8-mblen.c: Likewise.
23964         * lib/unistr/u8-prev.c: Likewise.
23965         * lib/unistr/u8-strmblen.c: Likewise.
23966         * lib/unistr/u8-strmbtouc.c: Likewise.
23967
23968 2010-11-13  Jim Meyering  <meyering@redhat.com>
23969
23970         tests: avoid test failure on Solaris 10 due to lack of PATH export
23971         * tests/test-update-copyright.sh: Don't forget to export PATH.
23972
23973         init.sh: ensure that IFS is defined, just in case...
23974         * tests/init.sh (setup_): Ensure that IFS is defined,
23975         so that saving and restoring it works as expected.  This
23976         appears to be useful at least for an old version of dash
23977         from a long time ago (RH 6).  See here for details:
23978         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23979
23980         maint.mk: tighten "test a == b" check
23981         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23982         test to files that contain something like #!/bin/sh.
23983         Without this, coreutils would get two false positives in
23984         the comments of C source files.
23985
23986 2010-11-12  Eric Blake  <eblake@redhat.com>
23987
23988         bootstrap: fix typo in previous attempt
23989         * build-aux/bootstrap (buildreq): Correct the grouping.
23990         Reported by Paul Eggert.
23991
23992         maintainer-makefile: prohibit test x == x
23993         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23994         Based on a report by Matthias Bolte.
23995
23996         bootstrap: allow FreeBSD gzip
23997         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23998         which has no '.' and goes to stderr.
23999         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24000         Reported by Matthias Bolte.
24001
24002         maintainer-makefile: check for i18n setup
24003         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24004         will likely work.
24005
24006 2010-11-12  Bruno Haible  <bruno@clisp.org>
24007
24008         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24009         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24010         * lib/nanosleep.c (nanosleep): Likewise.
24011
24012 2010-11-11  Bruno Haible  <bruno@clisp.org>
24013
24014         fcntl-h: Fix for use of C++ on glibc systems.
24015         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24016         also on glibc systems in C++ mode.
24017         Reported by Gary V. Vaughan <gary@gnu.org>.
24018
24019 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24020
24021         mknod: avoid false failure with dash
24022         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24023
24024 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24025
24026         unlink: Fix "is it should" typo in diagnostic.
24027         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24029
24030 2010-11-11  Bruno Haible  <bruno@clisp.org>
24031
24032         Tests for module 'strerror_r-posix'.
24033         * modules/strerror_r-posix-tests: New file.
24034         * tests/test-strerror_r.c: New file.
24035         * tests/test-string-c++.cc: Check the signature of strerror_r.
24036
24037         New module 'strerror_r-posix'.
24038         * lib/string.in.h (strerror_r): New declaration.
24039         * lib/strerror_r.c: New file.
24040         * m4/strerror_r.m4: New file.
24041         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24042         of strerror_r.
24043         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24044         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24045         * modules/strerror_r-posix: New file.
24046         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24047         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24048         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24049         portability problems.
24050
24051 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24052
24053         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24054         line is also considered for output. Quoted function name in shell
24055         command, so temporary files for functions like MyClass::operator()
24056         are removed correctly without errors.
24057
24058 2010-11-09  Bruno Haible  <bruno@clisp.org>
24059
24060         * doc/posix-functions/strerror.texi: List more failing platforms.
24061
24062         * doc/posix-functions/strerror.texi: Add a comment.
24063
24064 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24065
24066         fdopendir: fix bug on MacOS X when low on file descriptors
24067
24068         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24069         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24070         All callers changed.
24071         (fdopendir): Invoke save_cwd at the top level, not after using
24072         multiple dup() calls to use up file descriptors.  Then retry
24073         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24074         less than the maximum number of open file descriptors, because
24075         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24076         on Mac OS X 10.6.4 for tar 1.24
24077         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24078         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24079         and for tar 1.25
24080         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24081
24082 2010-11-07  Bruno Haible  <bruno@clisp.org>
24083
24084         vasnprintf: Support I flag on glibc systems.
24085         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24086         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24087         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24088         snprintf function.
24089         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24090         glibc systems.
24091         * tests/test-vasnprintf-posix3.c: New file.
24092         * modules/vasnprintf-posix-tests (Files): Add it.
24093         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24094
24095 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24096
24097         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24098         * MODULES.html.sh: For compiler warnings, use name
24099         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24100
24101 2010-11-05  Eric Blake  <eblake@redhat.com>
24102
24103         ceil, floor: avoid spurious failure with icc
24104         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24105         [denormals-as-zero] when optimizing without -mieee-fp option.
24106         * tests/test-floorf2.c (floorf_reference): Likewise.
24107         * tests/test-ceilf1.c (dummy): New function.
24108         (main): Use it to outsmart icc's optimization.
24109         * tests/test-floorf1.c (dummy, main): Likewise.
24110
24111         tests: require working signbit
24112         * modules/ceilf-tests (Depends-on): Add signbit.
24113         * modules/ceill-tests (Depends-on): Likewise.
24114         * modules/floorf-tests (Depends-on): Likewise.
24115         * modules/floorl-tests (Depends-on): Likewise.
24116         * modules/round-tests (Depends-on): Likewise.
24117         * modules/roundf-tests (Depends-on): Likewise.
24118         * modules/roundl-tests (Depends-on): Likewise.
24119         * modules/trunc-tests (Depends-on): Likewise.
24120         * modules/truncf-tests (Depends-on): Likewise.
24121         * modules/truncl-tests (Depends-on): Likewise.
24122
24123         strtod: work around icc bug
24124         * lib/strtod.c (minus_zero): Define to working value.
24125         (strtod): Use it to avoid icc bug.
24126
24127         copysign: enhance tests
24128         * modules/copysign-tests (Files): Add minus-zero.h.
24129         * tests/test-copysign.c (main): Also test zeros.
24130
24131 2010-11-04  Eric Blake  <eblake@redhat.com>
24132
24133         ceil, floor, round, trunc: enhance tests of -0
24134         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24135         * tests/test-ceill.c (main): Likewise.
24136         * tests/test-floorf1.c (main): Likewise.
24137         * tests/test-floorl.c (main): Likewise.
24138         * tests/test-round1.c (main): Likewise.
24139         * tests/test-roundf1.c (main): Likewise.
24140         * tests/test-roundl.c (main): Likewise.
24141         * tests/test-trunc1.c (main): Likewise.
24142         * tests/test-truncf1.c (main): Likewise.
24143         * tests/test-truncl.c (main): Likewise.
24144
24145 2010-11-04  Eric Blake  <eblake@redhat.com>
24146
24147         frexp, tests: work around ICC bug with -zero
24148         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24149         works with more compilers.
24150         * tests/minus-zero.h: New file.
24151         * modules/ceilf-tests (Files): Include it.
24152         * modules/ceill-tests (Files): Likewise.
24153         * modules/floorf-tests (Files): Likewise.
24154         * modules/floorl-tests (Files): Likewise.
24155         * modules/frexp-nolibm-tests (Files): Likewise.
24156         * modules/frexp-tests (Files): Likewise.
24157         * modules/frexpl-nolibm-tests (Files): Likewise.
24158         * modules/frexpl-tests (Files): Likewise.
24159         * modules/isnan-tests (Files): Likewise.
24160         * modules/isnand-nolibm-tests (Files): Likewise.
24161         * modules/isnand-tests (Files): Likewise.
24162         * modules/isnanf-nolibm-tests (Files): Likewise.
24163         * modules/isnanf-tests (Files): Likewise.
24164         * modules/isnanl-nolibm-tests (Files): Likewise.
24165         * modules/isnanl-tests (Files): Likewise.
24166         * modules/round-tests (Files): Likewise.
24167         * modules/roundf-tests (Files): Likewise.
24168         * modules/roundl-tests (Files): Likewise.
24169         * modules/ldexpl-tests (Files): Likewise.
24170         * modules/signbit-tests (Files): Likewise.
24171         * modules/snprintf-posix-tests (Files): Likewise.
24172         * modules/sprintf-posix-tests (Files): Likewise.
24173         * modules/strtod-tests (Files): Likewise.
24174         * modules/trunc-tests (Files): Likewise.
24175         * modules/truncf-tests (Files): Likewise.
24176         * modules/truncl-tests (Files): Likewise.
24177         * modules/vsnprintf-posix-tests (Files): Likewise.
24178         * modules/vsprintf-posix-tests (Files): Likewise.
24179         * modules/vasnprintf-posix-tests (Files): Likewise.
24180         * modules/vasprintf-posix-tests (Files): Likewise.
24181         * tests/test-ceilf1.c (main): Use it.
24182         * tests/test-ceill.c (main): Likewise.
24183         * tests/test-floorf1.c (main): Likewise.
24184         * tests/test-floorl.c (main): Likewise.
24185         * tests/test-frexp.c (main): Likewise.
24186         * tests/test-frexpl.c (main): Likewise.
24187         * tests/test-isnan.c (main): Likewise.
24188         * tests/test-isnand.h (main): Likewise.
24189         * tests/test-isnanf.h (main): Likewise.
24190         * tests/test-isnanl.h (main): Likewise.
24191         * tests/test-ldexpl.c (main): Likewise.
24192         * tests/test-round.c (main): Likewise.
24193         * tests/test-roundf.c (main): Likewise.
24194         * tests/test-roundl.c (main): Likewise.
24195         * tests/test-signbit.c (test_signbitf, test_signbitd)
24196         (test_signbitl): Likewise.
24197         * tests/test-snprintf-posix.h (test_function): Likewise.
24198         * tests/test-sprintf-posix.h (test_function): Likewise.
24199         * tests/test-strtod.c (main): Likewise.
24200         * tests/test-trunc1.c (main): Likewise.
24201         * tests/test-truncf1.c (main): Likewise.
24202         * tests/test-truncl.c (main): Likewise.
24203
24204         isnanl: work around icc bug
24205         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24206
24207 2010-11-03  Eric Blake  <eblake@redhat.com>
24208
24209         tests: fix compiler warnings
24210         * tests/test-getopt.h (test_getopt): Fix condition.
24211         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24212         * tests/test-pipe2.c (main): Likewise.
24213         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24214
24215         utimens: fix broken m4 test
24216         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24217
24218 2010-10-28  Bruno Haible  <bruno@clisp.org>
24219
24220         posix_spawn*, getdtablesize: Relax license.
24221         * modules/posix_spawn (License): Change to LGPLv2+.
24222         * modules/posix_spawnp (License): Likewise.
24223         * modules/posix_spawn-internal (License): Likewise.
24224         * modules/posix_spawnattr_init (License): Likewise.
24225         * modules/posix_spawnattr_getflags (License): Likewise.
24226         * modules/posix_spawnattr_setflags (License): Likewise.
24227         * modules/posix_spawnattr_getpgroup (License): Likewise.
24228         * modules/posix_spawnattr_setpgroup (License): Likewise.
24229         * modules/posix_spawnattr_getschedparam (License): Likewise.
24230         * modules/posix_spawnattr_setschedparam (License): Likewise.
24231         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24232         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24233         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24234         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24235         * modules/posix_spawnattr_getsigmask (License): Likewise.
24236         * modules/posix_spawnattr_setsigmask (License): Likewise.
24237         * modules/posix_spawnattr_destroy (License): Likewise.
24238         * modules/posix_spawn_file_actions_init (License): Likewise.
24239         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24240         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24241         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24242         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24243         * modules/getdtablesize (License): Likewise.
24244         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24245
24246 2010-10-26  Bruno Haible  <bruno@clisp.org>
24247
24248         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24249         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24250         Cygwin and mingw.
24251         Suggested by Eric Blake.
24252
24253 2010-10-26  Bruno Haible  <bruno@clisp.org>
24254
24255         stdio: Work around compilation error due to renameat() on Solaris 10.
24256         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24257         * lib/renameat.c: Don't include <unistd.h> here.
24258         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24259         Reported by Paul Eggert and Eric Blake.
24260
24261 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24262
24263         renameat: port to Solaris 10, which declares renameat in unistd.h
24264
24265         * lib/renameat.c: Include unistd.h before stdio.h, because
24266         Solaris 10 declares renameat in unistd.h.  Problem encountered
24267         when building GNU tar 1.24 on Solaris 10.
24268
24269 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24270
24271         fdopendir: fix C89 compilation
24272         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24273         compilers.
24274
24275 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24276
24277         inttostr: simplify by removing unnecessary redundancy
24278         * lib/anytostr.c: Don't include verify.h.
24279         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24280         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24281         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24282         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24283         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24284         Likewise.
24285         * modules/inttostr (Depends-on): Remove 'verify'.
24286
24287 2010-10-23  Bruno Haible  <bruno@clisp.org>
24288
24289         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24290         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24291         Reported by Eric Blake.
24292
24293 2010-10-23  Bruno Haible  <bruno@clisp.org>
24294
24295         Tests: Fix LOCALE_JA on MirBSD 10.
24296         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24297         to an UTF-8 locale.
24298         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24299         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24300         Reported by Eric Blake.
24301
24302 2010-10-21  Bruno Haible  <bruno@clisp.org>
24303
24304         nl_langinfo test: Avoid test failure on NetBSD 5.
24305         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24306         Reported by Eric Blake.
24307
24308 2010-10-21  Eric Blake  <eblake@redhat.com>
24309
24310         c-stack: work around libsigsegv 2.8 bug
24311         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24312         overflow on at least PowerPC64.
24313
24314 2010-10-17  Bruno Haible  <bruno@clisp.org>
24315
24316         userspec: Drop redundant file.
24317         * modules/userspec (Files): Remove lib/inttostr.h.
24318
24319 2010-10-17  Bruno Haible  <bruno@clisp.org>
24320
24321         nl_langinfo tests: Silence some warnings.
24322         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24323         Reported by Jim Meyering.
24324
24325 2010-10-17  Bruno Haible  <bruno@clisp.org>
24326
24327         Make use of GCC's attribute __alloc_size__.
24328         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24329         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24330         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24331         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24332         __alloc_size__.
24333         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24334         Suggested by Jim Meyering.
24335
24336 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24337
24338         bootstrap: anchor .gitignore entries.
24339         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24340         with...
24341         (insert_vc_ignore): ... this new function, which prepends `/' to
24342         all .gitignore entries before passing them to
24343         insert_sorted_if_absent.
24344
24345 2010-10-16  Bruno Haible  <bruno@clisp.org>
24346
24347         nextafter: Fix configure check.
24348         * modules/nextafter (configure.ac): Correct expected prototype.
24349
24350 2010-10-16  Bruno Haible  <bruno@clisp.org>
24351
24352         termios: Update documentation.
24353         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24354
24355 2010-10-16  Bruno Haible  <bruno@clisp.org>
24356
24357         tests: Make them compile with TinyCC.
24358         * tests/test-strstr.c (main): Remove parentheses around array
24359         initializer.
24360
24361 2010-10-15  Eric Blake  <eblake@redhat.com>
24362
24363         ignore-value: make header idempotent
24364         * lib/ignore-value.h: Add double-inclusion guards.
24365         Reported by Stefan Berger.
24366
24367 2010-10-15  Jim Meyering  <meyering@redhat.com>
24368
24369         GNUmakefile: handle "stable" target, not "major"
24370         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24371         lists in maint.mk and announce-gen.  Without this, "make stable"
24372         would fail to ensure that $(VERSION) is up to date.
24373
24374 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24375
24376         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24377         & co.
24378
24379 2010-10-14  Bruno Haible  <bruno@clisp.org>
24380
24381         vasnprintf: Don't set errno to 0.
24382         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24383         block that sets it to 0.
24384         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24385
24386 2010-10-14  Bruno Haible  <bruno@clisp.org>
24387
24388         socketlib: Fix.
24389         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24390         gl_PREREQ_SYS_H_WINSOCK2.
24391         Reported by Ian Beckwith <ianb@erislabs.net>.
24392
24393 2010-10-13  Jim Meyering  <meyering@redhat.com>
24394
24395         test-select-stdin.c: avoid warn_unused_result warnings
24396         * tests/test-select-stdin.c: Include "macros.h".
24397         ASSERT that read and fflush succeed.
24398
24399 2010-10-13  Jim Meyering  <meyering@redhat.com>
24400
24401         git-version-gen: do require git-VC'd files in cwd
24402         * build-aux/git-version-gen: Reject a git version string
24403         if there are no commits associated with the current directory.
24404         This avoids an unlikely false-positive (unrelated dir whose parent
24405         repository also contains a tag matching v*), as pointed out
24406         by Giuseppe Scrivano in
24407         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24408
24409 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24410
24411         argv-iter: omit nonconforming declaration
24412         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24413         enum arg_iter_err declaration, which doesn't conform to C99.
24414         Solaris 10 cc warns about this.
24415
24416 2010-10-13  Eric Blake  <eblake@redhat.com>
24417
24418         termios: fix compilation on mingw
24419         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24420         (gl_TERMIOS_H): Adjust it on mingw.
24421         * modules/termios (Makefile.am): Substitute new key.
24422         * lib/termios.in.h (includes): Make include_next conditional.
24423         * doc/posix-headers/termios.texi (termios.h): Update
24424         documentation.
24425         Reported by Daniel P. Berrange.
24426
24427 2010-10-13  Jim Meyering  <meyering@redhat.com>
24428
24429         git-version-gen: don't require that .git/ be in the current dir
24430         * build-aux/git-version-gen: Adjust this script so that it works
24431         when run from any working directory beneath the top-level .git/-
24432         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24433         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24434
24435         test-select: avoid warn_unused_result warnings
24436         * tests/test-select.c: Include "macros.h".
24437         ASSERT that each call to read, write, and pipe succeeds.
24438         While not technically required, also check each "close".
24439         * modules/select-tests (Files): Add tests/macros.h.
24440
24441         test-symlinkat: remove declaration of unused local
24442         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24443
24444         test-inttostr: avoid shadowing warnings
24445         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24446         and use malloc rather than the stack for the same reason as
24447         mentioned in the comment justifying the other allocation.
24448
24449 2010-10-11  Bruno Haible  <bruno@clisp.org>
24450
24451         stdlib: Allow multiple gnulib generated replacements to coexist.
24452         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24453         Reported by Sam Steingold <sds@gnu.org>.
24454
24455 2010-10-11  Jim Meyering  <meyering@redhat.com>
24456
24457         fix a documentation typo
24458         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24459
24460 2010-10-11  Eric Blake  <eblake@redhat.com>
24461
24462         futimens: work around Solaris 11 bug
24463         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24464         * tests/test-futimens.h (test_futimens): Enhance, rather than
24465         weaken test.
24466         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24467
24468 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24469
24470         Indentation.
24471         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24472         higher-level operators more to the left.
24473
24474 2010-10-11  Jim Meyering  <meyering@redhat.com>
24475
24476         test-futimens: avoid unwarranted test failure on Solaris 5.11
24477         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24478         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24479         because it tries to dereference the NULL name argument.
24480
24481 2010-10-11  Bruno Haible  <bruno@clisp.org>
24482
24483         Indentation.
24484         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24485         indentation.
24486
24487 2010-10-11  Jim Meyering  <meyering@redhat.com>
24488
24489         spawn.in.h: make indentation consistent with parentheses
24490         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24491         Make indentation consistent with parentheses.
24492
24493 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24494
24495         Fix mismatched parens in previous commit
24496         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24497         parens.
24498
24499 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24500
24501         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24502
24503         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24504         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24505         * lib/malloca.c: Include "verify.h".
24506         (verify1): Remove, replacing with a verify call.
24507         * lib/relocwrapper.c (verify1): Likewise.
24508         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24509         Likewise.
24510         * modules/malloca (Depends-on): Add 'verify'.
24511         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24512         * modules/vasnprintf (Depends-on): Add 'verify'.
24513         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24514         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24515         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24516         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24517         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24518         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24519         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24520
24521         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24522
24523         Formerly the style was sometimes 2*X - 1, because the C standard
24524         was wrongly thought to disallow ?: in integral constant expressions.
24525         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24526         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24527         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24528         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24529         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24530         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24531         verify that time_t cannot be floating.
24532
24533 2010-10-08  Eric Blake  <eblake@redhat.com>
24534
24535         time: enforce recent POSIX ruling that time_t is integral
24536         * lib/time.in.h (__time_t_must_be_integral): Detect any
24537         problematic systems, allowing the rest of gnulib to assume POSIX.
24538
24539 2010-10-08  Jim Meyering  <meyering@redhat.com>
24540
24541         fdopendir: fix a bug on systems lacking openat and /proc support
24542         OpenBSD 4.7 is one such system.  The most noticeable effect was
24543         failure of any application making nontrivial use of fts: rm, du,
24544         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24545           ./rm: traversal failed: `a': Bad file descriptor
24546         Debugging that, you see that even though FD 6 was closed just
24547         prior to the opendir call in fd_clone_opendir, its resulting
24548         dir->dd_fd was 8, rather than the expected value of 6:
24549
24550         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24551         93                close (fd);
24552         (gdb) n
24553         94                dir = fd_clone_opendir (dupfd);
24554         (gdb) n
24555         95                saved_errno = errno;
24556         (gdb) p dir->dd_fd
24557         $11 = 8
24558
24559         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24560         The problem is that on OpenBSD, fd_clone_opendir has to resort
24561         to using the old-style save/restore CWD mechanism, due to its
24562         lack of openat/proc support, and *that* would steal the FD (6)
24563         that opendir was supposed to use.
24564
24565         The fix is to squirrel away the desired FD so that save_cwd uses a
24566         different one, and then free the dest FD right before calling opendir.
24567         That guarantees opendir will use the required file descriptor.
24568
24569         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24570
24571 2010-10-08  Bruno Haible  <bruno@clisp.org>
24572
24573         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24574         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24575
24576 2010-10-08  Bruno Haible  <bruno@clisp.org>
24577
24578         nanosleep: Make replacement POSIX compliant.
24579         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24580         is out of range.
24581         Reported by Jim Meyering.
24582
24583 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         bootstrap: add hook for altering gnulib.mk, for Bison
24586         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24587         the Bison bootstrapping process can rewrite file names and variables
24588         in this file before later parts of 'bootstrap' use the file.
24589         Bison wants to include lib/gnulib.mk from the top-level makefile,
24590         so it needs the file names in this file to be relative to the top
24591         level, not relative to lib; plus it needs variable names to be
24592         rewritten.
24593         (slurp): Use the new function.
24594
24595         bootstrap: reformat for readability
24596         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24597
24598 2010-10-08  Eric Blake  <eblake@redhat.com>
24599
24600         docs: update cygwin progress
24601         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24602         1.7.7.
24603         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24604         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24605         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24606         * doc/posix-functions/carg.texi (carg): Likewise.
24607         * doc/posix-functions/cargf.texi (cargf): Likewise.
24608         * doc/posix-functions/casin.texi (casin): Likewise.
24609         * doc/posix-functions/casinf.texi (casinf): Likewise.
24610         * doc/posix-functions/casinh.texi (casinh): Likewise.
24611         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24612         * doc/posix-functions/catan.texi (catan): Likewise.
24613         * doc/posix-functions/catanf.texi (catanf): Likewise.
24614         * doc/posix-functions/catanh.texi (catanh): Likewise.
24615         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24616         * doc/posix-functions/ccos.texi (ccos): Likewise.
24617         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24618         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24619         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24620         * doc/posix-functions/cexp.texi (cexp): Likewise.
24621         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24622         * doc/posix-functions/cimag.texi (cimag): Likewise.
24623         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24624         * doc/posix-functions/clog.texi (clog): Likewise.
24625         * doc/posix-functions/clogf.texi (clogf): Likewise.
24626         * doc/posix-functions/conj.texi (conj): Likewise.
24627         * doc/posix-functions/conjf.texi (conjf): Likewise.
24628         * doc/posix-functions/cpow.texi (cpow): Likewise.
24629         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24630         * doc/posix-functions/cproj.texi (cproj): Likewise.
24631         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24632         * doc/posix-functions/creal.texi (creal): Likewise.
24633         * doc/posix-functions/crealf.texi (crealf): Likewise.
24634         * doc/posix-functions/csin.texi (csin): Likewise.
24635         * doc/posix-functions/csinf.texi (csinf): Likewise.
24636         * doc/posix-functions/csinh.texi (csinh): Likewise.
24637         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24638         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24639         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24640         * doc/posix-functions/ctan.texi (ctan): Likewise.
24641         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24642         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24643         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24644         * doc/posix-headers/complex.texi (complex.h): Likewise.
24645
24646 2010-10-07  Jim Meyering  <meyering@redhat.com>
24647
24648         parse-datetime: avoid compilation failure on OpenBSD 4.7
24649         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24650         This works around a compilation failure on OpenBSD 4.7:
24651         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24652
24653 2010-10-07  Eric Blake  <eblake@redhat.com>
24654
24655         docs: update cygwin progress
24656         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24657         1.7.6.
24658         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24659         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24660         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24661         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24662         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24663         Likewise.
24664         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24665         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24666         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24667         Likewise.
24668         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24669         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24670         Likewise.
24671         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24672         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24673         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24674         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24675         Likewise.
24676         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24677         Likewise.
24678         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24679
24680         docs: update parse-datetime history
24681         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24682         documentation of this function's history and alternatives.
24683
24684         cygwin: use more robust version check
24685         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24686         exclude an eventual cygwin 1.9.1.
24687         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24689         (gl_FUNC_STRCASESTR): Likewise.
24690         Reported by Bruno Haible.
24691
24692 2010-10-06  Bruno Haible  <bruno@clisp.org>
24693
24694         string, sys_select: Avoid #including large headers unless necessary.
24695         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24696         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24697         OSF/1, BeOS, Haiku.
24698         Reported by Jim Meyering.
24699
24700 2010-10-05  Eric Blake  <eblake@redhat.com>
24701
24702         memmem, strstr, strcasestr: fix bug with long periodic needle
24703         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24704         periodic needle having false positive.
24705         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24706         and cygwin 1.7.7.
24707         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24709         (gl_FUNC_STRCASESTR): Likewise.
24710         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24711         * tests/test-memmem.c (main): Expose the bug.
24712         * tests/test-strcasestr.c (main): Likewise.
24713         * tests/test-strstr.c (main): Likewise.
24714         * tests/test-c-strcasestr.c (main): Likewise.
24715         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24716         * doc/posix-functions/strstr.texi (strstr): Likewise.
24717         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24718         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24719
24720 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24721
24722         parse-datetime: do some more renaming
24723         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24724         parse_datetime, not get_date.  Mention the renaming.
24725         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24726         in comments.
24727         * m4/bison.m4: Likewise.
24728
24729 2010-10-05  Eric Blake  <eblake@redhat.com>
24730
24731         parse-datetime: better name than get_date
24732         * NEWS: Reword the deprecation notice.
24733         * modules/get_date: Rename to modules/parse-datetime.
24734         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24735         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24736         * lib/get_date.y: Rename to lib/parse-datetime.y.
24737         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24738         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24739         * doc/getdate.texi: Provide fallback wrapper.
24740         * lib/getdate.h: Move guts, and wrap...
24741         * lib/parse-datetime.h: ...new file.
24742         * lib/parse-datetime.y (get_date): Rename...
24743         (parse_datetime): ...to this.
24744         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24745         (gl_PARSE_DATETIME): ...to this.
24746         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24747         documentation.
24748         * modules/getdate (Files): Provide fallback docs and header.
24749         (Notice, Depends-on): Update references.
24750         * tests/test-parse-datetime.c: Likewise.
24751         * DEPENDENCIES: Likewise.
24752         * MODULES.html.sh (Date and time <time.h>): Likewise.
24753         * doc/parse-datetime.texi (Date input formats)
24754         (Authors of parse_datetime): Likewise.
24755         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24756         (Include): Likewise.
24757         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24758         * gnulib-tool: Likewise.
24759         * m4/bison.m4 (gl_BISON): Likewise.
24760         Suggested by Bruno Haible.
24761
24762 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24763
24764         more ports to Solaris tr, which needs [] around ranges
24765         * gnulib-tool: Solaris tr needs [] around ranges.
24766         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24767         * tests/test-pipe-filter-gi1.c (main): Likewise.
24768         * tests/test-pipe-filter-ii1.c (main): Likewise.
24769
24770 2010-10-05  Eric Blake  <eblake@redhat.com>
24771
24772         bootstrap: fix Solaris regression
24773         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24774         around ranges.
24775         Reported by Pádraig Brady.
24776
24777         bootstrap: work with pkg-config
24778         * build-aux/bootstrap (check_versions): Also transliterate - in
24779         prerequisite name.
24780         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24781         prerequisites that were already found, to avoid confusion.
24782         Reported by Justin Clift.
24783
24784         faccessat: remove unused wrappers
24785         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24786         presence of these wrappers dragged in -lgen on Solaris.
24787         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24788
24789 2010-10-05  Jim Meyering  <meyering@redhat.com>
24790
24791         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24792         * Makefile (sc_pragma_columns): New syntax-check rule.
24793
24794 2010-10-04  Bruno Haible  <bruno@clisp.org>
24795
24796         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24797         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24798         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24799         Reported by Bruce Korb and Eric Blake.
24800
24801 2010-10-04  Bruno Haible  <bruno@clisp.org>
24802
24803         threadlib: Make option --with-libpth-prefix work.
24804         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24805         use $LIBPTH, not just -lpth.
24806
24807 2010-10-04  Bruno Haible  <bruno@clisp.org>
24808
24809         Avoid line length limitation from HP NonStop system header files.
24810         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24811         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24812         * lib/ctype.in.h: Likewise.
24813         * lib/dirent.in.h: Likewise.
24814         * lib/errno.in.h: Likewise.
24815         * lib/fcntl.in.h: Likewise.
24816         * lib/float.in.h: Likewise.
24817         * lib/getopt.in.h: Likewise.
24818         * lib/iconv.in.h: Likewise.
24819         * lib/inttypes.in.h: Likewise.
24820         * lib/langinfo.in.h: Likewise.
24821         * lib/locale.in.h: Likewise.
24822         * lib/math.in.h: Likewise.
24823         * lib/netdb.in.h: Likewise.
24824         * lib/netinet_in.in.h: Likewise.
24825         * lib/poll.in.h: Likewise.
24826         * lib/pthread.in.h: Likewise.
24827         * lib/pty.in.h: Likewise.
24828         * lib/sched.in.h: Likewise.
24829         * lib/se-selinux.in.h: Likewise.
24830         * lib/search.in.h: Likewise.
24831         * lib/signal.in.h: Likewise.
24832         * lib/spawn.in.h: Likewise.
24833         * lib/stdarg.in.h: Likewise.
24834         * lib/stddef.in.h: Likewise.
24835         * lib/stdint.in.h: Likewise.
24836         * lib/stdio.in.h: Likewise.
24837         * lib/stdlib.in.h: Likewise.
24838         * lib/string.in.h: Likewise.
24839         * lib/strings.in.h: Likewise.
24840         * lib/sys_file.in.h: Likewise.
24841         * lib/sys_ioctl.in.h: Likewise.
24842         * lib/sys_select.in.h: Likewise.
24843         * lib/sys_socket.in.h: Likewise.
24844         * lib/sys_stat.in.h: Likewise.
24845         * lib/sys_time.in.h: Likewise.
24846         * lib/sys_times.in.h: Likewise.
24847         * lib/sys_utsname.in.h: Likewise.
24848         * lib/sys_wait.in.h: Likewise.
24849         * lib/sysexits.in.h: Likewise.
24850         * lib/termios.in.h: Likewise.
24851         * lib/time.in.h: Likewise.
24852         * lib/unistd.in.h: Likewise.
24853         * lib/wchar.in.h: Likewise.
24854         * lib/wctype.in.h: Likewise.
24855         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24856         * modules/ctype (Makefile.am): Likewise.
24857         * modules/dirent (Makefile.am): Likewise.
24858         * modules/errno (Makefile.am): Likewise.
24859         * modules/fcntl-h (Makefile.am): Likewise.
24860         * modules/float (Makefile.am): Likewise.
24861         * modules/getopt-posix (Makefile.am): Likewise.
24862         * modules/iconv-h (Makefile.am): Likewise.
24863         * modules/inttypes (Makefile.am): Likewise.
24864         * modules/langinfo (Makefile.am): Likewise.
24865         * modules/locale (Makefile.am): Likewise.
24866         * modules/math (Makefile.am): Likewise.
24867         * modules/netdb (Makefile.am): Likewise.
24868         * modules/netinet_in (Makefile.am): Likewise.
24869         * modules/poll-h (Makefile.am): Likewise.
24870         * modules/pthread (Makefile.am): Likewise.
24871         * modules/pty (Makefile.am): Likewise.
24872         * modules/sched (Makefile.am): Likewise.
24873         * modules/search (Makefile.am): Likewise.
24874         * modules/selinux-h (Makefile.am): Likewise.
24875         * modules/signal (Makefile.am): Likewise.
24876         * modules/spawn (Makefile.am): Likewise.
24877         * modules/stdarg (Makefile.am): Likewise.
24878         * modules/stddef (Makefile.am): Likewise.
24879         * modules/stdint (Makefile.am): Likewise.
24880         * modules/stdio (Makefile.am): Likewise.
24881         * modules/stdlib (Makefile.am): Likewise.
24882         * modules/string (Makefile.am): Likewise.
24883         * modules/strings (Makefile.am): Likewise.
24884         * modules/sys_file (Makefile.am): Likewise.
24885         * modules/sys_ioctl (Makefile.am): Likewise.
24886         * modules/sys_select (Makefile.am): Likewise.
24887         * modules/sys_socket (Makefile.am): Likewise.
24888         * modules/sys_stat (Makefile.am): Likewise.
24889         * modules/sys_time (Makefile.am): Likewise.
24890         * modules/sys_times (Makefile.am): Likewise.
24891         * modules/sys_utsname (Makefile.am): Likewise.
24892         * modules/sys_wait (Makefile.am): Likewise.
24893         * modules/sysexits (Makefile.am): Likewise.
24894         * modules/termios (Makefile.am): Likewise.
24895         * modules/time (Makefile.am): Likewise.
24896         * modules/unistd (Makefile.am): Likewise.
24897         * modules/wchar (Makefile.am): Likewise.
24898         * modules/wctype (Makefile.am): Likewise.
24899
24900 2010-10-04  Bruno Haible  <bruno@clisp.org>
24901
24902         read-file tests: Avoid a test failure on NonStop Kernel.
24903         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24904         a regular file.
24905         Reported by Joachim Schmitz <schmitz@hp.com>.
24906
24907 2010-10-03  Bruno Haible  <bruno@clisp.org>
24908
24909         gnulib-tool: Fixes for --create-testdir with --libtool.
24910         * gnulib-tool (func_get_automake_snippet): Don't augment
24911         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24912         an executable.
24913         (func_create_testdir): Handle module 'alloca' like func_import.
24914         Reported by Bruce Korb <bruce.korb@gmail.com>.
24915
24916 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24917
24918         Avoid some lines longer than 80 characters.
24919         * lib/stdint.in.h: Break long comment lines.
24920         * lib/math.in.h: Likewise.
24921         (_GL_NUM_UINT_WORDS): New macro, for readability.
24922         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24923         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24924         * lib/stdlib.in.h: Likewise.
24925         * lib/spawn.in.h: Likewise.
24926         * lib/sys_socket.in.h: Update an URL.
24927         * lib/sys_stat.in.h: Break long line.
24928
24929 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24930
24931         Improve pmccabe2html.
24932         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24933         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24934         when the sources change. Remove the line in the HTML about "Used
24935         ranges" (which implied that there might be other unused ranges),
24936         rename "Resume" to "Summary" (easier to understand for more users).
24937         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24938         styles, and some unnecessary blank lines.
24939
24940 2010-10-03  Bruno Haible  <bruno@clisp.org>
24941             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24942
24943         acl: Add support for ACLs on NonStop Kernel.
24944         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24945         Check whether the function aclsort() exists.
24946         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24947         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24948         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24949         (acl_nontrivial [HAVE_ACLSORT]: New function.
24950         (file_has_acl): Implement for NonStop Kernel.
24951         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24952         (qset_acl): Implement for NonStop Kernel.
24953         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24954         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24955         (main): Implement for NonStop Kernel.
24956         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24957         Kernel. Handle this flavor.
24958         * tests/test-set-mode-acl.sh: Likewise.
24959         * tests/test-copy-acl.sh: Likewise.
24960         * tests/test-copy-file.sh: Likewise.
24961
24962 2010-10-03  Bruno Haible  <bruno@clisp.org>
24963
24964         Info about ACLs on NonStop Kernel.
24965         * doc/acl-resources.txt: Add info about NonStop Kernel.
24966         References by Joachim Schmitz <schmitz@hp.com>.
24967
24968 2010-10-02  Bruno Haible  <bruno@clisp.org>
24969
24970         Define missing EDQUOT on NonStop Kernel.
24971         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24972         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24974         missing.
24975         * doc/posix-headers/errno.texi: Mention the NSK bug.
24976         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24977         Reported by Joachim Schmitz <schmitz@hp.com>.
24978
24979 2010-10-02  Bruno Haible  <bruno@clisp.org>
24980
24981         Update doc for POSIX:2008.
24982         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24983         Update URL of POSIX specification.
24984
24985 2010-10-02  Bruno Haible  <bruno@clisp.org>
24986
24987         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24988         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24989         from gnulib, not from Automake.
24990
24991 2010-10-02  Bruno Haible  <bruno@clisp.org>
24992
24993         New module 'system-posix'.
24994         * modules/system-posix: New file.
24995         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24996         module is present.
24997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24998         GNULIB_SYSTEM_POSIX.
24999         * modules/stdlib (Depends-on): Remove sys_wait.
25000         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25001         * doc/posix-functions/system.texi: Mention the new module.
25002         * doc/posix-headers/stdlib.texi: Likewise.
25003         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25004         define test_sys_wait_macros to a no-op.
25005         Reported by Sam Steingold <sds@gnu.org>.
25006
25007 2010-09-30  Bruno Haible  <bruno@clisp.org>
25008
25009         More renaming from 'getdate' to 'get_date'.
25010         * doc/get_date.texi: Renamed from doc/getdate.texi.
25011         * modules/get_date (Files): Update.
25012         * MODULES.html.sh (Date and time <time.h>): Update.
25013         * DEPENDENCIES: Update.
25014         * gnulib-tool: Update comment.
25015         * m4/bison.m4 (gl_BISON): Likewise.
25016         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25017
25018 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25019
25020         bootstrap: support ACLOCAL_FLAGS during aclocal
25021         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25022         can add additional -I dir for third-party .m4 files.
25023
25024 2010-09-30  Eric Blake  <eblake@redhat.com>
25025
25026         bootstrap: use glibtoolize on MacOS
25027         * build-aux/bootstrap (check_versions): Convert libtool into
25028         libtoolize.
25029         (tool search): Move libtool check earlier, and look for
25030         glibtoolize for MacOS.
25031         (gnulib_tool_options): Auto-add --libtool when appropriate.
25032         Reported by Justin Clift.
25033
25034         poll: fix typo that broke test on MacOS
25035         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25036         Reported by Justin Clift.
25037
25038         getdate: rename to get_date
25039         Note: getdate.h is not renamed, to minimize client impact.
25040         * modules/getdate: Mark obsolete.  Move old contents...
25041         * modules/get_date: ...to new module name.
25042         * modules/getdate-tests: Move...
25043         * modules/get_date-tests: ...here.
25044         * m4/getdate.m4: Move...
25045         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25046         * lib/getdate.y: Move...
25047         * lib/get_date.y: ...here.
25048         * tests/test-getdate.c: Move...
25049         * tests/test-get_date.c: ...here.
25050         * doc/posix-functions/getdate.texi (getdate): Update name.
25051         * NEWS: Mention the change.
25052
25053 2010-09-29  Bruno Haible  <bruno@clisp.org>
25054
25055         Separate the module 'waitpid' from the module 'sys_wait'.
25056         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25057         present.
25058         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25059         gl_MODULE_INDICATOR_FOR_TESTS.
25060         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25061         * modules/sys_wait (Depends-on): Remove waitpid.
25062         (Makefile.am): Substitute GNULIB_WAITPID.
25063         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25064         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25065         signature only if the 'waitpid' module is present.
25066         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25067         * NEWS: Mention the change.
25068         * modules/grantpt (Depends-on): Add waitpid.
25069         * modules/wait-process (Depends-on): Likewise.
25070
25071 2010-09-29  Bruno Haible  <bruno@clisp.org>
25072
25073         More tests for module 'sys_wait'.
25074         * modules/sys_wait-c++-tests: New file.
25075         * tests/test-sys_wait-c++.cc: New file.
25076         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25077         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25078
25079 2010-09-29  Bruno Haible  <bruno@clisp.org>
25080
25081         New module 'waitpid'.
25082         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25083         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25084         Don't include <process.h>.
25085         (waitpid): Declare only, using modern idiom.
25086         * m4/waitpid.m4: New file.
25087         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25088         * modules/waitpid: New file.
25089         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25090         (Makefile.am): Update.
25091         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25092
25093 2010-09-28  Bruno Haible  <bruno@clisp.org>
25094
25095         poll: Assume ANSI C.
25096         * lib/poll.c (poll): Use an ANSI C declaration.
25097
25098 2010-09-28  Bruno Haible  <bruno@clisp.org>
25099
25100         poll-h: Create poll.h on all platforms.
25101         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25102         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25103         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25104         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25105         (gl_REPLACE_POLL_H): Don't set POLL_H.
25106         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25107         * modules/poll-h (Depends-on): Add include_next.
25108         (Makefile.am): Create poll.h unconditionally. Substitute also
25109         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25110
25111 2010-09-28  Bruno Haible  <bruno@clisp.org>
25112
25113         Tests for module 'poll-h'.
25114         * modules/poll-h-c++-tests: New file.
25115         * tests/test-poll-h-c++.cc: New file.
25116
25117         Tests for module 'poll-h'.
25118         * modules/poll-h-tests: New file.
25119         * tests/test-poll-h.c: New file.
25120
25121 2010-09-28  Bruno Haible  <bruno@clisp.org>
25122
25123         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25124         * modules/poll-h (Depends-on): Add 'extensions'.
25125
25126 2010-09-28  Bruno Haible  <bruno@clisp.org>
25127
25128         New module 'poll-h'.
25129         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25130         (poll): Use modern idiom.
25131         * modules/poll-h: New file.
25132         * modules/poll (Files): Remove lib/poll.in.h.
25133         (Depends-on): Add poll-h.
25134         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25135         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25136         * m4/poll_h.m4: New file.
25137         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25138         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25139         and invoke gl_REPLACE_POLL_H.
25140         * lib/poll.c: Use common idiom.
25141         * tests/test-poll.c: Likewise.
25142         * doc/posix-headers/poll.texi: Mention the poll-h module.
25143         Suggested by Eric Blake.
25144
25145 2010-09-26  Bruno Haible  <bruno@clisp.org>
25146
25147         sys_wait: Implement WSTOPSIG.
25148         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25149         Reported by Simon Josefsson.
25150
25151 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25152
25153         stdlib, sys_wait: Avoid compilation error on mingw.
25154         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25155
25156 2010-09-26  Bruno Haible  <bruno@clisp.org>
25157
25158         stdlib tests: Avoid code duplication.
25159         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25160         * modules/sys_wait-tests (Files): Likewise.
25161         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25162         * tests/test-stdlib.c: Include test-sys_wait.h.
25163         (main): Invoke test_sys_wait_macros.
25164         * tests/test-sys_wait.c: Include test-sys_wait.h.
25165         (main): Invoke test_sys_wait_macros.
25166
25167 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25168
25169         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25170         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25171         sure Windows sockets are working before calling getaddrinfo.
25172         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25173         * doc/gnulib.texi (Windows sockets): Fix typo.
25174
25175 2010-09-25  Bruno Haible  <bruno@clisp.org>
25176
25177         Tests for module 'regex-quote'.
25178         * modules/regex-quote-tests: New file.
25179         * tests/test-regex-quote.c: New file.
25180
25181         New module 'regex-quote'.
25182         * lib/regex-quote.h: New file.
25183         * lib/regex-quote.c: New file.
25184         * modules/regex-quote: New file.
25185         Suggested by Reuben Thomas <rrt@sc3d.org>.
25186
25187 2010-09-24  Bruno Haible  <bruno@clisp.org>
25188
25189         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25190         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25191
25192 2010-09-23  Bruno Haible  <bruno@clisp.org>
25193
25194         setenv: Relax license.
25195         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25196         Blake.
25197         Requested by Eric Blake.
25198
25199 2010-09-22  Bruno Haible  <bruno@clisp.org>
25200
25201         termios: Relax license.
25202         * modules/termios (License): Change to LGPLv2+.
25203         Requested by Eric Blake.
25204
25205 2010-09-22  Bruno Haible  <bruno@clisp.org>
25206
25207         threadlib: Allow the package to change the default to 'no'.
25208         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25209         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25210         Reported by Paul Eggert.
25211
25212 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25213             Bruno Haible  <bruno@clisp.org>
25214
25215         Fix endless loop in mbmemcasecoll.
25216         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25217         byte.
25218         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25219
25220 2010-09-22  Bruno Haible  <bruno@clisp.org>
25221
25222         Tests for module 'memcoll'.
25223         * modules/memcoll-tests: New file.
25224         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25225
25226         memcoll, xmemcoll: Clarify size vs. length.
25227         * modules/memcoll.c (memcoll0): Clarify specification.
25228         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25229         passed to collate_error.
25230
25231 2010-09-22  Bruno Haible  <bruno@clisp.org>
25232
25233         Tests for module 'memcasecmp'.
25234         * modules/memcasecmp-tests: New file.
25235         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25236
25237 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         * lib/pthread.in.h: Add split double-inclusion guard, and include
25240         system <pthread.h> if there is one.  Use @@-style as in other
25241         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25242         pthread.h doesn't.
25243         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25244         (pthread_mutexattr_settype, pthread_mutex_trylock):
25245         New static inline functions, if there's no system <pthread.h>.
25246         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25247         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25248         Approximate with mutexes if the system lacks spinlocks, as in
25249         MacOS.
25250         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25251         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25252         @@-style.  Check for spinlocks separately.
25253         (gl_PTHREAD_DEFAULTS): New macro.
25254         * modules/pthread: Redo to use a more typical style for in.h files.
25255
25256 2010-09-21  Eric Blake  <eblake@redhat.com>
25257
25258         net_if: enhance tests
25259         * tests/test-net_if.c (main): Move signature checks earlier.
25260         Print failures to stderr.
25261         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25262         Document the bug that we do not yet fix.
25263
25264 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25265
25266         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25267         about gnulib, not GSS.
25268
25269 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25270
25271         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25272         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25273         for Emacs.
25274         * build-aux/pmccabe2html: Make Makefile.am example code more
25275         cut-and-paste friendly.
25276
25277 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25278
25279         * tests/test-net_if.c: New file.
25280         * modules/net_if-tests: New file.
25281
25282 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25283
25284         pthread: add pthread_spin_destroy
25285         * lib/pthread.in.h (pthread_spin_destroy): New function.
25286
25287 2010-09-19  Bruno Haible  <bruno@clisp.org>
25288
25289         gnulib-tool: Fix --help output.
25290         * gnulib-tool (func_usage): Fix help message.
25291         Reported by Reuben Thomas <rrt@sc3d.org>.
25292
25293 2010-09-18  Jim Meyering  <meyering@redhat.com>
25294
25295         maint.mk: avoid unexpanded \n in two diagnostics
25296         * top/maint.mk (sc_prohibit_always_true_header_tests):
25297         Don't use a literal \n in a halt=... assignment.  It would not be
25298         expanded, and the two \n bytes would appear in the diagnostic output
25299         rather than the desired newline.  Use halt=$$(printf ... instead.
25300         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25301
25302 2010-09-18  Bruno Haible  <bruno@clisp.org>
25303
25304         netinet_in: Doc tweak.
25305         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25306         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25307
25308 2010-09-18  Jim Meyering  <meyering@redhat.com>
25309
25310         init.sh: correct an outdated comment
25311         * tests/init.sh (create_exe_shims_):  s/function/alias/
25312
25313         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25314         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25315         a file named "*.exe" is removed between the glob expansion and the
25316         processing of that oddly named file.
25317
25318 2010-09-17  Eric Blake  <eblake@redhat.com>
25319
25320         mirbsd: add some more support
25321         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25322         in BSD family.
25323         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25324         devices as OpenBSD.
25325         * m4/host-os.m4 (mirbsd): Add MirBSD.
25326
25327         tests: fix unportable assumption on sys/wait.h
25328         * tests/test-sys_wait.c (main): Relax test.
25329         * tests/test-stdlib.c (main): Likewise.
25330
25331         init.sh: accomodate directory with no .exes
25332         * tests/init.sh: Accomodate directory containing only scripts.
25333
25334         tests: avoid compiler warning
25335         * tests/test-stdlib.c (main): Use the variable.
25336
25337         fdutimens, fdutimensat: update signature, again
25338         * lib/utimens.h (gl_futimens): Delete, and move signature...
25339         (fdutimens): ...here.
25340         (fdutimensat): Rearrange signature.
25341         (lutimensat): Rename variable for clarity.
25342         * lib/fdutimensat.c (fdutimensat): Update signature.
25343         * lib/utimens.c (fdutimens): Likewise.
25344         (gl_futimens): Delete.
25345         (utimens, lutimens): Update callers.
25346         * lib/futimens.c (futimens): Likewise.
25347         * tests/test-fdutimensat.c: Likewise.
25348         * tests/test-utimens.c: Likewise.
25349         * tests/test-futimens.h: Update comment.
25350         * NEWS: Mention this.
25351         Suggested by Paul Eggert.
25352
25353 2010-09-17  Bruno Haible  <bruno@clisp.org>
25354
25355         Take over the maintenance of some older macros from Autoconf.
25356         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25357         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25358         GNU Autoconf.
25359         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25360         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25361
25362 2010-09-17  Eric Blake  <eblake@redhat.com>
25363
25364         fdutimensat: drop atflag validation
25365         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25366         with valid fd, to close a race scenario where futimens is
25367         unsupported and FILE was replaced by a symlink.
25368         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25369         accordingly.
25370         Suggested by Paul Eggert.
25371
25372 2010-09-16  Bruno Haible  <bruno@clisp.org>
25373
25374         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25375         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25376
25377 2010-09-16  Bruno Haible  <bruno@clisp.org>
25378
25379         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25380         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25381         login_tty exists.
25382         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25383
25384 2010-09-16  Bruno Haible  <bruno@clisp.org>
25385
25386         login_tty: Make the replacement code work on BSD systems.
25387         * lib/login_tty.c: Include <sys/ioctl.h>.
25388         (login_tty): Use ioctl TIOCSCTTY when available.
25389         * modules/login_tty (Depends-on): Add sys_ioctl.
25390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25391
25392 2010-09-16  Bruno Haible  <bruno@clisp.org>
25393
25394         login_tty: Stricter unit test.
25395         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25396         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25397         and tcgetsid() after login_tty.
25398         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25399
25400 2010-09-16  Bruno Haible  <bruno@clisp.org>
25401
25402         New module 'tcgetsid'.
25403         * lib/tcgetsid.c: New file.
25404         * m4/tcgetsid.m4: New file.
25405         * modules/tcgetsid: New file.
25406         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25407         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25408         GNULIB_TCGETSID, HAVE_TCGETSID.
25409         * lib/termios.in.h: Include <sys/types.h>.
25410         (tcgetsid): New declaration.
25411         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25412         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25413         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25414         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25415
25416 2010-09-16  Bruno Haible  <bruno@clisp.org>
25417
25418         Tests for module 'termios'.
25419         * modules/termios-c++-tests: New file.
25420         * modules/termios-tests: New file.
25421         * tests/test-termios-c++.cc: New file.
25422         * tests/test-termios.c: New file.
25423
25424         New module 'termios'.
25425         * modules/termios: New file.
25426         * lib/termios.in.h: New file.
25427         * m4/termios_h.m4: New file.
25428         * doc/posix-headers/termios.texi: Mention the new module.
25429
25430 2010-09-16  Eric Blake  <eblake@redhat.com>
25431
25432         fdutimensat: add an atflag parameter
25433         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25434         * lib/utimens.h (fdutimensat): Update prototype.
25435         * tests/test-fdutimensat.c: Adjust test to match.
25436         * NEWS: Document the change.
25437         Suggested by Paul Eggert.
25438
25439 2010-09-16  Bruno Haible  <bruno@clisp.org>
25440
25441         Fix typos in comments.
25442         * lib/striconveh.h: Fix typo in comment.
25443         * lib/login_tty.c (login_tty): Likewise.
25444
25445 2010-09-15  Bruno Haible  <bruno@clisp.org>
25446
25447         stdlib: clarify MirBSD WEXITSTATUS bug
25448         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25449         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25450
25451 2010-09-15  Eric Blake  <eblake@redhat.com>
25452
25453         stdlib: work around MirBSD WEXITSTATUS bug
25454         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25455         * modules/stdlib (Depends-on): Add sys_wait.
25456         * tests/test-sys_wait.c (main): Enhance test.
25457         * tests/test-stdlib.c (main): Likewise.
25458         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25459
25460         docs: mention MacOS issue with WEXITSTATUS(constant)
25461         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25462         issue.
25463         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25464
25465         strnlen: add tests
25466         * modules/strnlen-tests: New file.
25467         * tests/test-strnlen.c: Likewise.
25468
25469 2010-09-14  Bruno Haible  <bruno@clisp.org>
25470
25471         unistr/base: Avoid link errors when module 'libunistring' is also used.
25472         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25473         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25474         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25475         Declare also when HAVE_LIBUNISTRING is set.
25476         Reported by Pádraig Brady <P@draigbrady.com>.
25477
25478 2010-09-14  Eric Blake  <eblake@redhat.com>
25479
25480         test-rawmemchr: make more robust
25481         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25482         (Depends-on, configure.ac): Add needed prerequisites to use it.
25483         * modules/memchr-tests (Files, Depends-on, configure.ac):
25484         Likewise, to avoid implicit reliance on memchr module prereqs.
25485         * tests/test-memchr.c (main): Ensure proper masking.
25486         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25487         reads.
25488
25489         memchr: detect glibc Alpha bug
25490         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25491         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25492         Alpha.
25493         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25494         * tests/test-memchr.c (main): Enhance test.
25495         Reported by Nelson H. F. Beebe.
25496
25497 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         fts, getcwd, glob: audit for dirfd returning -1
25500         * lib/fts.c (opendir): Remove #define; no longer used.
25501         (opendirat): New arg PDIR_FD.  All callers changed.
25502         (fts_build, _opendir2): Use new opendirat to avoid the need for
25503         dirfd, or for checking whether dirfd returns a negative value.
25504         Don't use opendir; always use openat followed by fdopendir.
25505         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25506         it.
25507         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25508         returns -1 here.
25509         * modules/fts (Depends-on): Remove dirfd.
25510         * modules/getcwd (Depends-on): Likewise.
25511
25512 2010-09-13  Eric Blake  <eblake@redhat.com>
25513
25514         float: fix broken MirBSD header
25515         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25516         * doc/posix-headers/float.texi (float.h): Document it.
25517
25518 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25519
25520         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25521         * lib/fts.c (opendirat): New arg extra_flags.
25522         (__opendir2): Use it to avoid following symlinks when opening
25523         a directory, if symlinks are not supposed to be followed.  See
25524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25525
25526         fdopendir: preserve argument fd before returning
25527         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25528         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25529         (fdopendir): Use them, arranging for FD to be open to the same
25530         directory that it was when it started.  (It might be temporarily
25531         closed while fdopendir is running, so this not thread- or
25532         signal-safe.)  Be careful to do the right thing even when file
25533         descriptors are scarce and dup fails with errno == EMFILE.  See
25534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25535
25536 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25537
25538         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25539         * NEWS: Document change.
25540         * m4/regex.m4: Disable test for regoff_t size.
25541
25542 2010-09-13  Jim Meyering  <meyering@redhat.com>
25543
25544         fts: don't operate on an invalid file descriptor after failed dup
25545         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25546         negative file descriptor.
25547
25548 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25549
25550         savedir: add streamsavedir, deprecate fdsavedir
25551         * NEWS: Mention deprecation of fdsavedir.
25552         * lib/savedir.c (streamsavedir): New extern function, whose name
25553         ends in "savedir" to be consistent with the others.  This differs
25554         from savedirstream in that it doesn't close its argument.  The
25555         next version of GNU tar will use this instead of fdsavedir, to
25556         avoid some race conditions and conserve file descriptors.
25557         (savedirstream): Reimplement as a wrapper around streamsavedir.
25558         (fdsavedir): Add a comment deprecating this function.  As far as
25559         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25560         * lib/savedir.h (streamsavedir): New decl.
25561         (fdsavedir): Add a comment deprecating this.
25562
25563 2010-09-10  Bruno Haible  <bruno@clisp.org>
25564
25565         langinfo: Fix last commit.
25566         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25567         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25569
25570 2010-09-10  Bruno Haible  <bruno@clisp.org>
25571
25572         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25573         * lib/progreloc.c (O_EXEC): Define fallback.
25574
25575 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25576
25577         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25578         * NEWS: Document recent changes to fcntl-h.
25579         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25580         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25581         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25582         Similarly for O_SEARCH; this last was already true, but not documented.
25583         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25584         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25585         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25586         Likewise.
25587         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25588         is zero, not whether it is defined.
25589         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25590         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25591         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25592
25593 2010-09-10  Bruno Haible  <bruno@clisp.org>
25594
25595         langinfo, nl_langinfo: Fix for IRIX 5.3.
25596         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25597         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25598         HAVE_LANGINFO_YESEXPR.
25599         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25600         HAVE_LANGINFO_YESEXPR.
25601         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25602         HAVE_LANGINFO_T_FMT_AMPM is 0.
25603         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25604         HAVE_LANGINFO_YESEXPR is 0.
25605         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25606         NOEXPR.
25607         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25608         * doc/posix-functions/nl_langinfo.texi: Likewise.
25609         Reported by Eric Blake.
25610
25611 2010-09-10  Bruno Haible  <bruno@clisp.org>
25612
25613         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25614         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25615         on FreeBSD 8.0 and OpenBSD 4.6.
25616         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25617         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25618         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25619         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25620         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25621         ac_includes_default.
25622         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25623
25624 2010-09-09  Eric Blake  <eblake@redhat.com>
25625
25626         strsignal: work around NetBSD bug
25627         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25628         * lib/string.in.h (includes): Likewise.
25629         * doc/posix-functions/strsignal.texi (strsignal): Document the
25630         bug.
25631         Reported by Nelson H. F. Beebe.
25632
25633         gnulib-tool: work with NetBSD /bin/sh
25634         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25635         (func_get_description, func_get_comment, func_get_status)
25636         (func_get_notice, func_get_applicability, func_get_filelist)
25637         (func_get_dependencies, func_get_autoconf_early_snippet)
25638         (func_get_autoconf_snippet, func_get_automake_snippet)
25639         (func_get_include_directive, func_get_link_directive)
25640         (func_get_license, func_get_maintainer, func_import): Avoid
25641         shell syntax errors from parsing syntax extensions.
25642
25643 2010-09-09  Bruno Haible  <bruno@clisp.org>
25644
25645         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25646         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25647         a reliable way to determine whether the 'alias' command works.
25648
25649 2010-09-08  Jim Meyering  <meyering@redhat.com>
25650
25651         init.sh: penalize a set-x-impaired shell; don't disqualify it
25652         * tests/init.sh: Too many shells corrupt application stderr when
25653         you set -x, so we can't afford to disqualify them, since at least
25654         on Irix-6.5, that would disqualify all bourne shells.
25655         Instead, use a two-pass approach.
25656         On the first pass, try to find a shell that meets the stricter
25657         condition that set -x does not corrupt stderr.
25658         If no shell meets the stricter condition, retest each candidate
25659         shell, but without that extra condition.  Finally, when
25660         VERBOSE=yes is requested and set -x might cause trouble, simply
25661         issue a warning and refrain from enabling debug output.
25662
25663 2010-09-08  Eric Blake  <eblake@redhat.com>
25664
25665         unsetenv: fix OpenBSD bug
25666         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25667         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25668         documentation.
25669         Reported by Jim Meyering.
25670
25671         strtod: work around IRIX 6.5 bug
25672         * lib/strtod.c (strtod): Reparse number on shorter string if
25673         exponent parse was invalid.
25674         * tests/test-strtod.c (main): Add check for "0x1p 2".
25675         Reported by Tom G. Christensen.
25676
25677         getopt: optimize previous patch
25678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25679         empty variable.  Speed up awk script.
25680         Reported by Paolo Bonzini.
25681
25682 2010-09-08  Jim Meyering  <meyering@redhat.com>
25683
25684         test.sh: disqualify shells for which set -x corrupts stderr
25685         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25686         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25687         appear in stderr output.  For example, this command:
25688             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25689         prints "P=1" on those two systems:
25690
25691 2010-09-08  Bruno Haible  <bruno@clisp.org>
25692
25693         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25694         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25695         commands, because some shells ignore redirections when there is an
25696         error in the command lookup.
25697         Reported by Eric Blake.
25698
25699 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25700
25701         * lib/regex.h: Fix a mention of `regex_compile' (should be
25702         `re_compile_pattern').
25703         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25704         (re_set_registers): Correct name of parameter in comment.
25705
25706         * doc/regex.texi: Add documentation for missing syntax flags.
25707         Remove commented-out documentation of defunct syntax option
25708         RE_NO_EMPTY_ALTS.
25709         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25710         Add documentation of re_set_registers.
25711         Document trick to re-use a pattern buffer by setting fastmap manually.
25712         Update documentation of struct re_pattern_buffer per public members.
25713         Uncomment documentation of equivalence class operators and
25714         collating symbol operators, since they are now implemented,
25715         Explain leftmost-longest matching in relation to alternatives.
25716         Tidy documentation of substring matching.
25717         Remove POSIX documentation, which is done better in
25718         glibc, and refer the reader there. Keep BSD API documentation, as
25719         that is not readily available elsewhere.
25720
25721 2010-09-07  Eric Blake  <eblake@redhat.com>
25722
25723         getopt: handle POSIXLY_CORRECT set but not exported
25724         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25725         export state of POSIXLY_CORRECT, due to bash set -o posix.
25726         Reported by Dustin J. Mitchell.
25727
25728 2010-09-05  Bruno Haible  <bruno@clisp.org>
25729
25730         gnulib-tool: Highlight the changed options.
25731         * gnulib-tool (func_usage): Display the --import, --add-import,
25732         --remove-import explanations in bold font.
25733
25734 2010-09-06  Karl Berry  <karl@gnu.org>
25735
25736         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25737
25738 2010-09-05  Bruno Haible  <bruno@clisp.org>
25739
25740         uniwidth/width: Update comment.
25741         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25742         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25743
25744 2010-09-05  Bruno Haible  <bruno@clisp.org>
25745
25746         isinf, isnan: Relax license.
25747         * modules/isinf (License): Change from GPL to LGPL, with consent from
25748         Ben Pfaff.
25749         * modules/isnan (License): Likewise.
25750         Requested by Ludovic Courtès.
25751
25752 2010-09-04  Bruno Haible  <bruno@clisp.org>
25753
25754         gnulib-tool: Help migration from --import to --add-import or --update.
25755         * gnulib-tool: Emit a verbose error message when --import is used
25756         without any module name.
25757
25758 2010-09-04  Bruno Haible  <bruno@clisp.org>
25759
25760         Update doc about gnulib-tool.
25761         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25762         'gnulib-tool --update' in more detail.
25763         Reported by Eric Blake.
25764
25765 2010-09-04  Bruno Haible  <bruno@clisp.org>
25766
25767         gnulib-tool: Change --import. New options --add/remove-import.
25768         * gnulib-tool: New options --add-import, --remove-import.
25769         (func_usage): Document them.
25770         (have_associative): Define always.
25771         (func_import): In import mode, don't merge the specified settings with
25772         the cached settings. Implement remove-import mode.
25773         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25774         Explain when to use them versus --import.
25775         (Simple update): Use --add-import instead of --import.
25776         * NEWS: Mention the change.
25777
25778 2010-09-04  Bruno Haible  <bruno@clisp.org>
25779
25780         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25781         separate gnulib.mk.
25782
25783 2010-09-04  Bruno Haible  <bruno@clisp.org>
25784
25785         gnulib-tool: Don't talk about CVS any more.
25786         * gnulib-tool (func_usage, func_import): Write "version control"
25787         instead of CVS.
25788
25789 2010-09-04  Jim Meyering  <meyering@redhat.com>
25790
25791         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25792         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25793         false positives (whose names may be ill-chosen) when searching
25794         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25795         would cause a false-positive.
25796
25797         avoid coreutils "make distcheck" failure
25798         Coreutils tests with an absolute build directory name that contains
25799         a space.  Not quoting this directory name caused a failure.
25800         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25801         * tests/test-vc-list-files-cvs.sh: Likewise.
25802
25803 2010-09-04  Bruno Haible  <bruno@clisp.org>
25804
25805         gnulib-tool: Avoid error when run in a package without Makefile.am.
25806         * gnulib-tool: When collecting the m4dirs in a package that does not
25807         have a Makefile.am, eliminate those directories that contain no
25808         gnulib-cache.m4. Fix expression that counts these directories.
25809
25810 2010-09-04  Bruno Haible  <bruno@clisp.org>
25811
25812         update-copyright test: Improve output when perl is missing or too old.
25813         * tests/test-update-copyright.sh: Move test of Perl version down after
25814         the test whether Perl exists. Provide an explanation relating Perl's
25815         error message to Automake's SKIP: message.
25816
25817 2010-09-04  Bruno Haible  <bruno@clisp.org>
25818
25819         Don't augment PATH in TESTS_ENVIRONMENT.
25820         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25821         set abs_aux_dir instead of augmenting PATH.
25822         * modules/vc-list-files-tests (Makefile.am): Likewise.
25823         * tests/test-update-copyright.sh: Augment PATH here.
25824         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25825         path_prepend_.
25826         * tests/test-vc-list-files-git.sh: Likewise.
25827
25828 2010-09-04  Jim Meyering  <meyering@redhat.com>
25829
25830         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25831         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25832
25833 2010-09-04  Bruno Haible  <bruno@clisp.org>
25834
25835         strdup: Fix compilation error in C++ mode.
25836         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25837         the macro.
25838
25839 2010-09-04  Bruno Haible  <bruno@clisp.org>
25840
25841         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25842         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25843         macro into a function.
25844         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25845
25846 2010-09-04  Bruno Haible  <bruno@clisp.org>
25847
25848         Set PATH_SEPARATOR the same way autoconf does.
25849         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25850         the value of PATH_SEPARATOR the same way autoconf-generated configure
25851         scripts do.
25852         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25853         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25854
25855 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25856
25857         Set PATH_SEPARATOR the same way autoconf does.
25858         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25859         the same way autoconf-generated configure scripts do.
25860         * posix-modules: Likewise.
25861
25862 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25863
25864         hash: fix safe_hasher const typo
25865         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25866         const; otherwise, there is a type error later.
25867
25868 2010-09-02  Jim Meyering  <meyering@redhat.com>
25869
25870         test-update-copyright.sh: require perl 5.8.0
25871         * tests/test-update-copyright.sh: Require 5.8.0,
25872         which Tom G. Christensen has confirmed is adequate,
25873         while 5.6.1 is not.
25874
25875 2010-09-02  Eric Blake  <eblake@redhat.com>
25876
25877         tests: init.sh improvements for re-exec'ing with zsh
25878         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25879         -vx through shell re-exec.
25880         Reported by Tom G. Christensen.
25881
25882         wctype: fix typo in previous commit
25883         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25884         Reported by Ludovic Courtès.
25885
25886 2010-09-02  Jim Meyering  <meyering@redhat.com>
25887
25888         test-update-copyright.sh: skip test if Perl is too old
25889         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25890         Reported by Tom G. Christensen.
25891
25892 2010-09-02  Bruno Haible  <bruno@clisp.org>
25893
25894         wctype: Avoid compilation error on IRIX 6.5.30.
25895         * lib/wctype.in.h (iswblank): Declare with a replacement if
25896         REPLACE_ISWBLANK is set.
25897         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25898         declared. Set REPLACE_ISWBLANK.
25899         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25900         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25901         * doc/posix-headers/wctype.texi: Likewise.
25902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25903
25904 2010-09-01  Bruno Haible  <bruno@clisp.org>
25905
25906         New module 'socketlib'.
25907         * modules/socketlib: New file.
25908         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25909         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25910         * modules/sockets (Depends-on): Add socketlib.
25911         Suggested by Sam Steingold <sds@gnu.org>.
25912
25913 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25916
25917         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25918         when one needs search access to a directory but not read access.
25919         On systems where it is available, it works in some cases where
25920         O_RDONLY does not, namely on directories that are searchable but
25921         not readable, and which need only to be searchable.  If O_SEARCH
25922         is not available, fall back to the traditional method of using
25923         O_RDONLY.
25924
25925         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25926         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25927         when opening a directory that needs only to be searchable.
25928         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25929         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25930         * lib/openat-proc.c (openat_proc_name): Likewise.
25931         * lib/openat.c (openat_needs_fchdir): Likewise.
25932         * lib/save-cwd.c (save_cwd): Likewise.
25933         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25934
25935 2010-08-28  Bruno Haible  <bruno@clisp.org>
25936
25937         New module 'host-cpu-c-abi'.
25938         * modules/host-cpu-c-abi: New file.
25939         * m4/host-cpu-c-abi.m4: New file, based on part of
25940         clisp/src/m4/general.m4.
25941         Requested by Sam Steingold <sds@gnu.org>.
25942
25943 2010-08-31  Eric Blake  <eblake@redhat.com>
25944         and Jim Meyering  <meyering@redhat.com>
25945
25946         hash: factor, and guard against misbehaving hasher function
25947         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25948         of table->hasher's return value.  Also protect against a hash value
25949         so large that adding it to table->bucket results in a NULL pointer.
25950         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25951         Use it in place of open-coded check-and-abort.
25952
25953 2010-08-30  Bruno Haible  <bruno@clisp.org>
25954
25955         hash: silence spurious clang warning
25956         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25957         Reported by Eric Blake.
25958
25959 2010-08-30  Eric Blake  <eblake@redhat.com>
25960
25961         strstr, memmem, strcasestr: avoid leaked shell message
25962         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25963         FreeBSD.
25964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25966
25967         tests: silence clang warning
25968         * tests/test-malloca.c (do_allocation): Avoid dead store.
25969
25970 2010-08-29  Bruno Haible  <bruno@clisp.org>
25971
25972         gettext: Fix recent mistake.
25973         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25974
25975 2010-08-29  Bruno Haible  <bruno@clisp.org>
25976
25977         selinux-h: Offer a --without-selinux option.
25978         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25979         --without-selinux was specified, skip all tests and define
25980         HAVE_SELINUX_SELINUX_H to 0.
25981         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25982         set LIB_SELINUX to empty.
25983         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25984         gl_LIBSELINUX. If --without-selinux was specified, replace
25985         selinux/context.h.
25986         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25987
25988 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25989             Bruno Haible  <bruno@clisp.org>
25990
25991         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25992         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25993         of HAVE_REALLOC.
25994         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25995         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25996         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25997         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25998
25999 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26000             Bruno Haible  <bruno@clisp.org>
26001
26002         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26003         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26004         HAVE_CALLOC.
26005         * lib/xmalloc.c: Update accordingly.
26006         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26007         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26008         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26009
26010 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26011             Bruno Haible  <bruno@clisp.org>
26012
26013         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26014         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26015         HAVE_MALLOC.
26016         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26017         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26018         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26019
26020 2010-08-29  Bruno Haible  <bruno@clisp.org>
26021
26022         Update modules list.
26023         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26024         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26025         (String handling <string.h>): Add astrxfrm.
26026         (File system functions): Add readlinkat.
26027
26028 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26029
26030         Tests for module 'realloc-gnu'.
26031         * modules/realloc-gnu-tests: New file.
26032         * tests/test-realloc-gnu.c: New file.
26033
26034         Tests for module 'calloc-gnu'.
26035         * modules/calloc-gnu-tests: New file.
26036         * tests/test-calloc-gnu.c: New file.
26037
26038         Tests for module 'malloc-gnu'.
26039         * modules/malloc-gnu-tests: New file.
26040         * tests/test-malloc-gnu.c: New file.
26041
26042 2010-08-28  Bruno Haible  <bruno@clisp.org>
26043
26044         Rename module 'realloc' -> 'realloc-gnu'.
26045         * modules/realloc-gnu: New file, copied from modules/realloc.
26046         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26047         obsolete.
26048         * modules/mgetgroups (Depends-on): Update.
26049         * doc/posix-functions/realloc.texi: Update.
26050         * NEWS: Mention the change.
26051
26052         Rename module 'calloc' -> 'calloc-gnu'.
26053         * modules/calloc-gnu: New file, copied from modules/calloc.
26054         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26055         obsolete.
26056         * doc/posix-functions/calloc.texi: Update.
26057         * NEWS: Mention the change.
26058
26059         Rename module 'malloc' -> 'malloc-gnu'.
26060         * modules/malloc-gnu: New file, copied from modules/malloc.
26061         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26062         obsolete.
26063         * modules/argp (Depends-on): Update.
26064         * modules/regex (Depends-on): Update.
26065         * doc/posix-functions/malloc.texi: Update.
26066         * NEWS: Mention the change.
26067
26068 2010-08-28  Eric Blake  <eblake@redhat.com>
26069
26070         pread, pwrite: add missing dependency
26071         * modules/pread (Depends-on): Add extensions.
26072         * modules/pwrite (Depends-on): Likewise.
26073
26074 2010-08-28  Bruno Haible  <bruno@clisp.org>
26075
26076         unistr/u*-strchr: Fix tests dependencies.
26077         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26078         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26079         Reported by Ian Beckwith <ianb@erislabs.net>.
26080
26081 2010-08-28  Bruno Haible  <bruno@clisp.org>
26082
26083         read-file: Don't occupy too much unused memory.
26084         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26085
26086 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26087             Eric Blake  <eblake@redhat.com>
26088             Bruno Haible  <bruno@clisp.org>
26089
26090         read-file: Avoid memory reallocations with regular files.
26091         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26092         (fread_file): With regular files, use the remaining length as the
26093         initial buffer size.  Check against overflow.
26094         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26095         sys_stat.
26096
26097 2010-08-28  Bruno Haible  <bruno@clisp.org>
26098
26099         ftello: Relax license.
26100         * modules/ftello (License): Relax to LGPLv2+.
26101         Reported by Eric Blake.
26102
26103 2010-08-28  Bruno Haible  <bruno@clisp.org>
26104
26105         Avoid relocwrapper link errors due to gnulib replacement functions.
26106         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26107         function.
26108         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26109
26110 2010-08-28  Bruno Haible  <bruno@clisp.org>
26111
26112         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26113         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26114         defined.
26115         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26116         Suggested by Eric Blake.
26117
26118 2010-08-28  Bruno Haible  <bruno@clisp.org>
26119
26120         sys_socket, netdb: Ensure socklen_t gets defined.
26121         * modules/sys_socket (Depends-on): Add socklen.
26122         * modules/netdb (Depends-on): Likewise.
26123         * modules/getaddrinfo (Depends-on): Remove socklen.
26124         * modules/getsockopt (Depends-on): Likewise.
26125         * modules/setsockopt (Depends-on): Likewise.
26126         * tests/test-sys_socket.c: Check that socklen_t is defined.
26127         * tests/test-netdb.c: Likewise.
26128         * m4/socklen.m4: Update comments.
26129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26130
26131 2010-08-27  Eric Blake  <eblake@redhat.com>
26132
26133         login_tty: add missing dependency
26134         * modules/login_tty (Depends-on): Add pty.
26135
26136 2010-08-26  Eric Blake  <eblake@redhat.com>
26137
26138         lib-symbol-versions: fix m4 quoting
26139         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26140         format for AC_LINK_IFELSE.
26141
26142         glob: fix compile test
26143         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26144
26145         btowc: fix missing file
26146         * modules/btowc (Files): Also ship locale-fr.m4.
26147
26148         lseek: fix link test
26149         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26150         AC_LINK_IFELSE.
26151
26152         include_next: silence autoconf 2.68 warning
26153         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26154         AC_COMPILE_IFELSE as special.
26155         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26156         autoconf < 2.68.
26157
26158         acl: fix compilation test
26159         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26160         AC_COMPILE_IFELSE.
26161
26162 2010-08-26  Bruno Haible  <bruno@clisp.org>
26163
26164         Modernize AC_TRY_RUN invocations.
26165         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26166         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26167         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26168         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26169         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26170         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26173         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26174         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26175         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26176         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26177         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26178         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26179         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26180         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26181         gl_MBRLEN_NUL_RETVAL): Likewise.
26182         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26183         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26184         Likewise.
26185         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26186         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26187         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26188         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26189         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26190         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26191         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26192         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26193         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26194         Likewise.
26195         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26196         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26197         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26198         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26199         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26201         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26202         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26203         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26205
26206 2010-08-26  Bruno Haible  <bruno@clisp.org>
26207
26208         Modernize AC_TRY_LINK invocations.
26209         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26210         AC_TRY_LINK.
26211         * m4/argp.m4 (gl_ARGP): Likewise.
26212         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26213         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26214         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26215         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26216         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26217         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26218         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26219         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26220         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26221         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26222         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26223         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26224         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26225         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26226         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26227         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26228         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26229         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26230         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26231         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26232         Likewise.
26233         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26234         Likewise.
26235         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26236         Likewise.
26237         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26238         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26239         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26240         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26241         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26242         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26243         * m4/servent.m4 (gl_SERVENT): Likewise.
26244         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26245         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26246         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26247         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26248         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26249         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26250         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26251         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26252         * modules/tsearch-tests (configure.ac): Likewise.
26253
26254 2010-08-26  Bruno Haible  <bruno@clisp.org>
26255
26256         Modernize AC_TRY_COMPILE invocations.
26257         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26258         AC_TRY_COMPILE.
26259         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26260         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26261         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26262         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26263         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26264         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26265         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26266         * m4/lock.m4 (gl_LOCK): Likewise.
26267         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26268         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26269         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26270         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26271         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26272         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26273         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26275         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26276         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26277         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26278         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26279         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26280         extraneous semicolon.
26281
26282 2010-08-26  Jim Meyering  <meyering@redhat.com>
26283
26284         stat-time: relax license LGPL
26285         * modules/stat-time (License): Change from GPL to LGPL,
26286         with consent from all contributors, for use in libguile.
26287         Requested by Ludovic Courtès.
26288
26289 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26290
26291         poll: return immediately on POLLHUP.
26292         * lib/poll.c (poll): Always set timeout before wait_timeout is
26293         computed.
26294
26295 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26296
26297         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26298         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26299         rmdir ("dir/.//"), unlinkat.
26300
26301 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26302
26303         stdbool: avoid spurious failure with modern xlc
26304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26305
26306 2010-08-24  Bruno Haible  <bruno@clisp.org>
26307
26308         getloadavg: simplify code
26309         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26310         gl_have_func. Update comments.
26311
26312 2010-08-24  Eric Blake  <eblake@redhat.com>
26313
26314         getloadavg: don't define SVR4 on cygwin
26315         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26316         only define SVR4 when -lkvm is required.
26317         Reported by Yaakov Selkowitz.
26318
26319 2010-08-24  Bruno Haible  <bruno@clisp.org>
26320
26321         priv-set: fix comment
26322         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26323
26324 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26325
26326         priv-set: fix comments
26327         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26328         to match code, as suggested by David Bartley in:
26329         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26330
26331 2010-08-23  Eric Blake  <eblake@redhat.com>
26332
26333         stdbool: avoid rejecting clang
26334         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26335         * tests/test-stdbool.c: Enable more tests if using the system
26336         <stdbool.h> instead of the gnulib replacement.
26337         (main): Move xlc bug test to a runtime test for all compilers.
26338         Reported by Anders Kaseorg.
26339
26340         argz: fix shell quoting issue
26341         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26342         Reported by Charles Wilson.
26343
26344 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26345             Erik Faye-Lund <kusmabite@gmail.com>
26346
26347         poll, select: handle ERROR_BROKEN_PIPE.
26348         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26349         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26350         * lib/select.c (win32_compute_revents): Do not mark a pipe
26351         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26352
26353 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26354
26355         fts: allow compilation with C++
26356         * lib/fts_.h: Specify extern "C" linkage with C++.
26357
26358 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26359
26360         Fix gnulib-tool sed script de-commentation for AIX sed.
26361         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26362         sed.
26363
26364 2010-08-17  Eric Blake  <eblake@redhat.com>
26365
26366         test-stddef: test for (some) offsetof bugs
26367         * tests/test-stddef.c: Enhance test to ensure correct type of
26368         offsetof.
26369         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26370         that we are not fixing at this time.
26371
26372 2010-08-15  Bruno Haible  <bruno@clisp.org>
26373
26374         stpncpy: Allow stpncpy to be defined as a macro.
26375         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26376         if it's already correctly declared.
26377         * lib/string.in.h (stpncpy): Undefine before redefining.
26378         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26379
26380 2010-08-14  Bruno Haible  <bruno@clisp.org>
26381
26382         Rename module 'memxfrm' to 'amemxfrm'.
26383         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26384         (amemxfrm): Renamed from memxfrm.
26385         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26386         (amemxfrm): Renamed from memxfrm.
26387         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26388         * NEWS: Mention the change.
26389         * MODULES.html.sh (String handling <string.h>): Update.
26390         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26391         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26392         * lib/unicase/u16-casexfrm.c: Likewise.
26393         * lib/unicase/u32-casexfrm.c: Likewise.
26394         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26395         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26396         * lib/uninorm/u16-normxfrm.c: Likewise.
26397         * lib/uninorm/u32-normxfrm.c: Likewise.
26398         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26399         memxfrm.
26400         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26401         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26402         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26403         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26404         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26405         Suggested by Paul Eggert.
26406
26407 2010-08-14  Bruno Haible  <bruno@clisp.org>
26408
26409         Tests for module 'astrxfrm'.
26410         * modules/astrxfrm-tests: New file.
26411         * tests/test-astrxfrm.c: New file.
26412
26413         New module 'astrxfrm'.
26414         * lib/astrxfrm.h: New file.
26415         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26416         * modules/astrxfrm: New file.
26417
26418 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26419
26420         regex: Tweak doc.
26421         * doc/regex.texi (Overview): Don't mention regex.c.
26422         (GNU Regular Expression Compiling): Likewise.
26423         (Match-end-of-line Operator): Mention 'not_eol'.
26424
26425 2010-08-14  Brian Gough  <bjg@gnu.org>
26426             Bruno Haible  <bruno@clisp.org>
26427
26428         git-merge-changelog: add doc relating to use with bzr and hg.
26429         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26430
26431 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26432
26433         pthread: fix pthread.h creation for srcdir != builddir
26434         * modules/pthread (Makefile.am): Fix the rule to work also in a
26435         non-srcdir build.
26436
26437 2010-08-13  Karl Berry  <karl@gnu.org>
26438
26439         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26440         * doc/posix-*/*: force line break before @url of POSIX
26441         specifications.
26442         Suggested by Werner Lemberg.
26443
26444 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26445
26446         strtod: fix const diagnostic
26447         * lib/strtod.c (strtod): Don't assign const char * to char *,
26448         as this elicits a warning from GCC when warnings are enabled.
26449
26450 2010-08-10  Pádraig Brady <P@draigbrady.com>
26451         and Eric Blake  <eblake@redhat.com>
26452
26453         copy-acl: ignore ENOTSUP on HP-UX
26454         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26455         so that it is available for HP-UX.
26456         * lib/copy-acl.c (qcopy_acl): Use it.
26457         Reported by Patrick M. Callahan.
26458
26459 2010-08-10  Eric Blake  <eblake@redhat.com>
26460
26461         open, chown: relax license
26462         * modules/open (License): Change to LGPLv2+, with consent by all
26463         authors, for use in augeas.
26464         * modules/chown (License): Likewise.
26465         * modules/lchown (Likewise): Likewise.
26466         Requested by Adam Stokes.
26467
26468 2010-08-09  Karl Berry  <karl@gnu.org>
26469
26470         * build-aux/ar-lib: new file, import from Automake.
26471         * config/srclist.txt: autocheck for updates.
26472
26473 2010-08-09  Eric Blake  <eblake@redhat.com>
26474
26475         readlinkat: adjust client modules
26476         * modules/areadlinkat (Depends-on): Use readlinkat, not
26477         symlinkat.
26478         * modules/areadlinkat-with-size (Depends-on): Likewise.
26479
26480         mknod: be more vocal about danger of running tests as root
26481         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26482         root, since that is just asking for problems.
26483         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26484
26485         readlinkat: split into its own module
26486         * modules/symlinkat: Split readlinkat...
26487         * modules/readlinkat: ...into separate module.
26488         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26489         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26490         * lib/symlinkat.c (readlinkat): Move...
26491         * lib/readlinkat.c: ...into new file.
26492         * modules/symlinkat-tests: Split readlinkat test...
26493         * modules/readlinkat-tests: ...into separate module.
26494         * tests/test-symlinkat.c: Split...
26495         * tests/test-readlinkat.c: ...into new file.
26496         * NEWS: Document the split.
26497         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26498         * lib/unistd.in.h (readlinkat): Likewise.
26499         Suggested by Bruno Haible.
26500
26501 2010-08-08  Bruno Haible  <bruno@clisp.org>
26502
26503         memxfrm: Speed up.
26504         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26505         that usually only one call to strxfrm is necessary for each string
26506         part.
26507         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26508
26509 2010-08-07  Karl Berry  <karl@gnu.org>
26510
26511         * doc/posix-headers/limits.texi,
26512         * doc/posix-functions/malloc.texi,
26513         * doc/posix-functions/strsignal.texi: missing @item.
26514         * doc/ld-version-script.texi: spurious leading i.
26515         * doc/regex.texi (Interval Operators): no commas inside @var.
26516
26517 2010-08-01  Bruno Haible  <bruno@clisp.org>
26518
26519         Integrate the regex documentation.
26520         * doc/gnulib.texi: Define 'cn' index.
26521         (Regular expressions): New a chapter that includes regex.texi and
26522         regexprops-generic.texi.
26523         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26524         syntax.
26525
26526         Whitespace cleanup.
26527         * doc/regex.texi: Remove trailing spaces.
26528
26529         Add regex documentation.
26530         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26531         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26532         Written by Kathy A. Hargreaves and Karl Berry.
26533
26534 2010-08-01  Bruno Haible  <bruno@clisp.org>
26535
26536         link: Update documentation.
26537         * doc/posix-functions/link.texi: Update regarding Solaris.
26538
26539 2010-07-31  Bruno Haible  <bruno@clisp.org>
26540
26541         Update modules list.
26542         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26543         (String handling <string.h>): Add memcmp2, memxfrm.
26544         (Container data structures): Add xlist, xsublist, xoset.
26545         (Core language properties): Add alignof, unused-parameter.
26546         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26547         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26548         (Unibyte characters <ctype.h>): New section.
26549         (String handling <string.h>): New section.
26550         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26551         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26552         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26553         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26554         tan, tanh, tanl, y0, y1, yn.
26555         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26556         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26557         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26558         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26559         unlockpt, vdprintf, vdprintf-posix.
26560         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26561         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26562         xconcat-filename.
26563         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26564         getdtablesize, pipe2, pipe2-safer.
26565         (Security): New section.
26566         (Networking functions): Add accept4.
26567         (Signal handling): Add sigpipe.
26568         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26569         mbmemcasecoll.
26570         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26571         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26572         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26573         pipe-filter-ii.
26574         (Misc): Add argp-version-etc, login_tty, parse-duration.
26575
26576 2010-07-31  Bruno Haible  <bruno@clisp.org>
26577
26578         Improve doc in MODULES.html.
26579         * modules/linkat (Description): Add the word "function".
26580         * modules/mkfifo (Description): Likewise.
26581         * modules/mknod (Description): Likewise.
26582         * modules/remove (Description): Likewise.
26583         * modules/renameat (Description): Likewise.
26584         * modules/stat (Description): Likewise.
26585         * modules/symlink (Description): Likewise.
26586         * modules/unlink (Description): Likewise.
26587
26588 2010-07-31  Bruno Haible  <bruno@clisp.org>
26589
26590         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26591         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26592         option --enable/disable-c++ instead of --enable/disable-cxx.
26593         * NEWS: Mention the change.
26594
26595 2010-07-31  Bruno Haible  <bruno@clisp.org>
26596
26597         readlink, areadlink: Relax test a bit.
26598         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26599         alternative to ENOTDIR.
26600         * tests/test-areadlink.h (test_areadlink): Likewise.
26601         Reported by Rainer Tammer.
26602
26603 2010-07-31  Bruno Haible  <bruno@clisp.org>
26604
26605         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26606         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26607         character, perform the search using U_STRCHR.
26608         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26609         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26610         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26611         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26612         Suggested by Paolo Bonzini.
26613
26614 2010-07-31  Bruno Haible  <bruno@clisp.org>
26615
26616         unistr/u*-strstr: Fix dependencies.
26617         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26618         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26619         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26620
26621 2010-07-31  Bruno Haible  <bruno@clisp.org>
26622
26623         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26624         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26625         the beginning of the loop.
26626         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26627         cases in 'switch' statement.
26628
26629         unistr/u8-strchr: Fix several bugs.
26630         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26631         the string. When not found, return NULL, not a pointer near the end.
26632
26633         More tests for unistr/u8-strchr.
26634         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26635         that the function does not read past the first occurrence of the byte
26636         being searched.
26637         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26638         * tests/unistr/test-u16-strchr.c (main): New function.
26639         * tests/unistr/test-u32-strchr.c (main): New function.
26640
26641 2010-07-31  Bruno Haible  <bruno@clisp.org>
26642
26643         posix-modules: Ignore backup files of documentation files.
26644         * posix-modules: grep only through files named *.texi.
26645
26646 2010-07-31  Bruno Haible  <bruno@clisp.org>
26647
26648         symlinkat: Fix documentation.
26649         * doc/posix-functions/readlinkat.texi: Fix module name.
26650
26651 2010-07-31  Bruno Haible  <bruno@clisp.org>
26652
26653         fchownat: Replace also when chown has the trailing slash bug.
26654         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26655         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26656         introduced on 2010-04-10.
26657         Reported by Rainer Tammer.
26658
26659 2010-07-31  Bruno Haible  <bruno@clisp.org>
26660
26661         linkat: Work around AIX 7.1 bug.
26662         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26663         whether linkat handles trailing slash correctly. If not, replace linkat
26664         and define LINKAT_TRAILING_SLASH_BUG.
26665         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26666         check whether (fd1,file1) points to a directory if file1 or file2 ends
26667         in a slash. Code taken from lib/link.c.
26668         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26669         Reported by Rainer Tammer.
26670
26671 2010-07-31  Bruno Haible  <bruno@clisp.org>
26672
26673         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26674         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26675         This disables an xlc optimization that was causing wrong test results.
26676         Reported by Rainer Tammer.
26677
26678 2010-07-31  Bruno Haible  <bruno@clisp.org>
26679
26680         iconv: Work around AIX 6.1..7.1 bug.
26681         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26682         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26683         cross-compiling, guess no on all versions of AIX.
26684         Reported by Rainer Tammer.
26685
26686 2010-07-31  Bruno Haible  <bruno@clisp.org>
26687
26688         readlink: Relax test a bit.
26689         * tests/test-readlink.h (test_readlink): Allow different errno value
26690         when readlink is called with a file name that ends in / and refers to
26691         a file.
26692         Suggested by Eric Blake.
26693         Reported by Rainer Tammer.
26694
26695 2010-07-31  Bruno Haible  <bruno@clisp.org>
26696
26697         copysign: Does not require -lm on glibc systems.
26698         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26699         gl_COMMON_DOUBLE_MATHFUNC.
26700         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26701
26702 2010-07-31  Bruno Haible  <bruno@clisp.org>
26703
26704         duplocale: Work around AIX 7.1 bug.
26705         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26706         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26707         * lib/duplocale.c (rpl_duplocale): Update comment.
26708         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26709         Reported by Rainer Tammer.
26710
26711 2010-07-30  Bruno Haible  <bruno@clisp.org>
26712
26713         dirfd: Avoid link error on AIX 7.1.
26714         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26715         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26716         exist, set REPLACE_DIRFD.
26717         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26718         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26719         * doc/posix-functions/dirfd.texi: Update.
26720         Reported by Rainer Tammer.
26721
26722 2010-07-30  Eric Blake  <eblake@redhat.com>
26723
26724         strtod: next round of AIX fixes
26725         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26726         exponent.
26727         * tests/test-strtod.c (main): Enhance tests.
26728         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26729         Reported by Rainer Tammer.
26730
26731         futimens: fix configure check
26732         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26733         Reported by Bruno Haible.
26734
26735 2010-07-30  Bruno Haible  <bruno@clisp.org>
26736
26737         getline: Update regarding AIX.
26738         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26739         Reported by Rainer Tammer.
26740
26741 2010-07-30  Bruno Haible  <bruno@clisp.org>
26742
26743         wcwidth: Drop replacement on AIX 7.
26744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26745         AIX 7.
26746         Reported by Rainer Tammer.
26747
26748 2010-07-30  Bruno Haible  <bruno@clisp.org>
26749
26750         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26751         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26752         a 'char *'.
26753         Reported by Rainer Tammer.
26754
26755 2010-07-30  Bruno Haible  <bruno@clisp.org>
26756
26757         unlink: Update regarding AIX.
26758         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26759         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26760         Reported by Rainer Tammer.
26761
26762 2010-07-30  Bruno Haible  <bruno@clisp.org>
26763
26764         symlink: Update regarding AIX.
26765         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26766         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26767         Reported by Rainer Tammer.
26768
26769 2010-07-30  Bruno Haible  <bruno@clisp.org>
26770
26771         strndup: Update regarding AIX.
26772         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26773         AIX 7.
26774         Reported by Rainer Tammer.
26775
26776 2010-07-30  Bruno Haible  <bruno@clisp.org>
26777
26778         stat: Update regarding AIX.
26779         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26780         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26781         Reported by Rainer Tammer.
26782
26783 2010-07-30  Bruno Haible  <bruno@clisp.org>
26784
26785         truncl: Fix autoconf test.
26786         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26787         whether truncl works.
26788         Reported by Rainer Tammer.
26789
26790 2010-07-30  Bruno Haible  <bruno@clisp.org>
26791
26792         round: Update regarding AIX.
26793         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26794         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26795         Reported by Rainer Tammer.
26796
26797 2010-07-30  Bruno Haible  <bruno@clisp.org>
26798
26799         rename: Update regarding AIX.
26800         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26801         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26802         Reported by Rainer Tammer.
26803
26804 2010-07-30  Bruno Haible  <bruno@clisp.org>
26805
26806         printf.m4: Update regarding AIX.
26807         * m4/printf.m4: Update comments regarding AIX.
26808         Reported by Rainer Tammer.
26809
26810 2010-07-30  Bruno Haible  <bruno@clisp.org>
26811
26812         iconv: Update regarding AIX.
26813         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26814         AIX 7.
26815         Reported by Rainer Tammer.
26816
26817 2010-07-30  Bruno Haible  <bruno@clisp.org>
26818
26819         getopt: Update regarding AIX.
26820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26821         no on AIX.
26822         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26823         Reported by Rainer Tammer.
26824
26825 2010-07-30  Bruno Haible  <bruno@clisp.org>
26826
26827         ldexpl; Update regarding AIX.
26828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26829         on AIX 7.
26830         Reported by Rainer Tammer.
26831
26832 2010-07-30  Bruno Haible  <bruno@clisp.org>
26833
26834         frexpl: Update regarding AIX.
26835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26836         on AIX 7.
26837         Reported by Rainer Tammer.
26838
26839 2010-07-30  Bruno Haible  <bruno@clisp.org>
26840
26841         open, fopen: Update regarding AIX.
26842         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26843         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26844         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26845         * doc/posix-functions/fopen.texi: Likewise.
26846         Reported by Rainer Tammer.
26847
26848 2010-07-30  Bruno Haible  <bruno@clisp.org>
26849
26850         chown: Update doc regarding AIX.
26851         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26852         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26853         Reported by Rainer Tammer.
26854
26855 2010-07-30  Eric Blake  <eblake@redhat.com>
26856
26857         strtod: fix bug in replacement function on AIX
26858         * lib/strtod.c (strtod): Special case broken "0x" parse in
26859         underlying strtod.
26860         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26861         * doc/posix-functions/strtod.texi (strtod): Likewise.
26862         Reported by Rainer Tammer.
26863
26864 2010-07-30  Bruno Haible  <bruno@clisp.org>
26865
26866         mbrlen: Fix cross-compilation guess for AIX.
26867         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26868         guess. Leftover from 2008-12-22.
26869
26870 2010-07-30  Bruno Haible  <bruno@clisp.org>
26871
26872         mbrtowc: Fix cross-compilation guess for AIX.
26873         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26874         guess. Leftover from 2008-12-21.
26875
26876 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26877
26878         init.sh: work around trap limitation of some shells
26879         * tests/init.sh (setup_): Move exit trap outside of shell function.
26880
26881 2010-07-29  Eric Blake  <eblake@redhat.com>
26882
26883         strtod: aid debugging
26884         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26885         understanding why strtod is rejected.
26886
26887 2010-07-28  Bruno Haible  <bruno@clisp.org>
26888
26889         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26890         * lib/unistr/u8-chr.c: Include <string.h>.
26891         * tests/unistr/test-u8-chr.c: Likewise.
26892         * tests/unistr/test-u16-chr.c: Likewise.
26893         * tests/unistr/test-u32-chr.c: Likewise.
26894         * tests/unistr/test-u8-strchr.c: Likewise.
26895         * tests/unistr/test-u16-strchr.c: Likewise.
26896         * tests/unistr/test-u32-strchr.c: Likewise.
26897         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26898         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26899         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26900         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26901
26902 2010-07-28  Bruno Haible  <bruno@clisp.org>
26903
26904         Use spaces for indentation, not tabs.
26905         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26906
26907 2010-07-27  Bruno Haible  <bruno@clisp.org>
26908
26909         mbspcasecmp: Fix function specification.
26910         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26911         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26912         Reported by Eric Blake <eblake@redhat.com>.
26913
26914 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26915
26916         timespec: use cast and not conditional, as truncation isn't possible
26917         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26918         instead of a conditional.  Comment about the situation in more detail.
26919         This undoes most of the 2009-10-29 patch.
26920
26921 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26922
26923         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26924         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26925         * lib/unistr/u8-strchr.c: Likewise.
26926         * modules/unistr/u8-chr: Depend on memchr.
26927
26928         unistr/u*-strchr: add tests
26929         * modules/unistr/u8-strchr-tests: New file.
26930         * modules/unistr/u16-strchr-tests: New file.
26931         * modules/unistr/u32-strchr-tests: New file.
26932         * tests/unistr/test-strchr.h: New file.
26933         * tests/unistr/test-u8-strchr.c: New file.
26934         * tests/unistr/test-u16-strchr.c: New file.
26935         * tests/unistr/test-u32-strchr.c: New file.
26936
26937         unistr/u*-chr: test multibyte sequences more
26938         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26939         test vector.
26940         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26941         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26942         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26943
26944         unistr/u*-chr: test multibyte sequences
26945         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26946
26947         unistr/u*-chr: prepare for multibyte tests
26948         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26949         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26950         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26951         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26952         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26953         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26954
26955 2010-07-18  Bruno Haible  <bruno@clisp.org>
26956
26957         unistr/u8-strchr: Optimize non-ASCII argument case.
26958         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26959         because the first byte often matches anyway.
26960         Reported by Pádraig Brady <P@draigbrady.com>.
26961
26962 2010-07-15  Karl Berry  <karl@gnu.org>
26963
26964         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26965
26966 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26967
26968         getcwd: on Solaris, work better if ancestors are inaccessible
26969         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26970         buffer and size, try again with a large buffer.  This works better
26971         on Solaris, since its getcwd succeeds even if the path to the root
26972         is inaccessible, and this is helpful in common cases such as .zfs
26973         hidden directories.  Problem reported by J Chapman Flack in
26974         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26975         Use system getcwd if it's declared, not merely if it's partly
26976         working; use the partly-working test only to avoid needless effort
26977         if the system getcwd fails.
26978         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26979         comment that was already obsolete and is now even more obsolete.
26980         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26981         now might call strdup.
26982
26983 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26984
26985         pthread: Add enough so that coreutils/src/sort.c compiles.
26986         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26987         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26988         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26989         Include <sys/types.h>, in case it defines pthread_t.
26990         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26991         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26992         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26993         (pthread_rwlockattr_t, pthread_spinlock_t):
26994         New typedefs, if HAVE_PTHREAD_T is not defined.
26995         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26996         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26997         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26998         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26999         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27000         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27001         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27002         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27003         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27004         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27005         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27006         New macros.
27007         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27008         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27009         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27010         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27011         (pthread_spin_unlock): New dummy functions.
27012         (pthread_create): Return EAGAIN; don't set errno.
27013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27014         require AC_C_INLINE.
27015         * modules/pthread (Depends-on): Add sched, time.
27016         (pthread.h): Use AM_V_GEN.
27017
27018 2010-07-13  Bruno Haible  <bruno@clisp.org>
27019
27020         striconveh: Don't malloc memory if the result buffer is sufficient.
27021         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27022         buffer if its size is sufficient.
27023         Reported by Ludovic Courtès <ludo@gnu.org>.
27024
27025 2010-07-13  Bruno Haible  <bruno@clisp.org>
27026
27027         strtod: Add safety check.
27028         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27029
27030 2010-07-12  Bruno Haible  <bruno@clisp.org>
27031
27032         Unify tests that set gl_cv_func_ldexpl_no_libm.
27033         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27034         gl_FUNC_LDEXPL.
27035         (gl_FUNC_LDEXPL): Invoke it.
27036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27037
27038 2010-07-12  Bruno Haible  <bruno@clisp.org>
27039
27040         Unify tests that set gl_cv_func_ldexp_no_libm.
27041         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27042         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27043         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27044         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27045         * modules/strtod (Files): Add m4/ldexp.m4.
27046
27047 2010-07-12  Bruno Haible  <bruno@clisp.org>
27048
27049         Unify tests that set gl_cv_func_frexpl_no_libm.
27050         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27051         gl_FUNC_FREXPL_NO_LIBM.
27052         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27054
27055 2010-07-12  Bruno Haible  <bruno@clisp.org>
27056
27057         Unify tests that set gl_cv_func_frexp_no_libm.
27058         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27059         gl_FUNC_FREXP_NO_LIBM.
27060         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27061         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27062
27063 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27064
27065         memcoll: clarify sizes versus lengths, document better, and tweak perf
27066         * lib/memcoll.c (strcoll_loop, memcoll0):
27067         Improve quality of descriptive comments.  Name variables
27068         consistently as to whether they are lengths (which do not include
27069         terminating null) versus sizes (which do).
27070         * lib/xmemcoll.c (xmemcoll0): Likewise.
27071         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27072         returned when s1size == 0; this is easier to compile and saves
27073         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27074
27075 2010-07-12  Bruno Haible  <bruno@clisp.org>
27076
27077         Tests for module '_Exit'.
27078         * modules/_Exit-tests: New file.
27079         * tests/test-_Exit.sh: New file.
27080         * tests/test-_Exit.c: New file.
27081
27082         New module '_Exit'.
27083         * lib/stdlib.in.h (__attribute__): New macro.
27084         (_Exit): New declaration.
27085         * lib/_Exit.c: New file.
27086         * m4/_Exit.m4: New file.
27087         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27088         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27089         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27090         * modules/_Exit: New file.
27091         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27092         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27093
27094 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27095
27096         strtod: make it more-accurate typically, and don't require libm
27097         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27098         Include limits.h.  Don't include string.h.
27099         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27100         (locale_isspace): New function, so that no casts are needed to
27101         check whether *s is a space.
27102         (ldexp): Provide an unused dummy if not available.
27103         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27104         (strtod): Use them.  This implementation prefers to use the
27105         underlying strtod if available, falling back on our own code
27106         only to fix known bugs.  This is more likely to produce an
27107         accurate result.  Also, it avoids the use of libm functions.
27108         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27109         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27110         was absent, but it caused a test failure with coreutils.
27111         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27112         with libm.
27113         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27114         * modules/strtod-tests (Makefile.am): Likewise.
27115
27116 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27117             Bruno Haible  <bruno@clisp.org>
27118
27119         unistr/u8-strchr: Optimize ASCII argument case.
27120         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27121
27122 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         (x)memcoll: minor tweaks
27125         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27126         is after the type that it qualifies.
27127         (memcoll0): Likewise.
27128         * lib/memcoll.h (memcoll0): Likewise.
27129         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27130         * lib/xmemcoll.h (xmemcoll0): Likewise.
27131         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27132         differs from memcoll in that the NUL byte is part of the argument.
27133         Omit the abort-checks, as performance is a real issue here.  Plus,
27134         the checks were wrong anyway (an off-by-one error).  Omit local
27135         variable 'diff', as it's a bit clearer that way.
27136         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27137         no longer needed.
27138
27139 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27140
27141         (x)memcoll: speedup when input is known to be NUL delimited
27142         * lib/memcoll.c: Include stdlib.
27143         (memcoll0): New function.
27144         (strcoll_loop): New function, refactored for use in both memcoll
27145         and memcoll0.
27146         * lib/memcoll.h (memcoll0): Add prototype.
27147         * lib/xmemcoll.c (xmemcoll0): New function.
27148         (collate_error): New function, refactored for use in both xmemcoll
27149         and xmemcoll0.
27150         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27151         * m4/memcoll.m4: add inline invocation.
27152
27153 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27154
27155         * build-aux/bootstrap: Remove any local translations
27156         from the translation project synchronization directory,
27157         so that local only translations are not distributed.
27158
27159 2010-07-04  Bruno Haible  <bruno@clisp.org>
27160
27161         fsusage: Clarify which code applies to which platforms.
27162         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27163         platform.
27164         * lib/fsusage.c (get_fs_usage): Likewise.
27165
27166 2010-07-04  Bruno Haible  <bruno@clisp.org>
27167
27168         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27169         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27170         Reported by Martin Lambers <marlam@marlam.de>.
27171
27172 2010-07-04  Jim Meyering  <meyering@redhat.com>
27173
27174         hash: once again explicitly disallow insertion of NULL
27175         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27176         inserting a NULL pointer cannot work with these functions.
27177         Add a comment with details.
27178         This reverts part of the 2010-07-01 commit, 5bef1a35
27179         "hash: extend module to deal with non-pointer keys".
27180
27181 2010-07-01  Bruno Haible  <bruno@clisp.org>
27182
27183         stdbool: Update doc.
27184         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27185         Info from Christian Weisgerber <naddy@mips.inka.de>.
27186
27187 2010-07-01  Jim Meyering  <meyering@redhat.com>
27188
27189         hash: extend module to deal with non-pointer keys
27190         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27191         but that allows insertion of non-pointer entries.
27192         Do not disallow an ENTRY value of NULL.
27193         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27194         * lib/hash.h (hash_insert0): Declare.
27195
27196 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27197
27198         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27199         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27200         not present (i.e. with autoconf 2.59 and when using gettextize, not
27201         gnulib), require AC_GNU_SOURCE instead.
27202
27203 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27204
27205         idpriv-drop: Fix tests.
27206         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27207         not to the test-idpriv-droptemp program.
27208
27209 2010-06-29  Bruno Haible  <bruno@clisp.org>
27210
27211         string: Fix syntax error with g++ 2.96.
27212         * lib/string.in.h (__pure__): Remove definition.
27213         (_GL_ATTRIBUTE_PURE): New macro.
27214         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27215         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27216         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27217
27218 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27219
27220         unitypes: Fix bug introduced on 2010-05-18.
27221         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27222
27223 2010-06-22  Eric Blake  <eblake@redhat.com>
27224
27225         memmem: slight optimization
27226         * lib/str-two-way.h (critical_factorization): Update comments.
27227         Reduce work during factorization phase.
27228         Reported by Carlos Bueno <carlos@bueno.org>.
27229
27230 2010-06-21  Bruno Haible  <bruno@clisp.org>
27231
27232         Fix HAVE_CALLOC_POSIX misnomer.
27233         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27234         !HAVE_CALLOC_POSIX.
27235         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27236         HAVE_CALLOC_POSIX.
27237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27238         instead of HAVE_CALLOC_POSIX.
27239         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27240         HAVE_CALLOC_POSIX.
27241
27242         Use modern idiom for calloc() replacement.
27243         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27244         AC_FUNC_CALLOC.
27245         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27246         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27247         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27248         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27249         (gl_REPLACE_CALLOC): New macro.
27250
27251 2010-06-21  Bruno Haible  <bruno@clisp.org>
27252
27253         Fix HAVE_REALLOC_POSIX misnomer.
27254         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27255         !HAVE_REALLOC_POSIX.
27256         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27257         HAVE_REALLOC_POSIX.
27258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27259         instead of HAVE_REALLOC_POSIX.
27260         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27261         HAVE_REALLOC_POSIX.
27262
27263         Use modern idiom for realloc() replacement.
27264         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27265         AC_FUNC_REALLOC.
27266         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27267         Autoconf's AC_FUNC_REALLOC.
27268         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27269         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27270         (gl_REPLACE_REALLOC): New macro.
27271         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27272
27273 2010-06-21  Bruno Haible  <bruno@clisp.org>
27274
27275         Fix HAVE_MALLOC_POSIX misnomer.
27276         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27277         !HAVE_MALLOC_POSIX.
27278         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27279         HAVE_MALLOC_POSIX.
27280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27281         instead of HAVE_MALLOC_POSIX.
27282         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27283         HAVE_MALLOC_POSIX.
27284
27285         Use modern idiom for malloc() replacement.
27286         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27287         AC_FUNC_MALLOC.
27288         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27289         Autoconf's AC_FUNC_MALLOC.
27290         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27291         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27292         (gl_REPLACE_MALLOC): New macro.
27293         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27294
27295 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27296
27297         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27298         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27299         This macro takes 3 arguments, not 4.
27300
27301 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27302
27303         ipv6: fix detection under mingw
27304         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27305         in6_addr.
27306
27307 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27308
27309         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27310         that strtod() works when cross-compiling to a glibc version known
27311         to work.
27312
27313 2010-06-15  Bruno Haible  <bruno@clisp.org>
27314
27315         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27316
27317 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27318
27319         select: Correct timeout.
27320         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27321
27322 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27323
27324         git-version-gen: init shell var to avoid env var influence
27325         * build-aux/git-version-gen (v): Init shell var to empty.
27326
27327 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         priv-set: Don't assume that priv.h exists merely because getppriv does.
27330         See Jan Andersen's bug report about AIX 5L in
27331         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27332         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27333         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27334         * lib/priv-set.h: Likewise.
27335         * tests/test-priv-set.c: Likewise.
27336
27337 2010-06-13  Bruno Haible  <bruno@clisp.org>
27338
27339         relocatable: Make it easier to test whether to install wrappers.
27340         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27341         RELOCATABLE_VIA_WRAPPER.
27342
27343 2010-06-13  Bruno Haible  <bruno@clisp.org>
27344
27345         gnulib-tool: Display specified modules and dependencies differently.
27346         * gnulib-tool (func_show_module_list): New function.
27347         (func_import, func_create_testdir): Invoke it.
27348         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27349
27350 2010-06-13  Bruno Haible  <bruno@clisp.org>
27351
27352         gnulib-tool: Align code of func_import and func_create_testdir.
27353         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27354         specified_modules.
27355
27356 2010-06-12  Jim Meyering  <meyering@redhat.com>
27357
27358         test-inttostr: avoid spurious failure on Solaris 9
27359         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27360         to accept "%ju".  Reported by Bruno Haible.
27361
27362 2010-06-11  Jim Meyering  <meyering@redhat.com>
27363
27364         test-sys_socket: mark variables as used more readably
27365         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27366         as "used" explicitly via (void) statement casts.  This is more
27367         readable than using them in an artificial return expression.
27368         Suggestion from Bruno Haible.
27369
27370 2010-06-11  Bruno Haible  <bruno@clisp.org>
27371
27372         Avoid some more warnings from "gcc -Wwrite-strings".
27373         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27374         to 'const char *'.
27375         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27376         * tests/test-c-strcasestr.c (main): Likewise.
27377         * tests/test-mbscasestr1.c (main): Likewise.
27378         * tests/test-mbscasestr2.c (main): Likewise.
27379         * tests/test-memmem.c (main): Likewise.
27380         * tests/test-strstr.c (main): Likewise.
27381         * tests/test-strcasestr.c (main): Likewise.
27382
27383 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27384
27385         init.sh: change framework_failure_ to fail with status 99, not 1
27386         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27387         automake's parallel-tests rule that this is an unexpected failure,
27388         even if the test is listed in XFAIL_TESTS.
27389
27390 2010-06-11  Jim Meyering  <meyering@redhat.com>
27391
27392         test-inttostr: avoid warnings about 4-6KB literal strings
27393         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27394         Include "macros.h", for its definition of ASSERT.
27395         (CK): s/assert/ASSERT/
27396         * modules/inttostr-tests (Files): Add macros.h.
27397
27398         init.sh: don't use $ME_ or skip_ before they are defined
27399         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27400         their first uses.  Also hoist their companions: warn_, fail_,
27401         framework_failure_, $stderr_fileno.  Prompted by a patch from
27402         Stefano Lattarini.
27403
27404         test-sys_socket: avoid set-but-not-used warnings from gcc
27405         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27406         avoid warning about set-but-not-used variables.
27407
27408         test-xvasprintf: avoid 'const' discard warnings
27409         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27410         "const" when assigning from literal strings.
27411         (test_xasprintf): Add "void" in function argument list to placate
27412         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27413
27414         tests: avoid compilation warnings in argmatch and exclude tests...
27415         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27416         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27417         Since it always exits, declare with the "noreturn" attribute.
27418         * tests/test-argmatch.c: Likewise.
27419
27420         tests: avoid 'const' discard warnings in mbsstr tests
27421         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27422         * tests/test-mbsstr2.c (main): Likewise.
27423
27424         test-verify: avoid warning from gcc's -Wmissing-declarations
27425         * tests/test-verify.c (function): Declare to be static.
27426
27427         test-inttostr.c: include <string.h> for use of strcmp
27428         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27429
27430         test-linkat: avoid failed assertion on "other" architectures
27431         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27432         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27433         sparc: https://bugs.launchpad.net/bugs/591968
27434
27435 2010-06-11  Jim Meyering  <meyering@redhat.com>
27436
27437         printf.m4: avoid autoconf's "Expanded Before Required" warning
27438         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27439         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27440         autoconf warning.
27441
27442 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27443
27444         Replacement header templates are now named with ".in", not "_".
27445         * doc/gnulib-intro.texi: Correct.
27446
27447 2010-06-10  Jim Meyering  <meyering@redhat.com>
27448
27449         inttostr-tests: depend on snprintf, not snprintf-posix
27450         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27451         snprintf-posix, to avoid this aclocal failure:
27452           missing file gnulib-tests/vasnprintf.c
27453           configure.ac:45: error: expected source file, required through \
27454           AC_LIBSOURCES, not found
27455
27456 2010-06-10  Jim Meyering  <meyering@redhat.com>
27457
27458         inttostr: add a new function, inttostr, and tests
27459         The namesake function was not available.  The existence of the
27460         template file, inttostr.c makes its addition nontrivial.
27461         * lib/anytostr.c: Rename from inttostr.c.
27462         (anytostr): Rename from inttostr.
27463         * lib/inttostr.c: New file.
27464         * modules/inttostr (Files): Add anytostr.c.
27465         (Makefile.am): Set lib_SOURCES instead of ...
27466         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27467         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27468         * lib/offtostr.c: Likewise.
27469         * lib/uinttostr.c: Likewise.
27470         * lib/umaxtostr.c: Likewise.
27471         * modules/inttostr-tests: New file.
27472         * tests/test-inttostr.c: New file.  Test these functions.
27473
27474 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27475             Bruno Haible  <bruno@clisp.org>
27476
27477         Add "Extending Gnulib" chapter to manual.
27478         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27479         chapter.
27480         (Extending Gnulib): New chapter.
27481         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27482         chapter.
27483
27484 2010-06-09  Bruno Haible  <bruno@clisp.org>
27485
27486         Avoid relocwrapper link errors due to gnulib replacement functions.
27487         * lib/areadlink.c: Use the system's malloc, realloc functions.
27488         (areadlink): Set errno to ENOMEM explicitly.
27489         * modules/areadlink (Depends-on): Remove malloc-posix.
27490         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27491
27492 2010-06-09  Bruno Haible  <bruno@clisp.org>
27493
27494         Avoid relocwrapper link errors due to gnulib replacement functions.
27495         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27496         * lib/malloca.c: Likewise.
27497         * lib/relocatable.c: Likewise.
27498         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27499         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27500         * lib/setenv.c: Use the system's malloc, realloc functions.
27501         * lib/strerror.c: Use the system's sprintf function.
27502         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27503
27504 2010-06-04  Bruno Haible  <bruno@clisp.org>
27505
27506         Prefer documented low-level autoconf macro names.
27507         * m4/lib-link.m4: Use m4_translit instead of translit.
27508         * m4/environ.m4: Likewise.
27509         * m4/mathfunc.m4: Likewise.
27510         * m4/onceonly.m4: Likewise.
27511         * m4/stdint.m4: Likewise.
27512         Suggested by Eric Blake.
27513
27514 2010-06-04  Martin Lambers  <marlam@marlam.de>
27515             Bruno Haible  <bruno@clisp.org>
27516
27517         havelib: Allow library names with '+' characters.
27518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27519         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27520
27521 2010-06-09  Bruno Haible  <bruno@clisp.org>
27522
27523         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27524         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27525         realloc failed.
27526
27527 2010-06-08  Peter Simons  <simons@cryp.to>
27528
27529         maint.mk: make the news-check rule more configurable
27530         * top/maint.mk (news-check-lines-spec): New variable.
27531         (news-check): Use "sed -n 1,10p" in place of "head".
27532
27533 2010-06-07  Jim Meyering  <meyering@redhat.com>
27534
27535         do-release-commit-and-tag: fix typo in --help
27536         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27537
27538         regex: avoid new dead-code warning with gcc-4.6.0
27539         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27540         if-block containing a while-loop.  It's been unused for at least
27541         5 years.
27542
27543 2010-06-05  Bruno Haible  <bruno@clisp.org>
27544
27545         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27546         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27547
27548 2010-06-04  Bruno Haible  <bruno@clisp.org>
27549
27550         Update to GNU gettext 0.18.1.
27551         * modules/gettext (configure.ac): Require gettext infrastructure from
27552         version 0.18.1.
27553
27554 2010-06-03  Bruno Haible  <bruno@clisp.org>
27555
27556         Don't use AC_LIBOBJ with file names in subdirectories.
27557         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27558         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27559         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27560         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27561         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27562         gl_LIBUNISTRING_LIBSOURCE.
27563         (Makefile.am): Augment lib_SOURCES here, conditionally.
27564         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27565
27566 2010-06-03  Bruno Haible  <bruno@clisp.org>
27567
27568         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27569         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27570         expansion does not end with a newline.
27571         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27572         unnecessary newline.
27573
27574 2010-06-03  Bruno Haible  <bruno@clisp.org>
27575
27576         Reduce dependencies.
27577         * tests/test-quotearg.h: New file, extracted from
27578         tests/test-quotearg.c.
27579         * tests/test-quotearg-simple.c: New file, extracted from
27580         tests/test-quotearg.c.
27581         * tests/test-quotearg.c: Don't include <ctype.h>.
27582         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27583         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27584         use_quote_double_quotes, use_quotearg_colon): Moved to
27585         tests/test-quotearg.h.
27586         (results_g, flag_results, custom_quotes, custom_results): Moved
27587         to tests/test-quotearg-simple.c.
27588         (main): Moved the part that does not depend on gettext to
27589         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27590         performed.
27591         * modules/quotearg-simple: New file.
27592         * modules/quotearg-simple-tests: New file.
27593         * modules/quotearg (Depends-on): Add quotearg-simple.
27594         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27595         (Files): Add tests/test-quotearg.h.
27596         Reported by Paolo Bonzini.
27597
27598 2010-06-03  Bruno Haible  <bruno@clisp.org>
27599
27600         Reduce dependencies.
27601         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27602
27603 2010-06-03  Bruno Haible  <bruno@clisp.org>
27604
27605         time: Undefine more broken macros.
27606         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27607         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27608         Reported by Eric Blake.
27609
27610 2010-06-03  Bruno Haible  <bruno@clisp.org>
27611
27612         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27613         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27614         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27615         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27616         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27617         Reported by Ludovic Courtès <ludo@gnu.org>.
27618
27619 2010-06-02  Eric Blake  <eblake@redhat.com>
27620
27621         time: work with mingw + pthreads-win32 library
27622         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27623         if timespec is defined only in pthread.h.
27624         * modules/time (Makefile.am): Substitute it.
27625         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27626         <pthread.h>, when needed.
27627         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27628         from the library.
27629
27630 2010-05-31  Bruno Haible  <bruno@clisp.org>
27631
27632         Avoid expanding two macros in the wrong order.
27633         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27634         gl_LIBUNISTRING if it is defined.
27635         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27636         autoconf >= 2.64.
27637         Reported by Ludovic Courtès <ludo@gnu.org>.
27638
27639 2010-05-27  Jim Meyering  <meyering@redhat.com>
27640
27641         maint.mk: also prohibit "#undef" of always-defined symbols
27642         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27643         Allow more than one space before the symbol name.
27644         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27645         the regexp uses alternation.
27646
27647 2010-05-26  Eric Blake  <eblake@redhat.com>
27648
27649         maint.mk: avoid echo -e
27650         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27651         Convert all uses of echo -* to printf.
27652         Reported by Matthias Bolte.
27653
27654 2010-05-25  Bruno Haible  <bruno@clisp.org>
27655
27656         Update to GNU gettext 0.18, part 2.
27657         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27658         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27659
27660 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27661
27662         Add missing include in test-pwrite.c.
27663         * tests/test-pwrite.c: Include string.h, for strcmp.
27664
27665 2010-05-24  Bruno Haible  <bruno@clisp.org>
27666
27667         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27668
27669 2010-05-24  Bruno Haible  <bruno@clisp.org>
27670
27671         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27672         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27673         iconveh_error argument.
27674         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27675         U_STRCONV_TO_LOCALE.
27676         * lib/unistr/u16-strcoll.c: Likewise.
27677         * lib/unistr/u32-strcoll.c: Likewise.
27678         * modules/unistr/u8-strcoll (Depends-on): Add
27679         uniconv/u8-strconv-to-enc, localcharset. Remove
27680         uniconv/u8-strconv-to-locale.
27681         (configure.ac): Bump version number.
27682         * modules/unistr/u16-strcoll (Depends-on): Add
27683         uniconv/u16-strconv-to-enc, localcharset. Remove
27684         uniconv/u16-strconv-to-locale.
27685         (configure.ac): Bump version number.
27686         * modules/unistr/u32-strcoll (Depends-on): Add
27687         uniconv/u32-strconv-to-enc, localcharset. Remove
27688         uniconv/u32-strconv-to-locale.
27689         (configure.ac): Bump version number.
27690
27691 2010-05-24  Bruno Haible  <bruno@clisp.org>
27692
27693         Avoid a test failure on NetBSD 5.0.
27694         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27695         an iconv() bug.
27696
27697 2010-05-24  Bruno Haible  <bruno@clisp.org>
27698
27699         Adjust #include directive style.
27700         * modules/regex (Includes): Recommend to write <regex.h>.
27701
27702 2010-05-24  Bruno Haible  <bruno@clisp.org>
27703
27704         regex: Don't require alloca.
27705         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27706         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27707         only inside if (0).
27708
27709 2010-05-23  Jim Meyering  <meyering@redhat.com>
27710
27711         test-renameat.c: include <sys/stat.h>
27712         * tests/test-renameat.c: Include <sys/stat.h>; required for
27713         definition of S_IS* macros.
27714
27715 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27716
27717         Update maintainer documentation for 'relocatable-prog' module.
27718         * doc/relocatable-maint.texi: Update.
27719         Comments by Bruno Haible.
27720
27721 2010-05-23  Bruno Haible  <bruno@clisp.org>
27722
27723         git-merge-changelog: Enable --split-merged-entry by default.
27724         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27725         (usage): Don't mention this option any more.
27726         Reported by Ralf Wildenhues.
27727
27728 2010-05-23  Jim Meyering  <meyering@redhat.com>
27729
27730         test-pwrite: do not leave behind a test file named "out"
27731         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27732         The trivial-looking use of init.sh is really necessary.
27733         It ensures that the temporary file, "out", is created in
27734         a temporary directory, and removed upon termination.
27735         * tests/test-pwrite.sh: Re-add file.
27736         * modules/pwrite-tests: Reference it.
27737
27738 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27739
27740         Fix output redirection buglet in init.sh.
27741         * tests/init.sh: Fix redirection of stderr.
27742
27743 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27744
27745         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27746
27747 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27748
27749         * modules/valgrind-tests: New file.
27750         * m4/valgrind-tests.m4: New file.
27751         * doc/valgrind-tests.texi: New file.
27752         * doc/gnulib.texi (Running self-tests under valgrind): New
27753         section.
27754
27755 2010-05-19  Bruno Haible  <bruno@clisp.org>
27756
27757         Clean up dead code in recent commit.
27758         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27759         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27760         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27761         Suggested by Paolo Bonzini.
27762
27763 2010-05-19  Bruno Haible  <bruno@clisp.org>
27764
27765         Avoid valgrind error reports from libunistring.
27766         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27767         * modules/libunistring (Files): Add it.
27768         * modules/libunistring-optional (Files): Likewise.
27769
27770 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27771             Bruno Haible  <bruno@clisp.org>
27772
27773         New module 'libunistring-optional'.
27774         * modules/libunistring-optional: New file.
27775         * m4/libunistring-base.m4: New file.
27776         * m4/libunistring-optional.m4: New file.
27777         * lib/unicase.in.h: Renamed from lib/unicase.h.
27778         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27779         * lib/unictype.in.h: Renamed from lib/unictype.h.
27780         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27781         * lib/uniname.in.h: Renamed from lib/uniname.h.
27782         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27783         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27784         * lib/unistr.in.h: Renamed from lib/unistr.h.
27785         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27786         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27787         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27788         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27789         gl_LIBUNISTRING. If the library was found, determine the installed
27790         version and set LIBUNISTRING_VERSION.
27791         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27792         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27793         handle a configuration option --with-included-libunistring.
27794         * modules/libunistring (Files): Add m4/absolute-header.m4.
27795         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27796         Add m4/libunistring-base.m4.
27797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27798         (Makefile.am): Build unicase.h from unicase.in.h.
27799         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27800         Add m4/libunistring-base.m4.
27801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27802         (Makefile.am): Build uniconv.h from uniconv.in.h.
27803         * modules/unictype/base (Files): Use unictype.in.h instead of
27804         unictype.h. Add m4/libunistring-base.m4.
27805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27806         (Makefile.am): Build unictype.h from unictype.in.h.
27807         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27808         Add m4/libunistring-base.m4.
27809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27810         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27811         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27812         Add m4/libunistring-base.m4.
27813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27814         (Makefile.am): Build uniname.h from uniname.in.h.
27815         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27816         Add m4/libunistring-base.m4.
27817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27818         (Makefile.am): Build uninorm.h from uninorm.in.h.
27819         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27820         unistdio.h. Add m4/libunistring-base.m4.
27821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27822         (Makefile.am): Build unistdio.h from unistdio.in.h.
27823         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27824         Add m4/libunistring-base.m4.
27825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27826         (Makefile.am): Build unistr.h from unistr.in.h.
27827         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27828         Add m4/libunistring-base.m4.
27829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27830         (Makefile.am): Build unitypes.h from unitypes.in.h.
27831         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27832         Add m4/libunistring-base.m4.
27833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27834         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27835         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27836         uniwidth.h. Add m4/libunistring-base.m4.
27837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27838         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27839         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27840         instead of augmenting lib_SOURCES.
27841         * modules/unicase/empty-suffix-context: Likewise.
27842         * modules/unicase/locale-language: Likewise.
27843         * modules/unicase/tolower: Likewise.
27844         * modules/unicase/totitle: Likewise.
27845         * modules/unicase/toupper: Likewise.
27846         * modules/unicase/u8-casecmp: Likewise.
27847         * modules/unicase/u8-casecoll: Likewise.
27848         * modules/unicase/u8-casefold: Likewise.
27849         * modules/unicase/u8-casexfrm: Likewise.
27850         * modules/unicase/u8-ct-casefold: Likewise.
27851         * modules/unicase/u8-ct-tolower: Likewise.
27852         * modules/unicase/u8-ct-totitle: Likewise.
27853         * modules/unicase/u8-ct-toupper: Likewise.
27854         * modules/unicase/u8-is-cased: Likewise.
27855         * modules/unicase/u8-is-casefolded: Likewise.
27856         * modules/unicase/u8-is-lowercase: Likewise.
27857         * modules/unicase/u8-is-titlecase: Likewise.
27858         * modules/unicase/u8-is-uppercase: Likewise.
27859         * modules/unicase/u8-prefix-context: Likewise.
27860         * modules/unicase/u8-suffix-context: Likewise.
27861         * modules/unicase/u8-tolower: Likewise.
27862         * modules/unicase/u8-totitle: Likewise.
27863         * modules/unicase/u8-toupper: Likewise.
27864         * modules/unicase/u16-casecmp: Likewise.
27865         * modules/unicase/u16-casecoll: Likewise.
27866         * modules/unicase/u16-casefold: Likewise.
27867         * modules/unicase/u16-casexfrm: Likewise.
27868         * modules/unicase/u16-ct-casefold: Likewise.
27869         * modules/unicase/u16-ct-tolower: Likewise.
27870         * modules/unicase/u16-ct-totitle: Likewise.
27871         * modules/unicase/u16-ct-toupper: Likewise.
27872         * modules/unicase/u16-is-cased: Likewise.
27873         * modules/unicase/u16-is-casefolded: Likewise.
27874         * modules/unicase/u16-is-lowercase: Likewise.
27875         * modules/unicase/u16-is-titlecase: Likewise.
27876         * modules/unicase/u16-is-uppercase: Likewise.
27877         * modules/unicase/u16-prefix-context: Likewise.
27878         * modules/unicase/u16-suffix-context: Likewise.
27879         * modules/unicase/u16-tolower: Likewise.
27880         * modules/unicase/u16-totitle: Likewise.
27881         * modules/unicase/u16-toupper: Likewise.
27882         * modules/unicase/u32-casecmp: Likewise.
27883         * modules/unicase/u32-casecoll: Likewise.
27884         * modules/unicase/u32-casefold: Likewise.
27885         * modules/unicase/u32-casexfrm: Likewise.
27886         * modules/unicase/u32-ct-casefold: Likewise.
27887         * modules/unicase/u32-ct-tolower: Likewise.
27888         * modules/unicase/u32-ct-totitle: Likewise.
27889         * modules/unicase/u32-ct-toupper: Likewise.
27890         * modules/unicase/u32-is-cased: Likewise.
27891         * modules/unicase/u32-is-casefolded: Likewise.
27892         * modules/unicase/u32-is-lowercase: Likewise.
27893         * modules/unicase/u32-is-titlecase: Likewise.
27894         * modules/unicase/u32-is-uppercase: Likewise.
27895         * modules/unicase/u32-prefix-context: Likewise.
27896         * modules/unicase/u32-suffix-context: Likewise.
27897         * modules/unicase/u32-tolower: Likewise.
27898         * modules/unicase/u32-totitle: Likewise.
27899         * modules/unicase/u32-toupper: Likewise.
27900         * modules/unicase/ulc-casecmp: Likewise.
27901         * modules/unicase/ulc-casecoll: Likewise.
27902         * modules/unicase/ulc-casexfrm: Likewise.
27903         * modules/uniconv/u8-conv-from-enc: Likewise.
27904         * modules/uniconv/u8-conv-to-enc: Likewise.
27905         * modules/uniconv/u8-strconv-from-enc: Likewise.
27906         * modules/uniconv/u8-strconv-from-locale: Likewise.
27907         * modules/uniconv/u8-strconv-to-enc: Likewise.
27908         * modules/uniconv/u8-strconv-to-locale: Likewise.
27909         * modules/uniconv/u16-conv-from-enc: Likewise.
27910         * modules/uniconv/u16-conv-to-enc: Likewise.
27911         * modules/uniconv/u16-strconv-from-enc: Likewise.
27912         * modules/uniconv/u16-strconv-from-locale: Likewise.
27913         * modules/uniconv/u16-strconv-to-enc: Likewise.
27914         * modules/uniconv/u16-strconv-to-locale: Likewise.
27915         * modules/uniconv/u32-conv-from-enc: Likewise.
27916         * modules/uniconv/u32-conv-to-enc: Likewise.
27917         * modules/uniconv/u32-strconv-from-enc: Likewise.
27918         * modules/uniconv/u32-strconv-from-locale: Likewise.
27919         * modules/uniconv/u32-strconv-to-enc: Likewise.
27920         * modules/uniconv/u32-strconv-to-locale: Likewise.
27921         * modules/unictype/bidicategory-byname: Likewise.
27922         * modules/unictype/bidicategory-name: Likewise.
27923         * modules/unictype/bidicategory-of: Likewise.
27924         * modules/unictype/bidicategory-test: Likewise.
27925         * modules/unictype/block-list: Likewise.
27926         * modules/unictype/block-test: Likewise.
27927         * modules/unictype/category-C: Likewise.
27928         * modules/unictype/category-Cc: Likewise.
27929         * modules/unictype/category-Cf: Likewise.
27930         * modules/unictype/category-Cn: Likewise.
27931         * modules/unictype/category-Co: Likewise.
27932         * modules/unictype/category-Cs: Likewise.
27933         * modules/unictype/category-L: Likewise.
27934         * modules/unictype/category-Ll: Likewise.
27935         * modules/unictype/category-Lm: Likewise.
27936         * modules/unictype/category-Lo: Likewise.
27937         * modules/unictype/category-Lt: Likewise.
27938         * modules/unictype/category-Lu: Likewise.
27939         * modules/unictype/category-M: Likewise.
27940         * modules/unictype/category-Mc: Likewise.
27941         * modules/unictype/category-Me: Likewise.
27942         * modules/unictype/category-Mn: Likewise.
27943         * modules/unictype/category-N: Likewise.
27944         * modules/unictype/category-Nd: Likewise.
27945         * modules/unictype/category-Nl: Likewise.
27946         * modules/unictype/category-No: Likewise.
27947         * modules/unictype/category-P: Likewise.
27948         * modules/unictype/category-Pc: Likewise.
27949         * modules/unictype/category-Pd: Likewise.
27950         * modules/unictype/category-Pe: Likewise.
27951         * modules/unictype/category-Pf: Likewise.
27952         * modules/unictype/category-Pi: Likewise.
27953         * modules/unictype/category-Po: Likewise.
27954         * modules/unictype/category-Ps: Likewise.
27955         * modules/unictype/category-S: Likewise.
27956         * modules/unictype/category-Sc: Likewise.
27957         * modules/unictype/category-Sk: Likewise.
27958         * modules/unictype/category-Sm: Likewise.
27959         * modules/unictype/category-So: Likewise.
27960         * modules/unictype/category-Z: Likewise.
27961         * modules/unictype/category-Zl: Likewise.
27962         * modules/unictype/category-Zp: Likewise.
27963         * modules/unictype/category-Zs: Likewise.
27964         * modules/unictype/category-and: Likewise.
27965         * modules/unictype/category-and-not: Likewise.
27966         * modules/unictype/category-byname: Likewise.
27967         * modules/unictype/category-name: Likewise.
27968         * modules/unictype/category-none: Likewise.
27969         * modules/unictype/category-of: Likewise.
27970         * modules/unictype/category-or: Likewise.
27971         * modules/unictype/category-test: Likewise.
27972         * modules/unictype/combining-class: Likewise.
27973         * modules/unictype/ctype-alnum: Likewise.
27974         * modules/unictype/ctype-alpha: Likewise.
27975         * modules/unictype/ctype-blank: Likewise.
27976         * modules/unictype/ctype-cntrl: Likewise.
27977         * modules/unictype/ctype-digit: Likewise.
27978         * modules/unictype/ctype-graph: Likewise.
27979         * modules/unictype/ctype-lower: Likewise.
27980         * modules/unictype/ctype-print: Likewise.
27981         * modules/unictype/ctype-punct: Likewise.
27982         * modules/unictype/ctype-space: Likewise.
27983         * modules/unictype/ctype-upper: Likewise.
27984         * modules/unictype/ctype-xdigit: Likewise.
27985         * modules/unictype/decimal-digit: Likewise.
27986         * modules/unictype/digit: Likewise.
27987         * modules/unictype/mirror: Likewise.
27988         * modules/unictype/numeric: Likewise.
27989         * modules/unictype/property-alphabetic: Likewise.
27990         * modules/unictype/property-ascii-hex-digit: Likewise.
27991         * modules/unictype/property-bidi-arabic-digit: Likewise.
27992         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27993         * modules/unictype/property-bidi-block-separator: Likewise.
27994         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27995         * modules/unictype/property-bidi-common-separator: Likewise.
27996         * modules/unictype/property-bidi-control: Likewise.
27997         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27998         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27999         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28000         * modules/unictype/property-bidi-european-digit: Likewise.
28001         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28002         * modules/unictype/property-bidi-left-to-right: Likewise.
28003         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28004         * modules/unictype/property-bidi-other-neutral: Likewise.
28005         * modules/unictype/property-bidi-pdf: Likewise.
28006         * modules/unictype/property-bidi-segment-separator: Likewise.
28007         * modules/unictype/property-bidi-whitespace: Likewise.
28008         * modules/unictype/property-byname: Likewise.
28009         * modules/unictype/property-combining: Likewise.
28010         * modules/unictype/property-composite: Likewise.
28011         * modules/unictype/property-currency-symbol: Likewise.
28012         * modules/unictype/property-dash: Likewise.
28013         * modules/unictype/property-decimal-digit: Likewise.
28014         * modules/unictype/property-default-ignorable-code-point: Likewise.
28015         * modules/unictype/property-deprecated: Likewise.
28016         * modules/unictype/property-diacritic: Likewise.
28017         * modules/unictype/property-extender: Likewise.
28018         * modules/unictype/property-format-control: Likewise.
28019         * modules/unictype/property-grapheme-base: Likewise.
28020         * modules/unictype/property-grapheme-extend: Likewise.
28021         * modules/unictype/property-grapheme-link: Likewise.
28022         * modules/unictype/property-hex-digit: Likewise.
28023         * modules/unictype/property-hyphen: Likewise.
28024         * modules/unictype/property-id-continue: Likewise.
28025         * modules/unictype/property-id-start: Likewise.
28026         * modules/unictype/property-ideographic: Likewise.
28027         * modules/unictype/property-ids-binary-operator: Likewise.
28028         * modules/unictype/property-ids-trinary-operator: Likewise.
28029         * modules/unictype/property-ignorable-control: Likewise.
28030         * modules/unictype/property-iso-control: Likewise.
28031         * modules/unictype/property-join-control: Likewise.
28032         * modules/unictype/property-left-of-pair: Likewise.
28033         * modules/unictype/property-line-separator: Likewise.
28034         * modules/unictype/property-logical-order-exception: Likewise.
28035         * modules/unictype/property-lowercase: Likewise.
28036         * modules/unictype/property-math: Likewise.
28037         * modules/unictype/property-non-break: Likewise.
28038         * modules/unictype/property-not-a-character: Likewise.
28039         * modules/unictype/property-numeric: Likewise.
28040         * modules/unictype/property-other-alphabetic: Likewise.
28041         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28042         * modules/unictype/property-other-grapheme-extend: Likewise.
28043         * modules/unictype/property-other-id-continue: Likewise.
28044         * modules/unictype/property-other-id-start: Likewise.
28045         * modules/unictype/property-other-lowercase: Likewise.
28046         * modules/unictype/property-other-math: Likewise.
28047         * modules/unictype/property-other-uppercase: Likewise.
28048         * modules/unictype/property-paired-punctuation: Likewise.
28049         * modules/unictype/property-paragraph-separator: Likewise.
28050         * modules/unictype/property-pattern-syntax: Likewise.
28051         * modules/unictype/property-pattern-white-space: Likewise.
28052         * modules/unictype/property-private-use: Likewise.
28053         * modules/unictype/property-punctuation: Likewise.
28054         * modules/unictype/property-quotation-mark: Likewise.
28055         * modules/unictype/property-radical: Likewise.
28056         * modules/unictype/property-sentence-terminal: Likewise.
28057         * modules/unictype/property-soft-dotted: Likewise.
28058         * modules/unictype/property-space: Likewise.
28059         * modules/unictype/property-terminal-punctuation: Likewise.
28060         * modules/unictype/property-test: Likewise.
28061         * modules/unictype/property-titlecase: Likewise.
28062         * modules/unictype/property-unassigned-code-value: Likewise.
28063         * modules/unictype/property-unified-ideograph: Likewise.
28064         * modules/unictype/property-uppercase: Likewise.
28065         * modules/unictype/property-variation-selector: Likewise.
28066         * modules/unictype/property-white-space: Likewise.
28067         * modules/unictype/property-xid-continue: Likewise.
28068         * modules/unictype/property-xid-start: Likewise.
28069         * modules/unictype/property-zero-width: Likewise.
28070         * modules/unictype/scripts: Likewise.
28071         * modules/unictype/syntax-c-ident: Likewise.
28072         * modules/unictype/syntax-c-whitespace: Likewise.
28073         * modules/unictype/syntax-java-ident: Likewise.
28074         * modules/unictype/syntax-java-whitespace: Likewise.
28075         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28076         * modules/unilbrk/u8-width-linebreaks: Likewise.
28077         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28078         * modules/unilbrk/u16-width-linebreaks: Likewise.
28079         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28080         * modules/unilbrk/u32-width-linebreaks: Likewise.
28081         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28082         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28083         * modules/uniname/uniname: Likewise.
28084         * modules/uninorm/canonical-decomposition: Likewise.
28085         * modules/uninorm/composition: Likewise.
28086         * modules/uninorm/decomposing-form: Likewise.
28087         * modules/uninorm/decomposition: Likewise.
28088         * modules/uninorm/filter: Likewise.
28089         * modules/uninorm/nfc: Likewise.
28090         * modules/uninorm/nfd: Likewise.
28091         * modules/uninorm/nfkc: Likewise.
28092         * modules/uninorm/nfkd: Likewise.
28093         * modules/uninorm/u8-normalize: Likewise.
28094         * modules/uninorm/u8-normcmp: Likewise.
28095         * modules/uninorm/u8-normcoll: Likewise.
28096         * modules/uninorm/u8-normxfrm: Likewise.
28097         * modules/uninorm/u16-normalize: Likewise.
28098         * modules/uninorm/u16-normcmp: Likewise.
28099         * modules/uninorm/u16-normcoll: Likewise.
28100         * modules/uninorm/u16-normxfrm: Likewise.
28101         * modules/uninorm/u32-normalize: Likewise.
28102         * modules/uninorm/u32-normcmp: Likewise.
28103         * modules/uninorm/u32-normcoll: Likewise.
28104         * modules/uninorm/u32-normxfrm: Likewise.
28105         * modules/unistdio/u8-asnprintf: Likewise.
28106         * modules/unistdio/u8-asprintf: Likewise.
28107         * modules/unistdio/u8-snprintf: Likewise.
28108         * modules/unistdio/u8-sprintf: Likewise.
28109         * modules/unistdio/u8-u8-asnprintf: Likewise.
28110         * modules/unistdio/u8-u8-asprintf: Likewise.
28111         * modules/unistdio/u8-u8-snprintf: Likewise.
28112         * modules/unistdio/u8-u8-sprintf: Likewise.
28113         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28114         * modules/unistdio/u8-u8-vasprintf: Likewise.
28115         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28116         * modules/unistdio/u8-u8-vsprintf: Likewise.
28117         * modules/unistdio/u8-vasnprintf: Likewise.
28118         * modules/unistdio/u8-vasprintf: Likewise.
28119         * modules/unistdio/u8-vsnprintf: Likewise.
28120         * modules/unistdio/u8-vsprintf: Likewise.
28121         * modules/unistdio/u16-asnprintf: Likewise.
28122         * modules/unistdio/u16-asprintf: Likewise.
28123         * modules/unistdio/u16-snprintf: Likewise.
28124         * modules/unistdio/u16-sprintf: Likewise.
28125         * modules/unistdio/u16-u16-asnprintf: Likewise.
28126         * modules/unistdio/u16-u16-asprintf: Likewise.
28127         * modules/unistdio/u16-u16-snprintf: Likewise.
28128         * modules/unistdio/u16-u16-sprintf: Likewise.
28129         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28130         * modules/unistdio/u16-u16-vasprintf: Likewise.
28131         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28132         * modules/unistdio/u16-u16-vsprintf: Likewise.
28133         * modules/unistdio/u16-vasnprintf: Likewise.
28134         * modules/unistdio/u16-vasprintf: Likewise.
28135         * modules/unistdio/u16-vsnprintf: Likewise.
28136         * modules/unistdio/u16-vsprintf: Likewise.
28137         * modules/unistdio/u32-asnprintf: Likewise.
28138         * modules/unistdio/u32-asprintf: Likewise.
28139         * modules/unistdio/u32-snprintf: Likewise.
28140         * modules/unistdio/u32-sprintf: Likewise.
28141         * modules/unistdio/u32-u32-asnprintf: Likewise.
28142         * modules/unistdio/u32-u32-asprintf: Likewise.
28143         * modules/unistdio/u32-u32-snprintf: Likewise.
28144         * modules/unistdio/u32-u32-sprintf: Likewise.
28145         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28146         * modules/unistdio/u32-u32-vasprintf: Likewise.
28147         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28148         * modules/unistdio/u32-u32-vsprintf: Likewise.
28149         * modules/unistdio/u32-vasnprintf: Likewise.
28150         * modules/unistdio/u32-vasprintf: Likewise.
28151         * modules/unistdio/u32-vsnprintf: Likewise.
28152         * modules/unistdio/u32-vsprintf: Likewise.
28153         * modules/unistdio/ulc-asnprintf: Likewise.
28154         * modules/unistdio/ulc-asprintf: Likewise.
28155         * modules/unistdio/ulc-fprintf: Likewise.
28156         * modules/unistdio/ulc-snprintf: Likewise.
28157         * modules/unistdio/ulc-sprintf: Likewise.
28158         * modules/unistdio/ulc-vasnprintf: Likewise.
28159         * modules/unistdio/ulc-vasprintf: Likewise.
28160         * modules/unistdio/ulc-vfprintf: Likewise.
28161         * modules/unistdio/ulc-vsnprintf: Likewise.
28162         * modules/unistdio/ulc-vsprintf: Likewise.
28163         * modules/unistr/u8-check: Likewise.
28164         * modules/unistr/u8-chr: Likewise.
28165         * modules/unistr/u8-cmp: Likewise.
28166         * modules/unistr/u8-cmp2: Likewise.
28167         * modules/unistr/u8-cpy: Likewise.
28168         * modules/unistr/u8-cpy-alloc: Likewise.
28169         * modules/unistr/u8-endswith: Likewise.
28170         * modules/unistr/u8-mblen: Likewise.
28171         * modules/unistr/u8-mbsnlen: Likewise.
28172         * modules/unistr/u8-mbtouc: Likewise.
28173         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28174         * modules/unistr/u8-mbtoucr: Likewise.
28175         * modules/unistr/u8-move: Likewise.
28176         * modules/unistr/u8-next: Likewise.
28177         * modules/unistr/u8-prev: Likewise.
28178         * modules/unistr/u8-set: Likewise.
28179         * modules/unistr/u8-startswith: Likewise.
28180         * modules/unistr/u8-stpcpy: Likewise.
28181         * modules/unistr/u8-stpncpy: Likewise.
28182         * modules/unistr/u8-strcat: Likewise.
28183         * modules/unistr/u8-strchr: Likewise.
28184         * modules/unistr/u8-strcmp: Likewise.
28185         * modules/unistr/u8-strcoll: Likewise.
28186         * modules/unistr/u8-strcpy: Likewise.
28187         * modules/unistr/u8-strcspn: Likewise.
28188         * modules/unistr/u8-strdup: Likewise.
28189         * modules/unistr/u8-strlen: Likewise.
28190         * modules/unistr/u8-strmblen: Likewise.
28191         * modules/unistr/u8-strmbtouc: Likewise.
28192         * modules/unistr/u8-strncat: Likewise.
28193         * modules/unistr/u8-strncmp: Likewise.
28194         * modules/unistr/u8-strncpy: Likewise.
28195         * modules/unistr/u8-strnlen: Likewise.
28196         * modules/unistr/u8-strpbrk: Likewise.
28197         * modules/unistr/u8-strrchr: Likewise.
28198         * modules/unistr/u8-strspn: Likewise.
28199         * modules/unistr/u8-strstr: Likewise.
28200         * modules/unistr/u8-strtok: Likewise.
28201         * modules/unistr/u8-to-u16: Likewise.
28202         * modules/unistr/u8-to-u32: Likewise.
28203         * modules/unistr/u8-uctomb: Likewise.
28204         * modules/unistr/u16-check: Likewise.
28205         * modules/unistr/u16-chr: Likewise.
28206         * modules/unistr/u16-cmp: Likewise.
28207         * modules/unistr/u16-cmp2: Likewise.
28208         * modules/unistr/u16-cpy: Likewise.
28209         * modules/unistr/u16-cpy-alloc: Likewise.
28210         * modules/unistr/u16-endswith: Likewise.
28211         * modules/unistr/u16-mblen: Likewise.
28212         * modules/unistr/u16-mbsnlen: Likewise.
28213         * modules/unistr/u16-mbtouc: Likewise.
28214         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28215         * modules/unistr/u16-mbtoucr: Likewise.
28216         * modules/unistr/u16-move: Likewise.
28217         * modules/unistr/u16-next: Likewise.
28218         * modules/unistr/u16-prev: Likewise.
28219         * modules/unistr/u16-set: Likewise.
28220         * modules/unistr/u16-startswith: Likewise.
28221         * modules/unistr/u16-stpcpy: Likewise.
28222         * modules/unistr/u16-stpncpy: Likewise.
28223         * modules/unistr/u16-strcat: Likewise.
28224         * modules/unistr/u16-strchr: Likewise.
28225         * modules/unistr/u16-strcmp: Likewise.
28226         * modules/unistr/u16-strcoll: Likewise.
28227         * modules/unistr/u16-strcpy: Likewise.
28228         * modules/unistr/u16-strcspn: Likewise.
28229         * modules/unistr/u16-strdup: Likewise.
28230         * modules/unistr/u16-strlen: Likewise.
28231         * modules/unistr/u16-strmblen: Likewise.
28232         * modules/unistr/u16-strmbtouc: Likewise.
28233         * modules/unistr/u16-strncat: Likewise.
28234         * modules/unistr/u16-strncmp: Likewise.
28235         * modules/unistr/u16-strncpy: Likewise.
28236         * modules/unistr/u16-strnlen: Likewise.
28237         * modules/unistr/u16-strpbrk: Likewise.
28238         * modules/unistr/u16-strrchr: Likewise.
28239         * modules/unistr/u16-strspn: Likewise.
28240         * modules/unistr/u16-strstr: Likewise.
28241         * modules/unistr/u16-strtok: Likewise.
28242         * modules/unistr/u16-to-u32: Likewise.
28243         * modules/unistr/u16-to-u8: Likewise.
28244         * modules/unistr/u16-uctomb: Likewise.
28245         * modules/unistr/u32-check: Likewise.
28246         * modules/unistr/u32-chr: Likewise.
28247         * modules/unistr/u32-cmp: Likewise.
28248         * modules/unistr/u32-cmp2: Likewise.
28249         * modules/unistr/u32-cpy: Likewise.
28250         * modules/unistr/u32-cpy-alloc: Likewise.
28251         * modules/unistr/u32-endswith: Likewise.
28252         * modules/unistr/u32-mblen: Likewise.
28253         * modules/unistr/u32-mbsnlen: Likewise.
28254         * modules/unistr/u32-mbtouc: Likewise.
28255         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28256         * modules/unistr/u32-mbtoucr: Likewise.
28257         * modules/unistr/u32-move: Likewise.
28258         * modules/unistr/u32-next: Likewise.
28259         * modules/unistr/u32-prev: Likewise.
28260         * modules/unistr/u32-set: Likewise.
28261         * modules/unistr/u32-startswith: Likewise.
28262         * modules/unistr/u32-stpcpy: Likewise.
28263         * modules/unistr/u32-stpncpy: Likewise.
28264         * modules/unistr/u32-strcat: Likewise.
28265         * modules/unistr/u32-strchr: Likewise.
28266         * modules/unistr/u32-strcmp: Likewise.
28267         * modules/unistr/u32-strcoll: Likewise.
28268         * modules/unistr/u32-strcpy: Likewise.
28269         * modules/unistr/u32-strcspn: Likewise.
28270         * modules/unistr/u32-strdup: Likewise.
28271         * modules/unistr/u32-strlen: Likewise.
28272         * modules/unistr/u32-strmblen: Likewise.
28273         * modules/unistr/u32-strmbtouc: Likewise.
28274         * modules/unistr/u32-strncat: Likewise.
28275         * modules/unistr/u32-strncmp: Likewise.
28276         * modules/unistr/u32-strncpy: Likewise.
28277         * modules/unistr/u32-strnlen: Likewise.
28278         * modules/unistr/u32-strpbrk: Likewise.
28279         * modules/unistr/u32-strrchr: Likewise.
28280         * modules/unistr/u32-strspn: Likewise.
28281         * modules/unistr/u32-strstr: Likewise.
28282         * modules/unistr/u32-strtok: Likewise.
28283         * modules/unistr/u32-to-u16: Likewise.
28284         * modules/unistr/u32-to-u8: Likewise.
28285         * modules/unistr/u32-uctomb: Likewise.
28286         * modules/uniwbrk/u8-wordbreaks: Likewise.
28287         * modules/uniwbrk/u16-wordbreaks: Likewise.
28288         * modules/uniwbrk/u32-wordbreaks: Likewise.
28289         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28290         * modules/uniwbrk/wordbreak-property: Likewise.
28291         * modules/uniwidth/u8-strwidth: Likewise.
28292         * modules/uniwidth/u8-width: Likewise.
28293         * modules/uniwidth/u16-strwidth: Likewise.
28294         * modules/uniwidth/u16-width: Likewise.
28295         * modules/uniwidth/u32-strwidth: Likewise.
28296         * modules/uniwidth/u32-width: Likewise.
28297         * modules/uniwidth/width: Likewise.
28298         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28299         with $(LIBUNISTRING).
28300         * modules/unicase/ignorable-tests: Likewise.
28301         * modules/unicase/locale-language-tests: Likewise.
28302         * modules/unicase/tolower-tests: Likewise.
28303         * modules/unicase/totitle-tests: Likewise.
28304         * modules/unicase/toupper-tests: Likewise.
28305         * modules/unicase/u8-casecmp-tests: Likewise.
28306         * modules/unicase/u8-casecoll-tests: Likewise.
28307         * modules/unicase/u8-casefold-tests: Likewise.
28308         * modules/unicase/u8-is-cased-tests: Likewise.
28309         * modules/unicase/u8-is-casefolded-tests: Likewise.
28310         * modules/unicase/u8-is-lowercase-tests: Likewise.
28311         * modules/unicase/u8-is-titlecase-tests: Likewise.
28312         * modules/unicase/u8-is-uppercase-tests: Likewise.
28313         * modules/unicase/u8-tolower-tests: Likewise.
28314         * modules/unicase/u8-totitle-tests: Likewise.
28315         * modules/unicase/u8-toupper-tests: Likewise.
28316         * modules/unicase/u16-casecmp-tests: Likewise.
28317         * modules/unicase/u16-casecoll-tests: Likewise.
28318         * modules/unicase/u16-casefold-tests: Likewise.
28319         * modules/unicase/u16-is-cased-tests: Likewise.
28320         * modules/unicase/u16-is-casefolded-tests: Likewise.
28321         * modules/unicase/u16-is-lowercase-tests: Likewise.
28322         * modules/unicase/u16-is-titlecase-tests: Likewise.
28323         * modules/unicase/u16-is-uppercase-tests: Likewise.
28324         * modules/unicase/u16-tolower-tests: Likewise.
28325         * modules/unicase/u16-totitle-tests: Likewise.
28326         * modules/unicase/u16-toupper-tests: Likewise.
28327         * modules/unicase/u32-casecmp-tests: Likewise.
28328         * modules/unicase/u32-casecoll-tests: Likewise.
28329         * modules/unicase/u32-casefold-tests: Likewise.
28330         * modules/unicase/u32-is-cased-tests: Likewise.
28331         * modules/unicase/u32-is-casefolded-tests: Likewise.
28332         * modules/unicase/u32-is-lowercase-tests: Likewise.
28333         * modules/unicase/u32-is-titlecase-tests: Likewise.
28334         * modules/unicase/u32-is-uppercase-tests: Likewise.
28335         * modules/unicase/u32-tolower-tests: Likewise.
28336         * modules/unicase/u32-totitle-tests: Likewise.
28337         * modules/unicase/u32-toupper-tests: Likewise.
28338         * modules/unicase/ulc-casecmp-tests: Likewise.
28339         * modules/unicase/ulc-casecoll-tests: Likewise.
28340         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28341         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28342         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28343         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28344         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28345         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28346         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28347         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28348         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28349         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28350         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28351         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28352         * modules/unictype/bidicategory-byname-tests: Likewise.
28353         * modules/unictype/bidicategory-name-tests: Likewise.
28354         * modules/unictype/bidicategory-of-tests: Likewise.
28355         * modules/unictype/bidicategory-test-tests: Likewise.
28356         * modules/unictype/block-list-tests: Likewise.
28357         * modules/unictype/block-of-tests: Likewise.
28358         * modules/unictype/block-test-tests: Likewise.
28359         * modules/unictype/category-C-tests: Likewise.
28360         * modules/unictype/category-Cc-tests: Likewise.
28361         * modules/unictype/category-Cf-tests: Likewise.
28362         * modules/unictype/category-Cn-tests: Likewise.
28363         * modules/unictype/category-Co-tests: Likewise.
28364         * modules/unictype/category-Cs-tests: Likewise.
28365         * modules/unictype/category-L-tests: Likewise.
28366         * modules/unictype/category-Ll-tests: Likewise.
28367         * modules/unictype/category-Lm-tests: Likewise.
28368         * modules/unictype/category-Lo-tests: Likewise.
28369         * modules/unictype/category-Lt-tests: Likewise.
28370         * modules/unictype/category-Lu-tests: Likewise.
28371         * modules/unictype/category-M-tests: Likewise.
28372         * modules/unictype/category-Mc-tests: Likewise.
28373         * modules/unictype/category-Me-tests: Likewise.
28374         * modules/unictype/category-Mn-tests: Likewise.
28375         * modules/unictype/category-N-tests: Likewise.
28376         * modules/unictype/category-Nd-tests: Likewise.
28377         * modules/unictype/category-Nl-tests: Likewise.
28378         * modules/unictype/category-No-tests: Likewise.
28379         * modules/unictype/category-P-tests: Likewise.
28380         * modules/unictype/category-Pc-tests: Likewise.
28381         * modules/unictype/category-Pd-tests: Likewise.
28382         * modules/unictype/category-Pe-tests: Likewise.
28383         * modules/unictype/category-Pf-tests: Likewise.
28384         * modules/unictype/category-Pi-tests: Likewise.
28385         * modules/unictype/category-Po-tests: Likewise.
28386         * modules/unictype/category-Ps-tests: Likewise.
28387         * modules/unictype/category-S-tests: Likewise.
28388         * modules/unictype/category-Sc-tests: Likewise.
28389         * modules/unictype/category-Sk-tests: Likewise.
28390         * modules/unictype/category-Sm-tests: Likewise.
28391         * modules/unictype/category-So-tests: Likewise.
28392         * modules/unictype/category-Z-tests: Likewise.
28393         * modules/unictype/category-Zl-tests: Likewise.
28394         * modules/unictype/category-Zp-tests: Likewise.
28395         * modules/unictype/category-Zs-tests: Likewise.
28396         * modules/unictype/category-and-not-tests: Likewise.
28397         * modules/unictype/category-and-tests: Likewise.
28398         * modules/unictype/category-byname-tests: Likewise.
28399         * modules/unictype/category-name-tests: Likewise.
28400         * modules/unictype/category-none-tests: Likewise.
28401         * modules/unictype/category-of-tests: Likewise.
28402         * modules/unictype/category-or-tests: Likewise.
28403         * modules/unictype/category-test-withtable-tests: Likewise.
28404         * modules/unictype/combining-class-tests: Likewise.
28405         * modules/unictype/ctype-alnum-tests: Likewise.
28406         * modules/unictype/ctype-alpha-tests: Likewise.
28407         * modules/unictype/ctype-blank-tests: Likewise.
28408         * modules/unictype/ctype-cntrl-tests: Likewise.
28409         * modules/unictype/ctype-digit-tests: Likewise.
28410         * modules/unictype/ctype-graph-tests: Likewise.
28411         * modules/unictype/ctype-lower-tests: Likewise.
28412         * modules/unictype/ctype-print-tests: Likewise.
28413         * modules/unictype/ctype-punct-tests: Likewise.
28414         * modules/unictype/ctype-space-tests: Likewise.
28415         * modules/unictype/ctype-upper-tests: Likewise.
28416         * modules/unictype/ctype-xdigit-tests: Likewise.
28417         * modules/unictype/decimal-digit-tests: Likewise.
28418         * modules/unictype/digit-tests: Likewise.
28419         * modules/unictype/mirror-tests: Likewise.
28420         * modules/unictype/numeric-tests: Likewise.
28421         * modules/unictype/property-alphabetic-tests: Likewise.
28422         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28423         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28424         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28425         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28426         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28427         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28428         * modules/unictype/property-bidi-control-tests: Likewise.
28429         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28430         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28431         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28432         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28433         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28434         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28435         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28436         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28437         * modules/unictype/property-bidi-pdf-tests: Likewise.
28438         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28439         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28440         * modules/unictype/property-byname-tests: Likewise.
28441         * modules/unictype/property-combining-tests: Likewise.
28442         * modules/unictype/property-composite-tests: Likewise.
28443         * modules/unictype/property-currency-symbol-tests: Likewise.
28444         * modules/unictype/property-dash-tests: Likewise.
28445         * modules/unictype/property-decimal-digit-tests: Likewise.
28446         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28447         * modules/unictype/property-deprecated-tests: Likewise.
28448         * modules/unictype/property-diacritic-tests: Likewise.
28449         * modules/unictype/property-extender-tests: Likewise.
28450         * modules/unictype/property-format-control-tests: Likewise.
28451         * modules/unictype/property-grapheme-base-tests: Likewise.
28452         * modules/unictype/property-grapheme-extend-tests: Likewise.
28453         * modules/unictype/property-grapheme-link-tests: Likewise.
28454         * modules/unictype/property-hex-digit-tests: Likewise.
28455         * modules/unictype/property-hyphen-tests: Likewise.
28456         * modules/unictype/property-id-continue-tests: Likewise.
28457         * modules/unictype/property-id-start-tests: Likewise.
28458         * modules/unictype/property-ideographic-tests: Likewise.
28459         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28460         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28461         * modules/unictype/property-ignorable-control-tests: Likewise.
28462         * modules/unictype/property-iso-control-tests: Likewise.
28463         * modules/unictype/property-join-control-tests: Likewise.
28464         * modules/unictype/property-left-of-pair-tests: Likewise.
28465         * modules/unictype/property-line-separator-tests: Likewise.
28466         * modules/unictype/property-logical-order-exception-tests: Likewise.
28467         * modules/unictype/property-lowercase-tests: Likewise.
28468         * modules/unictype/property-math-tests: Likewise.
28469         * modules/unictype/property-non-break-tests: Likewise.
28470         * modules/unictype/property-not-a-character-tests: Likewise.
28471         * modules/unictype/property-numeric-tests: Likewise.
28472         * modules/unictype/property-other-alphabetic-tests: Likewise.
28473         * modules/unictype/property-other-default-ignorable-code-point-tests:
28474         Likewise.
28475         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28476         * modules/unictype/property-other-id-continue-tests: Likewise.
28477         * modules/unictype/property-other-id-start-tests: Likewise.
28478         * modules/unictype/property-other-lowercase-tests: Likewise.
28479         * modules/unictype/property-other-math-tests: Likewise.
28480         * modules/unictype/property-other-uppercase-tests: Likewise.
28481         * modules/unictype/property-paired-punctuation-tests: Likewise.
28482         * modules/unictype/property-paragraph-separator-tests: Likewise.
28483         * modules/unictype/property-pattern-syntax-tests: Likewise.
28484         * modules/unictype/property-pattern-white-space-tests: Likewise.
28485         * modules/unictype/property-private-use-tests: Likewise.
28486         * modules/unictype/property-punctuation-tests: Likewise.
28487         * modules/unictype/property-quotation-mark-tests: Likewise.
28488         * modules/unictype/property-radical-tests: Likewise.
28489         * modules/unictype/property-sentence-terminal-tests: Likewise.
28490         * modules/unictype/property-soft-dotted-tests: Likewise.
28491         * modules/unictype/property-space-tests: Likewise.
28492         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28493         * modules/unictype/property-test-tests: Likewise.
28494         * modules/unictype/property-titlecase-tests: Likewise.
28495         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28496         * modules/unictype/property-unified-ideograph-tests: Likewise.
28497         * modules/unictype/property-uppercase-tests: Likewise.
28498         * modules/unictype/property-variation-selector-tests: Likewise.
28499         * modules/unictype/property-white-space-tests: Likewise.
28500         * modules/unictype/property-xid-continue-tests: Likewise.
28501         * modules/unictype/property-xid-start-tests: Likewise.
28502         * modules/unictype/property-zero-width-tests: Likewise.
28503         * modules/unictype/scripts-tests: Likewise.
28504         * modules/unictype/syntax-c-ident-tests: Likewise.
28505         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28506         * modules/unictype/syntax-java-ident-tests: Likewise.
28507         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28508         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28509         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28510         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28511         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28512         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28513         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28514         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28515         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28516         * modules/uniname/uniname-tests: Likewise.
28517         * modules/uninorm/canonical-decomposition-tests: Likewise.
28518         * modules/uninorm/compat-decomposition-tests: Likewise.
28519         * modules/uninorm/composition-tests: Likewise.
28520         * modules/uninorm/decomposing-form-tests: Likewise.
28521         * modules/uninorm/decomposition-tests: Likewise.
28522         * modules/uninorm/filter-tests: Likewise.
28523         * modules/uninorm/nfc-tests: Likewise.
28524         * modules/uninorm/nfd-tests: Likewise.
28525         * modules/uninorm/nfkc-tests: Likewise.
28526         * modules/uninorm/nfkd-tests: Likewise.
28527         * modules/uninorm/u8-normcmp-tests: Likewise.
28528         * modules/uninorm/u8-normcoll-tests: Likewise.
28529         * modules/uninorm/u16-normcmp-tests: Likewise.
28530         * modules/uninorm/u16-normcoll-tests: Likewise.
28531         * modules/uninorm/u32-normcmp-tests: Likewise.
28532         * modules/uninorm/u32-normcoll-tests: Likewise.
28533         * modules/unistdio/u8-asnprintf-tests: Likewise.
28534         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28535         * modules/unistdio/u8-vasprintf-tests: Likewise.
28536         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28537         * modules/unistdio/u8-vsprintf-tests: Likewise.
28538         * modules/unistdio/u16-asnprintf-tests: Likewise.
28539         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28540         * modules/unistdio/u16-vasprintf-tests: Likewise.
28541         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28542         * modules/unistdio/u16-vsprintf-tests: Likewise.
28543         * modules/unistdio/u32-asnprintf-tests: Likewise.
28544         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28545         * modules/unistdio/u32-vasprintf-tests: Likewise.
28546         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28547         * modules/unistdio/u32-vsprintf-tests: Likewise.
28548         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28549         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28550         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28551         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28552         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28553         * modules/unistr/u8-check-tests: Likewise.
28554         * modules/unistr/u8-chr-tests: Likewise.
28555         * modules/unistr/u8-cmp-tests: Likewise.
28556         * modules/unistr/u8-cmp2-tests: Likewise.
28557         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28558         * modules/unistr/u8-cpy-tests: Likewise.
28559         * modules/unistr/u8-mblen-tests: Likewise.
28560         * modules/unistr/u8-mbsnlen-tests: Likewise.
28561         * modules/unistr/u8-mbtouc-tests: Likewise.
28562         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28563         * modules/unistr/u8-mbtoucr-tests: Likewise.
28564         * modules/unistr/u8-move-tests: Likewise.
28565         * modules/unistr/u8-next-tests: Likewise.
28566         * modules/unistr/u8-prev-tests: Likewise.
28567         * modules/unistr/u8-set-tests: Likewise.
28568         * modules/unistr/u8-stpcpy-tests: Likewise.
28569         * modules/unistr/u8-stpncpy-tests: Likewise.
28570         * modules/unistr/u8-strcat-tests: Likewise.
28571         * modules/unistr/u8-strcmp-tests: Likewise.
28572         * modules/unistr/u8-strcoll-tests: Likewise.
28573         * modules/unistr/u8-strcpy-tests: Likewise.
28574         * modules/unistr/u8-strdup-tests: Likewise.
28575         * modules/unistr/u8-strlen-tests: Likewise.
28576         * modules/unistr/u8-strmblen-tests: Likewise.
28577         * modules/unistr/u8-strmbtouc-tests: Likewise.
28578         * modules/unistr/u8-strncat-tests: Likewise.
28579         * modules/unistr/u8-strncmp-tests: Likewise.
28580         * modules/unistr/u8-strncpy-tests: Likewise.
28581         * modules/unistr/u8-strnlen-tests: Likewise.
28582         * modules/unistr/u8-to-u16-tests: Likewise.
28583         * modules/unistr/u8-to-u32-tests: Likewise.
28584         * modules/unistr/u8-uctomb-tests: Likewise.
28585         * modules/unistr/u16-check-tests: Likewise.
28586         * modules/unistr/u16-chr-tests: Likewise.
28587         * modules/unistr/u16-cmp-tests: Likewise.
28588         * modules/unistr/u16-cmp2-tests: Likewise.
28589         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28590         * modules/unistr/u16-cpy-tests: Likewise.
28591         * modules/unistr/u16-mblen-tests: Likewise.
28592         * modules/unistr/u16-mbsnlen-tests: Likewise.
28593         * modules/unistr/u16-mbtouc-tests: Likewise.
28594         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28595         * modules/unistr/u16-mbtoucr-tests: Likewise.
28596         * modules/unistr/u16-move-tests: Likewise.
28597         * modules/unistr/u16-next-tests: Likewise.
28598         * modules/unistr/u16-prev-tests: Likewise.
28599         * modules/unistr/u16-set-tests: Likewise.
28600         * modules/unistr/u16-stpcpy-tests: Likewise.
28601         * modules/unistr/u16-stpncpy-tests: Likewise.
28602         * modules/unistr/u16-strcat-tests: Likewise.
28603         * modules/unistr/u16-strcmp-tests: Likewise.
28604         * modules/unistr/u16-strcoll-tests: Likewise.
28605         * modules/unistr/u16-strcpy-tests: Likewise.
28606         * modules/unistr/u16-strdup-tests: Likewise.
28607         * modules/unistr/u16-strlen-tests: Likewise.
28608         * modules/unistr/u16-strmblen-tests: Likewise.
28609         * modules/unistr/u16-strmbtouc-tests: Likewise.
28610         * modules/unistr/u16-strncat-tests: Likewise.
28611         * modules/unistr/u16-strncmp-tests: Likewise.
28612         * modules/unistr/u16-strncpy-tests: Likewise.
28613         * modules/unistr/u16-strnlen-tests: Likewise.
28614         * modules/unistr/u16-to-u32-tests: Likewise.
28615         * modules/unistr/u16-to-u8-tests: Likewise.
28616         * modules/unistr/u16-uctomb-tests: Likewise.
28617         * modules/unistr/u32-check-tests: Likewise.
28618         * modules/unistr/u32-chr-tests: Likewise.
28619         * modules/unistr/u32-cmp-tests: Likewise.
28620         * modules/unistr/u32-cmp2-tests: Likewise.
28621         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28622         * modules/unistr/u32-cpy-tests: Likewise.
28623         * modules/unistr/u32-mblen-tests: Likewise.
28624         * modules/unistr/u32-mbsnlen-tests: Likewise.
28625         * modules/unistr/u32-mbtouc-tests: Likewise.
28626         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28627         * modules/unistr/u32-mbtoucr-tests: Likewise.
28628         * modules/unistr/u32-move-tests: Likewise.
28629         * modules/unistr/u32-next-tests: Likewise.
28630         * modules/unistr/u32-prev-tests: Likewise.
28631         * modules/unistr/u32-set-tests: Likewise.
28632         * modules/unistr/u32-stpcpy-tests: Likewise.
28633         * modules/unistr/u32-stpncpy-tests: Likewise.
28634         * modules/unistr/u32-strcat-tests: Likewise.
28635         * modules/unistr/u32-strcmp-tests: Likewise.
28636         * modules/unistr/u32-strcoll-tests: Likewise.
28637         * modules/unistr/u32-strcpy-tests: Likewise.
28638         * modules/unistr/u32-strdup-tests: Likewise.
28639         * modules/unistr/u32-strlen-tests: Likewise.
28640         * modules/unistr/u32-strmblen-tests: Likewise.
28641         * modules/unistr/u32-strmbtouc-tests: Likewise.
28642         * modules/unistr/u32-strncat-tests: Likewise.
28643         * modules/unistr/u32-strncmp-tests: Likewise.
28644         * modules/unistr/u32-strncpy-tests: Likewise.
28645         * modules/unistr/u32-strnlen-tests: Likewise.
28646         * modules/unistr/u32-to-u16-tests: Likewise.
28647         * modules/unistr/u32-to-u8-tests: Likewise.
28648         * modules/unistr/u32-uctomb-tests: Likewise.
28649         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28650         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28651         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28652         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28653         * modules/uniwidth/u8-strwidth-tests: Likewise.
28654         * modules/uniwidth/u8-width-tests: Likewise.
28655         * modules/uniwidth/u16-strwidth-tests: Likewise.
28656         * modules/uniwidth/u16-width-tests: Likewise.
28657         * modules/uniwidth/u32-strwidth-tests: Likewise.
28658         * modules/uniwidth/u32-width-tests: Likewise.
28659         * modules/uniwidth/width-tests: Likewise.
28660
28661 2010-05-18  Richard Jones  <rjones@redhat.com>
28662
28663         doc: users.txt: list hivex
28664         * users.txt: Add hivex.
28665
28666 2010-05-18  Richard Jones  <rjones@redhat.com>
28667
28668         doc: users.txt: list febootstrap
28669         * users.txt: Add febootstrap.
28670
28671 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28672
28673         bootstrap: fix an error when gnulib is not used as a git submodule
28674         * build-aux/bootstrap (gnulib_path): If its length is zero then
28675         assign "gnulib" to it.
28676         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28677
28678 2010-05-16  Bruno Haible  <bruno@clisp.org>
28679
28680         Avoid autoconf warnings about AM_ICONV.
28681         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28682         2.64.
28683
28684 2010-05-16  Bruno Haible  <bruno@clisp.org>
28685
28686         absolute-header: Make the macro usable in more situations.
28687         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28688         from gl_ABSOLUTE_HEADER.
28689         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28690
28691 2010-05-16  James Youngman  <jay@gnu.org>
28692
28693         doc: update users.txt
28694         * users.txt: Add CSSC.
28695
28696 2010-05-16  Jim Meyering  <meyering@redhat.com>
28697
28698         init.sh: fix an error in the previous change; add more comments
28699         * tests/init.sh: Compare exit code in loop against 9, not 2.
28700         Patch by Bruno Haible.
28701         Make the two tests more similar by adding an empty "then" clause.
28702         Add comments.
28703
28704         init.sh: avoid unnecessary shell re-exec
28705         * tests/init.sh: Improve the re-exec-required check to first test the
28706         current shell.  If it passes the test, do not search for a shell that
28707         does pass, and do not re-exec.  This test is particularly contorted to
28708         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28709         of $(...) evokes a syntax error and causes immediate shell exit with
28710         status 2.  Bruno Haible reported that the re-exec made it impossible
28711         to single-step through any init.sh-using script.
28712
28713 2010-05-16  Bruno Haible  <bruno@clisp.org>
28714
28715         Fix collision between gnulib's and libintl's printf replacements.
28716         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28717         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28718         (printf): When using GNU C, map the __printf__ function to rpl_printf
28719         via __asm__. When not using GNU C, define rpl_printf instead of
28720         __printf__.
28721         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28722         commit.
28723         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28724         commit.
28725         * m4/asm-underscore.m4: New file.
28726         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28727         * modules/stdio (Files): Add m4/asm-underscore.m4.
28728         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28729         Reported by Ben Pfaff.
28730
28731 2010-05-16  Bruno Haible  <bruno@clisp.org>
28732
28733         verify: Avoid skipping the test on openSUSE 11.0.
28734         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28735
28736 2010-05-13  Bruno Haible  <bruno@clisp.org>
28737
28738         Avoid useless warnings from G++.
28739         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28740         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28741         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28742
28743 2010-05-11  Jim Meyering  <meyering@redhat.com>
28744
28745         maint.mk: tweak preceding change
28746         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28747         regexps tighter by anchoring at EOL, and make the new group "shy"
28748         for slightly decreased overhead.
28749
28750 2010-05-11  Eric Blake  <eblake@redhat.com>
28751
28752         maint.mk: gnulib doesn't guarantee NSIG
28753         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28754
28755 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28756
28757         test-pwrite.c: Remove unused variable declaration.
28758         * tests/test-pwrite.c (main): Remove read_buf declaration.
28759
28760         Remove useless test-pwrite.sh file.
28761         * tests/test-pwrite.sh: Delete file.
28762         * modules/pwrite-tests: Remove references.
28763         Reported by Bruno Haible.
28764
28765 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28766
28767         init.sh: fix a typo
28768         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28769
28770 2010-05-10  Jim Meyering  <meyering@redhat.com>
28771
28772         maint.mk: avoid using a temporary file in the always-defined-macros check
28773         * top/maint.mk (.re-defmac): Remove rule.
28774         (gl_trap_): Remove definition.
28775         (sc_prohibit_always-defined_macros): Rewrite not to create and
28776         depend on a temporary file.  Instead, depend on GNU grep's ability
28777         to read a list of regular expressions from stdin when given "-f -".
28778
28779 2010-05-09  Bruno Haible  <bruno@clisp.org>
28780
28781         Update to GNU gettext 0.18, part 1.
28782         * m4/gettext.m4: Update to GNU gettext 0.18.
28783         * m4/intl.m4: Likewise.
28784         * m4/po.m4: Likewise.
28785         * modules/gettext (Files): Add m4/fcntl-o.m4.
28786         (configure.ac): Require gettext infrastructure from version 0.18.
28787
28788 2010-05-09  Jim Meyering  <meyering@redhat.com>
28789
28790         init.sh: enable MALLOC_PERTURB_
28791         * tests/init.sh: Enable glibc's malloc-perturbing option.
28792
28793         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28794         With my recent change in init.sh from the two-line form:
28795             -#   : ${srcdir=.}
28796             -#   . "$srcdir/init.sh"; path_prepend_ .
28797             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28798         I noticed that using the one-line form would cause this test
28799         to fail with a false-positive, or to stop working altogether,
28800         depending on whether help-version changed or all the tests did.
28801         * top/maint.mk (_hv_regex): Remove this definition.
28802         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28803         (_hv_regex_strong): Use a stronger regex to check for conformance.
28804         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28805         Give a separate diagnostic for lack of conforming use.
28806
28807         maint.mk: prohibit definition of symbols defined by gnulib
28808         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28809         definition of symbols defined by gnulib.
28810
28811 2010-05-09  Bruno Haible  <bruno@clisp.org>
28812
28813         acl: Avoid test failure on Cygwin-hosted mingw.
28814         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28815
28816 2010-05-09  Bruno Haible  <bruno@clisp.org>
28817
28818         error: Use system's fcntl function.
28819         * lib/error.c (fcntl): Undefine.
28820
28821 2010-05-09  Jim Meyering  <meyering@redhat.com>
28822
28823         verify: adjust formatting to be more consistent
28824         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28825         argument-list '('s, and after one comma.
28826
28827 2010-05-09  Bruno Haible  <bruno@clisp.org>
28828
28829         error: More reliable output on mingw.
28830         * lib/error.c: Include <windows.h>.
28831         (is_open): New function.
28832         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28833         defined.
28834
28835 2010-05-09  Bruno Haible  <bruno@clisp.org>
28836
28837         vasnprintf: Fix syntax errors in libintl build on mingw.
28838         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28839         pad_ourselves and prec_ourselves after use.
28840
28841 2010-05-08  Bruno Haible  <bruno@clisp.org>
28842
28843         * lib/config.charset: Update comments for Cygwin 1.7.
28844         * lib/localcharset.c: Likewise.
28845
28846 2010-05-07  Jim Meyering  <meyering@redhat.com>
28847
28848         init.sh: improve comments
28849         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28850         . "${srcdir=.}/init.sh"; path_prepend_ .
28851         Add a note about path_prepend_ and the alternative of using
28852         TESTS_ENVIRONMENT.
28853
28854 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28855
28856         exclude: Unescape hashed patterns in wildcard mode.
28857         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28858         to the hash list.
28859         * tests/test-exclude8.sh: New test case.
28860         * modules/exclude-tests: Add new test.
28861
28862 2010-05-05  Eric Blake  <eblake@redhat.com>
28863
28864         verify: automate tests
28865         * modules/verify-tests: New module.
28866         * tests/test-verify.sh: New file.
28867         * tests/test-verify.c: Guard each negative test with a unique id.
28868         Also avoid warning about unused left hand of comma expressions.
28869
28870 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28871
28872         Further improvements to verify.h, suggested by Eric Blake.
28873         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28874         the GL_* versions, to avoid collision with OpenGL.
28875         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28876         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28877         than testing merely whether it's defined.
28878
28879         Modify verify.h to pacify gcc -Wredundant_decls.
28880         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28881         These use the prefix "GL_" since they're likely to be useful elsewhere.
28882         We may need to break them out into a different .h file.
28883         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28884         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28885         of verify_function__.
28886
28887 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28888
28889         Tests for module pwrite.
28890         * modules/pwrite-tests: New file.
28891         * tests/test-pwrite.sh: New file.
28892         * tests/test-pwrite.c: New file.
28893
28894         New module pwrite.
28895         * lib/unistd.in.h (pwrite): New declaration.
28896         * lib/pwrite.c: New file, from glibc with modifications.
28897         * m4/pwrite.m4: New file.
28898         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28899         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28900         REPLACE_PWRITE.
28901         * modules/pwrite: New file.
28902         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28903         REPLACE_PWRITE.
28904         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28905         * doc/posix-functions/pwrite.texi: Mention the new module.
28906
28907 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28908
28909         pread: Update documentation.
28910         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28911
28912 2010-05-04  Eric Blake  <eblake@redhat.com>
28913
28914         docs: update cygwin progress
28915         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28916         this bug.
28917         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28918         Added in cygwin 1.7.2.
28919         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28920         Likewise.
28921         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28922         Likewise.
28923         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28924         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28925         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28926         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28927         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28928         Mention nproc module.
28929         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28930         bug in cygwin 1.7.5 addition.
28931         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28932         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28933         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28934         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28935         1.7.5.
28936         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28937         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28938         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28939         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28940         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28941         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28942         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28943         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28944         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28945         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28946         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28947         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28948         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28949         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28950         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28951         Likewise.
28952         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28953         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28954         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28955         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28956         Likewise.
28957         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28958         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28959         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28960         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28961         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28962         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28963         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28964         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28965         Likewise.
28966         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28967         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28968         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28969         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28970         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28971         Likewise.
28972         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28973         Likewise.
28974         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28975         Likewise.
28976         * doc/glibc-functions/xdrrec_endofrecord.texi
28977         (xdrrec_endofrecord): Likewise.
28978         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28979         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28980         Likewise.
28981         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28982         Likewise.
28983
28984 2010-05-04  Jim Meyering  <meyering@redhat.com>
28985
28986         gendocs.sh: make its "-s FILE" option more useful
28987         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28988         $PACKAGE to reflect the probably-different basename of "FILE".
28989
28990 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28991
28992         bootstrap: don't ignore download_po_files failure
28993         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28994         failure.
28995
28996 2010-05-03  Jim Meyering  <meyering@redhat.com>
28997
28998         maint.mk: allow to pass options to gendocs.sh
28999         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29000         (gendocs_options_): New overridable variable.
29001
29002         gnu-web-doc-update: don't ignore configure or build failure
29003         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29004
29005         announce-gen: backslash-escape '@'s in --help output
29006         * build-aux/announce-gen: Fix syntax errors.
29007
29008         maint.mk, announce-gen: allow project-specific announcement mail headers
29009         * top/maint.mk (translation_project_): Define default.
29010         (announcement_Cc_, announcement_mail_headers_): Likewise.
29011         (announcement): Invoke announce-gen with new --mail-headers option.
29012         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29013
29014         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29015         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29016         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29017         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29018         line in the "err2" output file when running "make check" in verbose
29019         mode (i.e., with set -x enabled).
29020
29021 2010-05-03  Bruno Haible  <bruno@clisp.org>
29022
29023         wctob: Fix for weird platforms.
29024         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29025         argument value.
29026
29027 2010-05-03  Jim Meyering  <meyering@redhat.com>
29028
29029         maint.mk: prohibit unwarranted use of <strings.h>
29030         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29031         strings.h in a file that does not also use strcasecmp, strncasecmp,
29032         ffs or ffsll.
29033
29034         maint.mk: remove obsolete comments
29035         * top/maint.mk: Remove stale, commented-out rules.
29036
29037 2010-05-02  Bruno Haible  <bruno@clisp.org>
29038
29039         wcwidth: Declare also when it's aliased.
29040         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29041         macro.
29042
29043 2010-05-02  Bruno Haible  <bruno@clisp.org>
29044
29045         Fix regression from 2010-04-25.
29046         * gnulib-tool (func_modules_transitive_closure): Check the status of
29047         all modules, not only of the tests that are of the form foo-tests where
29048         foo is a module.
29049
29050 2010-05-02  Bruno Haible  <bruno@clisp.org>
29051
29052         wctob: Work around nasty Cygwin 1.7.2 bug.
29053         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29054         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29055
29056 2010-05-01  Bruno Haible  <bruno@clisp.org>
29057
29058         fpurge: Sharper test.
29059         * tests/test-fpurge.c (main): Add one more ftell check.
29060         * modules/fpurge-tests (Depends-on): Add ftell.
29061         Suggested by Eric Blake.
29062
29063 2010-05-01  Bruno Haible  <bruno@clisp.org>
29064
29065         ftello: Another test.
29066         * tests/test-ftello3.c: New file.
29067         * modules/ftello-tests (Files): Add it.
29068         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29069         MOSTLYCLEANFILES.
29070
29071         ftell: Another test.
29072         * tests/test-ftell3.c: New file.
29073         * modules/ftell-tests (Files): Add it.
29074         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29075         MOSTLYCLEANFILES.
29076
29077 2010-05-01  Bruno Haible  <bruno@clisp.org>
29078
29079         ftell, ftello: Work around Solaris bug.
29080         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29081         * lib/ftello.c: Include stdio-impl.h.
29082         (ftello): On Solaris, when _IOWRT is set, compute the result without
29083         looking at _IOREAD.
29084         * modules/ftello (Files): Add lib/stdio-impl.h.
29085         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29086         * doc/posix-functions/ftello.texi: Likewise.
29087         Reported by Eric Blake.
29088
29089 2010-05-01  Bruno Haible  <bruno@clisp.org>
29090
29091         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29092         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29093         the _IOWRT flag is also set.
29094
29095 2010-05-01  Bruno Haible  <bruno@clisp.org>
29096
29097         Fix doc about a HP-UX stdio bug.
29098         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29099         * doc/posix-functions/ftello.texi: Likewise.
29100
29101 2010-05-01  Bruno Haible  <bruno@clisp.org>
29102
29103         lseek test: Fix failure on Solaris.
29104         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29105         output.
29106
29107 2010-04-30  Jim Meyering  <meyering@redhat.com>
29108
29109         bootstrap: don't ignore failure to generate po*/Makevars
29110         * build-aux/bootstrap (with_gettext): Don't ignore failure
29111         to create po/Makevars or runtime-po/Makevars.
29112
29113 2010-04-29  Eric Blake  <eblake@redhat.com>
29114
29115         headers: relax license to LGPLv2+
29116         * modules/fcntl-h (License): Relax license.
29117         * modules/getopt-posix (License): Likewise.
29118         * modules/locale (License): Likewise.
29119         * modules/math (License): Likewise.
29120         * modules/pty (License): Likewise.
29121         * modules/sched (License): Likewise.
29122         * modules/search (License): Likewise.
29123         * modules/spawn (License): Likewise.
29124         * modules/stdarg (License): Likewise.
29125         * modules/sysexits (License): Likewise.
29126
29127 2010-04-29  Jim Meyering  <meyering@redhat.com>
29128
29129         inttypes: relax license to LGPLv2+
29130         * modules/inttypes (License): Relax license.
29131
29132 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29133
29134         * top/maint.mk (indent): Run twice to produce idempotent results.
29135
29136 2010-04-28  Bruno Haible  <bruno@clisp.org>
29137
29138         getdate: Generate getdate.c in the source directory.
29139         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29140         MOSTLYCLEANFILES.
29141         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29142
29143 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29144
29145         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29146         is not declared as a const *; avoid warnings in that case.
29147
29148 2010-04-28  Eric Blake  <eblake@redhat.com>
29149
29150         canonicalize-lgpl: avoid compiler warning
29151         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29152         declaration' / 'extraneous semicolon' warning with some compilers.
29153         Reported by Andreas Gruenbacher.
29154
29155 2010-04-28  Jim Meyering  <meyering@redhat.com>
29156
29157         init.sh: ensure a more reliable exit status when exiting via trap
29158         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29159         Inspired by patches from Dmitry V. Levin.
29160         Also trap on signal 3 (SIGQUIT).
29161
29162 2010-04-27  Bruno Haible  <bruno@clisp.org>
29163
29164         Update doc about utimes().
29165         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29166         'utimens' module.
29167         Reported by Andreas Gruenbacher <agruen@suse.de>.
29168
29169 2010-04-27  Eric Blake  <eblake@redhat.com>
29170
29171         full-read, full-write: relax license
29172         * modules/full-read (License): Drop to LGPLv2+.
29173         * modules/full-write (License): Likewise.
29174         * modules/safe-read (License): Likewise.
29175         * modules/safe-write (License): Likewise.
29176
29177         pthread: mention library for linking
29178         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29179
29180 2010-04-27  Jim Meyering  <meyering@redhat.com>
29181
29182         maint.mk: fix a bug introduced in last change
29183         * top/maint.mk (gl_assured_headers_): Now that all names are on
29184         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29185         is not anchored to end of word, it should be adequate.
29186
29187         maint.mk: avoid side-effect in latest syntax-check
29188         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29189         to run commands via $(shell...), and hence to incur cost only when
29190         the new rule is actually run.
29191
29192         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29193         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29194         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29195         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29196         (gl_assured_headers_, az_, AZ_): Define.
29197         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29198
29199 2010-04-26  Jim Meyering  <jim@meyering.net>
29200             Bruno Haible  <bruno@clisp.org>
29201
29202         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29203         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29204         Prompted by an exchange with Gilles Espinasse.
29205
29206 2010-04-26  Jim Meyering  <meyering@redhat.com>
29207
29208         git-version-gen: aesthetic tweak
29209         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29210         so that the command remains on a single line.
29211
29212 2010-04-26  Eric Blake  <eblake@redhat.com>
29213
29214         git-version-gen: allow use on EBCDIC hosts
29215         * build-aux/git-version-gen (dirty): Use literal rather than tying
29216         ourselves to ascii.
29217         Reported by Steve Goetze.
29218
29219 2010-04-25  Bruno Haible  <bruno@clisp.org>
29220
29221         netdb: Add support for GNULIB_POSIXCHECK.
29222         * lib/netdb.in.h: Include warn-on-use.h.
29223         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29224         functions are used when GNULIB_POSIXCHECK is defined and the
29225         getaddrinfo module is not in use.
29226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29227         freeaddrinfo, gai_strerror, getnameinfo are declared.
29228         * modules/netdb (Depends-on): Add warn-on-use.
29229         (Makefile.am): Include warn-on-use.h in netdb.h.
29230
29231 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29232
29233         build: avoid "make check" failure without .git/ directory
29234         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29235         there is no .git/ directory.
29236
29237 2010-04-25  Bruno Haible  <bruno@clisp.org>
29238
29239         ptsname: Fix misuse of ttyname_r.
29240         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29241         of errno.
29242
29243 2010-04-25  Bruno Haible  <bruno@clisp.org>
29244
29245         ttyname_r: Make it work on Solaris 10.
29246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29247         if the system function has the POSIX declaration. Test whether the
29248         function fails if the buffer is less than 128 bytes large.
29249         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29250         system's ttyname_r function. Provide a reasonably large buffer.
29251         * modules/ttyname_r (Depends-on): Add extensions.
29252         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29253
29254 2010-04-25  Bruno Haible  <bruno@clisp.org>
29255
29256         Use the 'extensions' module for some more functions on Solaris.
29257         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29258         module.
29259         * doc/posix-functions/ctime_r.texi: Likewise.
29260         * doc/posix-functions/getgrgid_r.texi: Likewise.
29261         * doc/posix-functions/getgrnam_r.texi: Likewise.
29262         * doc/posix-functions/getpwnam_r.texi: Likewise.
29263         * doc/posix-functions/getpwuid_r.texi: Likewise.
29264         * doc/posix-functions/readdir_r.texi: Likewise.
29265         * doc/posix-functions/sigwait.texi: Likewise.
29266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29267         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29268
29269 2010-04-25  Bruno Haible  <bruno@clisp.org>
29270
29271         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29272         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29273         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29274         * lib/ttyname_r.c: Include <limits.h>.
29275         (ttyname_r): Define using the system's ttyname_r function, if it exists
29276         and not on Solaris.
29277         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29278         set.
29279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29280         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29281         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29282         Reported by Simon Josefsson.
29283
29284 2010-04-25  Bruno Haible  <bruno@clisp.org>
29285
29286         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29287         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29288         * doc/posix-functions/ctime_r.texi: Likewise.
29289         * doc/posix-functions/getgrgid_r.texi: Likewise.
29290         * doc/posix-functions/getgrnam_r.texi: Likewise.
29291         * doc/posix-functions/getlogin_r.texi: Likewise.
29292         * doc/posix-functions/getpwnam_r.texi: Likewise.
29293         * doc/posix-functions/getpwuid_r.texi: Likewise.
29294         * doc/posix-functions/readdir_r.texi: Likewise.
29295         * doc/posix-functions/sigwait.texi: Likewise.
29296         * doc/posix-functions/ttyname_r.texi: Likewise.
29297         Reported by Simon Josefsson.
29298
29299 2010-04-25  Bruno Haible  <bruno@clisp.org>
29300
29301         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29302         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29303         also to --create-testdir.
29304         (func_acceptable): Don't consider the status of *-tests modules here.
29305         (func_modules_transitive_closure): Consider it here, before including a
29306         test module.
29307         (func_import, func_create_testdir): Set inc_all_direct_tests,
29308         inc_all_indirect_tests.
29309         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29310         --create-testdir and --create-megatestdir.
29311
29312 2010-04-25  Bruno Haible  <bruno@clisp.org>
29313
29314         gnulib-tool: Add --without-*-tests options.
29315         * gnulib-tool (func_usage): Document the --without-*-tests options.
29316         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29317         excl_unportable_tests): New variables.
29318         Fail if they are specified with --import or --update.
29319         (func_acceptable): Respect the excl_*_tests variables.
29320         (func_import): Set the excl_*_tests variables to empty.
29321
29322 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29323             Bruno Haible  <bruno@clisp.org>
29324
29325         Work around a MacOS X 10.4 bug with openpty.
29326         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29327         * tests/test-openpty.c (main): Close the master side explicitly.
29328
29329 2010-04-25  Bruno Haible  <bruno@clisp.org>
29330
29331         strnlen: Fix a C++ test error on MacOS X and Solaris.
29332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29333         the function is not declared.
29334         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29335         Simon Josefsson.
29336
29337 2010-04-24  Bruno Haible  <bruno@clisp.org>
29338
29339         Avoid a gcc warning.
29340         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29341         of correct type for %08lx directive.
29342         Reported by Eric Blake.
29343
29344 2010-04-24  Bruno Haible  <bruno@clisp.org>
29345
29346         vasnprintf: Correct errno value in case of out-of-memory.
29347         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29348         or sprintf. Use the errno value from SNPRINTF or sprintf.
29349         Reported by Ian Beckwith <ianb@erislabs.net>.
29350
29351 2010-04-24  Bruno Haible  <bruno@clisp.org>
29352
29353         ansi-c++-opt: Find correct compiler when cross-compiling.
29354         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29355         AC_CHECK_PROGS.
29356         Reported by Simon Josefsson.
29357
29358 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29359
29360         vc-list-files: Add support for subversion
29361         * build-aux/vc-list-files: Use "svn list" to generate the list of
29362         files controlled by subversion.
29363
29364 2010-04-23  Jim Meyering  <meyering@redhat.com>
29365
29366         vc-list-files tests: convert to use init.sh
29367         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29368         path_prepend_.
29369         Use Exit, not exit.
29370         Use skip_ rather than open coding it.
29371         Remove trap set-up and compare definitions.
29372         * tests/test-vc-list-files-git.sh: Likewise.
29373         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29374
29375 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29376
29377         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29378         backup files.
29379
29380 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29381
29382         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29383
29384 2010-04-20  Eric Blake  <eblake@redhat.com>
29385
29386         tests: be robust to ignored SIGPIPE
29387         * tests/test-select-in.sh: Consume all output.
29388         * tests/test-lseek.sh: Check correct exit status, while avoiding
29389         EPIPE.
29390
29391 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29392             Bruno Haible  <bruno@clisp.org>
29393
29394         visibility: Don't use -fvisibility if it leads to a warning.
29395         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29396         yes, don't pretend that visibility works if it leads to a warning.
29397         Reported by Mike Gran <spk121@yahoo.com>.
29398
29399 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29400
29401         * build-aux/bootstrap: Use "git -h" for testing for supported options
29402         instead of "git --help".  The short-form option only shows a summary,
29403         and doesn't layout the full man page.  Grep for the full option name
29404         in the summary, too.
29405
29406 2010-04-19  Bruno Haible  <bruno@clisp.org>
29407
29408         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29409         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29410         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29411         mention of RELOCATABLE_STRIP.
29412         Reported by Sylvain Beucler <beuc@beuc.net>.
29413
29414 2010-04-19  Bruno Haible  <bruno@clisp.org>
29415
29416         * lib/diffseq.h: Fix typo in comment.
29417         Reported by Eric Blake.
29418
29419 2010-04-19  Bruno Haible  <bruno@clisp.org>
29420
29421         ioctl: Move autoconf macro to a .m4 file.
29422         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29423         * modules/ioctl (Files): Add it.
29424         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29425         Reported by Ian Beckwith <ianb@erislabs.net>.
29426
29427 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29428             Bruno Haible  <bruno@clisp.org>
29429
29430         diffseq: Accommodate use-case with abstract arrays.
29431         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29432         is not defined.
29433         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29434         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29435
29436 2010-04-18  Bruno Haible  <bruno@clisp.org>
29437
29438         * doc/posix-headers/stdbool.texi: More precise wording.
29439
29440 2010-04-17  Jim Meyering  <meyering@redhat.com>
29441
29442         maint.mk: use gnu-style indentation in an embedded perl script
29443         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29444         Rename variable: s/two/last_two_bytes/
29445
29446 2010-04-16  Eric Blake  <eblake@redhat.com>
29447
29448         test-stdbool: skip test that fails with Solaris CC
29449         * tests/test-stdbool.c (f): Skip test that causes compilation
29450         error under buggy C++ compiler.
29451         * lib/stdbool.in.h: Document the limitation.
29452         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29453
29454         setenv: allow compilation with C++
29455         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29456         register keyword.
29457
29458         stdint: allow test to pass with C++
29459         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29460
29461         getopt: allow compilation with C++
29462         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29463         struct.
29464         * lib/getopt.c (_getopt_internal_r): Use correct type.
29465         Reported by Dagobert Michelson, via Joel E. Denny.
29466
29467 2010-04-16  Bruno Haible  <bruno@clisp.org>
29468
29469         Override netdb.h always.
29470         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29471         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29472         Reported by Ludovic Courtès <ludo@gnu.org>.
29473
29474 2010-04-15  Bruno Haible  <bruno@clisp.org>
29475
29476         openpty: Fix mistake from 2010-03-21.
29477         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29478         Reported by Simon Josefsson.
29479
29480 2010-04-15  Eric Blake  <eblake@redhat.com>
29481
29482         test-forkpty: fix expected signature
29483         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29484         Reported by Simon Josefsson.
29485
29486 2010-04-15  Jim Meyering  <meyering@redhat.com>
29487
29488         maint.mk: texinfo_suffix_re_: correct the default regexp
29489         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29490
29491         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29492         make it configurable via texinfo_suffix_re_.
29493
29494 2010-04-14  Eric Blake  <eblake@redhat.com>
29495
29496         strtok_r: relax license to LGPLv2+
29497         * modules/strtok_r (License): Relax license.
29498         Reported by Matthias Bolte.
29499
29500 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29501
29502         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29503         version 1.4.4 by default instead of requiring the libgcrypt
29504         version used during build.  This makes it possible to use the
29505         application with older but still binary compatible libgcrypt
29506         versions.
29507
29508 2010-04-13  Eric Blake  <eblake@redhat.com>
29509
29510         getopt-gnu: match recent glibc fixes and posix ruling
29511         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29512         '+' handling, when requesting extensions.
29513         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29514         'W;' handling.
29515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29516         * doc/posix-functions/getopt.texi (getopt): Document this.
29517         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29519         Likewise.
29520
29521         getopt: merge bug fixes from glibc
29522         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29523         diagnostics.  Honor '+:' correctly.  Reject ';'.
29524
29525         getopt-posix: detect MacOS bug
29526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29527         optind when missing a required argument.
29528         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29529         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29530         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29531         Likewise.
29532
29533         getopt-posix: avoid spurious failure on Solaris
29534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29535         an indicator that setting optind=1 is sufficient for reset.
29536
29537         getopt-posix: avoid spurious failure on FreeBSD
29538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29539         in POSIX mode, since the m4 test uses it.
29540
29541         gnulib-tool: silence warning on BSD sh
29542         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29543
29544 2010-04-13  Jim Meyering  <meyering@redhat.com>
29545
29546         doc: users.txt: GNU patch now uses gnulib
29547         * users.txt: Add patch.
29548
29549 2010-04-12  Jim Meyering  <meyering@redhat.com>
29550
29551         maint.mk: generate more concise timing data for syntax-check rules
29552         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29553         " done" from each line that reports a syntax-check test duration.
29554
29555 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29556
29557         git-version-gen: use "git update-index..." rather than "git status"
29558         * build-aux/git-version-gen: Use git update-index --refresh, not
29559         "git status".  With some versions of git, "git status" would fail
29560         to update the index and result in an unwarranted "-dirty" suffix.
29561
29562 2010-04-11  Jim Meyering  <meyering@redhat.com>
29563
29564         openat: correct formatting (no semantic change)
29565         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29566         Suggested by Bruno Haible.
29567
29568 2010-04-11  Bruno Haible  <bruno@clisp.org>
29569
29570         Stricter declaration checking in testdirs.
29571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29572         If for_tests is true, augment AM_CPPFLAGS to define
29573         GNULIB_STRICT_CHECKING.
29574         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29575         GNULIB_STRICT_CHECKING is defined, verify that the function is
29576         declared.
29577
29578 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29579             Bruno Haible  <bruno@clisp.org>
29580
29581         libunistring: Improve configure output.
29582         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29583         Don't say "consider installing GNU libunistring" when checking again
29584         with libiconv.
29585
29586 2010-04-11  Bruno Haible  <bruno@clisp.org>
29587
29588         libunistring: Correct value of $LTLIBUNISTRING.
29589         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29590         correct the value of $LTLIBUNISTRING.
29591
29592 2010-04-11  Bruno Haible  <bruno@clisp.org>
29593
29594         havelib: Add static libraries to LIBS in the right order.
29595         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29596         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29597
29598 2010-04-11  Bruno Haible  <bruno@clisp.org>
29599
29600         libunistring: Detect libunistring also when it depends on libiconv.
29601         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29602         the second AC_LIB_HAVE_LINKFLAGS invocation.
29603
29604 2010-04-11  James Youngman  <jay@gnu.org>
29605
29606         close-stream: declare local scalars to be "const"
29607         * lib/close-stream.c (close_stream): Make boolean variables const
29608         to document the fact that we set but do not change them.
29609
29610 2010-04-11  Bruno Haible  <bruno@clisp.org>
29611
29612         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29613
29614 2010-04-11  Jim Meyering  <meyering@redhat.com>
29615
29616         maint.mk: don't include dist-check.mk
29617         * top/maint.mk: Remove bogus include directive.
29618
29619         maint.mk: improve empty-line-at-EOF check
29620         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29621         solution, rather than tail+Perl-based one.  The latter would read
29622         a few kilobytes from the end of each file, and did not handle empty
29623         files properly.
29624
29625         maint.mk: print the elapsed time for each syntax-check rule
29626         * top/maint.mk (sc_m_rules_): Save start time in a file.
29627         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29628         (local-check): Interpose the .z rules
29629
29630 2010-04-11  Jim Meyering  <meyering@redhat.com>
29631
29632         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29633         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29634         empty file with one that ends in an empty line.
29635
29636 2010-04-10  Bruno Haible  <bruno@clisp.org>
29637
29638         mkdir: Make it work on mingw64.
29639         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29640         * lib/mkdir.c: Update comment.
29641         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29642
29643 2010-04-10  Bruno Haible  <bruno@clisp.org>
29644
29645         Don't override improved macro from newer autoconf.
29646         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29647         autoconf >= 2.62.
29648         Reported by Joel E. Denny <jdenny@clemson.edu>.
29649
29650 2010-04-10  Jim Meyering  <meyering@redhat.com>
29651
29652         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29653         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29654
29655         maint.mk: correct a diagnostic
29656         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29657         in diagnostic; now use $prohibit.
29658
29659 2010-04-10  Bruno Haible  <address@hidden>
29660
29661         fchownat: Fix a C++ test error on Solaris 8.
29662         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29663         the function does not exist.
29664
29665 2010-04-10  Bruno Haible  <bruno@clisp.org>
29666
29667         vasnprintf: Add more tests.
29668         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29669         (test_function): Test converting an invalid wide string.
29670
29671         vasnprintf: Correct handling of unconvertible wide string arguments.
29672         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29673         VASNPRINTF.
29674         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29675         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29676         smaller than the expected maximum need for the directive. Set errno to
29677         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29678         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29680         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29681         * modules/vasnprintf (Files): Add m4/printf.m4.
29682         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29683
29684 2010-04-10  Bruno Haible  <bruno@clisp.org>
29685
29686         vasnprintf: Fix crash in %ls directive.
29687         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29688         string is passed as argument to %ls, with no precision and no width.
29689         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29690
29691 2010-04-10  Bruno Haible  <bruno@clisp.org>
29692
29693         vasnprintf: Fix multiple test failures on mingw.
29694         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29695         _snprintf, or snwprintf, not _snwprintf.
29696
29697 2010-04-10  Bruno Haible  <bruno@clisp.org>
29698
29699         write: Fix a C++ test error on mingw.
29700         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29701
29702 2010-04-10  Bruno Haible  <bruno@clisp.org>
29703
29704         vasnprintf test: Reduce code duplication.
29705         * tests/test-vasnprintf.c (test_function): New function, extracted from
29706         test_vasnprintf.
29707         (test_vasnprintf, test_asnprintf): Invoke it.
29708
29709 2010-04-10  Bruno Haible  <bruno@clisp.org>
29710
29711         strnlen: Fix warning in C++ mode on MacOS X.
29712         * lib/string.in.h (strnlen): Use the modern idiom.
29713         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29714         defining strnlen as a macro already in <config.h>.
29715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29716         REPLACE_STRNLEN.
29717         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29718         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29719
29720 2010-04-08  James Youngman  <jay@gnu.org>
29721
29722         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29723         the example.
29724
29725 2010-04-09  Jim Meyering  <meyering@redhat.com>
29726
29727         maint.mk: print better diagnostic when there is no $(_hv_file)
29728         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29729         announce that when $(_hv_file) (aka help-version) does not exist.
29730
29731         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29732         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29733         not try to interpret its random input bytes.  Jarno Rajahalme reported
29734         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29735         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29736         (mktempd_): Likewise, just in case.
29737
29738         ftruncate: add two years to projected module removal date: 2012
29739         * m4/ftruncate.m4: Adjust comments.
29740
29741         ftruncate: mark module as obsolete; even MinGW provides it, now
29742         * modules/ftruncate (Status): Obsolete.
29743         (Notice): Say that.
29744         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29745         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29746
29747 2010-04-08  Bruno Haible  <bruno@clisp.org>
29748
29749         Fix side effects from tests-related modules.
29750         * modules/dprintf-posix (Comment): New section.
29751         * modules/fprintf-posix (Comment): Likewise.
29752         * modules/obstack-printf-posix (Comment): Likewise.
29753         * modules/printf-posix (Comment): Likewise.
29754         * modules/snprintf-posix (Comment): Likewise.
29755         * modules/sprintf-posix (Comment): Likewise.
29756         * modules/vasnprintf-posix (Comment): Likewise.
29757         * modules/vasprintf-posix (Comment): Likewise.
29758         * modules/vdprintf-posix (Comment): Likewise.
29759         * modules/vfprintf-posix (Comment): Likewise.
29760         * modules/vprintf-posix (Comment): Likewise.
29761         * modules/vsnprintf-posix (Comment): Likewise.
29762         * modules/vsprintf-posix (Comment): Likewise.
29763         * modules/xprintf-posix (Comment): Likewise.
29764         * modules/xvasprintf-posix (Comment): Likewise.
29765         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29766         * modules/floorf-tests (Depends-on): Likewise.
29767         * modules/round-tests (Depends-on): Likewise.
29768         * modules/roundf-tests (Depends-on): Likewise.
29769         * modules/trunc-tests (Depends-on): Likewise.
29770         * modules/truncf-tests (Depends-on): Likewise.
29771         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29772         'fprintf-posix' module is not present.
29773         * tests/test-floorf2.c (check): Likewise.
29774         * tests/test-trunc2.c (check): Likewise.
29775         * tests/test-truncf2.c (check): Likewise.
29776         * tests/test-round2.c (equal): Likewise.
29777         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29778
29779 2010-04-07  Karl Berry  <karl@gnu.org>
29780
29781         * config/srclist.txt,
29782         * config/srclistvars.sh,
29783         * config/srclist-update: doc fixes.
29784
29785 2010-04-07  Jim Meyering  <meyering@redhat.com>
29786
29787         maint.mk: add a PATH crosschecking syntax-check rule
29788         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29789         Useful if you use a test like the one in help-version (coreutils,
29790         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29791         printed by prog --version.
29792
29793 2010-04-06  Bruno Haible  <bruno@clisp.org>
29794
29795         Fix link error on mingw.
29796         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29797         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29798
29799 2010-04-06  Bruno Haible  <bruno@clisp.org>
29800
29801         Assume rmdir exists.
29802         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29803
29804 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29805
29806         doc: update users.txt
29807         * users.txt: Add gcal.
29808
29809 2010-04-06  Jim Meyering  <meyering@redhat.com>
29810
29811         init.sh: simply unset TMPDIR rather than risking env -i
29812         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29813         although it probably works fine on all Unix-based systems, some
29814         systems (Cygwin?) cannot tolerate a totally cleared environment.
29815         Suggestion from Eric Blake.
29816
29817 2010-04-06  Jim Meyering  <meyering@redhat.com>
29818
29819         init.sh: portability fix: use env's POSIX-specified -i option not -u
29820         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29821         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29822
29823 2010-04-05  Bruno Haible  <bruno@clisp.org>
29824
29825         btowc: Work around Cygwin 1.7.2 bug.
29826         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29827         does not map NUL to 0.
29828         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29829
29830 2010-04-05  Bruno Haible  <bruno@clisp.org>
29831
29832         Make the multithread modules work on Cygwin 1.7.2.
29833         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29834         imported symbols can be declared weak, so that it returns "no" on
29835         Cygwin 1.7.2.
29836
29837 2010-04-05  Bruno Haible  <bruno@clisp.org>
29838
29839         Use the module 'strncat'.
29840         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29841
29842         Tests for module 'strncat'.
29843         * modules/strncat-tests: New file.
29844         * tests/test-strncat.c: New file.
29845
29846         New module 'strncat'.
29847         * lib/string.in.h (strncat): New declaration.
29848         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29849         * m4/strncat.m4: New file, based on m4/memchr.m4.
29850         * modules/strncat: New file.
29851         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29852         is declared.
29853         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29854         REPLACE_STRNCAT.
29855         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29856         REPLACE_STRNCAT.
29857         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29858         module.
29859         * tests/test-string-c++.cc: Check signature of strncat.
29860
29861 2010-04-05  Jim Meyering  <meyering@redhat.com>
29862
29863         xstrtoumax-tests: convert to use init.sh
29864         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29865         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29866         Use Exit, not exit.
29867         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29868
29869         xstrtoimax-tests: convert to use init.sh
29870         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29871         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29872         Use Exit, not exit.
29873         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29874
29875 2010-04-05  Bruno Haible  <bruno@clisp.org>
29876
29877         sys_socket: Avoid #define replacements in C++ mode.
29878         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29879         warning to the function if possible, rather than #defining the symbol
29880         to a dysfunctional alias.
29881
29882 2010-04-05  Bruno Haible  <bruno@clisp.org>
29883
29884         fseeko: Fix C++ test error on mingw.
29885         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29886         gl_FUNC_FSEEKO.
29887         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29888         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29889         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29890         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29891
29892 2010-04-05  Bruno Haible  <bruno@clisp.org>
29893
29894         duplocale: Improve test output.
29895         * tests/test-duplocale.c (main): Print reason for skipped test.
29896
29897 2010-04-05  Bruno Haible  <bruno@clisp.org>
29898
29899         Assume rmdir exists.
29900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29901         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29902
29903 2010-04-05  Bruno Haible  <bruno@clisp.org>
29904
29905         Fix link error on Solaris 8 with cc.
29906         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29907
29908 2010-04-05  Bruno Haible  <bruno@clisp.org>
29909
29910         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29911         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29912
29913 2010-04-05  Bruno Haible  <bruno@clisp.org>
29914
29915         vasprintf: Update documentation.
29916         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29917
29918 2010-04-05  Bruno Haible  <bruno@clisp.org>
29919
29920         ptsname: Improve test.
29921         * tests/test-ptsname.c (main): Also try the various master names of BSD
29922         systems.
29923
29924 2010-04-05  Bruno Haible  <bruno@clisp.org>
29925
29926         memchr: Avoid a possible C++ test error.
29927         * lib/string.in.h (memchr): Provide declaration if function is missing.
29928         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29929         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29931         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29932
29933 2010-04-05  Bruno Haible  <bruno@clisp.org>
29934
29935         strtok_r: Improve idiom.
29936         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29937         AC_LIBOBJ is used.
29938
29939 2010-04-05  Bruno Haible  <bruno@clisp.org>
29940
29941         strdup: Improve idiom.
29942         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29943         AC_LIBOBJ is used.
29944         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29945         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29946         when AC_LIBOBJ is used.
29947
29948 2010-04-05  Bruno Haible  <bruno@clisp.org>
29949
29950         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29951         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29952         don't set REPLACE_MBSINIT to 1.
29953         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29954         don't set REPLACE_MBRTOWC to 1.
29955         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29956         exist, don't set REPLACE_MBSRTOWCS to 1.
29957         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29958         exist, don't set REPLACE_MBSNRTOWCS to 1.
29959         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29960         don't set REPLACE_WCRTOMB to 1.
29961         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29962         exist, don't set REPLACE_WCSRTOMBS to 1.
29963         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29964         exist, don't set REPLACE_WCSNRTOMBS to 1.
29965
29966 2010-04-05  Bruno Haible  <bruno@clisp.org>
29967
29968         ldexpl: Improve idiom.
29969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29970         make sure to set HAVE_DECL_LDEXPL to 0.
29971
29972 2010-04-05  Jim Meyering  <meyering@redhat.com>
29973
29974         xstrtol-tests: convert to use init.sh
29975         * modules/xstrtol-tests (Files): Add tests/init.sh.
29976         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29977         Use Exit, not exit.
29978         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29979
29980         atexit-tests: convert to use init.sh
29981         * modules/atexit-tests (Files): Add tests/init.sh.
29982         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29983         Use Exit, not exit.
29984         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29985
29986         init.sh: fix typo
29987         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29988
29989         init.sh: make it easier for a test script to write to the tty, ...
29990         when using automake's parallel-tests mode.
29991         * tests/init.sh (stderr_fileno_): Define overridable variable.
29992         (warn_): New function, to use it.
29993         (fail_, skip_, framework_failure_): Use warn_.
29994
29995 2010-04-04  Bruno Haible  <bruno@clisp.org>
29996
29997         btowc: Avoid warning.
29998         * lib/btowc.c: Include <stdlib.h>.
29999         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30000
30001 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30002             Bruno Haible  <bruno@clisp.org>
30003
30004         wchar: Port to NetBSD 1.5.
30005         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30006         * lib/wctype.in.h (WEOF): Likewise.
30007
30008 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30009             Bruno Haible  <bruno@clisp.org>
30010
30011         Port extended stdio to NetBSD 1.5.
30012         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30013         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30014         older.
30015
30016 2010-04-04  Bruno Haible  <bruno@clisp.org>
30017
30018         string: Remove unused substitution.
30019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30020         HAVE_DECL_STRERROR.
30021         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30022
30023 2010-04-04  Bruno Haible  <bruno@clisp.org>
30024
30025         strtod: Avoid a possible C++ test error.
30026         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30027         set REPLACE_STRTOD.
30028
30029 2010-04-04  Bruno Haible  <bruno@clisp.org>
30030
30031         strerror: Update documentation.
30032         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30033
30034 2010-04-04  Bruno Haible  <bruno@clisp.org>
30035
30036         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30037         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30038         _GL_CXXALIAS_SYS_CAST.
30039
30040 2010-04-04  Bruno Haible  <bruno@clisp.org>
30041
30042         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30043         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30044         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30045         REPLACE_FREXPL to 1.
30046         * doc/posix-functions/frexpl.texi: Update documentation.
30047
30048 2010-04-04  Bruno Haible  <bruno@clisp.org>
30049
30050         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30051         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30052
30053 2010-04-04  Bruno Haible  <bruno@clisp.org>
30054
30055         Implement nanosleep for native Windows.
30056         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30057
30058 2010-04-04  Bruno Haible  <bruno@clisp.org>
30059
30060         math: Fix some C++ test errors on Solaris 8.
30061         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30062
30063 2010-04-04  Bruno Haible  <bruno@clisp.org>
30064
30065         math: Fix some C++ test errors on Cygwin.
30066         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30067         truncl): Provide declaration if the system does not have it.
30068         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30069         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30070         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30071         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30072         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30073         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30074         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30075         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30076         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30077         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30078         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30079         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30080         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30081         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30082         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30083         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30085         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30086         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30087         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30088         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30089         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30090
30091 2010-04-04  Bruno Haible  <bruno@clisp.org>
30092
30093         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30094         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30095         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30096         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30097         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30098         * m4/isinf.m4 (gl_ISINF): Likewise.
30099         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30100
30101 2010-04-04  Bruno Haible  <bruno@clisp.org>
30102
30103         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30104         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30105
30106 2010-04-04  Bruno Haible  <bruno@clisp.org>
30107
30108         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30109         * modules/tmpfile (configure.ac): Update.
30110
30111         tmpfile: Fix C++ test error on mingw.
30112         * lib/stdio.in.h (tmpfile): New declaration.
30113         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30114         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30115         * modules/tmpfile (Depends-on): Add stdio.
30116         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30117         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30118         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30119         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30120         REPLACE_TMPFILE.
30121         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30122
30123 2010-04-04  Bruno Haible  <bruno@clisp.org>
30124
30125         ioctl: Fix C++ test error on mingw.
30126         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30127         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30128         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30129
30130 2010-04-03  Bruno Haible  <bruno@clisp.org>
30131
30132         wcwidth: Fix C++ test error on mingw.
30133         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30135         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30136
30137 2010-04-03  Bruno Haible  <bruno@clisp.org>
30138
30139         nanosleep: Fix C++ test error on mingw.
30140         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30141         * lib/time.in.h (nanosleep): Use modern idiom.
30142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30143         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30144         REPLACE_NANOSLEEP to 1.
30145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30146         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30147
30148 2010-04-03  Bruno Haible  <bruno@clisp.org>
30149
30150         strptime: Fix C++ test error on mingw.
30151         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30152         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30153         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30154         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30155         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30156         not REPLACE_STRPTIME.
30157         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30158         REPLACE_STRPTIME.
30159
30160 2010-04-03  Bruno Haible  <bruno@clisp.org>
30161
30162         timegm: Fix C++ test error on mingw.
30163         * lib/time.in.h (timegm): Use modern idiom.
30164         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30165         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30166         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30167         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30168
30169 2010-04-03  Bruno Haible  <bruno@clisp.org>
30170
30171         timegm: Assume declaration if function exists.
30172         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30173         if it exists. Don't clobber ac_cv_func_timegm.
30174
30175 2010-04-03  Bruno Haible  <bruno@clisp.org>
30176
30177         time_r: Fix C++ test error on mingw.
30178         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30179         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30180         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30181         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30182         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30183
30184 2010-04-03  Bruno Haible  <bruno@clisp.org>
30185
30186         time_r: Minor updates.
30187         * modules/time_r (Description): Mention the provided functions.
30188         * lib/time_r.c: Don't include <string.h>.
30189         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30190         * doc/posix-functions/localtime_r.texi: Likewise.
30191
30192 2010-04-03  Bruno Haible  <bruno@clisp.org>
30193
30194         time: Fix regression introduced on 2010-03-08.
30195         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30196         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30197
30198 2010-04-03  Jim Meyering  <meyering@redhat.com>
30199
30200         maint.mk: don't silently disable project-specific syntax-check rules
30201         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30202         that they need to convert their project-specific syntax-check rules
30203         to use the new _sc_search_regexp.
30204
30205 2010-04-03  Bruno Haible  <bruno@clisp.org>
30206
30207         fchdir: Fix regression introduced on 2010-03-08.
30208         * lib/unistd.in.h (fchdir): Fix declaration.
30209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30211         REPLACE_FCHDIR.
30212         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30213         REPLACE_FCHDIR.
30214
30215 2010-04-03  Bruno Haible  <bruno@clisp.org>
30216
30217         getpagesize: Fix C++ test error on mingw.
30218         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30219         system does not declare the function.
30220         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30221         declared.
30222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30223         HAVE_DECL_GETPAGESIZE.
30224         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30225
30226 2010-04-03  Bruno Haible  <bruno@clisp.org>
30227
30228         stdio: Make C++ tests work on mingw.
30229         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30230         does not declare the function.
30231
30232 2010-04-03  Bruno Haible  <bruno@clisp.org>
30233
30234         ftello: Fix C++ test error on mingw.
30235         * lib/stdio.in.h (ftello): Use modern idiom.
30236         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30237         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30238         is missing and that it needs to be replaced.
30239         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30241         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30242
30243 2010-04-03  Bruno Haible  <bruno@clisp.org>
30244
30245         fseeko: Fix C++ test error on mingw.
30246         * lib/stdio.in.h (fseeko): Use modern idiom.
30247         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30248         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30249         is missing and that it needs to be replaced.
30250         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30252         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30253
30254 2010-04-03  Bruno Haible  <bruno@clisp.org>
30255
30256         mkstemp: Fix C++ test error on mingw.
30257         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30259         function is missing and that it needs to be replaced.
30260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30261         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30262
30263 2010-04-03  Bruno Haible  <bruno@clisp.org>
30264
30265         stpncpy: Fix C++ test error on mingw.
30266         * lib/string.in.h (stpncpy): Use modern idiom.
30267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30268         function is missing and that it needs to be replaced.
30269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30270         REPLACE_STPNCPY.
30271         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30272
30273 2010-04-03  Bruno Haible  <bruno@clisp.org>
30274
30275         sys_stat: Fix C++ test error on mingw.
30276         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30277         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30278
30279 2010-04-03  Bruno Haible  <bruno@clisp.org>
30280
30281         pty: Update doc.
30282         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30283
30284 2010-04-03  Bruno Haible  <bruno@clisp.org>
30285
30286         unistd: Fix C++ test error on mingw.
30287         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30288
30289 2010-04-03  Bruno Haible  <bruno@clisp.org>
30290
30291         Update doc regarding mingw.
30292         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30293         * doc/glibc-functions/login_tty.texi: Likewise.
30294         * doc/glibc-functions/forkpty.texi: Likewise.
30295
30296 2010-04-03  Bruno Haible  <bruno@clisp.org>
30297
30298         stdlib: Avoid compilation failure of c-strtold on mingw.
30299         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30300
30301 2010-04-03  Bruno Haible  <bruno@clisp.org>
30302
30303         locale: Make C++ tests work on Cygwin and mingw.
30304         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30305         cannot provide the function.
30306         Reported by Simon Josefsson.
30307
30308 2010-04-03  Bruno Haible  <bruno@clisp.org>
30309
30310         localename: Port to MacOS X 10.6.
30311         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30312         memory layout of the locales in MacOS X 10.6 as well.
30313         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30314
30315 2010-04-02  Bruno Haible  <bruno@clisp.org>
30316
30317         gnulib-tool: Ensure that long-running tests are executed last.
30318         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30319         running tests after the one for the other tests.
30320
30321 2010-04-02  Bruno Haible  <bruno@clisp.org>
30322
30323         gnulib-tool: Ensure the tests in the main directory are executed first.
30324         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30325         start with the current directory.
30326
30327 2010-04-02  Bruno Haible  <bruno@clisp.org>
30328
30329         Tests for module 'havelib', moved here from GNU gettext.
30330         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30331         modifications.
30332         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30333         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30334         with modifications.
30335         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30336         modifications.
30337         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30338         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30339         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30340         with modifications.
30341         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30342         with modifications.
30343         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30344         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30345         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30346         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30347         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30348         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30349         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30350         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30351         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30352         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30353         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30354         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30355         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30356         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30357         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30358         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30359         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30360         with modifications.
30361         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30362         with modifications.
30363         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30364         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30365         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30366         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30367         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30368         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30369         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30370         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30371         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30372         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30373         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30374         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30375         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30376         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30377         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30378         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30379         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30380         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30381         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30382         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30383         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30384         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30385         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30386         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30387         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30388         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30389         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30390         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30391         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30392         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30393         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30394         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30395         * tests/havelib/rpathx/rpathx.c: New file, from
30396         gettext/autoconf-lib-link.
30397         * tests/havelib/rpathx/Makefile.am: New file, from
30398         gettext/autoconf-lib-link.
30399         * tests/havelib/rpathx/configure.ac: New file, from
30400         gettext/autoconf-lib-link with modifications.
30401         * tests/havelib/rpathy/rpathy.c: New file, from
30402         gettext/autoconf-lib-link.
30403         * tests/havelib/rpathy/Makefile.am: New file, from
30404         gettext/autoconf-lib-link.
30405         * tests/havelib/rpathy/configure.ac: New file, from
30406         gettext/autoconf-lib-link with modifications.
30407         * tests/havelib/rpathz/rpathz.c: New file, from
30408         gettext/autoconf-lib-link.
30409         * tests/havelib/rpathz/Makefile.am: New file, from
30410         gettext/autoconf-lib-link.
30411         * tests/havelib/rpathz/configure.ac: New file, from
30412         gettext/autoconf-lib-link with modifications.
30413         * tests/havelib/rpathlx/usex.c: New file, from
30414         gettext/autoconf-lib-link.
30415         * tests/havelib/rpathlx/Makefile.am: New file, from
30416         gettext/autoconf-lib-link.
30417         * tests/havelib/rpathlx/configure.ac: New file, from
30418         gettext/autoconf-lib-link with modifications.
30419         * tests/havelib/rpathly/usey.c: New file, from
30420         gettext/autoconf-lib-link.
30421         * tests/havelib/rpathly/Makefile.am: New file, from
30422         gettext/autoconf-lib-link.
30423         * tests/havelib/rpathly/configure.ac: New file, from
30424         gettext/autoconf-lib-link with modifications.
30425         * tests/havelib/rpathlz/usez.c: New file, from
30426         gettext/autoconf-lib-link.
30427         * tests/havelib/rpathlz/Makefile.am: New file, from
30428         gettext/autoconf-lib-link.
30429         * tests/havelib/rpathlz/configure.ac: New file, from
30430         gettext/autoconf-lib-link with modifications.
30431         * tests/havelib/rpathlyx/usey.c: New file, from
30432         gettext/autoconf-lib-link.
30433         * tests/havelib/rpathlyx/Makefile.am: New file, from
30434         gettext/autoconf-lib-link.
30435         * tests/havelib/rpathlyx/configure.ac: New file, from
30436         gettext/autoconf-lib-link with modifications.
30437         * tests/havelib/rpathlzyx/usez.c: New file, from
30438         gettext/autoconf-lib-link.
30439         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30440         gettext/autoconf-lib-link.
30441         * tests/havelib/rpathlzyx/configure.ac: New file, from
30442         gettext/autoconf-lib-link with modifications.
30443         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30444         with modifications.
30445
30446 2010-04-02  Bruno Haible  <bruno@clisp.org>
30447
30448         gnulib-tool: Create distributed built sources also for the tests.
30449         * gnulib-tool (func_create_testdir): Also generate distributed built
30450         sources in the tests directory.
30451
30452 2010-04-02  Bruno Haible  <bruno@clisp.org>
30453
30454         gnulib-tool: Obey user's environment variables.
30455         * gnulib-tool (func_create_testdir): When creating built sources,
30456         respect the environment variables for autoconf, automake, etc. given by
30457         the user.
30458
30459 2010-04-02  Bruno Haible  <bruno@clisp.org>
30460
30461         gnulib-tool: Provide the value of --m4-base to modules.
30462         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30463         of gl_m4_base.
30464
30465 2010-04-02  Eric Blake  <eblake@redhat.com>
30466
30467         maint.mk: fix some fallout
30468         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30469         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30470
30471 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30472
30473         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30474         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30475         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30476         (sc_cast_of_x_alloc_return_value): Likewise.
30477         (sc_cast_of_alloca_return_value): Likewise.
30478         (sc_space_tab): Likewise.
30479         (sc_prohibit_atoi_atof): Likewise.
30480         (sc_prohibit_magic_number_exit): Likewise.
30481         (sc_error_exit_success): Likewise.
30482         (sc_file_system): Likewise.
30483         (sc_prohibit_have_config_h): Likewise.
30484         (sc_require_config_h): Likewise.
30485         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30486         (sc_obsolete_symbols): Likewise.
30487         (sc_changelog): Likewise.
30488         (sc_program_name): Likewise.
30489         (sc_the_the): Likewise.
30490         (sc_trailing_blank): Likewise.
30491         (sc_two_space_separator_in_usage): Likewise.
30492         (sc_useless_cpp_parens): Likewise.
30493         (sc_GPL_version): Likewise.
30494         (sc_GFDL_version): Likewise.
30495         (sc_texinfo_acronym): Likewise.
30496         (sc_prohibit_cvs_keyword): Likewise.
30497         (sc_prohibit_stat_st_blocks): Likewise.
30498         (sc_prohibit_S_IS_definition): Likewise.
30499         (sc_redundant_const): Likewise.
30500         (sc_makefile_TAB_only_indentation): Likewise.
30501         (sc_m4_quote_check): Likewise.
30502         (sc_makefile_path_separator_check): Likewise.
30503         (sc_copyright_check): Likewise.
30504         (sc_Wundef_boolean): Likewise.
30505         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30506
30507         maint.mk: match 0 or more whitespace-before-function-call '('
30508         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30509         that have zero or two-and-more spaces between the function name
30510         and the open parenthesis.
30511         (sc_error_message_warn_fatal): Likewise.
30512         (sc_error_message_uppercase): Likewise.
30513         (sc_error_message_period): Likewise.
30514
30515 2010-03-31  Eric Blake  <eblake@redhat.com>
30516
30517         maint.mk: check for [ as well as test
30518         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30519         Based on a libvirt report by Matthias Bolte.
30520
30521         gnumakefile: don't squelch _version output
30522         * top/GNUmakefile (_version): Create one-shot dependency rather
30523         than using $(shell) when version must be regenerated.
30524         (_autoreconf): Run verbosely, by default.
30525
30526         sys_time: avoid compiler warnings
30527         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30528         unconditional, fixing regression from 2010-03-29.
30529         Reported by Simon Josefsson.
30530
30531 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30532
30533         maint.mk: s/_header_without_use/_sc_header_without_use/
30534         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30535         (sc_prohibit_assert_without_use): Use the new name.
30536         (sc_prohibit_close_stream_without_use): Likewise.
30537         (sc_prohibit_getopt_without_use): Likewise.
30538         (sc_prohibit_quotearg_without_use): Likewise.
30539         (sc_prohibit_quote_without_use): Likewise.
30540         (sc_prohibit_long_options_without_use): Likewise.
30541         (sc_prohibit_inttostr_without_use): Likewise.
30542         (sc_prohibit_ignore_value_without_use): Likewise.
30543         (sc_prohibit_error_without_use): Likewise.
30544         (sc_prohibit_xalloc_without_use): Likewise.
30545         (sc_prohibit_hash_without_use): Likewise.
30546         (sc_prohibit_hash_pjw_without_use): Likewise.
30547         (sc_prohibit_safe_read_without_use): Likewise.
30548         (sc_prohibit_argmatch_without_use): Likewise.
30549         (sc_prohibit_canonicalize_without_use): Likewise.
30550         (sc_prohibit_root_dev_ino_without_use): Likewise.
30551         (sc_prohibit_openat_without_use): Likewise.
30552         (sc_prohibit_c_ctype_without_use): Likewise.
30553         (sc_prohibit_signal_without_use): Likewise.
30554         (sc_prohibit_intprops_without_use): Likewise.
30555
30556 2010-03-30  Eric Blake  <eblake@redhat.com>
30557
30558         maint: improve module indicators
30559         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30560         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30561         columns, and avoid extra macro expansion.
30562
30563         fdopendir: work around FreeBSD bug
30564         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30565         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30566         * modules/dirent (Makefile.am): Substitute it.
30567         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30568         declaration.
30569         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30570         fix.
30571         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30572
30573 2010-03-29  Bruno Haible  <bruno@clisp.org>
30574
30575         Emit #pragma system_header after the inclusion guard, not before.
30576         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30577         guard that spans the entire file, not before. This enables an
30578         optimization in GCC's preprocessor.
30579         * lib/ctype.in.h: Likewise.
30580         * lib/dirent.in.h: Likewise.
30581         * lib/errno.in.h: Likewise.
30582         * lib/float.in.h: Likewise.
30583         * lib/getopt.in.h: Likewise.
30584         * lib/iconv.in.h: Likewise.
30585         * lib/langinfo.in.h: Likewise.
30586         * lib/locale.in.h: Likewise.
30587         * lib/math.in.h: Likewise.
30588         * lib/netdb.in.h: Likewise.
30589         * lib/netinet_in.in.h: Likewise.
30590         * lib/pty.in.h: Likewise.
30591         * lib/sched.in.h: Likewise.
30592         * lib/se-selinux.in.h: Likewise.
30593         * lib/search.in.h: Likewise.
30594         * lib/spawn.in.h: Likewise.
30595         * lib/stdarg.in.h: Likewise.
30596         * lib/stdint.in.h: Likewise.
30597         * lib/string.in.h: Likewise.
30598         * lib/strings.in.h: Likewise.
30599         * lib/sys_file.in.h: Likewise.
30600         * lib/sys_ioctl.in.h: Likewise.
30601         * lib/sys_time.in.h: Likewise.
30602         * lib/sys_times.in.h: Likewise.
30603         * lib/sys_utsname.in.h: Likewise.
30604         * lib/sys_wait.in.h: Likewise.
30605         * lib/sysexits.in.h: Likewise.
30606         * lib/wctype.in.h: Likewise.
30607
30608 2010-03-28  James Youngman  <jay@gnu.org>
30609
30610         save-cwd: don't leak a file descriptor when the caller execs.
30611         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30612         saved file descriptor.
30613         * modules/save-cwd (Depends-on): Depend on cloexec.
30614
30615 2010-03-29  Bruno Haible  <bruno@clisp.org>
30616
30617         Remove vestiges of fts-lgpl module.
30618         * lib/fts_.h: Assume GNULIB_FTS is 1.
30619         * lib/fts.c: Likewise.
30620         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30621
30622 2010-03-28  Bruno Haible  <bruno@clisp.org>
30623
30624         Fix definition of tests witness macro.
30625         * gnulib-tool (func_import): Fix definition of witness macro.
30626
30627 2010-03-28  Bruno Haible  <bruno@clisp.org>
30628
30629         Fix ioctl's protoype on glibc systems.
30630         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30631         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30632         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30633         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30634         signature. If not, arrange to replace the ioctl function.
30635         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30636         REPLACE_IOCTL.
30637         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30638         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30639         Reported by Ludovic Courtès <ludo@gnu.org>.
30640
30641 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30642
30643         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30644         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30645         made it so grep -r --include=GLOB* ... did not work.
30646
30647 2010-03-26  Jim Meyering  <meyering@redhat.com>
30648             Eric Blake  <eblake@redhat.com>
30649
30650         maint.mk: prohibit use of test's -o and -a operators
30651         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30652
30653 2010-03-28  Bruno Haible  <bruno@clisp.org>
30654
30655         Remove unused GNULIB_XYZ macro definitions.
30656         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30657         invocation.
30658
30659 2010-03-28  Bruno Haible  <bruno@clisp.org>
30660
30661         Mark privileged tests modules.
30662         * modules/idpriv-drop-tests (Status): New section.
30663         * modules/idpriv-droptemp-tests (Status): New section.
30664
30665 2010-03-28  Bruno Haible  <bruno@clisp.org>
30666
30667         Split C++ tests into separate tests modules.
30668         * modules/dirent-c++-tests: New file, extracted from
30669         modules/dirent-tests.
30670         * modules/dirent-tests: Depend on it.
30671         * modules/fcntl-h-c++-tests: New file, extracted from
30672         modules/fcntl-h-tests.
30673         * modules/fcntl-h-tests: Depend on it.
30674         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30675         * modules/glob-tests: Depend on it.
30676         * modules/iconv-h-c++-tests: New file, extracted from
30677         modules/iconv-h-tests.
30678         * modules/iconv-h-tests: Depend on it.
30679         * modules/langinfo-c++-tests: New file, extracted from
30680         modules/langinfo-tests.
30681         * modules/langinfo-tests: Depend on it.
30682         * modules/locale-c++-tests: New file, extracted from
30683         modules/locale-tests.
30684         * modules/locale-tests: Depend on it.
30685         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30686         * modules/math-tests: Depend on it.
30687         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30688         * modules/pty-tests: Depend on it.
30689         * modules/search-c++-tests: New file, extracted from
30690         modules/search-tests.
30691         * modules/search-tests: Depend on it.
30692         * modules/signal-c++-tests: New file, extracted from
30693         modules/signal-tests.
30694         * modules/signal-tests: Depend on it.
30695         * modules/spawn-c++-tests: New file, extracted from
30696         modules/spawn-tests.
30697         * modules/spawn-tests: Depend on it.
30698         * modules/stdio-c++-tests: New file, extracted from
30699         modules/stdio-tests.
30700         * modules/stdio-tests: Depend on it.
30701         * modules/stdlib-c++-tests: New file, extracted from
30702         modules/stdlib-tests.
30703         * modules/stdlib-tests: Depend on it.
30704         * modules/string-c++-tests: New file, extracted from
30705         modules/string-tests.
30706         * modules/string-tests: Depend on it.
30707         * modules/sys_ioctl-c++-tests: New file, extracted from
30708         modules/sys_ioctl-tests.
30709         * modules/sys_ioctl-tests: Depend on it.
30710         * modules/sys_select-c++-tests: New file, extracted from
30711         modules/sys_select-tests.
30712         * modules/sys_select-tests: Depend on it.
30713         * modules/sys_socket-c++-tests: New file, extracted from
30714         modules/sys_socket-tests.
30715         * modules/sys_socket-tests: Depend on it.
30716         * modules/sys_stat-c++-tests: New file, extracted from
30717         modules/sys_stat-tests.
30718         * modules/sys_stat-tests: Depend on it.
30719         * modules/sys_time-c++-tests: New file, extracted from
30720         modules/sys_time-tests.
30721         * modules/sys_time-tests: Depend on it.
30722         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30723         * modules/time-tests: Depend on it.
30724         * modules/unistd-c++-tests: New file, extracted from
30725         modules/unistd-tests.
30726         * modules/unistd-tests: Depend on it.
30727         * modules/wchar-c++-tests: New file, extracted from
30728         modules/wchar-tests.
30729         * modules/wchar-tests: Depend on it.
30730         * modules/wctype-c++-tests: New file, extracted from
30731         modules/wctype-tests.
30732         * modules/wctype-tests: Depend on it.
30733         Reported by Simon Josefsson.
30734
30735 2010-03-28  Bruno Haible  <bruno@clisp.org>
30736
30737         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30738         * gnulib-tool (func_exists_module): New function, extracted from
30739         func_verify_module.
30740         (func_verify_module): Use it.
30741         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30742         'foo' only if 'foo' exists.
30743         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30744         module.
30745
30746 2010-03-28  Bruno Haible  <bruno@clisp.org>
30747
30748         gnulib-tool: Add support for special categories of tests.
30749         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30750         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30751         (func_usage): Document them.
30752         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30753         inc_unportable_tests, inc_all_tests): New variables.
30754         (func_acceptable): Consider these variables.
30755         (func_modules_transitive_closure): Make it work when the 'Status' field
30756         consists of multiple words.
30757         (func_import): Store and restore the values of inc_cxx_tests,
30758         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30759         inc_all_tests in gnulib-comp.m4.
30760         (func_create_testdir): Set inc_all_tests to true.
30761         * doc/gnulib.texi (Extra tests modules): New section.
30762         Suggested by Jim Meyering.
30763
30764 2010-03-28  Bruno Haible  <bruno@clisp.org>
30765
30766         ansi-c++-opt: Allow turning off the C++ build by default.
30767         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30768         gl_CXX_CHOICE_DEFAULT_NO is defined.
30769         Requested by Eric Blake.
30770
30771 2010-03-28  Bruno Haible  <bruno@clisp.org>
30772
30773         unistd: Avoid #define replacements in C++ mode.
30774         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30775         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30776         setsockopt, shutdown, select): In C++, attach a warning to the function
30777         if possible, rather than #defining the symbol to a dysfunctional alias.
30778         Reported by John W. Eaton <jwe@gnu.org>.
30779
30780 2010-03-28  Bruno Haible  <bruno@clisp.org>
30781
30782         Fix link errors on mingw.
30783         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30784         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30785         $(LIBSOCKET).
30786         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30787         $(LIBSOCKET).
30788
30789 2010-03-28  Bruno Haible  <bruno@clisp.org>
30790             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30791
30792         lib-ignore: Determine different options for different compilers.
30793         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30794         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30795         Add comments.
30796         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30797         * NEWS: Mention the change.
30798
30799 2010-03-27  Bruno Haible  <bruno@clisp.org>
30800
30801         Remove unused GNULIB_XYZ macro definitions.
30802         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30803         * modules/fseek (configure.ac): Likewise.
30804         * modules/ioctl (configure.ac): Likewise.
30805         * modules/open (configure.ac): Likewise.
30806         * modules/stdlib-safer (configure.ac): Likewise.
30807
30808 2010-03-27  Bruno Haible  <bruno@clisp.org>
30809
30810         Add a remark about certain modules.
30811         * modules/malloc (Comment): New section.
30812         * modules/realloc (Comment): Likewise.
30813         * modules/sigpipe (Comment): Likewise.
30814
30815 2010-03-27  Bruno Haible  <bruno@clisp.org>
30816
30817         Resolve conflict between the two kinds of module indicators.
30818         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30819         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30820         * modules/canonicalize (configure.ac): Invoke
30821         gl_MODULE_INDICATOR_FOR_TESTS.
30822         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30823         GNULIB_XYZ.
30824         * tests/test-dirent-c++.cc: Likewise.
30825         * tests/test-dirent-safer.c: Likewise.
30826         * tests/test-dup2.c: Likewise.
30827         * tests/test-fchdir.c: Likewise.
30828         * tests/test-fcntl-h-c++.cc: Likewise.
30829         * tests/test-getopt.c: Likewise.
30830         * tests/test-getopt.h: Likewise.
30831         * tests/test-langinfo-c++.cc: Likewise.
30832         * tests/test-locale-c++.cc: Likewise.
30833         * tests/test-math-c++.cc: Likewise.
30834         * tests/test-pty-c++.cc: Likewise.
30835         * tests/test-search-c++.cc: Likewise.
30836         * tests/test-signal-c++.cc: Likewise.
30837         * tests/test-spawn-c++.cc: Likewise.
30838         * tests/test-stdio-c++.cc: Likewise.
30839         * tests/test-stdlib-c++.cc: Likewise.
30840         * tests/test-string-c++.cc: Likewise.
30841         * tests/test-sys_ioctl-c++.cc: Likewise.
30842         * tests/test-sys_select-c++.cc: Likewise.
30843         * tests/test-sys_socket-c++.cc: Likewise.
30844         * tests/test-sys_stat-c++.cc: Likewise.
30845         * tests/test-sys_time-c++.cc: Likewise.
30846         * tests/test-time-c++.cc: Likewise.
30847         * tests/test-unistd-c++.cc: Likewise.
30848         * tests/test-wchar-c++.cc: Likewise.
30849         * tests/uninorm/test-u8-nfc.c: Likewise.
30850         * tests/uninorm/test-u8-nfd.c: Likewise.
30851         * tests/uninorm/test-u8-nfkc.c: Likewise.
30852         * tests/uninorm/test-u8-nfkd.c: Likewise.
30853         * tests/uninorm/test-u16-nfc.c: Likewise.
30854         * tests/uninorm/test-u16-nfd.c: Likewise.
30855         * tests/uninorm/test-u16-nfkc.c: Likewise.
30856         * tests/uninorm/test-u16-nfkd.c: Likewise.
30857         * tests/uninorm/test-u32-nfc.c: Likewise.
30858         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30859         * tests/uninorm/test-u32-nfd.c: Likewise.
30860         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30861         * tests/uninorm/test-u32-nfkc.c: Likewise.
30862         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30863         * tests/uninorm/test-u32-nfkd.c: Likewise.
30864         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30865         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30866
30867 2010-03-27  Bruno Haible  <bruno@clisp.org>
30868
30869         Distinguish two kinds of module indicators.
30870         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30871         gl_MODULE_INDICATOR.
30872         (gl_MODULE_INDICATOR): New macro.
30873         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30874         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30875         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30876         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30877         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30878         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30879         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30880         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30881         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30882         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30883         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30884         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30887         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30888         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30889         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30890         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30891         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30892         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30893         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30894         * modules/cloexec (configure.ac): Likewise.
30895         * modules/getopt-gnu (configure.ac): Likewise.
30896         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30897         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30898         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30899         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30900
30901 2010-03-27  Bruno Haible  <bruno@clisp.org>
30902
30903         New module description field 'Comment'.
30904         * gnulib-tool: New option --extract-comment.
30905         (func_usage): Document it.
30906         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30907         (func_get_comment): New function.
30908         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30909
30910 2010-03-27  Bruno Haible  <bruno@clisp.org>
30911
30912         Addendum to 2010-02-07 commit.
30913         * gnulib-tool (func_usage): Document --extract-applicability option.
30914
30915 2010-03-27  Bruno Haible  <bruno@clisp.org>
30916
30917         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30918         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30919         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30920         rather than link errors.
30921
30922 2010-03-27  Bruno Haible  <bruno@clisp.org>
30923
30924         Avoid side effects from tests-related modules on the compilation of lib.
30925         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30926         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30927         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30928         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30929         macro.
30930         (func_import): Define a witness macro. Assign it a value that depends
30931         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30932         tests-related modules.
30933         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30934         Reported by Jim Meyering.
30935
30936 2010-03-27  Bruno Haible  <bruno@clisp.org>
30937
30938         Factorize common .m4 code.
30939         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30940         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30941         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30942         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30943         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30944         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30945         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30946         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30947         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30948         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30949         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30950         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30951         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30952         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30953         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30954         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30955         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30956         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30958         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30959         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30960         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30961         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30962         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30963         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30964         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30965         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30966         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30967         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30968         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30969         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30970         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30971
30972 2010-03-27  Bruno Haible  <bruno@clisp.org>
30973
30974         Fix a compilation error on Cygwin with g++ >= 4.3.
30975         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30976         if it is undefined or if we alias it to chmod.
30977         (lstat): Don't warn about the use of this function if it is undefined
30978         or if we alias it to stat.
30979         Reported by Simon Josefsson.
30980
30981 2010-03-27  Bruno Haible  <bruno@clisp.org>
30982
30983         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30984         * modules/getlogin (configure.ac): Update.
30985
30986         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30987         * modules/getlogin_r (configure.ac): Update.
30988
30989         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30991         * modules/inet_ntop (configure.ac): Update.
30992
30993         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30994         * modules/inet_pton (configure.ac): Update.
30995
30996         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30997         * modules/mbslen (configure.ac): Update.
30998
30999         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31000         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31001         * modules/forkpty (configure.ac): Update.
31002         * modules/openpty (configure.ac): Update.
31003
31004 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31005
31006         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31007         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31008
31009 2010-03-25  Eric Blake  <eblake@redhat.com>
31010
31011         maint: use pragma consistently across replacement headers
31012         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31013         * lib/dirent.in.h (system_header): Likewise.
31014         * lib/errno.in.h (system_header): Likewise.
31015         * lib/float.in.h (system_header): Likewise.
31016         * lib/getopt.in.h (system_header): Likewise.
31017         * lib/iconv.in.h (system_header): Likewise.
31018         * lib/inttypes.in.h (system_header): Likewise.
31019         * lib/langinfo.in.h (system_header): Likewise.
31020         * lib/locale.in.h (system_header): Likewise.
31021         * lib/math.in.h (system_header): Likewise.
31022         * lib/netdb.in.h (system_header): Likewise.
31023         * lib/netinet_in.in.h (system_header): Likewise.
31024         * lib/pty.in.h (system_header): Likewise.
31025         * lib/sched.in.h (system_header): Likewise.
31026         * lib/se-selinux.in.h (system_header): Likewise.
31027         * lib/search.in.h (system_header): Likewise.
31028         * lib/spawn.in.h (system_header): Likewise.
31029         * lib/stdarg.in.h (system_header): Likewise.
31030         * lib/stdint.in.h (system_header): Likewise.
31031         * lib/string.in.h (system_header): Likewise.
31032         * lib/strings.in.h (system_header): Likewise.
31033         * lib/sys_file.in.h (system_header): Likewise.
31034         * lib/sys_ioctl.in.h (system_header): Likewise.
31035         * lib/sys_socket.in.h (system_header): Likewise.
31036         * lib/sys_times.in.h (system_header): Likewise.
31037         * lib/sys_utsname.in.h (system_header): Likewise.
31038         * lib/sys_wait.in.h (system_header): Likewise.
31039         * lib/sysexits.in.h (system_header): Likewise.
31040         * lib/unistd.in.h (system_header): Likewise.
31041         * lib/wctype.in.h (system_header): Likewise.
31042
31043         arpa/inet: fix mingw compilation warning
31044         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31045         Reported by Matthew Bolte.
31046
31047 2010-03-25  Bruno Haible  <bruno@clisp.org>
31048
31049         Avoid collision between gnulib wrapper and libintl wrapper.
31050         * lib/printf.c (printf): Don't define if a printf wrapper is already
31051         defined in intl/printf.c.
31052         Reported by Michel Boaventura <michel@michelboaventura.com>.
31053
31054 2010-03-25  Bruno Haible  <bruno@clisp.org>
31055
31056         Use ANSI C.
31057         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31058
31059 2010-03-25  Bruno Haible  <bruno@clisp.org>
31060
31061         Minor formatting changes.
31062         * lib/acosl.c: Insert space before function argument list.
31063         * lib/argz.c: Likewise.
31064         * lib/asinl.c: Likewise.
31065         * lib/expl.c: Likewise.
31066         * lib/gen-uni-tables.c: Likewise.
31067         * lib/gettext.h: Likewise.
31068         * lib/glthread/lock.h: Likewise.
31069         * lib/tanl.c: Likewise.
31070         * lib/uniname/uniname.c: Likewise.
31071         * tests/test-idpriv-drop.c: Likewise.
31072         * tests/test-idpriv-droptemp.c: Likewise.
31073         * tests/test-lock.c: Likewise.
31074         * tests/test-tls.c: Likewise.
31075         * lib/argp-help.c: Insert space before function-like macro argument
31076         list.
31077         * lib/memcmp.c: Likewise.
31078         * tests/test-base64.c: Likewise.
31079         * lib/localename.c: Insert space before sizeof's argument list.
31080         * lib/safe-alloc.h: Likewise.
31081         * lib/file-set.h: Insert space before macro argument list.
31082         * tests/test-argp.c: Likewise.
31083         * lib/argp-namefrob.h: Insert space before function parameter list.
31084         * lib/getaddrinfo.c: Likewise.
31085         * lib/netdb.in.h: Likewise.
31086         * lib/parse-duration.h: Likewise.
31087         * lib/parse-duration.c: Likewise.
31088         * lib/poll.c: Likewise.
31089         * lib/select.c: Likewise.
31090         * lib/trim.h: Likewise.
31091         * tests/test-usleep.c: Likewise.
31092         * lib/ldexpl.c: Insert space before function parameter list and before
31093         function argument list.
31094         * lib/logl.c: Likewise.
31095         * lib/sqrtl.c: Likewise.
31096         * lib/trim.c: Likewise.
31097         * lib/cosl.c: Use GNU style indentation. Insert space before function
31098         argument list.
31099         * lib/sinl.c: Likewise.
31100         * lib/tsearch.c: Insert space after 'for'.
31101         Reported by Jim Meyering.
31102
31103 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31104
31105         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31106         config header before grepping, as it's not present before
31107         autoreconf/configure are run.  Reported by Simon Josefsson.
31108
31109 2010-03-23  Bruno Haible  <bruno@clisp.org>
31110
31111         pt_chown: Make it work with automake < 1.11.
31112         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31113         Reported by Simon Josefsson.
31114
31115 2010-03-23  Bruno Haible  <bruno@clisp.org>
31116
31117         pt_chown: Don't depend on GPLed modules.
31118         * lib/pt_chown.c: Don't include idpriv.h.
31119         (main): Don't drop privileges.
31120         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31121         Reported by Simon Josefsson.
31122
31123 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31124
31125         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31126         suggestions from karl@freefriends.org (Karl Berry).
31127
31128 2010-03-22  Eric Blake  <eblake@redhat.com>
31129
31130         gethostname: further tweaks
31131         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31132         are overriding gethostname.
31133         Suggested by Bruno Haible.
31134
31135 2010-03-21  Bruno Haible  <bruno@clisp.org>
31136
31137         Fix comments.
31138         * lib/forkpty.c (rpl_forkpty): Fix comment.
31139         * lib/openpty.c (rpl_openpty): Likewise.
31140         Reported by Eric Blake.
31141
31142 2010-03-22  Eric Blake  <eblake@redhat.com>
31143
31144         gethostname: fix build on mingw
31145         * lib/unistd.in.h (includes): Work around fact that mingw
31146         <winsock2.h> re-includes <unistd.h>, by avoiding any
31147         redeclarations if we are being included by <winsock2.h>.
31148         Reported by Matthias Bolte.
31149
31150 2010-03-21  Bruno Haible  <bruno@clisp.org>
31151
31152         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31153         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31154         modifications.
31155         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31156         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31157         provide the replacement.
31158         * modules/forkpty (Depends-on): Add openpty, login_tty.
31159         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31160         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31161         * doc/glibc-functions/forkpty.texi: More supported platforms.
31162         * config/srclist.txt: Add forkpty.c (commented).
31163
31164 2010-03-21  Bruno Haible  <bruno@clisp.org>
31165
31166         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31167         (Makefile.am): Verify that PTY_LIB is defined.
31168
31169         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31170
31171 2010-03-21  Bruno Haible  <bruno@clisp.org>
31172
31173         Tests for module 'login_tty'.
31174         * modules/login_tty-tests: New file.
31175         * tests/test-login_tty.c: New file.
31176
31177         New module 'login_tty'.
31178         * lib/login_tty.c: New file.
31179         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31180         * modules/login_tty: New file.
31181         * doc/glibc-functions/login_tty.texi: Mention the new module.
31182
31183 2010-03-21  Bruno Haible  <bruno@clisp.org>
31184
31185         login_tty: Documentation.
31186         * doc/glibc-functions/login_tty.texi: New file.
31187         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31188
31189 2010-03-21  Bruno Haible  <bruno@clisp.org>
31190
31191         pty: Consistent macro naming.
31192         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31193         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31194         * modules/pty (configure.ac): Update.
31195
31196 2010-03-21  Bruno Haible  <bruno@clisp.org>
31197
31198         Tests for openpty: Make stricter.
31199         * tests/test-openpty.c (main): Add test of canonical processing and
31200         erase.
31201         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31202
31203         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31204         * lib/openpty.c (openpty): New replacement function.
31205         * lib/pty.in.h: Include <termios.h>.
31206         (openpty): Update declaration. Add comments.
31207         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31208         is not declared, arrange to provide the replacement. Check for _getpty
31209         and posix_openpt.
31210         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31211         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31212         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31213         * modules/pty-tests (test_pty_c___LDADD): New variable.
31214         * doc/glibc-functions/openpty.texi: More supported platforms.
31215
31216 2010-03-21  Bruno Haible  <bruno@clisp.org>
31217
31218         setenv: Tweaks.
31219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31220         the test program.
31221         * doc/posix-functions/setenv.texi: Update platforms list.
31222
31223 2010-03-21  Bruno Haible  <bruno@clisp.org>
31224
31225         New module 'unlockpt'.
31226         * lib/unlockpt.c: New file, from glibc with modifications.
31227         * m4/unlockpt.m4: New file.
31228         * modules/unlockpt: New file.
31229         * lib/stdlib.in.h (unlockpt): New declaration.
31230         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31231         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31232         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31233         HAVE_UNLOCKPT.
31234         * doc/posix-functions/unlockpt.texi: Mention the new module.
31235         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31236         * config/srclist.txt: Add unlockpt.c (commented).
31237
31238 2010-03-21  Jim Meyering  <meyering@redhat.com>
31239
31240         maint.mk: prohibit inclusion of "intprops.h" without use
31241         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31242
31243 2010-03-21  Bruno Haible  <bruno@clisp.org>
31244
31245         New module 'grantpt'.
31246         * lib/grantpt.c: New file, from glibc with modifications.
31247         * m4/grantpt.m4: New file.
31248         * modules/grantpt: New file.
31249         * lib/stdlib.in.h (grantpt): New declaration.
31250         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31251         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31252         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31253         HAVE_GRANTPT.
31254         * doc/posix-functions/grantpt.texi: Mention the new module.
31255         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31256         * config/srclist.txt: Add grantpt.c (commented).
31257
31258 2010-03-21  Bruno Haible  <bruno@clisp.org>
31259
31260         New module 'pt_chown'.
31261         * lib/pt_chown.c: New file, from glibc with modifications.
31262         * lib/pty-private.h: New file, from glibc with modifications.
31263         * modules/pt_chown: New file.
31264         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31265
31266 2010-03-21  Bruno Haible  <bruno@clisp.org>
31267
31268         Tests for module 'ptsname'.
31269         * modules/ptsname-tests: New file.
31270         * tests/test-ptsname.c: New file.
31271
31272         New module 'ptsname'.
31273         * lib/ptsname.c: New file, from glibc with modifications.
31274         * m4/ptsname.m4: New file.
31275         * modules/ptsname: New file.
31276         * lib/stdlib.in.h (ptsname): New declaration.
31277         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31278         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31279         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31280         HAVE_PTSNAME.
31281         * doc/posix-functions/ptsname.texi: Mention the new module.
31282         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31283         * config/srclist.txt: Add ptsname.c (commented).
31284
31285 2010-03-21  Bruno Haible  <bruno@clisp.org>
31286
31287         Tests for module 'ttyname_r'.
31288         * modules/ttyname_r-tests: New file.
31289         * tests/test-ttyname_r.c: New file.
31290
31291         New module 'ttyname_r'.
31292         * lib/ttyname_r.c: New file.
31293         * m4/ttyname_r.m4: New file.
31294         * modules/ttyname_r: New file.
31295         * lib/unistd.in.h (ttyname_r): New declaration.
31296         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31297         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31298         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31299         HAVE_TTYNAME_R.
31300         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31301         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31302
31303 2010-03-20  Bruno Haible  <bruno@clisp.org>
31304
31305         signal: Undefine macro definitions in C++ mode.
31306         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31307         sigfillset): Undefine macro definitions from the system header in C++
31308         mode.
31309         Reported by John W. Eaton <jwe@gnu.org>.
31310
31311 2010-03-20  Bruno Haible  <bruno@clisp.org>
31312
31313         Ensure no #include statements inside extern "C" { ... }.
31314         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31315         contain #include statements.
31316         * lib/time.in.h: Likewise.
31317
31318 2010-03-20  Bruno Haible  <bruno@clisp.org>
31319
31320         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31321         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31322         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31323         Reported by John W. Eaton <jwe@gnu.org>.
31324
31325 2010-03-20  Bruno Haible  <bruno@clisp.org>
31326
31327         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31328         Reported by Jim Meyering.
31329
31330 2010-03-20  Bruno Haible  <bruno@clisp.org>
31331
31332         pipe: Set errno upon failure.
31333         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31334         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31335         errno value in error message.
31336
31337 2010-03-20  Bruno Haible  <bruno@clisp.org>
31338             Jim Meyering  <meyering@redhat.com>
31339
31340         lchown: Avoid "unused variable" warning.
31341         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31342
31343 2010-03-20  Bruno Haible  <bruno@clisp.org>
31344
31345         Work around unlink() bug on MacOS X 10.5.6.
31346         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31347         attempting to unlink a parent directory.
31348         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31349         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31350         activate for the replacement function.
31351         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31352
31353 2010-03-20  Bruno Haible  <bruno@clisp.org>
31354
31355         Fix link errors on Solaris 8.
31356         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31357         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31358
31359 2010-03-19  Jim Meyering  <meyering@redhat.com>
31360
31361         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31362         The _LIBC implementation of build_range_exp correctly honors the
31363         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31364         However, the non-_LIBC implementation would ignore that syntax-bit
31365         flag and return REG_ERANGE unconditionally.
31366         This change makes it honor that flag.
31367         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31368         Make two pointer parameters "const".
31369         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31370         (parse_bracket_exp): Update caller.
31371
31372         regex.m4: correct the reversed range endpoint ([b-a]) test
31373         * m4/regex.m4: When requiring that [b-a] evoke failure,
31374         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31375         test pass once again for x86-based systems.
31376
31377 2010-03-19  Bruno Haible  <bruno@clisp.org>
31378
31379         scandir: Fix link error on Solaris 8.
31380         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31381         macros.
31382
31383 2010-03-19  Bruno Haible  <bruno@clisp.org>
31384
31385         getusershell: Fix documentation.
31386         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31387         module.
31388         * doc/glibc-functions/setusershell.texi: Likewise.
31389
31390         getusershell: Provide declaration, missing on Solaris 9.
31391         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31392         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31393         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31394         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31396         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31397         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31398         HAVE_GETUSERSHELL.
31399         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31400
31401 2010-03-19  Bruno Haible  <bruno@clisp.org>
31402
31403         wctype: Provide iswblank function.
31404         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31405         exists and is fine.
31406         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31407         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31408         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31409         * doc/posix-functions/iswblank.texi: Update.
31410
31411 2010-03-19  Bruno Haible  <bruno@clisp.org>
31412
31413         Tests of module 'pty' in C++ mode.
31414         * modules/pty-tests: New file.
31415         * tests/test-pty-c++.cc: New file.
31416         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31417
31418 2010-03-19  Eric Blake  <eblake@redhat.com>
31419
31420         logb: fix documentation
31421         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31422         1.5 declaration bug.
31423
31424         forkpty, openpty: prefer glibc's const-safe prototype
31425         * lib/forkpty.c (rpl_forkpty): New file.
31426         * lib/openpty.c (rpl_openpty): Likewise.
31427         * modules/forkpty (Files): Distribute it.
31428         * modules/openpty (Files): Likewise.
31429         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31430         check...
31431         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31432         replacement for for non-const BSD signature.
31433         * modules/pty (Makefile.am): Substitute witnesses.
31434         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31435         * tests/test-forkpty.c: Update signature check.
31436         * tests/test-openpty.c: Likewise.
31437         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31438         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31439
31440         forkpty, openpty: split functions into new modules
31441         * modules/pty (Makefile.am): Substitute new witnesses.
31442         (Libraries): Move library detection...
31443         * modules/forkpty: ...into new module.
31444         * modules/openpty: Another new module.
31445         * modules/pty-tests: Rename and split...
31446         * modules/forkpty-tests: ...to this...
31447         * modules/openpty-tests: ...and this.
31448         * tests/test-pty.c: Rename and split...
31449         * tests/test-forkpty.c: ...to this...
31450         * tests/test-openpty.c: ...and this.
31451         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31452         (gl_PTY): Split library searching...
31453         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31454         (gl_FORKPTY, gl_OPENPTY): New macros.
31455         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31456         * NEWS: Mention the split.
31457         * MODULES.html.sh (Misc): Document the modules.
31458         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31459         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31460
31461         pty: improve replacement header
31462         * lib/pty.in.h: New file.
31463         * modules/pty (Files): Ship it.
31464         (Makefile.am): Always build replacement.
31465         * m4/pty.m4: Rename...
31466         * m4/pty_h.m4: ...to this.
31467         (gl_PTY): Modernize setting of witness macros; update check of
31468         forkpty to take proper advantage of cache.
31469         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31470
31471         getopt: avoid compiler warning
31472         * lib/getopt.c (attribute_hidden): Remove unused macro.
31473
31474 2010-03-18  Bruno Haible  <bruno@clisp.org>
31475
31476         Fix link errors on Solaris 8.
31477         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31478         * modules/search-tests (test_search_c___LDADD): Likewise.
31479         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31480         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31481         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31482         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31483         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31484         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31485         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31486
31487 2010-03-18  Bruno Haible  <bruno@clisp.org>
31488
31489         Fix bug introduced on 2010-03-14.
31490         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31491         (gl_SPAWN_H): Require it.
31492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31493         Reported by Simon Josefsson.
31494
31495 2010-03-18  Bruno Haible  <bruno@clisp.org>
31496
31497         Fix typo introduced on 2009-12-31.
31498         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31499         posix_spawn_file_actions_adddup2.
31500
31501 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31502         and Eric Blake  <eblake@redhat.com>
31503
31504         test-vc-list-files-git: make more robust
31505         * tests/test-vc-list-files-git.sh: Unset problematic environment
31506         variables.  Chain commands together.
31507
31508 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31509
31510         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31511         `AC_CHECK_DECL' invocation.
31512
31513 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31514
31515         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31516         appears before executable statements. Suggested by Petr Sumbera
31517         <Petr.Sumbera@Sun.COM>.
31518
31519 2010-03-14  Bruno Haible  <bruno@clisp.org>
31520
31521         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31522         portability problems. Instead use a simpler test.
31523         (main): Check that invalid arguments are rejected only on Linux.
31524
31525 2010-03-14  Bruno Haible  <bruno@clisp.org>
31526
31527         Fix bug introduced on 2009-12-31.
31528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31529         gl_PREREQ_SYS_H_WINSOCK2 always.
31530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31531         SYS_SOCKET_H variable.
31532         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31533         Update comments.
31534         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31535         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31536         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31538         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31539
31540 2010-03-14  Bruno Haible  <bruno@clisp.org>
31541
31542         Fix values returned by sinl, cosl.
31543         * lib/trigl.h: Add specification comments.
31544         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31545         that combines the values from the precomputed table with the values of
31546         the Chebyshev polynomials.
31547
31548 2010-03-14  Bruno Haible  <bruno@clisp.org>
31549
31550         Fix compilation error when modules 'posix_spawn[p]' are not used.
31551         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31553
31554 2010-03-14  Bruno Haible  <bruno@clisp.org>
31555
31556         Fix compilation error on mingw when module 'time_r' is not used.
31557         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31558         is 1.
31559         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31560         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31561         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31562         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31563
31564 2010-03-14  Bruno Haible  <bruno@clisp.org>
31565
31566         Fix compilation error with Sun C.
31567         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31568         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31569         instead of GCC specific ULONG_LONG_MAX.
31570         * lib/xstrtoll.c: Likewise.
31571         * lib/xstrtoull.c: Likewise.
31572
31573 2010-03-13  Bruno Haible  <bruno@clisp.org>
31574
31575         Allow the user to disable C++ code and tests.
31576         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31577         (gl_PROG_ANSI_CXX): Require it.
31578
31579 2010-03-13  Bruno Haible  <bruno@clisp.org>
31580
31581         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31582         cases.
31583
31584 2010-03-13  Bruno Haible  <bruno@clisp.org>
31585
31586         Test that gnulib does not break the standard C++ headers.
31587         * tests/test-locale-c++2.cc: New file.
31588         * modules/locale-tests (Files): Add it.
31589         (Makefile.am): Compile it for test-locale-c++.
31590         * tests/test-math-c++2.cc: New file.
31591         * modules/math-tests (Files): Add it.
31592         (Makefile.am): Compile it for test-math-c++.
31593         * tests/test-signal-c++2.cc: New file.
31594         * modules/signal-tests (Files): Add it.
31595         (Makefile.am): Compile it for test-signal-c++.
31596         * tests/test-stdio-c++2.cc: New file.
31597         * modules/stdio-tests (Files): Add it.
31598         (Makefile.am): Compile it for test-stdio-c++.
31599         * tests/test-stdlib-c++2.cc: New file.
31600         * modules/stdlib-tests (Files): Add it.
31601         (Makefile.am): Compile it for test-stdlib-c++.
31602         * tests/test-string-c++2.cc: New file.
31603         * modules/string-tests (Files): Add it.
31604         (Makefile.am): Compile it for test-string-c++.
31605         * tests/test-time-c++2.cc: New file.
31606         * modules/time-tests (Files): Add it.
31607         (Makefile.am): Compile it for test-time-c++.
31608         Reported by John W. Eaton <jwe@gnu.org>.
31609
31610 2010-03-13  Bruno Haible  <bruno@clisp.org>
31611
31612         * gnulib-tool (func_usage): Clarify which options are available for
31613         --create-testdir and --create-megatestdir.
31614
31615 2010-03-13  Bruno Haible  <bruno@clisp.org>
31616
31617         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31618         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31619         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31620         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31621         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31622         when appropriate.
31623         Reported by Jim Meyering.
31624
31625 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31626
31627         * gnulib-tool (func_import): Explain origin of code.
31628
31629 2010-03-12  Bruno Haible  <bruno@clisp.org>
31630
31631         Fix problem with automake's definition of CXXLINK.
31632         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31633         Reported by Simon Josefsson and Ludovic Courtès.
31634
31635 2010-03-12  Bruno Haible  <bruno@clisp.org>
31636
31637         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31638         stable releases.
31639
31640 2010-03-11  Bruno Haible  <bruno@clisp.org>
31641
31642         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31643         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31644         whether the system provides one variant or multiple variants of the
31645         function.
31646         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31647         C++ compilers.
31648         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31649         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31650         Reported by Jim Meyering.
31651
31652 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31653
31654         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31655
31656 2010-03-08  Bruno Haible  <bruno@clisp.org>
31657
31658         gnulib-tool: Add support for --libtool in --create-testdir.
31659         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31660         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31661
31662 2010-03-08  Eric Blake  <eblake@redhat.com>
31663
31664         gnulib-tool.texi: mention possibility of git submodule
31665         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31666         submodules.
31667         * doc/.gitignore: Ignore another generated file.
31668
31669 2010-03-08  Karl Berry  <karl@gnu.org>
31670
31671         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31672         of committing gnulib files while skipping others.
31673
31674 2010-03-07  Bruno Haible  <bruno@clisp.org>
31675
31676         Tests of module 'wctype' in C++ mode.
31677         * tests/test-wctype-c++.cc: New file.
31678         * modules/wctype-tests (Files): Add it and tests/signature.h.
31679         (Depends-on): Add ansi-c++-opt.
31680         (Makefile.am): Arrange to compile and run test-wctype-c++.
31681
31682         Tests of module 'wchar' in C++ mode.
31683         * tests/test-wchar-c++.cc: New file.
31684         * modules/wchar-tests (Files): Add it and tests/signature.h.
31685         (Depends-on): Add ansi-c++-opt.
31686         (Makefile.am): Arrange to compile and run test-wchar-c++.
31687         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31688         gl_MODULE_INDICATOR.
31689
31690         Tests of module 'unistd' in C++ mode.
31691         * tests/test-unistd-c++.cc: New file.
31692         * modules/unistd-tests (Files): Add it and tests/signature.h.
31693         (Depends-on): Add ansi-c++-opt.
31694         (Makefile.am): Arrange to compile and run test-unistd-c++.
31695         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31696         gl_MODULE_INDICATOR.
31697
31698         Tests of module 'time' in C++ mode.
31699         * tests/test-time-c++.cc: New file.
31700         * modules/time-tests (Files): Add it and tests/signature.h.
31701         (Depends-on): Add ansi-c++-opt.
31702         (Makefile.am): Arrange to compile and run test-time-c++.
31703         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31704
31705         Tests of module 'sys_time' in C++ mode.
31706         * tests/test-sys_time-c++.cc: New file.
31707         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31708         (Depends-on): Add ansi-c++-opt.
31709         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31710         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31711         gl_MODULE_INDICATOR.
31712
31713         Tests of module 'sys_stat' in C++ mode.
31714         * tests/test-sys_stat-c++.cc: New file.
31715         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31716         (Depends-on): Add ansi-c++-opt.
31717         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31718         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31719         gl_MODULE_INDICATOR.
31720
31721         Tests of module 'sys_socket' in C++ mode.
31722         * tests/test-sys_socket-c++.cc: New file.
31723         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31724         (Depends-on): Add ansi-c++-opt.
31725         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31726         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31727         gl_MODULE_INDICATOR.
31728
31729         Tests of module 'sys_select' in C++ mode.
31730         * tests/test-sys_select-c++.cc: New file.
31731         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31732         (Depends-on): Add ansi-c++-opt.
31733         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31734         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31735         gl_MODULE_INDICATOR.
31736
31737         Tests of module 'sys_ioctl' in C++ mode.
31738         * tests/test-sys_ioctl-c++.cc: New file.
31739         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31740         (Depends-on): Add ansi-c++-opt.
31741         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31742         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31743         gl_MODULE_INDICATOR.
31744
31745         Tests of module 'string' in C++ mode.
31746         * tests/test-string-c++.cc: New file.
31747         * modules/string-tests (Files): Add it and tests/signature.h.
31748         (Depends-on): Add ansi-c++-opt.
31749         (Makefile.am): Arrange to compile and run test-string-c++.
31750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31751         gl_MODULE_INDICATOR.
31752
31753         Tests of module 'stdlib' in C++ mode.
31754         * tests/test-stdlib-c++.cc: New file.
31755         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31756         (Depends-on): Add ansi-c++-opt.
31757         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31758         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31759         gl_MODULE_INDICATOR.
31760
31761         Tests of module 'stdio' in C++ mode.
31762         * tests/test-stdio-c++.cc: New file.
31763         * modules/stdio-tests (Files): Add it and tests/signature.h.
31764         (Depends-on): Add ansi-c++-opt.
31765         (Makefile.am): Arrange to compile and run test-stdio-c++.
31766         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31767         gl_MODULE_INDICATOR.
31768
31769         Tests of module 'spawn' in C++ mode.
31770         * tests/test-spawn-c++.cc: New file.
31771         * modules/spawn-tests (Files): Add it and tests/signature.h.
31772         (Depends-on): Add ansi-c++-opt.
31773         (Makefile.am): Arrange to compile and run test-spawn-c++.
31774         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31775         gl_MODULE_INDICATOR.
31776
31777         Tests of module 'signal' in C++ mode.
31778         * tests/test-signal-c++.cc: New file.
31779         * modules/signal-tests (Files): Add it and tests/signature.h.
31780         (Depends-on): Add ansi-c++-opt.
31781         (Makefile.am): Arrange to compile and run test-signal-c++.
31782         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31783         gl_MODULE_INDICATOR.
31784
31785         Tests of module 'search' in C++ mode.
31786         * tests/test-search-c++.cc: New file.
31787         * modules/search-tests (Files): Add it and tests/signature.h.
31788         (Depends-on): Add ansi-c++-opt.
31789         (Makefile.am): Arrange to compile and run test-search-c++.
31790         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31791         gl_MODULE_INDICATOR.
31792
31793         Tests of module 'math' in C++ mode.
31794         * tests/test-math-c++.cc: New file.
31795         * modules/math-tests (Files): Add it and tests/signature.h.
31796         (Depends-on): Add ansi-c++-opt.
31797         (Makefile.am): Arrange to compile and run test-math-c++.
31798         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31799
31800         Tests of module 'locale' in C++ mode.
31801         * tests/test-locale-c++.cc: New file.
31802         * modules/locale-tests (Files): Add it and tests/signature.h.
31803         (Depends-on): Add ansi-c++-opt.
31804         (Makefile.am): Arrange to compile and run test-locale-c++.
31805         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31806         gl_MODULE_INDICATOR.
31807
31808         Tests of module 'langinfo' in C++ mode.
31809         * tests/test-langinfo-c++.cc: New file.
31810         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31811         (Depends-on): Add ansi-c++-opt.
31812         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31813         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31814         gl_MODULE_INDICATOR.
31815
31816         Tests of module 'iconv-h' in C++ mode.
31817         * tests/test-iconv-h-c++.cc: New file.
31818         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31819         (Depends-on): Add ansi-c++-opt.
31820         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31821
31822         Tests of module 'glob' in C++ mode.
31823         * tests/test-glob-c++.cc: New file.
31824         * modules/glob-tests (Files): Add it.
31825         (Depends-on): Add ansi-c++-opt.
31826         (Makefile.am): Arrange to compile and run test-glob-c++.
31827
31828         Tests of module 'fcntl-h' in C++ mode.
31829         * tests/test-fcntl-h-c++.cc: New file.
31830         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31831         (Depends-on): Add ansi-c++-opt.
31832         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31833         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31834         gl_MODULE_INDICATOR.
31835
31836         Tests of module 'dirent' in C++ mode.
31837         * tests/test-dirent-c++.cc: New file.
31838         * modules/dirent-tests (Files): Add it and tests/signature.h.
31839         (Depends-on): Add ansi-c++-opt.
31840         (Makefile.am): Arrange to compile and run test-dirent-c++.
31841         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31842         gl_MODULE_INDICATOR.
31843
31844         New module 'ansi-c++-opt'.
31845         * modules/ansi-c++-opt: New file.
31846         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31847
31848         Document C++ namespace mode.
31849         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31850
31851         wctype: Avoid #define replacements in C++ mode.
31852         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31853         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31854         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31855         In C++, define a namespaced alias symbol.
31856         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31857         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31858         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31859         rule.
31860
31861         wchar: Avoid #define replacements in C++ mode.
31862         * lib/wchar.in.h: Include c++defs.h.
31863         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31864         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31865         symbol.
31866         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31867         * modules/wchar (Depends-on): Add c++defs.
31868         (Makefile.am): Update wchar.h rule.
31869
31870         unistd: Avoid #define replacements in C++ mode.
31871         * lib/unistd.in.h: Include c++defs.h.
31872         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31873         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31874         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31875         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31876         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31877         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31878         symbol.
31879         (environ): Update.
31880         * modules/unistd (Depends-on): Add c++defs.
31881         (Makefile.am): Update unistd.h rule.
31882
31883         time: Avoid #define replacements in C++ mode.
31884         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31885         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31886         define a namespaced alias symbol.
31887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31888         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31889         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31890         * modules/time (Depends-on): Add c++defs, warn-on-use.
31891         (Makefile.am): Update time.h rule.
31892         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31893         * modules/nanosleep (configure.ac): Likewise.
31894         * modules/strptime (configure.ac): Likewise.
31895         * modules/timegm (configure.ac): Likewise.
31896
31897         sys_time: Avoid #define replacements in C++ mode.
31898         * lib/sys_time.in.h: Include c++defs.h.
31899         (gettimeofday): In C++, define a namespaced alias symbol.
31900         * modules/sys_time (Depends-on): Add c++defs.
31901         (Makefile.am): Update sys/time.h rule.
31902
31903         sys_stat: Avoid #define replacements in C++ mode.
31904         * lib/sys_stat.in.h: Include c++defs.h.
31905         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31906         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31907         namespaced alias symbol.
31908         In C++, define a namespaced alias symbol.
31909         * modules/sys_stat (Depends-on): Add c++defs.
31910         (Makefile.am): Update sys/stat.h rule.
31911
31912         sys_socket: Avoid #define replacements in C++ mode.
31913         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31914         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31915         definitions also when the system has a <sys/socket.h>.
31916         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31917         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31918         In C++, define a namespaced alias symbol.
31919         * modules/sys_socket (Depends-on): Add c++defs.
31920         (Makefile.am): Update sys/socket.h rule.
31921
31922         sys_select: Avoid #define replacements in C++ mode.
31923         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31924         definitions also when the system has a <sys/select.h>.
31925         (select): In C++, define a namespaced alias symbol.
31926         * modules/sys_select (Depends-on): Add c++defs.
31927         (Makefile.am): Update sys/select.h rule.
31928
31929         sys_ioctl: Avoid #define replacements in C++ mode.
31930         * lib/sys_ioctl.in.h: Include c++defs.h.
31931         (ioctl): In C++, define a namespaced alias symbol.
31932         * modules/sys_ioctl (Depends-on): Add c++defs.
31933         (Makefile.am): Update sys/ioctl.h rule.
31934
31935         string: Avoid #define replacements in C++ mode.
31936         * lib/string.in.h: Include c++defs.h.
31937         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31938         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31939         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31940         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31941         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31942         * modules/string (Depends-on): Add c++defs.
31943         (Makefile.am): Update string.h rule.
31944
31945         stdlib: Avoid #define replacements in C++ mode.
31946         * lib/stdlib.in.h: Include c++defs.h.
31947         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31948         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31949         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31950         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31951         symbol.
31952         * modules/stdlib (Depends-on): Add c++defs.
31953         (Makefile.am): Update stdlib.h rule.
31954
31955         stdio: Avoid #define replacements in C++ mode.
31956         * lib/stdio.in.h: Include c++defs.h.
31957         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31958         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31959         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31960         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31961         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31962         namespaced alias symbol.
31963         * modules/stdio (Depends-on): Add c++defs.
31964         (Makefile.am): Update stdio.h rule.
31965
31966         spawn: Avoid #define replacements in C++ mode.
31967         * lib/spawn.in.h: Include c++defs.h.
31968         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31969         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31970         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31971         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31972         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31973         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31974         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31975         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31976         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31977         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31978         In C++, define a namespaced alias symbol.
31979         * modules/spawn (Depends-on): Add c++defs.
31980         (Makefile.am): Update spawn.h rule.
31981
31982         signal: Avoid #define replacements in C++ mode.
31983         * lib/signal.in.h: Include c++defs.h.
31984         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31985         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31986         namespaced alias symbol.
31987         * modules/signal (Depends-on): Add c++defs.
31988         (Makefile.am): Update signal.h rule.
31989
31990         search: Avoid #define replacements in C++ mode.
31991         * lib/search.in.h: Include c++defs.h.
31992         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31993         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31994         symbol.
31995         * modules/search (Depends-on): Add c++defs.
31996         (Makefile.am): Update search.h rule.
31997
31998         math: Avoid #define replacements in C++ mode.
31999         * lib/math.in.h: Include c++defs.h.
32000         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32001         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32002         trunc, truncl): In C++, define a namespaced alias symbol.
32003         * modules/math (Depends-on): Add c++defs.
32004         (Makefile.am): Update math.h rule.
32005
32006         locale: Avoid #define replacements in C++ mode.
32007         * lib/locale.in.h: Include c++defs.h.
32008         (duplocale): In C++, define a namespaced alias symbol.
32009         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32010         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32011         * modules/locale (Depends-on): Add c++defs.
32012         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32013
32014         langinfo: Avoid #define replacements in C++ mode.
32015         * lib/langinfo.in.h: Include c++defs.h.
32016         (nl_langinfo): In C++, define a namespaced alias symbol.
32017         * modules/langinfo (Depends-on): Add c++defs.
32018         (Makefile.am): Update langinfo.h rule.
32019
32020         iconv-h: Avoid #define replacements in C++ mode.
32021         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32022         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32023         symbol.
32024         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32025         whenever iconv is present.
32026         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32027         (Makefile.am): Update iconv.h rule.
32028
32029         glob: Avoid #define replacements in C++ mode.
32030         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32031         (_gl_glob_errfunc_fn): New type.
32032         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32033         symbol.
32034         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32035         (Makefile.am): Update glob.h rule.
32036
32037         fcntl-h: Avoid #define replacements in C++ mode.
32038         * lib/fcntl.in.h: Include c++defs.h.
32039         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32040         * modules/fcntl-h (Depends-on): Add c++defs.
32041         (Makefile.am): Update fcntl.h rule.
32042
32043         dirent: Avoid #define replacements in C++ mode.
32044         * lib/dirent.in.h: Include c++defs.h.
32045         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32046         namespaced alias symbol.
32047         (dirfd): Update declaration.
32048         * modules/dirent (Depends-on): Add c++defs.
32049         (Makefile.am): Update dirent.h rule.
32050
32051         ctype: Make it usable in C++ code.
32052         * lib/ctype.in.h: Include c++defs.h.
32053         (isblank): Declare as extern "C".
32054         * modules/ctype (Depends-on): Add c++defs.
32055         (Makefile.am): Update ctype.h rule.
32056
32057         New module 'c++defs'.
32058         * modules/c++defs: New file.
32059         * build-aux/c++defs.h: New file.
32060         Reported by John W. Eaton <jwe@gnu.org>.
32061
32062 2010-03-07  Bruno Haible  <bruno@clisp.org>
32063
32064         logb: Provide missing declaration for Cygwin.
32065         * lib/math.in.h (logb): New declaration.
32066         * m4/logb.m4: New file.
32067         * modules/logb (Files): Add m4/logb.m4.
32068         (Depends-on): Add math.
32069         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32070         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32072         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32073         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32074
32075 2010-03-07  Bruno Haible  <bruno@clisp.org>
32076
32077         Fix test-cond link error.
32078         * tests/test-cond.c: Include <stdio.h>.
32079
32080 2010-03-07  Bruno Haible  <bruno@clisp.org>
32081
32082         Fix test-dirent-safer link error.
32083         * modules/dirent-safer-tests (Makefile.am): Define
32084         test_dirent_safer_LDADD.
32085
32086 2010-03-07  Bruno Haible  <bruno@clisp.org>
32087
32088         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32089         among default module list.
32090
32091 2010-03-07  Bruno Haible  <bruno@clisp.org>
32092
32093         Fix link error on platforms with GNU libiconv.
32094         * modules/unistr/u8-strcoll-tests (Makefile): Define
32095         test_u8_strcoll_LDADD.
32096         * modules/unistr/u16-strcoll-tests (Makefile): Define
32097         test_u16_strcoll_LDADD.
32098         * modules/unistr/u32-strcoll-tests (Makefile): Define
32099         test_u32_strcoll_LDADD.
32100
32101 2010-03-07  Bruno Haible  <bruno@clisp.org>
32102
32103         Use POSIX declarations for socket functions.
32104         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32105         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32106         rpl_sendto): Change declaration to match POSIX.
32107         * lib/connect.c (rpl_connect): Likewise.
32108         * lib/accept.c (rpl_accept): Likewise.
32109         * lib/bind.c (rpl_bind): Likewise.
32110         * lib/getpeername.c (rpl_getpeername): Likewise.
32111         * lib/getsockname.c (rpl_getsockname): Likewise.
32112         * lib/recv.c (rpl_recv): Likewise.
32113         * lib/send.c (rpl_send): Likewise.
32114         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32115         * lib/sendto.c (rpl_sendto): Likewise.
32116
32117 2010-03-06  Bruno Haible  <bruno@clisp.org>
32118
32119         Clarify access, euidaccess, faccessat.
32120         * doc/posix-functions/faccessat.texi: Mention security problem under
32121         "Other problems", not "Portability problems".
32122         * doc/posix-functions/access.texi: Likewise. Mention a related security
32123         problem.
32124         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32125         * lib/euidaccess.c: Add comments about platforms.
32126         * lib/unistd.in.h (access, euidaccess): Add warnings.
32127
32128 2010-03-07  Bruno Haible  <bruno@clisp.org>
32129
32130         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32131         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32132         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32133         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32134         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32135         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32136         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32137         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32138         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32139         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32140         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32141         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32142         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32143         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32144         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32145         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32146         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32147         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32148         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32149         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32150         Likewise.
32151         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32152         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32153         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32154         Likewise.
32155         * tests/test-spawn.c (main): Make it work when
32156         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32157
32158 2010-03-07  Bruno Haible  <bruno@clisp.org>
32159
32160         Fix incorrect Makefile.am generation in German locale.
32161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32162         Execute sed command with character range in C locale.
32163
32164 2010-03-06  Bruno Haible  <bruno@clisp.org>
32165
32166         Tests for module 'iconv-h'.
32167         * modules/iconv-h-tests: New file.
32168         * tests/test-iconv-h.c: New file.
32169
32170         New module 'iconv-h'.
32171         * modules/iconv-h: New file.
32172         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32173         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32174         (configure.ac): Remove gl_ICONV_H.
32175         (Makefile.am): Remove rule for iconv.h.
32176
32177 2010-03-06  Bruno Haible  <bruno@clisp.org>
32178
32179         More consistent naming of *.m4 files.
32180         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32181         * modules/wctype (Files): Update.
32182
32183         More consistent naming of *.m4 files.
32184         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32185         * modules/wchar (Files): Update.
32186
32187 2010-03-06  Jim Meyering  <meyering@redhat.com>
32188
32189         euidaccess: relax license to LGPLv2+
32190         * modules/euidaccess (License): Relax to LGPLv2+.
32191
32192 2010-03-06  Bruno Haible  <bruno@clisp.org>
32193
32194         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32195         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32196         (Makefile.am): Augment lib_SOURCES instead.
32197
32198 2010-03-04  Jim Meyering  <meyering@redhat.com>
32199
32200         utime: remove obsolete module
32201         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32202         unnecessary for years, and has been marked as obsolete for 10 months.
32203         * modules/utime: Remove file.
32204         * lib/utime.c: Remove file.
32205         * m4/utime.m4: Remove file.
32206         * m4/utimes-null.m4: Remove file.
32207         * doc/posix-functions/utime.texi (utime): Remove reference to
32208         the module.  Move the sole "fixed by gnulib" item into the
32209         "problems not fixed by Gnulib" list.
32210         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32211
32212 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32213
32214         * modules/exit (License): Relax license to LGPLv2+.
32215         (Status): Mark as obsolete.
32216         * NEWS: Mention deprecated 'exit' module.
32217         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32218         of now obsolete 'exit'.
32219
32220 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32221
32222         fts-lgpl: remove unused module
32223         * modules/fts-lgpl: Remove.
32224         * MODULES.html.sh (func_all_modules): Adjust.
32225         * check-module (find_included_lib_files): Adjust.
32226         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32227
32228 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32229
32230         copy-acl: enhance Solaris ACL error handling
32231         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32232         * lib/set-mode-acl.c (qset_acl): Likewise.
32233
32234 2010-03-02  Bruno Haible  <bruno@clisp.org>
32235
32236         spawn: Don't override the system defined values on FreeBSD 8.
32237         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32238         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32239         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32240         if HAVE_POSIX_SPAWN is 1.
32241         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32242
32243 2010-03-01  Bruno Haible  <bruno@clisp.org>
32244
32245         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32246         regarding Automake.
32247
32248 2010-02-25  Bruno Haible  <bruno@clisp.org>
32249
32250         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32251         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32252         setting, not afterwards.
32253         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32254
32255 2010-02-24  Eric Blake  <eblake@redhat.com>
32256
32257         bootstrap, git-version-gen: use timestamp
32258         * build-aux/git-version-gen (scriptversion): Force UTC.
32259         * build-aux/bootstrap (scriptversion): New variable.
32260
32261         bootstrap: allow older git
32262         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32263         older than 1.6.4.  Requested by the libvirt project.
32264
32265 2010-02-23  Eric Blake  <eblake@redhat.com>
32266
32267         warn-on-use: work with old autoconf
32268         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32269         AS_VAR semantics of autoconf 2.60.
32270         Reported by Bruno Haible.
32271
32272         bootstrap: improve some comments
32273         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32274         clarification comments.
32275
32276         gettimeofday: provide correct function
32277         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32278         when replacement is declared, otherwise provide gettimeofday.
32279         Reported by Michael Goffioul.
32280
32281 2010-02-23  Jim Meyering  <meyering@redhat.com>
32282
32283         lib-ignore: relax license to "unlimited", not LGPLv2+
32284         * modules/lib-ignore (License): Relax to "unlimited".
32285
32286 2010-02-23  Jim Meyering  <meyering@redhat.com>
32287
32288         lib-ignore: relax license to LGPLv2+
32289         * modules/lib-ignore (License): Relax to LGPLv2+.
32290
32291 2010-02-22  Eric Blake  <eblake@redhat.com>
32292
32293         lseek: avoid bash 3.2 broken pipe bug
32294         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32295         warning from bash 3.2.
32296         Reported by Ben Pfaff, with analysis from Bruno Haible.
32297
32298         bootstrap: support non-FSF copyright holder
32299         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32300         bootstrap.conf override of COPYRIGHT_HOLDER.
32301         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32302
32303         bootstrap: interoperate with gettext 0.14.1
32304         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32305
32306         bootstrap: allow for alternate submodule location
32307         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32308         hardcoding submodule location.
32309         (gnulib_mk): Allow direct use of Makefile.am.
32310
32311         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32312         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32313         rather than reconfiguring where the submodule points.
32314
32315         gettimeofday: restore support for platforms that lack function
32316         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32317         replacement if function is missing.
32318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32319         * modules/sys_time (Makefile.am): Substitute it.
32320         * lib/sys_time.in.h (gettimeofday): Check it.
32321         Reported by Michael Goffioul.
32322
32323 2010-02-21  Bruno Haible  <bruno@clisp.org>
32324
32325         * lib/stdio.in.h (obstack_printf): Fix typo.
32326
32327 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32328
32329         vc-list-files: use bzr ls's -R option
32330         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32331         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32332
32333 2010-02-21  Jim Meyering  <meyering@redhat.com>
32334
32335         init.sh: fix EXEEXT shims to work also for names like test-prog
32336         * tests/init.sh: Re-exec a better shell, when needed.
32337         If the current shell lacks support for posix $(...), an init.sh-using
32338         test will now try to find a shell that supports that.  If EXEEXT is
32339         nonempty, we also require support for hyphen-in-alias-name and shell
32340         substitutions like ${var#glob}.  Failure to find such a shell results
32341         in a skipped test.
32342
32343 2010-02-21  Bruno Haible  <bruno@clisp.org>
32344
32345         Really work around around "broken pipe" error message from bash 3.2.
32346         * gnulib-tool (func_reset_sigpipe): Remove function.
32347         (echo): In bash 3.2, define to a function that uses printf.
32348         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32349
32350 2010-02-20  Bruno Haible  <bruno@clisp.org>
32351
32352         Restore support for automake 1.9.6 with autoconf 2.61.
32353         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32354         Reported by James Youngman <jay@gnu.org>.
32355
32356 2010-02-20  Bruno Haible  <bruno@clisp.org>
32357
32358         Improve *printf warning condition.
32359         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32360         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32361         and the function is overridden due to SIGPIPE emulation.
32362
32363 2010-02-20  Bruno Haible  <bruno@clisp.org>
32364
32365         * lib/stdio.in.h: Tweak comments.
32366
32367 2010-02-19  Bruno Haible  <bruno@clisp.org>
32368
32369         Make it easier to find modules. New gnulib-tool option '--find'.
32370         * gnulib-tool: New option --find.
32371         (func_usage): Document it.
32372         (func_sanitize_modulelist): New function, extracted from
32373         func_all_modules.
32374         (func_all_modules): Invoke it.
32375         * doc/gnulib-tool.texi (Which modules?): New node.
32376
32377 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32378
32379         * lib/sys_select.in.h: Provide select replacement even if
32380         sys/select.h exists on a system, for Interix.
32381
32382 2010-02-18  Jim Meyering  <meyering@redhat.com>
32383
32384         init.sh: don't use $(...) just yet
32385         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32386         to accommodate e.g., Solaris' /bin/sh.
32387
32388 2010-02-17  Bruno Haible  <bruno@clisp.org>
32389
32390         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32391         Reported by Ludovic Courtès <ludo@gnu.org>.
32392
32393 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32394
32395         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32396         linking with -lintl.
32397
32398 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32399
32400         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32401         if not provided by the system's netdb.h.  Reported by
32402         ludo@gnu.org (Ludovic Courtès).
32403
32404 2010-02-15  Jim Meyering  <meyering@redhat.com>
32405
32406         init.sh: improve portability and efficiency
32407         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32408         "dummy" in a for loop.
32409         Use '!', not '^' to select the complement of a character set used
32410         in a "case" statement.
32411         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32412         Suggestions from Eric Blake.
32413
32414         init.sh: automatically accommodate programs with the .exe suffix
32415         Automatically arrange for an invocation of "prog" to execute the
32416         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32417         may use the simpler "prog", yet still work when built on a system
32418         that requires specifying the added suffix.
32419         Do this by constructing a function named "prog" that invokes
32420         "prog.exe" for each .exe file in selected directories.
32421         * tests/init.sh (find_exe_basenames_): New function.
32422         (create_exe_shim_functions_): New function.
32423         (path_prepend_): Use it.
32424
32425         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32426         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32427         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32428
32429 2010-02-14  Jim Meyering  <meyering@redhat.com>
32430
32431         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32432         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32433         (sc_prohibit_hash_pjw_without_use): New rule.
32434
32435         maint.mk: allow the default upload destination dir to be overridden
32436         * top/maint.mk (upload_dest_dir_): Define with a default that
32437         preserves the status quo.
32438         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32439         Reported by Peter Simons.
32440
32441         maint.mk: prohibit inclusion of "hash.h" without_use
32442         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32443
32444 2010-02-10  Jim Meyering  <meyering@redhat.com>
32445
32446         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32447         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32448
32449 2010-02-09  Eric Blake  <ebb9@byu.net>
32450         and Bruno Haible  <bruno@clisp.org>
32451
32452         obstack-printf-posix: ensure declaration
32453         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32454         extracted from gl_FUNC_OBSTACK_PRINTF.
32455         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32456         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32457         Likewise.
32458         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32459         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32460         0.
32461
32462 2010-02-08  Bruno Haible  <bruno@clisp.org>
32463
32464         gnulib-tool: Fix typo in 2010-02-07 commit.
32465         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32466         Reported by Eric Blake.
32467
32468 2010-02-07  Bruno Haible  <bruno@clisp.org>
32469
32470         gnulib-tool: Fix up caching patches.
32471         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32472         option --no-cache. Use associative arrays when supported by the shell.
32473         (sed_comments): New variable.
32474         (modcache): Renamed from do_cache.
32475         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32476         abbreviate unnecessarily.
32477         (have_associative): New variable.
32478         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32479         way also for ksh and zsh.
32480         (func_init_sed_convert_to_cache_statements): New function, extracted
32481         from func_cache_lookup_module. Add support for associative arrays.
32482         Don't set the c_MODULE_cached variable here. Ignore all lines before
32483         the first field header. Remove only the final newline, not all trailing
32484         newlines. Support empty fields correctly. Limit the use of 'eval' to
32485         assignments.
32486         (func_get_description, func_get_status, func_get_notice,
32487         func_get_applicability, func_get_filelist, func_get_dependencies,
32488         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32489         func_get_automake_snippet, func_get_include_directive,
32490         func_get_link_directive, func_get_license, func_get_maintainer):
32491         Update documentation. List the unoptimized code first. Add support for
32492         associative arrays. Limit the use of 'eval' to assignments.
32493         (func_get_applicability): Undo stylistic pessimisations.
32494         (func_get_automake_snippet, func_get_include_directive): Reduce code
32495         duplication.
32496         (func_modules_transitive_closure, func_modules_add_dummy,
32497         func_modules_notice, func_modules_to_filelist, func_add_file,
32498         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32499         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32500         func_create_testdir, func_create_megatestdir): Update documentation.
32501
32502 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32503
32504         * gnulib-tool (func_cache_lookup_module): Store the module name
32505         belonging to the cache variable; error out if two different
32506         module names map to the same cache variable name.
32507
32508 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32509
32510         gnulib-tool: Make caching optional.
32511         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32512         Update matching short versions of --no-changelog.
32513         (func_usage): Update.
32514         (sed_extract_cache_prog): Renamed from ...
32515         (sed_extract_prog): ... this; revert to old extraction script.
32516         (func_get_description, func_get_status)
32517         (func_get_notice, func_get_applicability, func_get_filelist)
32518         (func_get_dependencies, func_get_autoconf_early_snippet)
32519         (func_get_autoconf_snippet, func_get_automake_snippet)
32520         (func_get_include_directive, func_get_link_directive)
32521         (func_get_license, func_get_maintainer): If $do_cache is false,
32522         use old, non-caching extraction scripts.
32523         Suggestion by Bruno Haible.
32524
32525 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32526
32527         gnulib-tool: cache module metainformation.
32528         * gnulib-tool (sed_extract_prog): Match newline before each
32529         header, and rewrite header to a shell variable suffix.
32530         (func_cache_var, func_cache_lookup_module): New functions,
32531         to turn a module name into a cache variable prefix, and to
32532         look up and cache module metainformation.
32533         (func_get_description, func_get_status)
32534         (func_get_notice, func_get_applicability, func_get_filelist)
32535         (func_get_dependencies, func_get_autoconf_early_snippet)
32536         (func_get_autoconf_snippet, func_get_automake_snippet)
32537         (func_get_include_directive, func_get_link_directive)
32538         (func_get_license, func_get_maintainer): Use
32539         func_cache_lookup_module.
32540
32541 2010-02-07  Bruno Haible  <bruno@clisp.org>
32542
32543         fnctl: Fix missing dependency.
32544         * modules/fcntl (Depends-on): Add getdtablesize.
32545         Reported by John W. Eaton <jwe@gnu.org>.
32546
32547 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32548
32549         Argp: fix recognition of short alias options.
32550
32551         * lib/argp-parse.c (convert_options): Fix improper use of
32552         `|' between character values.
32553         * tests/test-argp.c (group1_option): New alias option
32554         --read (-r).
32555         (group1_parser): Special handling for 'r'.
32556         (test15): New test case.
32557         (test_fun): Add test15.
32558         * tests/test-argp-2.sh: Update expected --help and --usage
32559         outputs.
32560
32561 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32562
32563         * tests/test-argp.c: Fix indentation.
32564
32565 2010-02-04  Eric Blake  <ebb9@byu.net>
32566
32567         gettimeofday: expose type of second argument
32568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32569         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32570         * tests/test-gettimeofday.c: Use it to silence warning.
32571         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32572         the issue.
32573
32574 2010-02-03  Jim Meyering  <meyering@redhat.com>
32575
32576         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32577         * lib/regcomp.c (TYPE_SIGNED): Define.
32578         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32579
32580         regcomp.c: avoid a new -Wshadow warning
32581         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32582
32583 2010-02-01  Jim Meyering  <meyering@redhat.com>
32584
32585         removing useless parentheses in cpp #define directives
32586         For motivation, see commit c0221df4, "define STREQ(a,b)
32587         consistently, removing useless parentheses"
32588         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32589         * lib/mountlist.c (MNT_IGNORE): Likewise.
32590         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32591
32592 2010-02-01  Eric Blake  <ebb9@byu.net>
32593
32594         sys_time: use link-warning
32595         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32596         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32597         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32598         * modules/sys_time (Depends-on): Add warn-on-use.
32599         (Makefile.am): Always build replacement.
32600         (configure.ac): Update substitutions.
32601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32602         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32603         bother with SYS_TIME_H.
32604         * modules/gettimeofday (configure.ac): Declare indicator.
32605         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32606         in use.
32607
32608         closein-tests: silence compiler warning
32609         * tests/test-closein.c (main): Ignore fread result.
32610         * modules/closein-tests (Depends-on): Add ignore-value.
32611
32612         tests: silence warning about system return
32613         * tests/test-areadlink-with-size.c (main): Ignore system result.
32614         * tests/test-areadlink.c (main): Likewise.
32615         * tests/test-areadlinkat-with-size.c (main): Likewise.
32616         * tests/test-areadlinkat.c (main): Likewise.
32617         * tests/test-canonicalize-lgpl.c (main): Likewise.
32618         * tests/test-canonicalize.c (main): Likewise.
32619         * tests/test-chown.c (main): Likewise.
32620         * tests/test-fchownat.c (main): Likewise.
32621         * tests/test-fdutimensat.c (main): Likewise.
32622         * tests/test-fstatat.c (main): Likewise.
32623         * tests/test-futimens.c (main): Likewise.
32624         * tests/test-lchown.c (main): Likewise.
32625         * tests/test-link.c (main): Likewise.
32626         * tests/test-linkat.c (main): Likewise.
32627         * tests/test-lstat.c (main): Likewise.
32628         * tests/test-mkdir.c (main): Likewise.
32629         * tests/test-mkdirat.c (main): Likewise.
32630         * tests/test-mkfifo.c (main): Likewise.
32631         * tests/test-mkfifoat.c (main): Likewise.
32632         * tests/test-mknod.c (main): Likewise.
32633         * tests/test-readlink.c (main): Likewise.
32634         * tests/test-remove.c (main): Likewise.
32635         * tests/test-rename.c (main): Likewise.
32636         * tests/test-renameat.c (main): Likewise.
32637         * tests/test-rmdir.c (main): Likewise.
32638         * tests/test-symlink.c (main): Likewise.
32639         * tests/test-symlinkat.c (main): Likewise.
32640         * tests/test-unlink.c (main): Likewise.
32641         * tests/test-unlinkat.c (main): Likewise.
32642         * tests/test-utimens.c (main): Likewise.
32643         * tests/test-utimensat.c (main): Likewise.
32644         * modules/areadlink-tests (Depends-on): Add ignore-value.
32645         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32646         * modules/areadlinkat-tests (Depends-on): Likewise.
32647         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32648         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32649         * modules/canonicalize-tests (Depends-on): Likewise.
32650         * modules/chown-tests (Depends-on): Likewise.
32651         * modules/fdutimensat-tests (Depends-on): Likewise.
32652         * modules/futimens-tests (Depends-on): Likewise.
32653         * modules/lchown-tests (Depends-on): Likewise.
32654         * modules/link-tests (Depends-on): Likewise.
32655         * modules/linkat-tests (Depends-on): Likewise.
32656         * modules/lstat-tests (Depends-on): Likewise.
32657         * modules/mkdir-tests (Depends-on): Likewise.
32658         * modules/mkfifo-tests (Depends-on): Likewise.
32659         * modules/mkfifoat-tests (Depends-on): Likewise.
32660         * modules/mknod-tests (Depends-on): Likewise.
32661         * modules/openat-tests (Depends-on): Likewise.
32662         * modules/readlink-tests (Depends-on): Likewise.
32663         * modules/remove-tests (Depends-on): Likewise.
32664         * modules/rename-tests (Depends-on): Likewise.
32665         * modules/renameat-tests (Depends-on): Likewise.
32666         * modules/rmdir-tests (Depends-on): Likewise.
32667         * modules/symlink-tests (Depends-on): Likewise.
32668         * modules/symlinkat-tests (Depends-on): Likewise.
32669         * modules/unlink-tests (Depends-on): Likewise.
32670         * modules/utimens-tests (Depends-on): Likewise.
32671         * modules/utimensat-tests (Depends-on): Likewise.
32672
32673 2010-01-31  Bruno Haible  <bruno@clisp.org>
32674
32675         Perform the same test for many <math.h> functions.
32676         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32677         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32678         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32679         of gl_MATHFUNC.
32680         * modules/acos (configure.ac): Likewise.
32681         * modules/asin (configure.ac): Likewise.
32682         * modules/atan (configure.ac): Likewise.
32683         * modules/atan2 (configure.ac): Likewise.
32684         * modules/cbrt (configure.ac): Likewise.
32685         * modules/copysign (configure.ac): Likewise.
32686         * modules/cos (configure.ac): Likewise.
32687         * modules/cosh (configure.ac): Likewise.
32688         * modules/erf (configure.ac): Likewise.
32689         * modules/erfc (configure.ac): Likewise.
32690         * modules/exp (configure.ac): Likewise.
32691         * modules/fmod (configure.ac): Likewise.
32692         * modules/hypot (configure.ac): Likewise.
32693         * modules/j0 (configure.ac): Likewise.
32694         * modules/j1 (configure.ac): Likewise.
32695         * modules/jn (configure.ac): Likewise.
32696         * modules/lgamma (configure.ac): Likewise.
32697         * modules/log (configure.ac): Likewise.
32698         * modules/log10 (configure.ac): Likewise.
32699         * modules/log1p (configure.ac): Likewise.
32700         * modules/pow (configure.ac): Likewise.
32701         * modules/remainder (configure.ac): Likewise.
32702         * modules/sin (configure.ac): Likewise.
32703         * modules/sinh (configure.ac): Likewise.
32704         * modules/tan (configure.ac): Likewise.
32705         * modules/tanh (configure.ac): Likewise.
32706         * modules/y0 (configure.ac): Likewise.
32707         * modules/y1 (configure.ac): Likewise.
32708         * modules/yn (configure.ac): Likewise.
32709         Suggested by Paolo Bonzini.
32710
32711 2010-01-31  Bruno Haible  <bruno@clisp.org>
32712
32713         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32714
32715 2010-01-31  Bruno Haible  <bruno@clisp.org>
32716
32717         Work around getdelim() bug on FreeBSD 8.0.
32718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32719         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32720         not work.
32721         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32722         is 1.
32723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32724         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32725         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32726         a non-zero size.
32727         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32728
32729 2010-01-31  Bruno Haible  <bruno@clisp.org>
32730
32731         Work around getline() bug on FreeBSD 8.0.
32732         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32733         and a non-zero size.
32734         * tests/test-getline.c (main): Likewise.
32735         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32736         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32737
32738 2010-01-28  Eric Blake  <ebb9@byu.net>
32739
32740         regex: fix build failure
32741         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32742         platforms.
32743
32744 2010-01-28  Jim Meyering  <meyering@redhat.com>
32745
32746         regex: do not ignore memory allocation failure
32747         * lib/regex_internal.c (create_cd_newstate): Detect
32748         re_node_set_init_copy failure.   Extracted from glibc commit
32749         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32750
32751         regex: sync more white-space changes from libc
32752         * lib/regex_internal.c: White-space only changes.
32753         * lib/regexec.c: Likewise.
32754
32755         regex: add many uses of __attribute_warn_unused_result__
32756         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32757         * lib/regexec.c: Likewise.
32758         Extracted from a messy glibc commit.
32759
32760         regcomp.c: spelling and merge-artifact from glibc
32761         * lib/regcomp.c: Merge remainder of glibc's
32762         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32763
32764         regcomp.c: sync white-space changes from glibc
32765         * lib/regcomp.c: Merge to accommodate white space
32766         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32767
32768         regcomp.c: do not ignore internal return values
32769         * lib/regcomp.c: Do not ignore internal return values.
32770         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32771         but without its white-space changes and spelling fixes.
32772
32773         regex_internal.h: define __attribute_warn_unused_result__
32774         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32775
32776         maint: add a syntax-check rule to check for vulnerable Makefile.in
32777         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32778
32779 2010-01-27  Jim Meyering  <meyering@redhat.com>
32780
32781         ncftpput-ftp: clean up spaces
32782         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32783         Remove trailing blanks.
32784
32785 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32786
32787         * build-aux/git-version-gen: Fix copyright statement.
32788         * build-aux/gnupload: Likewise.
32789         * tests/test-arcfour.c: Likewise.
32790         * tests/test-arctwo.c: Likewise.
32791         * tests/test-count-one-bits.c: Likewise.
32792         * tests/test-crc.c: Likewise.
32793         * tests/test-des.c: Likewise.
32794         * tests/test-gc-arcfour.c: Likewise.
32795         * tests/test-gc-arctwo.c: Likewise.
32796         * tests/test-gc-des.c: Likewise.
32797         * tests/test-gc-hmac-md5.c: Likewise.
32798         * tests/test-gc-hmac-sha1.c: Likewise.
32799         * tests/test-gc-md2.c: Likewise.
32800         * tests/test-gc-md4.c: Likewise.
32801         * tests/test-gc-md5.c: Likewise.
32802         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32803         * tests/test-gc-rijndael.c: Likewise.
32804         * tests/test-gc-sha1.c: Likewise.
32805         * tests/test-gc.c: Likewise.
32806         * tests/test-gethostname.c: Likewise.
32807         * tests/test-gettimeofday.c: Likewise.
32808         * tests/test-hash.c: Likewise.
32809         * tests/test-hmac-md5.c: Likewise.
32810         * tests/test-hmac-sha1.c: Likewise.
32811         * tests/test-md2.c: Likewise.
32812         * tests/test-md4.c: Likewise.
32813         * tests/test-md5.c: Likewise.
32814         * tests/test-memchr.c: Likewise.
32815         * tests/test-memchr2.c: Likewise.
32816         * tests/test-memcmp.c: Likewise.
32817         * tests/test-memmem.c: Likewise.
32818         * tests/test-memrchr.c: Likewise.
32819         * tests/test-rawmemchr.c: Likewise.
32820         * tests/test-read-file.c: Likewise.
32821         * tests/test-rijndael.c: Likewise.
32822         * tests/test-sockets.c: Likewise.
32823         * tests/test-strchrnul.c: Likewise.
32824         * tests/test-strstr.c: Likewise.
32825         * tests/test-strtod.c: Likewise.
32826         * build-aux/ncftpput-ftp: Likewise.
32827
32828 2010-01-26  Eric Blake  <ebb9@byu.net>
32829
32830         ignore-value: update recommended header name
32831         * modules/ignore-value (Include): Only use <> for headers that
32832         exist in glibc.
32833
32834 2010-01-26  Jim Meyering  <meyering@redhat.com>
32835
32836         test-userspec.c: avoid compiler warnings
32837         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32838         and "initialization discards qualifiers..." warnings.
32839         Put the first "uid" in its own scope, and make char* members "const".
32840
32841 2010-01-25  Bruno Haible  <bruno@clisp.org>
32842
32843         gnulib-tool: Make warning diagnostics consistent.
32844         * gnulib-tool (func_warning): New function.
32845         Use it everywhere where gnulib-tool produces output to stderr and it is
32846         not a fatal error.
32847
32848 2010-01-25  Bruno Haible  <bruno@clisp.org>
32849
32850         Fix test dependencies.
32851         * modules/xstrtol-tests (Depends-on): Add inttypes.
32852         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32853
32854 2010-01-25 Pádraig Brady <P@draigBrady.com>
32855
32856         syntax-check: detect incorrect boolean macro values in config.h
32857         * modules/maintainer-makefile (configure.ac): Parameterize the location
32858         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32859         The logic is from Eric Blake and the location indicated by Jim Meyering.
32860         Note the more natural CONFIG_HEADER name is prohibited by automake
32861         for backwards compatibility reasons.
32862         * top/maint.mk (sc_Wundef_boolean): New rule.
32863
32864 2010-01-25  Jim Meyering  <meyering@redhat.com>
32865
32866         bootstrap: detect MacOS 10.6's shasum, too
32867         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32868         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32869
32870 2010-01-23  Jim Meyering  <meyering@redhat.com>
32871
32872         xstrtoll: new module
32873         * modules/xstrtoll: New file.
32874         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32875         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32876         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32877         ./configure fails if you use this module and lack "long long".
32878         * modules/xstrtoll-tests: New module.
32879         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32880         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32881         new init.sh-based test framework.
32882
32883 2010-01-24  Bruno Haible  <bruno@clisp.org>
32884
32885         Tests for module 'yn'.
32886         * modules/yn-tests: New file.
32887         * tests/test-yn.c: New file.
32888
32889         Tests for module 'y1'.
32890         * modules/y1-tests: New file.
32891         * tests/test-y1.c: New file.
32892
32893         Tests for module 'y0'.
32894         * modules/y0-tests: New file.
32895         * tests/test-y0.c: New file.
32896
32897         Tests for module 'tanh'.
32898         * modules/tanh-tests: New file.
32899         * tests/test-tanh.c: New file.
32900
32901         Tests for module 'tan'.
32902         * modules/tan-tests: New file.
32903         * tests/test-tan.c: New file.
32904
32905         Tests for module 'sqrt'.
32906         * modules/sqrt-tests: New file.
32907         * tests/test-sqrt.c: New file.
32908
32909         Tests for module 'sinh'.
32910         * modules/sinh-tests: New file.
32911         * tests/test-sinh.c: New file.
32912
32913         Tests for module 'sin'.
32914         * modules/sin-tests: New file.
32915         * tests/test-sin.c: New file.
32916
32917         Tests for module 'rint'.
32918         * modules/rint-tests: New file.
32919         * tests/test-rint.c: New file.
32920
32921         Tests for module 'remainder'.
32922         * modules/remainder-tests: New file.
32923         * tests/test-remainder.c: New file.
32924
32925         Tests for module 'pow'.
32926         * modules/pow-tests: New file.
32927         * tests/test-pow.c: New file.
32928
32929         Tests for module 'nextafter'.
32930         * modules/nextafter-tests: New file.
32931         * tests/test-nextafter.c: New file.
32932
32933         Tests for module 'modf'.
32934         * modules/modf-tests: New file.
32935         * tests/test-modf.c: New file.
32936
32937         Tests for module 'logb'.
32938         * modules/logb-tests: New file.
32939         * tests/test-logb.c: New file.
32940
32941         Tests for module 'log1p'.
32942         * modules/log1p-tests: New file.
32943         * tests/test-log1p.c: New file.
32944
32945         Tests for module 'log10'.
32946         * modules/log10-tests: New file.
32947         * tests/test-log10.c: New file.
32948
32949         Tests for module 'log'.
32950         * modules/log-tests: New file.
32951         * tests/test-log.c: New file.
32952
32953         Tests for module 'lgamma'.
32954         * modules/lgamma-tests: New file.
32955         * tests/test-lgamma.c: New file.
32956
32957         Tests for module 'ldexp'.
32958         * modules/ldexp-tests: New file.
32959         * tests/test-ldexp.c: New file.
32960
32961         Tests for module 'jn'.
32962         * modules/jn-tests: New file.
32963         * tests/test-jn.c: New file.
32964
32965         Tests for module 'j1'.
32966         * modules/j1-tests: New file.
32967         * tests/test-j1.c: New file.
32968
32969         Tests for module 'j0'.
32970         * modules/j0-tests: New file.
32971         * tests/test-j0.c: New file.
32972
32973         Tests for module 'hypot'.
32974         * modules/hypot-tests: New file.
32975         * tests/test-hypot.c: New file.
32976
32977         Tests for module 'fmod'.
32978         * modules/fmod-tests: New file.
32979         * tests/test-fmod.c: New file.
32980
32981         Tests for module 'fabs'.
32982         * modules/fabs-tests: New file.
32983         * tests/test-fabs.c: New file.
32984
32985         Tests for module 'exp'.
32986         * modules/exp-tests: New file.
32987         * tests/test-exp.c: New file.
32988
32989         Tests for module 'erfc'.
32990         * modules/erfc-tests: New file.
32991         * tests/test-erfc.c: New file.
32992
32993         Tests for module 'erf'.
32994         * modules/erf-tests: New file.
32995         * tests/test-erf.c: New file.
32996
32997         Tests for module 'cosh'.
32998         * modules/cosh-tests: New file.
32999         * tests/test-cosh.c: New file.
33000
33001         Tests for module 'cos'.
33002         * modules/cos-tests: New file.
33003         * tests/test-cos.c: New file.
33004
33005         Tests for module 'copysign'.
33006         * modules/copysign-tests: New file.
33007         * tests/test-copysign.c: New file.
33008
33009         Tests for module 'cbrt'.
33010         * modules/cbrt-tests: New file.
33011         * tests/test-cbrt.c: New file.
33012
33013         Tests for module 'atan2'.
33014         * modules/atan2-tests: New file.
33015         * tests/test-atan2.c: New file.
33016
33017         Tests for module 'atan'.
33018         * modules/atan-tests: New file.
33019         * tests/test-atan.c: New file.
33020
33021         Tests for module 'asin'.
33022         * modules/asin-tests: New file.
33023         * tests/test-asin.c: New file.
33024
33025         Tests for module 'acos'.
33026         * modules/acos-tests: New file.
33027         * tests/test-acos.c: New file.
33028
33029 2010-01-24  Bruno Haible  <bruno@clisp.org>
33030
33031         Fix tests for common <math.h> functions.
33032         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33033         code snippet that references the function pointer, rather than merely
33034         calling the function. Substitute the FUNC_LIBM variable.
33035         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33036         * modules/acos (configure.ac): Likewise.
33037         * modules/asin (configure.ac): Likewise.
33038         * modules/atan (configure.ac): Likewise.
33039         * modules/atan2 (configure.ac): Likewise.
33040         * modules/cbrt (configure.ac): Likewise.
33041         * modules/copysign (configure.ac): Likewise.
33042         * modules/cos (configure.ac): Likewise.
33043         * modules/cosh (configure.ac): Likewise.
33044         * modules/erf (configure.ac): Likewise.
33045         * modules/erfc (configure.ac): Likewise.
33046         * modules/exp (configure.ac): Likewise.
33047         * modules/fabs (configure.ac): Likewise.
33048         * modules/fmod (configure.ac): Likewise.
33049         * modules/hypot (configure.ac): Likewise.
33050         * modules/j0 (configure.ac): Likewise.
33051         * modules/j1 (configure.ac): Likewise.
33052         * modules/jn (configure.ac): Likewise.
33053         * modules/ldexp (configure.ac): Likewise.
33054         * modules/lgamma (configure.ac): Likewise.
33055         * modules/log (configure.ac): Likewise.
33056         * modules/log10 (configure.ac): Likewise.
33057         * modules/log1p (configure.ac): Likewise.
33058         * modules/logb (configure.ac): Likewise.
33059         * modules/modf (configure.ac): Likewise.
33060         * modules/nextafter (configure.ac): Likewise.
33061         * modules/pow (configure.ac): Likewise.
33062         * modules/remainder (configure.ac): Likewise.
33063         * modules/rint (configure.ac): Likewise.
33064         * modules/sin (configure.ac): Likewise.
33065         * modules/sinh (configure.ac): Likewise.
33066         * modules/tan (configure.ac): Likewise.
33067         * modules/tanh (configure.ac): Likewise.
33068         * modules/y0 (configure.ac): Likewise.
33069         * modules/y1 (configure.ac): Likewise.
33070         * modules/yn (configure.ac): Likewise.
33071
33072 2010-01-24  Bruno Haible  <bruno@clisp.org>
33073
33074         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33075         * tests/test-acosl.c (x): New variable.
33076         (main): Store argument in x and fetch it from x.
33077         * tests/test-asinl.c (x): New variable.
33078         (main): Store argument in x and fetch it from x.
33079         * tests/test-atanl.c (x): New variable.
33080         (main): Store argument in x and fetch it from x.
33081         * tests/test-cosl.c (x): New variable.
33082         (main): Store argument in x and fetch it from x.
33083         * tests/test-expl.c (x): New variable.
33084         (main): Store argument in x and fetch it from x.
33085         * tests/test-logl.c (x): New variable.
33086         (main): Store argument in x and fetch it from x.
33087         * tests/test-sinl.c (x): New variable.
33088         (main): Store argument in x and fetch it from x.
33089         * tests/test-sqrtl.c (x): New variable.
33090         (main): Store argument in x and fetch it from x.
33091         * tests/test-tanl.c (x): New variable.
33092         (main): Store argument in x and fetch it from x.
33093
33094 2010-01-24  Bruno Haible  <bruno@clisp.org>
33095
33096         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33097         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33098         assignments to the initial TESTS_ENVIRONMENT.
33099         * doc/gnulib.texi (Unit test modules): Document it.
33100         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33101         TESTS_ENVIRONMENT.
33102         * modules/btowc-tests (Makefile.am): Likewise.
33103         * modules/c-stack-tests (Makefile.am): Likewise.
33104         * modules/c-strcase-tests (Makefile.am): Likewise.
33105         * modules/copy-file-tests (Makefile.am): Likewise.
33106         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33107         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33108         * modules/mbrtowc-tests (Makefile.am): Likewise.
33109         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33110         * modules/mbscasestr-tests (Makefile.am): Likewise.
33111         * modules/mbschr-tests (Makefile.am): Likewise.
33112         * modules/mbscspn-tests (Makefile.am): Likewise.
33113         * modules/mbsinit-tests (Makefile.am): Likewise.
33114         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33115         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33116         * modules/mbspbrk-tests (Makefile.am): Likewise.
33117         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33118         * modules/mbsrchr-tests (Makefile.am): Likewise.
33119         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33120         * modules/mbsspn-tests (Makefile.am): Likewise.
33121         * modules/mbsstr-tests (Makefile.am): Likewise.
33122         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33123         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33124         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33125         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33126         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33127         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33128         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33129         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33130         * modules/wcrtomb-tests (Makefile.am): Likewise.
33131         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33132         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33133         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33134         assignments from TESTS_ENVIRONMENT.
33135         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33136         augmentation.
33137         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33138         * modules/atexit-tests (Makefile.am): Likewise.
33139         * modules/binary-io-tests (Makefile.am): Likewise.
33140         * modules/closein-tests (Makefile.am): Likewise.
33141         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33142         * modules/exclude-tests (Makefile.am): Likewise.
33143         * modules/fflush-tests (Makefile.am): Likewise.
33144         * modules/fpending-tests (Makefile.am): Likewise.
33145         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33146         * modules/freadahead-tests (Makefile.am): Likewise.
33147         * modules/freadptr-tests (Makefile.am): Likewise.
33148         * modules/freadseek-tests (Makefile.am): Likewise.
33149         * modules/fseek-tests (Makefile.am): Likewise.
33150         * modules/fseeko-tests (Makefile.am): Likewise.
33151         * modules/ftell-tests (Makefile.am): Likewise.
33152         * modules/ftello-tests (Makefile.am): Likewise.
33153         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33154         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33155         * modules/lseek-tests (Makefile.am): Likewise.
33156         * modules/parse-duration-tests (Makefile.am): Likewise.
33157         * modules/perror-tests (Makefile.am): Likewise.
33158         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33159         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33160         * modules/pipe-tests (Makefile.am): Likewise.
33161         * modules/pread-tests (Makefile.am): Likewise.
33162         * modules/printf-posix-tests (Makefile.am): Likewise.
33163         * modules/select-tests (Makefile.am): Likewise.
33164         * modules/sigpipe-tests (Makefile.am): Likewise.
33165         * modules/tsearch-tests (Makefile.am): Likewise.
33166         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33167         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33168         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33169         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33170         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33171         * modules/version-etc-tests (Makefile.am): Likewise.
33172         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33173         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33174         * modules/xalloc-die-tests (Makefile.am): Likewise.
33175         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33176         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33177         * modules/xstrtol-tests (Makefile.am): Likewise.
33178         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33179         * modules/yesno-tests (Makefile.am): Likewise.
33180         Suggested by Jim Meyering.
33181
33182 2010-01-24  Bruno Haible  <bruno@clisp.org>
33183
33184         More documentation.
33185         * doc/gnulib.texi (Writing modules): New chapter.
33186         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33187         the new chapter.
33188
33189 2010-01-24  Jim Meyering  <meyering@redhat.com>
33190
33191         maint.mk: do not prepend "./" after filtering
33192         * top/maint.mk (_prepend_srcdir_prefix): New variable
33193         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33194         "./" when $(srcdir) is ".".
33195
33196         define STREQ(a,b) consistently, removing useless parentheses
33197         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33198         since the only risk is that "a" or "b" contains an unparenthesized
33199         comma, but if either did that, STREQ would have 3 or more arguments.
33200         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33201         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33202         * lib/hash-triple.c (STREQ): Likewise.
33203         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33204         * lib/getugroups.c (STREQ): Likewise.
33205
33206 2010-01-23  Jim Meyering  <meyering@redhat.com>
33207
33208         maint.mk: fix syntax-check in a non-srcdir build directory
33209         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33210         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33211
33212 2010-01-22  Jim Meyering  <meyering@redhat.com>
33213
33214         userspec: add unit tests
33215         * tests/test-userspec.c: New file.
33216         * modules/userspec-tests: Likewise.
33217
33218 2010-01-21  Jim Meyering  <meyering@redhat.com>
33219
33220         maint.mk: handle source file names containing "." robustly
33221         * top/maint.mk (_dot_escaped_srcdir): Define.
33222         (VC_LIST): Use it in LHS of sed substitution.
33223
33224 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33225
33226         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33227         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33228         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33229         from a non-srcdir build.
33230
33231 2010-01-20  Eric Blake  <ebb9@byu.net>
33232
33233         warn-on-use: use instead of link-warning
33234         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33235         * modules/unistd (Depends-on, Makefile.am): Likewise.
33236         * modules/arpa_inet (Depends-on): Replace link-warning with
33237         warn-on-use.
33238         (Makefile.am): Update rules accordingly.
33239         * modules/ctype (Depends-on, Makefile.am): Likewise.
33240         * modules/dirent (Depends-on, Makefile.am): Likewise.
33241         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33242         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33243         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33244         * modules/locale (Depends-on, Makefile.am): Likewise.
33245         * modules/math (Depends-on, Makefile.am): Likewise.
33246         * modules/search (Depends-on, Makefile.am): Likewise.
33247         * modules/signal (Depends-on, Makefile.am): Likewise.
33248         * modules/spawn (Depends-on, Makefile.am): Likewise.
33249         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33250         * modules/string (Depends-on, Makefile.am): Likewise.
33251         * modules/strings (Depends-on, Makefile.am): Likewise.
33252         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33253         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33254         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33255         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33256         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33257         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33258         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33259         * modules/wchar (Depends-on, Makefile.am): Likewise.
33260         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33261         should be poisoned.
33262         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33263         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33264         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33265         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33266         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33267         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33268         * m4/math_h.m4 (gl_MATH_H): Likewise.
33269         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33270         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33271         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33272         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33273         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33274         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33275         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33277         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33281         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33283         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33284         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33285         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33286         GL_LINK_WARNING.
33287         * lib/ctype.in.h: Likewise.
33288         * lib/dirent.in.h: Likewise.
33289         * lib/fcntl.in.h: Likewise.
33290         * lib/inttypes.in.h: Likewise.
33291         * lib/langinfo.in.h: Likewise.
33292         * lib/locale.in.h: Likewise.
33293         * lib/math.in.h: Likewise.
33294         * lib/search.in.h: Likewise.
33295         * lib/signal.in.h: Likewise.
33296         * lib/spawn.in.h: Likewise.
33297         * lib/stdio.in.h: Likewise.
33298         * lib/stdlib.in.h: Likewise.
33299         * lib/string.in.h: Likewise.
33300         * lib/strings.in.h: Likewise.
33301         * lib/sys_file.in.h: Likewise.
33302         * lib/sys_ioctl.in.h: Likewise.
33303         * lib/sys_select.in.h: Likewise.
33304         * lib/sys_socket.in.h: Likewise.
33305         * lib/sys_stat.in.h: Likewise.
33306         * lib/sys_times.in.h: Likewise.
33307         * lib/sys_utsname.in.h: Likewise.
33308         * lib/unistd.in.h: Likewise.
33309         * lib/wchar.in.h: Likewise.
33310
33311 2010-01-20  Bruno Haible  <bruno@clisp.org>
33312
33313         Avoid duplicate -lm.
33314         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33315         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33316         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33317         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33318         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33319         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33320         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33321         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33322         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33323         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33324         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33325         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33326         Reported by Paolo Bonzini.
33327
33328 2010-01-19  Bruno Haible  <bruno@clisp.org>
33329
33330         langinfo, nl_langinfo: Relicense under LGPLv2+.
33331         * modules/langinfo (License): Change to LGPLv2+.
33332         * modules/nl_langinfo (License): Likewise.
33333         Patch by David Lutterkort <lutter@redhat.com>.
33334
33335 2010-01-19  Bruno Haible  <bruno@clisp.org>
33336
33337         Avoid compilation error with cc on OSF/1 5.1.
33338         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33339         statement, not before.
33340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33341
33342 2010-01-18  Bruno Haible  <bruno@clisp.org>
33343
33344         Avoid a link error due to the __printf__ symbol.
33345         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33346         and 2.6.x.
33347         (__format__, __printf__): Remove definitions.
33348         * lib/argp-fmtstream.h: Likewise.
33349         * lib/argp.h: Likewise.
33350         * lib/error.h: Likewise.
33351         * lib/vasnprintf.h: Likewise.
33352         * lib/xprintf.h: Likewise.
33353         * lib/xvasprintf.h: Likewise.
33354         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33355
33356 2010-01-18  Bruno Haible  <bruno@clisp.org>
33357
33358         Tests for module 'tanl'.
33359         * modules/tanl-tests: New file.
33360         * tests/test-tanl.c: New file.
33361
33362         Tests for module 'sqrtl'.
33363         * modules/sqrtl-tests: New file.
33364         * tests/test-sqrtl.c: New file.
33365
33366         Tests for module 'sinl'.
33367         * modules/sinl-tests: New file.
33368         * tests/test-sinl.c: New file.
33369
33370         Tests for module 'logl'.
33371         * modules/logl-tests: New file.
33372         * tests/test-logl.c: New file.
33373
33374         Tests for module 'expl'.
33375         * modules/expl-tests: New file.
33376         * tests/test-expl.c: New file.
33377
33378         Tests for module 'cosl'.
33379         * modules/cosl-tests: New file.
33380         * tests/test-cosl.c: New file.
33381
33382         Tests for module 'atanl'.
33383         * modules/atanl-tests: New file.
33384         * tests/test-atanl.c: New file.
33385
33386         Tests for module 'asinl'.
33387         * modules/asinl-tests: New file.
33388         * tests/test-asinl.c: New file.
33389
33390         Tests for module 'acosl'.
33391         * modules/acosl-tests: New file.
33392         * tests/test-acosl.c: New file.
33393
33394         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33395         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33396         tanl): Use the standard gnulib idiom.
33397         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33398         * lib/sinl.c: Likewise.
33399         * lib/tanl.c: Don't include trigl.c.
33400         (kernel_tanl): Make static.
33401         * lib/sincosl.c: Include trigl.h first.
33402         * lib/trigl.c: Likewise.
33403         * m4/acosl.m4: New file.
33404         * m4/asinl.m4: New file.
33405         * m4/atanl.m4: New file.
33406         * m4/cosl.m4: New file.
33407         * m4/expl.m4: New file.
33408         * m4/logl.m4: New file.
33409         * m4/sinl.m4: New file.
33410         * m4/sqrtl.m4: New file.
33411         * m4/tanl.m4: New file.
33412         * m4/mathl.m4: Remove file.
33413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33414         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33415         Don't initialize GNULIB_MATHL.
33416         * modules/acosl: New file.
33417         * modules/asinl: New file.
33418         * modules/atanl: New file.
33419         * modules/cosl: New file.
33420         * modules/expl: New file.
33421         * modules/logl: New file.
33422         * modules/sinl: New file.
33423         * modules/sqrtl: New file.
33424         * modules/tanl: New file.
33425         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33426         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33427         substitute GNULIB_MATHL.
33428         * modules/mathl: Rewritten.
33429         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33430         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33431         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33432         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33433         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33434         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33435         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33436         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33437         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33438
33439 2010-01-18  Bruno Haible  <bruno@clisp.org>
33440
33441         sqrt: Make gl_FUNC_SQRT requirable.
33442         * m4/sqrt.m4: New file.
33443         * modules/sqrt (Files): Add it.
33444         (configure.ac): Invoke gl_FUNC_SQRT.
33445
33446 2010-01-18  Bruno Haible  <bruno@clisp.org>
33447
33448         New modules for common <math.h> functions.
33449         * m4/mathfunc.m4: New file.
33450         * modules/acos: New file.
33451         * modules/asin: New file.
33452         * modules/atan: New file.
33453         * modules/atan2: New file.
33454         * modules/cbrt: New file.
33455         * modules/copysign: New file.
33456         * modules/cos: New file.
33457         * modules/cosh: New file.
33458         * modules/erf: New file.
33459         * modules/erfc: New file.
33460         * modules/exp: New file.
33461         * modules/fabs: New file.
33462         * modules/fmod: New file.
33463         * modules/hypot: New file.
33464         * modules/j0: New file.
33465         * modules/j1: New file.
33466         * modules/jn: New file.
33467         * modules/ldexp: New file.
33468         * modules/lgamma: New file.
33469         * modules/log: New file.
33470         * modules/log10: New file.
33471         * modules/log1p: New file.
33472         * modules/logb: New file.
33473         * modules/modf: New file.
33474         * modules/nextafter: New file.
33475         * modules/pow: New file.
33476         * modules/remainder: New file.
33477         * modules/rint: New file.
33478         * modules/sin: New file.
33479         * modules/sinh: New file.
33480         * modules/sqrt: New file.
33481         * modules/tan: New file.
33482         * modules/tanh: New file.
33483         * modules/y0: New file.
33484         * modules/y1: New file.
33485         * modules/yn: New file.
33486         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33487         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33488         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33489         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33490         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33491         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33492         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33493         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33494         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33495         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33496         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33497         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33498         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33499         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33500         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33501         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33502         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33503         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33504         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33505         * doc/posix-functions/log.texi: Mention the 'log' module.
33506         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33507         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33508         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33509         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33510         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33511         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33512         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33513         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33514         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33515         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33516         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33517         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33518         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33519         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33520         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33521         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33522
33523 2010-01-18  Jim Meyering  <meyering@redhat.com>
33524
33525         ignore-value: relax license to LGPLv2+
33526         * modules/ignore-value (License): Relax to LGPLv2+.
33527
33528         getdate: don't leak when TZ contains two or more '"'s
33529         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33530         double quote in TZ after the first one.
33531
33532         readtokens: do not leak internal token_lengths buffer
33533         * lib/readtokens.c (readtokens): Free the local, lengths,
33534         when the supplied "token_lengths" parameter is NULL.
33535
33536 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33537
33538         Fix a couple of missing LIBTHREAD link failures on AIX.
33539         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33540         $(LIBTHREAD).
33541         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33542
33543         Link test-poll against INET_PTON_LIB.
33544         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33545         for inet_pton on Solaris 10.
33546
33547 2010-01-17  Bruno Haible  <bruno@clisp.org>
33548
33549         unistdio/*-sprintf: Fix typo in module description.
33550         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33551         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33552         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33553         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33554         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33555         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33556         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33558
33559 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33560
33561         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33562         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33563         variables in shell case patterns, for AIX and HP-UX ksh.
33564
33565         Split large sed scripts, for HP-UX sed.
33566         * modules/stdio: Split sed scripts around 50 sed commands,
33567         to avoid HP-UX limit of 99 commands, in the near future.
33568         * modules/string: Likewise.
33569         * modules/unistd: Likewise.
33570
33571         gnulib-tool: avoid writing in the current directory.
33572         * gnulib-tool (func_emit_lib_Makefile_am)
33573         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33574         not in the current directory, so concurrent gnulib-tool
33575         instances do not interfere.
33576
33577 2010-01-16  Jim Meyering  <meyering@redhat.com>
33578
33579         doc: update users.txt
33580         * users.txt: Add grep.
33581         (diffutils, gzip): Update URLs.
33582
33583 2010-01-12  Bruno Haible  <bruno@clisp.org>
33584
33585         posix_spawn: Avoid test failure on Cygwin.
33586         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33587         characters.
33588         Reported by Simon Josefsson.
33589
33590 2010-01-12  Bruno Haible  <bruno@clisp.org>
33591
33592         * tests/test-cond.c (main): When skipping the test, show the reason.
33593
33594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33595
33596         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33597
33598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33599
33600         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33601         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33602
33603 2010-01-12  Eric Blake  <ebb9@byu.net>
33604
33605         build: guarantee AS_VAR_IF
33606         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33607         (gl_AS_VAR_IF): Move...
33608         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33609         Reported by Simon Josefsson.
33610
33611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33612
33613         * lib/stdio.in.h: Fix typo.
33614
33615 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33616
33617         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33618         libgpg-error.
33619
33620 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33621
33622         * tests/test-xalloc-die.sh: Use $EXEEXT.
33623
33624 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33625             Bruno Haible  <bruno@clisp.org>
33626
33627         getlogin, getlogin_r: Avoid test failure.
33628         * tests/test-getlogin.c: Include <stdio.h>.
33629         (main): Skip the test when the function fails because stdin is not a
33630         tty.
33631         * tests/test-getlogin_r.c: Include <stdio.h>.
33632         (main): Skip the test when the function fails because stdin is not a
33633         tty.
33634
33635 2010-01-11  Eric Blake  <ebb9@byu.net>
33636
33637         tests: avoid more large file warnings
33638         * tests/test-fflush.c: Avoid warning about ftell use.
33639         * tests/test-fseek.c: Avoid warning about fseek use.
33640
33641 2010-01-10  Bruno Haible  <bruno@clisp.org>
33642
33643         nproc: Work better on Linux when /proc and /sys are not mounted.
33644         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33645         as lower bound when, on glibc/Linux systems,
33646         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33647         Suggested by Pádraig Brady <P@draigbrady.com>.
33648         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33649
33650         nproc: Refactor.
33651         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33652         extracted from num_processors.
33653         (num_processors): Call it.
33654
33655 2010-01-11  Jim Meyering  <meyering@redhat.com>
33656
33657         utimecmp: avoid new warning from upcoming gcc-4.5.0
33658         * lib/utimecmp.c (BILLION): Define using #define rather than an
33659         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33660
33661 2010-01-11  Eric Blake  <ebb9@byu.net>
33662
33663         math: add portability warnings for classification macros
33664         * modules/math (Depends-on): Add warn-on-use.
33665         (Makefile.am): Provide new substitutions.
33666         * m4/math_h.m4 (gl_MATH_H): Require inline.
33667         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33668         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33669         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33670         implement warnings.
33671
33672         unistd: warn on use of environ without module
33673         * modules/unistd (Depends-on): Add warn-on-use.
33674         (Makefile.am): Provide new substitutions.
33675         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33676         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33677
33678         stdio: warn on suspicious uses
33679         * modules/stdio (Depends-on): Add warn-on-use.
33680         (Makefile.am): Provide new substitutions.
33681         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33682         fseeko.
33683         * lib/stdio.in.h (gets): Always warn on use.
33684         (fseek, ftell): Adjust when warnings are issued, and honor
33685         _GL_NO_LARGE_FILES as a way to silence the warning.
33686         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33687         any warning about large file offsets.
33688         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33689         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33690         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33691         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33692         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33693         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33694         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33695         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33696
33697         warn-on-use: new module
33698         * modules/warn-on-use: New file.
33699         * build-aux/warn-on-use.h: Likewise.
33700         * m4/warn-on-use.m4: Likewise.
33701         * MODULES.html.sh (Support for building): Mention it.
33702
33703 2010-01-10  Bruno Haible  <bruno@clisp.org>
33704
33705         Tests for module 'unistr/u32-strdup'.
33706         * modules/unistr/u32-strdup-tests: New file.
33707         * tests/unistr/test-u32-strdup.c: New file.
33708
33709         Tests for module 'unistr/u16-strdup'.
33710         * modules/unistr/u16-strdup-tests: New file.
33711         * tests/unistr/test-u16-strdup.c: New file.
33712
33713         Tests for module 'unistr/u8-strdup'.
33714         * modules/unistr/u8-strdup-tests: New file.
33715         * tests/unistr/test-u8-strdup.c: New file.
33716         * tests/unistr/test-strdup.h: New file.
33717
33718         Tests for module 'unistr/u32-strncmp'.
33719         * modules/unistr/u32-strncmp-tests: New file.
33720         * tests/unistr/test-u32-strncmp.c: New file.
33721
33722         Tests for module 'unistr/u16-strncmp'.
33723         * modules/unistr/u16-strncmp-tests: New file.
33724         * tests/unistr/test-u16-strncmp.c: New file.
33725
33726         Tests for module 'unistr/u8-strncmp'.
33727         * modules/unistr/u8-strncmp-tests: New file.
33728         * tests/unistr/test-u8-strncmp.c: New file.
33729         * tests/unistr/test-strncmp.h: New file.
33730
33731         Tests for module 'unistr/u32-strcoll'.
33732         * modules/unistr/u32-strcoll-tests: New file.
33733         * tests/unistr/test-u32-strcoll.c: New file.
33734
33735         Tests for module 'unistr/u16-strcoll'.
33736         * modules/unistr/u16-strcoll-tests: New file.
33737         * tests/unistr/test-u16-strcoll.c: New file.
33738
33739         Tests for module 'unistr/u8-strcoll'.
33740         * modules/unistr/u8-strcoll-tests: New file.
33741         * tests/unistr/test-u8-strcoll.c: New file.
33742
33743         Tests for module 'unistr/u32-strcmp'.
33744         * modules/unistr/u32-strcmp-tests: New file.
33745         * tests/unistr/test-u32-strcmp.c: New file.
33746         * tests/unistr/test-u32-strcmp.h: New file.
33747
33748         Tests for module 'unistr/u16-strcmp'.
33749         * modules/unistr/u16-strcmp-tests: New file.
33750         * tests/unistr/test-u16-strcmp.c: New file.
33751         * tests/unistr/test-u16-strcmp.h: New file.
33752
33753         Tests for module 'unistr/u8-strcmp'.
33754         * modules/unistr/u8-strcmp-tests: New file.
33755         * tests/unistr/test-u8-strcmp.c: New file.
33756         * tests/unistr/test-u8-strcmp.h: New file.
33757         * tests/unistr/test-strcmp.h: New file.
33758
33759         Tests for module 'unistr/u32-strncat'.
33760         * modules/unistr/u32-strncat-tests: New file.
33761         * tests/unistr/test-u32-strncat.c: New file.
33762
33763         Tests for module 'unistr/u16-strncat'.
33764         * modules/unistr/u16-strncat-tests: New file.
33765         * tests/unistr/test-u16-strncat.c: New file.
33766
33767         Tests for module 'unistr/u8-strncat'.
33768         * modules/unistr/u8-strncat-tests: New file.
33769         * tests/unistr/test-u8-strncat.c: New file.
33770         * tests/unistr/test-strncat.h: New file.
33771
33772         Tests for module 'unistr/u32-strcat'.
33773         * modules/unistr/u32-strcat-tests: New file.
33774         * tests/unistr/test-u32-strcat.c: New file.
33775
33776         Tests for module 'unistr/u16-strcat'.
33777         * modules/unistr/u16-strcat-tests: New file.
33778         * tests/unistr/test-u16-strcat.c: New file.
33779
33780         Tests for module 'unistr/u8-strcat'.
33781         * modules/unistr/u8-strcat-tests: New file.
33782         * tests/unistr/test-u8-strcat.c: New file.
33783         * tests/unistr/test-strcat.h: New file.
33784
33785         Tests for module 'unistr/u32-stpncpy'.
33786         * modules/unistr/u32-stpncpy-tests: New file.
33787         * tests/unistr/test-u32-stpncpy.c: New file.
33788
33789         Tests for module 'unistr/u16-stpncpy'.
33790         * modules/unistr/u16-stpncpy-tests: New file.
33791         * tests/unistr/test-u16-stpncpy.c: New file.
33792
33793         Tests for module 'unistr/u8-stpncpy'.
33794         * modules/unistr/u8-stpncpy-tests: New file.
33795         * tests/unistr/test-u8-stpncpy.c: New file.
33796         * tests/unistr/test-stpncpy.h: New file.
33797
33798         Tests for module 'unistr/u32-strncpy'.
33799         * modules/unistr/u32-strncpy-tests: New file.
33800         * tests/unistr/test-u32-strncpy.c: New file.
33801
33802         Tests for module 'unistr/u16-strncpy'.
33803         * modules/unistr/u16-strncpy-tests: New file.
33804         * tests/unistr/test-u16-strncpy.c: New file.
33805
33806         Tests for module 'unistr/u8-strncpy'.
33807         * modules/unistr/u8-strncpy-tests: New file.
33808         * tests/unistr/test-u8-strncpy.c: New file.
33809         * tests/unistr/test-strncpy.h: New file.
33810
33811         Tests for module 'unistr/u32-stpcpy'.
33812         * modules/unistr/u32-stpcpy-tests: New file.
33813         * tests/unistr/test-u32-stpcpy.c: New file.
33814
33815         Tests for module 'unistr/u16-stpcpy'.
33816         * modules/unistr/u16-stpcpy-tests: New file.
33817         * tests/unistr/test-u16-stpcpy.c: New file.
33818
33819         Tests for module 'unistr/u8-stpcpy'.
33820         * modules/unistr/u8-stpcpy-tests: New file.
33821         * tests/unistr/test-u8-stpcpy.c: New file.
33822         * tests/unistr/test-stpcpy.h: New file.
33823
33824         Tests for module 'unistr/u32-strcpy'.
33825         * modules/unistr/u32-strcpy-tests: New file.
33826         * tests/unistr/test-u32-strcpy.c: New file.
33827
33828         Tests for module 'unistr/u16-strcpy'.
33829         * modules/unistr/u16-strcpy-tests: New file.
33830         * tests/unistr/test-u16-strcpy.c: New file.
33831
33832         Tests for module 'unistr/u8-strcpy'.
33833         * modules/unistr/u8-strcpy-tests: New file.
33834         * tests/unistr/test-u8-strcpy.c: New file.
33835         * tests/unistr/test-strcpy.h: New file.
33836
33837         Tests for module 'unistr/u32-strnlen'.
33838         * modules/unistr/u32-strnlen-tests: New file.
33839         * tests/unistr/test-u32-strnlen.c: New file.
33840
33841         Tests for module 'unistr/u16-strnlen'.
33842         * modules/unistr/u16-strnlen-tests: New file.
33843         * tests/unistr/test-u16-strnlen.c: New file.
33844
33845         Tests for module 'unistr/u8-strnlen'.
33846         * modules/unistr/u8-strnlen-tests: New file.
33847         * tests/unistr/test-u8-strnlen.c: New file.
33848         * tests/unistr/test-strnlen.h: New file.
33849
33850         Tests for module 'unistr/u32-strlen'.
33851         * modules/unistr/u32-strlen-tests: New file.
33852         * tests/unistr/test-u32-strlen.c: New file.
33853
33854         Tests for module 'unistr/u16-strlen'.
33855         * modules/unistr/u16-strlen-tests: New file.
33856         * tests/unistr/test-u16-strlen.c: New file.
33857
33858         Tests for module 'unistr/u8-strlen'.
33859         * modules/unistr/u8-strlen-tests: New file.
33860         * tests/unistr/test-u8-strlen.c: New file.
33861
33862         Tests for module 'unistr/u32-prev'.
33863         * modules/unistr/u32-prev-tests: New file.
33864         * tests/unistr/test-u32-prev.c: New file.
33865
33866         Tests for module 'unistr/u16-prev'.
33867         * modules/unistr/u16-prev-tests: New file.
33868         * tests/unistr/test-u16-prev.c: New file.
33869
33870         Tests for module 'unistr/u8-prev'.
33871         * modules/unistr/u8-prev-tests: New file.
33872         * tests/unistr/test-u8-prev.c: New file.
33873
33874         Tests for module 'unistr/u32-next'.
33875         * modules/unistr/u32-next-tests: New file.
33876         * tests/unistr/test-u32-next.c: New file.
33877
33878         Tests for module 'unistr/u16-next'.
33879         * modules/unistr/u16-next-tests: New file.
33880         * tests/unistr/test-u16-next.c: New file.
33881
33882         Tests for module 'unistr/u8-next'.
33883         * modules/unistr/u8-next-tests: New file.
33884         * tests/unistr/test-u8-next.c: New file.
33885
33886         Tests for module 'unistr/u32-strmbtouc'.
33887         * modules/unistr/u32-strmbtouc-tests: New file.
33888         * tests/unistr/test-u32-strmbtouc.c: New file.
33889
33890         Tests for module 'unistr/u16-strmbtouc'.
33891         * modules/unistr/u16-strmbtouc-tests: New file.
33892         * tests/unistr/test-u16-strmbtouc.c: New file.
33893
33894         Tests for module 'unistr/u8-strmbtouc'.
33895         * modules/unistr/u8-strmbtouc-tests: New file.
33896         * tests/unistr/test-u8-strmbtouc.c: New file.
33897
33898         Tests for module 'unistr/u32-strmblen'.
33899         * modules/unistr/u32-strmblen-tests: New file.
33900         * tests/unistr/test-u32-strmblen.c: New file.
33901
33902         Tests for module 'unistr/u16-strmblen'.
33903         * modules/unistr/u16-strmblen-tests: New file.
33904         * tests/unistr/test-u16-strmblen.c: New file.
33905
33906         Tests for module 'unistr/u8-strmblen'.
33907         * modules/unistr/u8-strmblen-tests: New file.
33908         * tests/unistr/test-u8-strmblen.c: New file.
33909
33910         Tests for module 'unistr/u32-cpy-alloc'.
33911         * modules/unistr/u32-cpy-alloc-tests: New file.
33912         * tests/unistr/test-u32-cpy-alloc.c: New file.
33913
33914         Tests for module 'unistr/u16-cpy-alloc'.
33915         * modules/unistr/u16-cpy-alloc-tests: New file.
33916         * tests/unistr/test-u16-cpy-alloc.c: New file.
33917
33918         Tests for module 'unistr/u8-cpy-alloc'.
33919         * modules/unistr/u8-cpy-alloc-tests: New file.
33920         * tests/unistr/test-u8-cpy-alloc.c: New file.
33921         * tests/unistr/test-cpy-alloc.h: New file.
33922
33923         Tests for module 'unistr/u32-mbsnlen'.
33924         * modules/unistr/u32-mbsnlen-tests: New file.
33925         * tests/unistr/test-u32-mbsnlen.c: New file.
33926
33927         Tests for module 'unistr/u16-mbsnlen'.
33928         * modules/unistr/u16-mbsnlen-tests: New file.
33929         * tests/unistr/test-u16-mbsnlen.c: New file.
33930
33931         Tests for module 'unistr/u8-mbsnlen'.
33932         * modules/unistr/u8-mbsnlen-tests: New file.
33933         * tests/unistr/test-u8-mbsnlen.c: New file.
33934
33935         Tests for module 'unistr/u32-chr'.
33936         * modules/unistr/u32-chr-tests: New file.
33937         * tests/unistr/test-u32-chr.c: New file.
33938
33939         Tests for module 'unistr/u16-chr'.
33940         * modules/unistr/u16-chr-tests: New file.
33941         * tests/unistr/test-u16-chr.c: New file.
33942
33943         Tests for module 'unistr/u8-chr'.
33944         * modules/unistr/u8-chr-tests: New file.
33945         * tests/unistr/test-u8-chr.c: New file.
33946         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33947
33948         Tests for module 'unistr/u32-cmp2'.
33949         * modules/unistr/u32-cmp2-tests: New file.
33950         * tests/unistr/test-u32-cmp2.c: New file.
33951
33952         Tests for module 'unistr/u16-cmp2'.
33953         * modules/unistr/u16-cmp2-tests: New file.
33954         * tests/unistr/test-u16-cmp2.c: New file.
33955
33956         Tests for module 'unistr/u8-cmp2'.
33957         * modules/unistr/u8-cmp2-tests: New file.
33958         * tests/unistr/test-u8-cmp2.c: New file.
33959         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33960
33961         Tests for module 'unistr/u32-cmp'.
33962         * modules/unistr/u32-cmp-tests: New file.
33963         * tests/unistr/test-u32-cmp.c: New file.
33964
33965         Tests for module 'unistr/u16-cmp'.
33966         * modules/unistr/u16-cmp-tests: New file.
33967         * tests/unistr/test-u16-cmp.c: New file.
33968
33969         Tests for module 'unistr/u8-cmp'.
33970         * modules/unistr/u8-cmp-tests: New file.
33971         * tests/unistr/test-u8-cmp.c: New file.
33972         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33973
33974         Tests for module 'unistr/u32-set'.
33975         * modules/unistr/u32-set-tests: New file.
33976         * tests/unistr/test-u32-set.c: New file.
33977
33978         Tests for module 'unistr/u16-set'.
33979         * modules/unistr/u16-set-tests: New file.
33980         * tests/unistr/test-u16-set.c: New file.
33981
33982         Tests for module 'unistr/u8-set'.
33983         * modules/unistr/u8-set-tests: New file.
33984         * tests/unistr/test-u8-set.c: New file.
33985         * tests/unistr/test-set.h: New file.
33986
33987         Tests for module 'unistr/u32-move'.
33988         * modules/unistr/u32-move-tests: New file.
33989         * tests/unistr/test-u32-move.c: New file.
33990
33991         Tests for module 'unistr/u16-move'.
33992         * modules/unistr/u16-move-tests: New file.
33993         * tests/unistr/test-u16-move.c: New file.
33994
33995         Tests for module 'unistr/u8-move'.
33996         * modules/unistr/u8-move-tests: New file.
33997         * tests/unistr/test-u8-move.c: New file.
33998         * tests/unistr/test-move.h: New file.
33999
34000         Tests for module 'unistr/u32-cpy'.
34001         * modules/unistr/u32-cpy-tests: New file.
34002         * tests/unistr/test-u32-cpy.c: New file.
34003
34004         Tests for module 'unistr/u16-cpy'.
34005         * modules/unistr/u16-cpy-tests: New file.
34006         * tests/unistr/test-u16-cpy.c: New file.
34007
34008         Tests for module 'unistr/u8-cpy'.
34009         * modules/unistr/u8-cpy-tests: New file.
34010         * tests/unistr/test-u8-cpy.c: New file.
34011         * tests/unistr/test-cpy.h: New file.
34012
34013 2010-01-09  Bruno Haible  <bruno@clisp.org>
34014
34015         Tests for module 'unistr/u32-uctomb'.
34016         * modules/unistr/u32-uctomb-tests: New file.
34017         * tests/unistr/test-u32-uctomb.c: New file.
34018
34019         Tests for module 'unistr/u16-uctomb'.
34020         * modules/unistr/u16-uctomb-tests: New file.
34021         * tests/unistr/test-u16-uctomb.c: New file.
34022
34023         Tests for module 'unistr/u8-uctomb'.
34024         * modules/unistr/u8-uctomb-tests: New file.
34025         * tests/unistr/test-u8-uctomb.c: New file.
34026
34027         Tests for module 'unistr/u32-mbtoucr'.
34028         * modules/unistr/u32-mbtoucr-tests: New file.
34029         * tests/unistr/test-u32-mbtoucr.c: New file.
34030
34031         Tests for module 'unistr/u16-mbtoucr'.
34032         * modules/unistr/u16-mbtoucr-tests: New file.
34033         * tests/unistr/test-u16-mbtoucr.c: New file.
34034
34035         Tests for module 'unistr/u8-mbtoucr'.
34036         * modules/unistr/u8-mbtoucr-tests: New file.
34037         * tests/unistr/test-u8-mbtoucr.c: New file.
34038
34039         Tests for module 'unistr/u32-mbtouc'.
34040         * modules/unistr/u32-mbtouc-tests: New file.
34041         * tests/unistr/test-u32-mbtouc.c: New file.
34042
34043         Tests for module 'unistr/u16-mbtouc'.
34044         * modules/unistr/u16-mbtouc-tests: New file.
34045         * tests/unistr/test-u16-mbtouc.c: New file.
34046
34047         Tests for module 'unistr/u8-mbtouc'.
34048         * modules/unistr/u8-mbtouc-tests: New file.
34049         * tests/unistr/test-u8-mbtouc.c: New file.
34050
34051         Tests for module 'unistr/u32-mbtouc-unsafe'.
34052         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34053         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34054         * tests/unistr/test-u32-mbtouc.h: New file.
34055
34056         Tests for module 'unistr/u16-mbtouc-unsafe'.
34057         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34058         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34059         * tests/unistr/test-u16-mbtouc.h: New file.
34060
34061         Tests for module 'unistr/u8-mbtouc-unsafe'.
34062         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34063         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34064         * tests/unistr/test-u8-mbtouc.h: New file.
34065
34066         Tests for module 'unistr/u32-mblen'.
34067         * modules/unistr/u32-mblen-tests: New file.
34068         * tests/unistr/test-u32-mblen.c: New file.
34069
34070         Tests for module 'unistr/u16-mblen'.
34071         * modules/unistr/u16-mblen-tests: New file.
34072         * tests/unistr/test-u16-mblen.c: New file.
34073
34074         Tests for module 'unistr/u8-mblen'.
34075         * modules/unistr/u8-mblen-tests: New file.
34076         * tests/unistr/test-u8-mblen.c: New file.
34077
34078         Tests for module 'unistr/u32-to-u16'.
34079         * modules/unistr/u32-to-u16-tests: New file.
34080         * tests/unistr/test-u32-to-u16.c: New file.
34081
34082         Tests for module 'unistr/u32-to-u8'.
34083         * modules/unistr/u32-to-u8-tests: New file.
34084         * tests/unistr/test-u32-to-u8.c: New file.
34085
34086         Tests for module 'unistr/u16-to-u32'.
34087         * modules/unistr/u16-to-u32-tests: New file.
34088         * tests/unistr/test-u16-to-u32.c: New file.
34089
34090         Tests for module 'unistr/u16-to-u8'.
34091         * modules/unistr/u16-to-u8-tests: New file.
34092         * tests/unistr/test-u16-to-u8.c: New file.
34093
34094         Tests for module 'unistr/u8-to-u32'.
34095         * modules/unistr/u8-to-u32-tests: New file.
34096         * tests/unistr/test-u8-to-u32.c: New file.
34097
34098         Tests for module 'unistr/u8-to-u16'.
34099         * modules/unistr/u8-to-u16-tests: New file.
34100         * tests/unistr/test-u8-to-u16.c: New file.
34101
34102         Tests for module 'unistr/u32-check'.
34103         * modules/unistr/u32-check-tests: New file.
34104         * tests/unistr/test-u32-check.c: New file.
34105
34106         Tests for module 'unistr/u16-check'.
34107         * modules/unistr/u16-check-tests: New file.
34108         * tests/unistr/test-u16-check.c: New file.
34109
34110         Tests for module 'unistr/u8-check'.
34111         * modules/unistr/u8-check-tests: New file.
34112         * tests/unistr/test-u8-check.c: New file.
34113
34114         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34115         (category_equals): New function.
34116         (main): Add more tests.
34117         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34118
34119         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34120
34121 2010-01-10  Bruno Haible  <bruno@clisp.org>
34122
34123         unistr/u*-strcoll: Try harder to distinguish different strings.
34124         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34125         compare s1 and s2 to see if they are different.
34126
34127 2010-01-10  Bruno Haible  <bruno@clisp.org>
34128
34129         unistr/u*-stpncpy: Fix the return value.
34130         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34131         description of the return value consistent with stpncpy in glibc.
34132         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34133         written non-NUL unit.
34134
34135 2010-01-10  Bruno Haible  <bruno@clisp.org>
34136
34137         unistr/u*-next: Add missing dependencies.
34138         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34139         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34140         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34141
34142 2010-01-10  Bruno Haible  <bruno@clisp.org>
34143
34144         unistr/u8-mbsnlen: Fix return value for incomplete character.
34145         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34146         u8_mblen.
34147         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34148         Remove unistr/u8-mblen.
34149         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34150         u16_mblen.
34151         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34152         Remove unistr/u16-mblen.
34153
34154 2010-01-10  Bruno Haible  <bruno@clisp.org>
34155
34156         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34157         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34158         Reported by Brian Gough <bjg@gnu.org> and
34159         Chris Clayton <chris2553@googlemail.com> via
34160         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34161
34162 2010-01-09  Bruno Haible  <bruno@clisp.org>
34163
34164         unistr/u16-to-u32: Reject invalid input.
34165         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34166         u16_mbtouc.
34167         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34168         Remove unistr/u16-mbtouc.
34169
34170         unistr/u16-to-u8: Reject invalid input.
34171         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34172         u16_mbtouc.
34173         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34174         Remove unistr/u16-mbtouc.
34175
34176         unistr/u8-to-u32: Reject invalid input.
34177         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34178         u8_mbtouc.
34179         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34180         Remove unistr/u8-mbtouc.
34181
34182         unistr/u8-to-u16: Reject invalid input.
34183         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34184         u8_mbtouc.
34185         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34186         Remove unistr/u8-mbtouc.
34187
34188 2010-01-09  Bruno Haible  <bruno@clisp.org>
34189
34190         Tests for module 'getlogin'.
34191         * modules/getlogin-tests: New file.
34192         * tests/test-getlogin.c: New file.
34193
34194         New module 'getlogin'.
34195         * lib/unistd.in.h (getlogin): New declaration.
34196         * lib/getlogin.c: New file.
34197         * m4/getlogin.m4: New file.
34198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34199         HAVE_GETLOGIN.
34200         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34201         HAVE_GETLOGIN.
34202         * modules/getlogin: New file.
34203         * doc/posix-functions/getlogin.texi: Mention the new module.
34204         Reported by John W. Eaton <jwe@gnu.org>.
34205
34206 2010-01-09  Bruno Haible  <bruno@clisp.org>
34207
34208         getlogin_r: Support for native Windows.
34209         * lib/getlogin_r.c: Include <windows.h>
34210         (getlogin_r): Implement for native Windows.
34211         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34212         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34213         via John W. Eaton <jwe@gnu.org>.
34214
34215 2010-01-09  Bruno Haible  <bruno@clisp.org>
34216
34217         getlogin_r: Small fixes.
34218         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34219         succeeds.
34220         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34221         before testing whether getlogin_r is declared. No need to set
34222         HAVE_DECL_GETLOGIN_R to 1.
34223         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34224
34225 2010-01-09  Bruno Haible  <bruno@clisp.org>
34226
34227         * lib/unistd.in.h (getlogin_r): Add comment.
34228
34229 2010-01-09  Bruno Haible  <bruno@clisp.org>
34230
34231         Tests for module 'getlogin_r'.
34232         * modules/getlogin_r-tests: New file.
34233         * tests/test-getlogin_r.c: New file.
34234
34235 2010-01-09  Jim Meyering  <meyering@redhat.com>
34236
34237         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34238         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34239         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34240
34241 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34242
34243         * lib/dup2.c (rpl_dup2): Improve comment.
34244
34245 2010-01-08  Eric Blake  <ebb9@byu.net>
34246
34247         maint.mk: allow packages to add makefile @@ exceptions
34248         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34249         (sc_makefile_check): Rename...
34250         (sc_makefile_at_at_check): ...to this, and use hook.
34251
34252         dup2: work around mingw bug
34253         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34254         Reported by Simon Josefsson.
34255
34256 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34257
34258         glob: Fix C++ compilation.
34259         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34260         C++.
34261
34262 2010-01-07  Bruno Haible  <bruno@clisp.org>
34263
34264         Fix indentation of wctype.in.h, broken since 2007-01-06.
34265         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34266
34267 2010-01-07  Bruno Haible  <bruno@clisp.org>
34268
34269         mbslen: Avoid collision with system function.
34270         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34271         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34272         * m4/mbslen.m4: New file.
34273         * modules/mbslen (Files): Add it.
34274         (configure.ac): Invoke gl_MBSLEN.
34275         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34276         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34277         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34278         via Ian Beckwith <ianb@erislabs.net>.
34279
34280 2010-01-07  Bruno Haible  <bruno@clisp.org>
34281
34282         dirent: Document the last fix.
34283         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34284
34285 2010-01-07  Bruno Haible  <bruno@clisp.org>
34286
34287         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34288         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34289         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34290         va_list are defined.
34291         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34292         Reported by Eric Blake.
34293
34294 2010-01-07  Bruno Haible  <bruno@clisp.org>
34295
34296         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34297         * modules/xlist (Depends-on): Add 'list',
34298         * modules/xoset (Depends-on): Add 'oset'.
34299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34300
34301 2010-01-07  Bruno Haible  <bruno@clisp.org>
34302
34303         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34304         * doc/posix-functions/strncasecmp.texi: Likewise.
34305
34306 2010-01-07  Bruno Haible  <bruno@clisp.org>
34307
34308         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34309
34310 2010-01-07  John W. Eaton  <jwe@octave.org>
34311
34312         wctype: allow C++ use
34313         * lib/wctype.in.h: Add extern "C" block for C++.
34314
34315 2010-01-06  Eric Blake  <ebb9@byu.net>
34316
34317         maint.mk: detect incorrect GFDL usage
34318         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34319
34320 2010-01-06  Jim Meyering  <meyering@redhat.com>
34321         and Eric Blake  <ebb9@byu.net>
34322
34323         maint.mk: ignore multi-line copyright in NEWS
34324         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34325
34326 2010-01-06  Eric Blake  <ebb9@byu.net>
34327
34328         select: add missing dependency
34329         * modules/select-tests (Depends-on): Move sockets dependency...
34330         * modules/select (Depends-on): ...here.
34331         Reported by Ian Beckwith.
34332
34333         doc: regenerate INSTALL
34334         * doc/INSTALL: Reflect recent autoconf update.
34335         * doc/INSTALL.ISO: Likewise.
34336         * doc/INSTALL.UTF-8: Likewise.
34337
34338         pread: fix compilation on glibc
34339         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34340         Reported by Ralf Wildenhues.
34341
34342         dirent: fix test failure
34343         * lib/dirent.in.h (includes): Guarantee ino_t.
34344         Reported by Ralf Wildenhues.
34345
34346 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34347
34348         linkat, renameat: avoid bad free
34349         * lib/at-func2.c (at_func2): Fix typo.
34350         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34351
34352 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34353
34354         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34355         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34356         to avoid failure of symlink test later.
34357
34358 2010-01-06  Eric Blake  <ebb9@byu.net>
34359
34360         stdio, unistd: guarantee ssize_t
34361         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34362         2008 are exposed when needed.
34363         * lib/stdio.in.h (includes): Likewise.
34364         Reported by Ralf Wildenhues.
34365
34366 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34367
34368         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34369         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34370         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34371
34372 2010-01-06  Jim Meyering  <meyering@redhat.com>
34373
34374         readtokens: this module *does* require xalloc.h
34375         It uses only functions that were omitted by the old syntax-check rule.
34376         * lib/readtokens.c: Include "xalloc.h" once again.
34377         * modules/readtokens (Depends-on): Add xalloc.
34378         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34379
34380 2010-01-05  Eric Blake  <ebb9@byu.net>
34381
34382         maint: support 'make announcement' from a VPATH build
34383         * top/maint.mk (announcement): Look for correct NEWS file.
34384
34385 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34386
34387         utimens (fdutimens): ignore a negative FD, per contract
34388         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34389         when we have a valid file descriptor.  Otherwise, using a brand
34390         new glibc (with just-patched futimens that now fails with EBADF)
34391         would cause this function to fail with ENOSYS.
34392         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34393         See also http://bugzilla.redhat.com/552320.
34394
34395 2010-01-05  Eric Blake  <ebb9@byu.net>
34396
34397         strcase: document what it provides
34398         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34399         gnulib module.
34400         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34401         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34402
34403 2010-01-05  Jim Meyering  <meyering@redhat.com>
34404
34405         maint: remove useless inclusions of "xalloc.h"
34406         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34407         * lib/readtokens.c: Likewise.
34408         * lib/same.c: Likewise.
34409         * modules/getloadavg (Depends-on): Remove xalloc.
34410         * modules/readtokens: Likewise.
34411         * modules/same: Likewise.
34412
34413         maint.mk: include 4 more function names in alloca.h-checking regexp
34414         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34415         regexp.  Before, we would give a false-positive (saying alloca.h
34416         is included unnecessarily) when the only uses involved omitted symbols.
34417
34418         xalloc.h: use consistent formatting
34419         * lib/xalloc.h: Move declarations to start in the first column.
34420
34421 2010-01-05  Eric Blake  <ebb9@byu.net>
34422
34423         mkdir: avoid xalloc
34424         * lib/mkdir.c (includes): Drop unused header.
34425         Reported by John W. Eaton.
34426
34427 2010-01-04  Jim Meyering  <meyering@redhat.com>
34428
34429         nl_langinfo: avoid configure-time syntax error
34430         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34431         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34432         the empty string.  Don't let that provoke a shell syntax error.
34433
34434         regcomp, regexec, fnmatch: avoid array bounds read error
34435         * lib/regcomp.c (build_equiv_class): From glibc:
34436         Use only the low 24 bits of a findidx return value as an index
34437         into the weights array.  Patch by Ulrich Drepper:
34438         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34439         * lib/regexec.c (check_node_accept_bytes): Likewise.
34440         * lib/fnmatch_loop.c (FCT): Likewise.
34441
34442         regcomp: skip collseq lookup when there are no rules
34443         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34444         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34445
34446         regcomp: recognize ill-formed { } expressions
34447         * lib/regcomp.c (parse_dup_op): From glibc:
34448         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34449
34450         regcomp: fix typo in comment
34451         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34452         s/satisfy/satisfies/.
34453
34454         regcomp: sync from glibc: remove dead store
34455         * lib/regcomp.c (duplicate_node_closure): Remove useless
34456         search_duplicated_node call and dead store.
34457
34458         regcomp: sync from glibc; always use nl_langinfo
34459         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34460         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34461         * modules/regex (Depends-on): Add nl_langinfo.
34462
34463 2010-01-04  Eric Blake  <ebb9@byu.net>
34464
34465         fdopendir: fix configure test
34466         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34467
34468 2010-01-01  Bruno Haible  <bruno@clisp.org>
34469
34470         wchar: Remove unused configure check.
34471         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34472
34473 2010-01-01  Eric Blake  <ebb9@byu.net>
34474
34475         headers: make check of system header explicit
34476         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34477         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34478         ourselves.
34479         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34480         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34482         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34483         internals.
34484         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34485         missing.
34486         Suggested by Bruno Haible.
34487
34488 2010-01-01  Jim Meyering  <meyering@redhat.com>
34489
34490         ChangeLog: tweak to eliminate unnecessary copyright line
34491         * ChangeLog: Remove a copyright line that was mistakenly updated
34492         by today's update-copyright run.  Reported by Eric Blake.
34493
34494         test-update-copyright: don't let envvar setting cause test failure
34495         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34496
34497 2010-01-01  Bruno Haible  <bruno@clisp.org>
34498
34499         localename: Avoid gcc warning.
34500         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34501         function if it is not used.
34502
34503 2010-01-01  Jim Meyering  <meyering@redhat.com>
34504
34505         update nearly all FSF copyright year lists to include 2010
34506         Use the same procedure as for 2009, outlined in
34507         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34508
34509         version-etc: set COPYRIGHT_YEAR to 2010
34510         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34511
34512 2009-12-31  Eric Blake  <ebb9@byu.net>
34513
34514         doc: correct availability of cygwin 1.5.x getopt
34515         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34516         variables.
34517         * doc/posix-functions/opterr.texi (opterr): Likewise.
34518         * doc/posix-functions/optind.texi (optind): Likewise.
34519         * doc/posix-functions/optopt.texi (optopt): Likewise.
34520         * doc/posix-functions/tzname.texi (tzname): Likewise.
34521
34522         openat: update maintainer
34523         * modules/openat (Maintainer): Add myself.
34524
34525         utimens: avoid shadowing warning
34526         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34527         buffers into one, to avoid shadowing, as well as avoiding a
34528         redundant stat.
34529         Reported by Jim Meyering.
34530
34531         test-dup2: avoid compiler warning
34532         * tests/test-dup2.c (is_inheritable): Only define if used.
34533
34534 2010-01-01  Bruno Haible  <bruno@clisp.org>
34535
34536         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34537         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34538         defined, use wctomb instead of wcrtomb.
34539
34540 2010-01-01  Bruno Haible  <bruno@clisp.org>
34541
34542         iconv: Reject native Solaris iconv.
34543         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34544         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34545
34546 2009-12-31  Bruno Haible  <bruno@clisp.org>
34547
34548         * tests/test-signal.c (main): Remove test of 'SIG'.
34549
34550 2009-12-31  Bruno Haible  <bruno@clisp.org>
34551
34552         spawn: Fix incomplete fix.
34553         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34554         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34555         warnings for GNULIB_POSIXCHECK again.
34556         Reported by Eric Blake.
34557
34558 2009-12-31  Bruno Haible  <bruno@clisp.org>
34559
34560         Avoid namespace pollution on glibc systems.
34561         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34562         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34563         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34564         glibc systems.
34565
34566 2009-12-31  Bruno Haible  <bruno@clisp.org>
34567
34568         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34569         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34570         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34571         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34572         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34573         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34574         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34575
34576 2009-12-31  Bruno Haible  <bruno@clisp.org>
34577
34578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34579         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34580         afterwards.
34581
34582 2009-12-31  Bruno Haible  <bruno@clisp.org>
34583
34584         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34585         SYS_UTSNAME_H.
34586
34587 2009-12-31  Bruno Haible  <bruno@clisp.org>
34588
34589         spawn: Fix misapplied patch.
34590         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34591         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34592         warnings for GNULIB_POSIXCHECK.
34593
34594 2009-12-31  Bruno Haible  <bruno@clisp.org>
34595
34596         times: Update after sys_times changed.
34597         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34598         * modules/times (Files): Add it.
34599         (configure.ac): Invoke gl_FUNC_TIMES.
34600
34601 2009-12-31  Bruno Haible  <bruno@clisp.org>
34602
34603         Use AC_C_INLINE where necessary.
34604         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34605         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34607         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34608         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34609         * m4/mbiter.m4 (gl_MBITER): Likewise.
34610         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34611         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34612         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34613         * modules/u64 (configure.ac): Likewise.
34614
34615 2009-12-31  Bruno Haible  <bruno@clisp.org>
34616
34617         Use AC_C_INLINE instead of module 'inline' where possible.
34618         * modules/inline (Description): Clarify purpose.
34619         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34620         * modules/count-one-bits (Depends-on): Remove inline.
34621         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34622         * modules/openat (Depends-on): Remove inline.
34623         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34624         instead of depending on module 'inline'.
34625         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34626         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34627         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34628         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34629         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34630         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34631         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34632         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34633         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34634         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34635         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34636         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34637         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34638         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34639         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34640         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34641         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34642         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34643         Likewise.
34644         * modules/unictype/property-ascii-hex-digit (Depends-on,
34645         configure.ac): Likewise.
34646         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34647         configure.ac): Likewise.
34648         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34649         configure.ac): Likewise.
34650         * modules/unictype/property-bidi-block-separator (Depends-on,
34651         configure.ac): Likewise.
34652         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34653         configure.ac): Likewise.
34654         * modules/unictype/property-bidi-common-separator (Depends-on,
34655         configure.ac): Likewise.
34656         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34657         Likewise.
34658         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34659         configure.ac): Likewise.
34660         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34661         configure.ac): Likewise.
34662         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34663         configure.ac): Likewise.
34664         * modules/unictype/property-bidi-european-digit (Depends-on,
34665         configure.ac): Likewise.
34666         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34667         configure.ac): Likewise.
34668         * modules/unictype/property-bidi-left-to-right (Depends-on,
34669         configure.ac): Likewise.
34670         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34671         configure.ac): Likewise.
34672         * modules/unictype/property-bidi-other-neutral (Depends-on,
34673         configure.ac): Likewise.
34674         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34675         Likewise.
34676         * modules/unictype/property-bidi-segment-separator (Depends-on,
34677         configure.ac): Likewise.
34678         * modules/unictype/property-bidi-whitespace (Depends-on,
34679         configure.ac): Likewise.
34680         * modules/unictype/property-combining (Depends-on, configure.ac):
34681         Likewise.
34682         * modules/unictype/property-composite (Depends-on, configure.ac):
34683         Likewise.
34684         * modules/unictype/property-currency-symbol (Depends-on,
34685         configure.ac): Likewise.
34686         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34687         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34688         Likewise.
34689         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34690         configure.ac): Likewise.
34691         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34692         Likewise.
34693         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34694         Likewise.
34695         * modules/unictype/property-extender (Depends-on, configure.ac):
34696         Likewise.
34697         * modules/unictype/property-format-control (Depends-on, configure.ac):
34698         Likewise.
34699         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34700         Likewise.
34701         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34702         Likewise.
34703         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34704         Likewise.
34705         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34706         Likewise.
34707         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34708         Likewise.
34709         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34710         Likewise.
34711         * modules/unictype/property-id-start (Depends-on, configure.ac):
34712         Likewise.
34713         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34714         Likewise.
34715         * modules/unictype/property-ids-binary-operator (Depends-on,
34716         configure.ac): Likewise.
34717         * modules/unictype/property-ids-trinary-operator (Depends-on,
34718         configure.ac): Likewise.
34719         * modules/unictype/property-ignorable-control (Depends-on,
34720         configure.ac): Likewise.
34721         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34722         Likewise.
34723         * modules/unictype/property-join-control (Depends-on, configure.ac):
34724         Likewise.
34725         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34726         Likewise.
34727         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34728         Likewise.
34729         * modules/unictype/property-logical-order-exception (Depends-on,
34730         configure.ac): Likewise.
34731         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34732         Likewise.
34733         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34734         * modules/unictype/property-non-break (Depends-on, configure.ac):
34735         Likewise.
34736         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34737         Likewise.
34738         * modules/unictype/property-numeric (Depends-on, configure.ac):
34739         Likewise.
34740         * modules/unictype/property-other-alphabetic (Depends-on,
34741         configure.ac): Likewise.
34742         * modules/unictype/property-other-default-ignorable-code-point
34743         (Depends-on, configure.ac): Likewise.
34744         * modules/unictype/property-other-grapheme-extend (Depends-on,
34745         configure.ac): Likewise.
34746         * modules/unictype/property-other-id-continue (Depends-on,
34747         configure.ac): Likewise.
34748         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34749         Likewise.
34750         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34751         Likewise.
34752         * modules/unictype/property-other-math (Depends-on, configure.ac):
34753         Likewise.
34754         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34755         Likewise.
34756         * modules/unictype/property-paired-punctuation (Depends-on,
34757         configure.ac): Likewise.
34758         * modules/unictype/property-paragraph-separator (Depends-on,
34759         configure.ac): Likewise.
34760         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34761         Likewise.
34762         * modules/unictype/property-pattern-white-space (Depends-on,
34763         configure.ac): Likewise.
34764         * modules/unictype/property-private-use (Depends-on, configure.ac):
34765         Likewise.
34766         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34767         Likewise.
34768         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34769         Likewise.
34770         * modules/unictype/property-radical (Depends-on, configure.ac):
34771         Likewise.
34772         * modules/unictype/property-sentence-terminal (Depends-on,
34773         configure.ac): Likewise.
34774         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34775         Likewise.
34776         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34777         * modules/unictype/property-terminal-punctuation (Depends-on,
34778         configure.ac): Likewise.
34779         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34780         Likewise.
34781         * modules/unictype/property-unassigned-code-value (Depends-on,
34782         configure.ac): Likewise.
34783         * modules/unictype/property-unified-ideograph (Depends-on,
34784         configure.ac): Likewise.
34785         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34786         Likewise.
34787         * modules/unictype/property-variation-selector (Depends-on,
34788         configure.ac): Likewise.
34789         * modules/unictype/property-white-space (Depends-on, configure.ac):
34790         Likewise.
34791         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34792         Likewise.
34793         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34794         Likewise.
34795         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34796         Likewise.
34797         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34798         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34799         Likewise.
34800
34801 2009-12-31  Bruno Haible  <bruno@clisp.org>
34802
34803         Remove unnecessary AC_C_INLINE invocation.
34804         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34805         since 2009-08-21.
34806
34807 2009-12-31  Jim Meyering  <meyering@redhat.com>
34808
34809         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34810         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34811         With this change, we can all remove the gpg_key_ID = ... definition
34812         from our respective cfg.mk files.
34813
34814         maint.mk: create announcement template in ~/, not in /tmp
34815         * top/maint.mk (emit_upload_commands): Adjust.
34816         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34817         Remove temporary file, .ci-msg.
34818
34819 2009-12-31  Eric Blake  <ebb9@byu.net>
34820
34821         link-warning: always build headers with link warnings
34822         * modules/arpa_inet (Makefile.am): Always build replacement
34823         header.
34824         * modules/ctype (Makefile.am): Likewise.
34825         * modules/dirent (Makefile.am): Likewise.
34826         * modules/inttypes (Makefile.am): Likewise.
34827         * modules/langinfo (Makefile.am): Likewise.
34828         * modules/locale (Makefile.am): Likewise.
34829         * modules/spawn (Makefile.am): Likewise.
34830         * modules/sys_file (Makefile.am): Likewise.
34831         * modules/sys_ioctl (Makefile.am): Likewise.
34832         * modules/sys_select (Makefile.am): Likewise.
34833         * modules/sys_socket (Makefile.am): Likewise.
34834         * modules/sys_times (Makefile.am): Likewise.
34835         * modules/sys_utsname (Makefile.am): Likewise.
34836         * modules/sys_wait (Makefile.am): Likewise.
34837         * modules/wchar (Makefile.am): Likewise.
34838         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34839         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34840         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34841         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34842         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34843         Likewise.
34844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34845         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34846         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34847         Likewise.
34848         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34849         Likewise.
34850         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34851         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34852         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34853         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34854         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34855         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34856         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34857         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34858         (gl_WCHAR_H_DEFAULTS): Likewise.
34859
34860 2009-12-31  Eric Blake  <ebb9@byu.net>
34861
34862         signal, spawn: use link warnings
34863         * lib/signal.in.h (sigset_t): Make unconditional.
34864         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34865         (sigpending, sigprocmask, sigaction): Add link warnings.
34866         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34867         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34868         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34869         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34870         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34871         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34872         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34873         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34874         (posix_spawn_file_actions_destroy)
34875         (posix_spawn_file_actions_addopen)
34876         (posix_spawn_file_actions_addclose)
34877         (posix_spawn_file_actions_adddup2): Likewise.
34878         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34879         * tests/test-signal.c (main): Enhance test.
34880
34881         spawn: improve wrapper support
34882         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34883         (gl_SPAWN_H_DEFAULTS): New defaults.
34884         * modules/spawn (Makefile.am): Substitute them.
34885         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34886         Only declare if missing or broken.
34887
34888         sys_times, sys_utsname: use include_next
34889         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34890         header.
34891         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34892         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34893         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34894         * modules/sys_times (Depends-on): Add include_next.
34895         (Makefile.am): Substitute additional values.
34896         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34897         * lib/sys_times.in.h (includes): Include native header, if
34898         available.
34899         * lib/sys_utsname.in.h (includes): Likewise.
34900         * tests/test-sys_times.c (main): Enhance test.
34901
34902         fdutimensat: revert prior patch
34903         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34904         utimens.h.
34905         Reported by Bruno Haible.
34906
34907 2009-12-30  Eric Blake  <ebb9@byu.net>
34908
34909         sys_wait: drop link-warning dependency
34910         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34911         link-warning efforts.
34912         * lib/sys_wait.in.h: Likewise.
34913
34914         fdutimensat: remove bogus dependency
34915         * modules/fdutimensat (Depends-on): Drop inline.
34916
34917         unistd: fix typo
34918         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34919
34920 2009-12-30  Bruno Haible  <bruno@clisp.org>
34921
34922         Fix compilation error with Solaris cc.
34923         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34924         * lib/unicase/u16-is-invariant.c: Likewise.
34925         * lib/unicase/u32-is-invariant.c: Likewise.
34926         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34927
34928 2009-12-30  Bruno Haible  <bruno@clisp.org>
34929
34930         Fix test crash.
34931         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34932         locales.
34933         Reported by Simon Josefsson <simon@josefsson.org>.
34934
34935 2009-12-30  Bruno Haible  <bruno@clisp.org>
34936
34937         Fix compilation error on most platforms.
34938         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34939         Reported by Simon Josefsson <simon@josefsson.org>
34940         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34941
34942 2009-12-30  Eric Blake  <ebb9@byu.net>
34943
34944         futimens, utimensat: work around ntfs-3g bug
34945         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34946         a ctime bug is present, and expand workaround to cover ntfs-3g.
34947         * lib/utimens.c (fdutimens, lutimens): Likewise.
34948         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34949         (validate_timespec): Adjust return value.
34950         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34951         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34952         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34953
34954 2009-12-29  Eric Blake  <ebb9@byu.net>
34955
34956         link-warning: make usage consistent
34957         * modules/ctype (Depends-on): Add link-warning.
34958         (Makefile.am): Update rules accordingly.
34959         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34960         * modules/locale (Depends-on, Makefile.am): Likewise.
34961         * modules/sys_file (Makefile.am): Likewise.
34962         * modules/getopt-posix (Makefile.am): Delete unused link warning
34963         efforts.
34964         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34965         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34966         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34967         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34968
34969         stdio: remove unused variables
34970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34972         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34973
34974         tests: test more substitute headers
34975         * modules/ctype-tests: New file.
34976         * modules/dirent-tests: Likewise.
34977         * modules/spawn-tests: Likewise.
34978         * modules/sys_file-tests: Likewise.
34979         * modules/sys_ioctl-tests: Likewise.
34980         * modules/sys_wait-tests: Likewise.
34981         * tests/test-ctype.c: Likewise.
34982         * tests/test-dirent.c: Likewise.
34983         * tests/test-spawn.c: Likewise.
34984         * tests/test-sys_file.c: Likewise.
34985         * tests/test-sys_ioctl.c: Likewise.
34986         * tests/test-sys_wait.c: Likewise.
34987         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34988         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34989         whether or not flock is in use.
34990
34991         tests: remove License section from module
34992         * modules/arpa_inet-tests: Remove unneeded section.
34993         * modules/byteswap-tests: Likewise.
34994         * modules/ceilf-tests: Likewise.
34995         * modules/ceill-tests: Likewise.
34996         * modules/crypto/des-tests: Likewise.
34997         * modules/crypto/gc-arcfour-tests: Likewise.
34998         * modules/crypto/gc-arctwo-tests: Likewise.
34999         * modules/crypto/gc-des-tests: Likewise.
35000         * modules/crypto/gc-hmac-md5-tests: Likewise.
35001         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35002         * modules/crypto/gc-md2-tests: Likewise.
35003         * modules/crypto/gc-md4-tests: Likewise.
35004         * modules/crypto/gc-md5-tests: Likewise.
35005         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35006         * modules/crypto/gc-rijndael-tests: Likewise.
35007         * modules/crypto/gc-sha1-tests: Likewise.
35008         * modules/crypto/gc-tests: Likewise.
35009         * modules/crypto/md2-tests: Likewise.
35010         * modules/crypto/md4-tests: Likewise.
35011         * modules/fcntl-h-tests: Likewise.
35012         * modules/floorf-tests: Likewise.
35013         * modules/floorl-tests: Likewise.
35014         * modules/frexp-nolibm-tests: Likewise.
35015         * modules/frexp-tests: Likewise.
35016         * modules/frexpl-nolibm-tests: Likewise.
35017         * modules/frexpl-tests: Likewise.
35018         * modules/getaddrinfo-tests: Likewise.
35019         * modules/inttypes-tests: Likewise.
35020         * modules/isfinite-tests: Likewise.
35021         * modules/isinf-tests: Likewise.
35022         * modules/ldexpl-tests: Likewise.
35023         * modules/locale-tests: Likewise.
35024         * modules/math-tests: Likewise.
35025         * modules/netdb-tests: Likewise.
35026         * modules/netinet_in-tests: Likewise.
35027         * modules/printf-frexp-tests: Likewise.
35028         * modules/printf-frexpl-tests: Likewise.
35029         * modules/priv-set-tests: Likewise.
35030         * modules/random_r-tests: Likewise.
35031         * modules/round-tests: Likewise.
35032         * modules/roundf-tests: Likewise.
35033         * modules/roundl-tests: Likewise.
35034         * modules/search-tests: Likewise.
35035         * modules/select-tests: Likewise.
35036         * modules/signal-tests: Likewise.
35037         * modules/stdbool-tests: Likewise.
35038         * modules/stddef-tests: Likewise.
35039         * modules/stdint-tests: Likewise.
35040         * modules/stdio-tests: Likewise.
35041         * modules/stdlib-tests: Likewise.
35042         * modules/string-tests: Likewise.
35043         * modules/strings-tests: Likewise.
35044         * modules/sys_select-tests: Likewise.
35045         * modules/sys_socket-tests: Likewise.
35046         * modules/sys_stat-tests: Likewise.
35047         * modules/sys_time-tests: Likewise.
35048         * modules/sys_utsname-tests: Likewise.
35049         * modules/sysexits-tests: Likewise.
35050         * modules/time-tests: Likewise.
35051         * modules/trunc-tests: Likewise.
35052         * modules/truncf-tests: Likewise.
35053         * modules/truncl-tests: Likewise.
35054         * modules/tsearch-tests: Likewise.
35055         * modules/unistd-tests: Likewise.
35056         * modules/wchar-tests: Likewise.
35057         * modules/wctype-tests: Likewise.
35058
35059         tests: fix license on several tests
35060         * tests/test-des.c: Update to GPLv3+.
35061         * tests/test-flock.c: Likewise.
35062         * tests/test-fsync.c: Likewise.
35063         * tests/test-futimens.h: Likewise.
35064         * tests/test-gc-arcfour.c: Likewise.
35065         * tests/test-gc-arctwo.c: Likewise.
35066         * tests/test-gc-des.c: Likewise.
35067         * tests/test-gc-hmac-md5.c: Likewise.
35068         * tests/test-gc-hmac-sha1.c: Likewise.
35069         * tests/test-gc-md2.c: Likewise.
35070         * tests/test-gc-md4.c: Likewise.
35071         * tests/test-gc-md5.c: Likewise.
35072         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35073         * tests/test-gc-rijndael.c: Likewise.
35074         * tests/test-gc-sha1.c: Likewise.
35075         * tests/test-gc.c: Likewise.
35076         * tests/test-getcwd.c: Likewise.
35077         * tests/test-link.c: Likewise.
35078         * tests/test-link.h: Likewise.
35079         * tests/test-lutimens.h: Likewise.
35080         * tests/test-md2.c: Likewise.
35081         * tests/test-md4.c: Likewise.
35082         * tests/test-mkdir.h: Likewise.
35083         * tests/test-rename.c: Likewise.
35084         * tests/test-rename.h: Likewise.
35085         * tests/test-safe-alloc.c: Likewise.
35086         * tests/test-utimens-common.h: Likewise.
35087         * tests/test-utimens.h: Likewise.
35088
35089         maint: sync license texts
35090         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35091         * doc/gpl-3.0.texi: Revert copyright year update.
35092         * doc/lgpl-3.0.texi: Likewise.
35093
35094 2009-12-29  Jim Meyering  <meyering@redhat.com>
35095
35096         update nearly all FSF copyright year lists to include 2009
35097         The files named by the following are exempted:
35098             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35099               test -f "$dst" && { echo "$dst"; continue; }
35100               test -d "$dst" || continue
35101               echo "$dst"/$(basename "$src")
35102             done > exempt
35103             git ls-files tests/unictype >> exempt
35104         In the remaining files, convert to all-interval notation if
35105         - there is already at least one year interval like 2000-2003
35106         - the file is maintained by me
35107         - the file is in lib/uni*/, where that style already prevails
35108         Otherwise, use update-copyright's default.
35109
35110 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35111         and Eric Blake  <ebb9@byu.net>
35112
35113         tests: don't require debug system() to pass
35114         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35115         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35116         * tests/test-unlink.h (test_unlink_func): Likewise.
35117         * tests/test-fstatat.c (main): ...into callers.
35118         * tests/test-lstat.c (main): Likewise.
35119         * tests/test-rmdir.c (main): Likewise.
35120         * tests/test-unlink.c (main): Likewise.
35121         * tests/test-unlinkat.c (main): Likewise.
35122         * tests/test-areadlink-with-size.c (main): Don't require a
35123         debug-only system call to pass, aiding cross-testing to mingw.
35124         * tests/test-areadlink.c (main): Likewise.
35125         * tests/test-areadlinkat-with-size.c (main): Likewise.
35126         * tests/test-areadlinkat.c (main): Likewise.
35127         * tests/test-canonicalize-lgpl.c (main): Likewise.
35128         * tests/test-canonicalize.c (main): Likewise.
35129         * tests/test-chown.c (main): Likewise.
35130         * tests/test-fchownat.c (main): Likewise.
35131         * tests/test-lchown.c (main): Likewise.
35132         * tests/test-fdutimensat.c (main): Likewise.
35133         * tests/test-futimens.c (main): Likewise.
35134         * tests/test-link.c (main): Likewise.
35135         * tests/test-linkat.c (main): Likewise.
35136         * tests/test-mkdir.c (main): Likewise.
35137         * tests/test-mkdirat.c (main): Likewise.
35138         * tests/test-mkfifo.c (main): Likewise.
35139         * tests/test-mkfifoat.c (main): Likewise.
35140         * tests/test-mknod.c (main): Likewise.
35141         * tests/test-readlink.c (main): Likewise.
35142         * tests/test-remove.c (main): Likewise.
35143         * tests/test-rename.c (main): Likewise.
35144         * tests/test-renameat.c (main): Likewise.
35145         * tests/test-symlink.c (main): Likewise.
35146         * tests/test-symlinkat.c (main): Likewise.
35147         * tests/test-utimens.c (main): Likewise.
35148         * tests/test-utimensat.c (main): Likewise.
35149
35150 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35151
35152         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35153         on $(UNUSED_PARAMETER_H) to avoid build failure.
35154
35155 2009-12-28  Jim Meyering  <meyering@redhat.com>
35156
35157         update-copyright: you may specify a max. line length other than 72
35158         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35159
35160         maint: use consistent FSF copyright line syntax
35161         * lib/posixtm.c: Add missing comma in FSF copyright line.
35162         * lib/posixtm.h: Likewise.
35163         * lib/getugroups.c: Add missing ", Inc.".
35164
35165         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35166         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35167         FSF copyright line.  Remove trailing blanks.
35168
35169 2009-12-28  Eric Blake  <ebb9@byu.net>
35170
35171         test-dup2: reduce dependencies
35172         * modules/cloexec (Configure.ac): Set witness.
35173         * modules/dup2-tests (Depends-on): Drop cloexec.
35174         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35175         not present.
35176         Suggested by Bruno Haible.
35177
35178 2009-12-26  Bruno Haible  <bruno@clisp.org>
35179
35180         Remove an unneeded dependency.
35181         * modules/fseterr (Depends-on): Remove dup2.
35182
35183 2009-12-26  Eric Blake  <ebb9@byu.net>
35184
35185         tests: use macros.h in more places
35186         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35187         (ASSERT_STREAM): Provide default of stderr.
35188         * tests/test-dirent-safer.c: Include macros.h, using alternate
35189         stream for assertions.
35190         * tests/test-dup-safer.c: Likewise.
35191         * tests/test-freopen-safer.c: Likewise.
35192         * tests/test-getopt.c: Likewise.
35193         * tests/test-openat-safer.c: Likewise.
35194         * tests/test-pipe.c: Likewise.
35195         * tests/test-popen-safer.c: Likewise.
35196         * modules/dirent-safer-tests (Files): Include macros.h.
35197         * modules/unistd-safer-tests (Files): Likewise.
35198         * modules/freopen-safer-tests (Files): Likewise.
35199         * modules/getopt-posix-tests (Files): Likewise.
35200         * modules/openat-safer-tests (Files): Likewise.
35201         * modules/pipe-tests (Files): Likewise.
35202
35203 2009-12-26  Bruno Haible  <bruno@clisp.org>
35204
35205         javacomp: Portability fix.
35206         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35207         that it also works on Solaris.
35208
35209 2009-12-26  Bruno Haible  <bruno@clisp.org>
35210
35211         localename: Fix storage allocation of gl_locale_name_thread's result.
35212         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35213         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35214         all platforms that have 'uselocale'.
35215         (gl_locale_name_thread_unsafe): New function, extracted from
35216         gl_locale_name_thread.
35217         (gl_locale_name_thread): Call struniq on all platforms that have
35218         'uselocale'.
35219         * tests/test-localename.c (test_locale_name_thread): Check that the
35220         resulting strings are permanently allocated.
35221         * modules/localename-tests (Depends-on): Add strdup.
35222
35223 2009-12-26  Bruno Haible  <bruno@clisp.org>
35224
35225         * tests/test-localename.c (categories): Fill in the strings.
35226
35227 2009-12-26  Jim Meyering  <meyering@redhat.com>
35228
35229         isdir: complete the removal of m4/isdir.m4
35230         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35231
35232         isdir: clean up, since at least grep still uses it
35233         * lib/isdir.c: Include "isdir.h".
35234         (S_ISDIR): Remove now-unneeded definition.
35235         * modules/isdir (Files): Add lib/isdir.h.
35236         * lib/isdir.h: New file, with declaration.
35237         * m4/isdir.m4: Remove file -- unneeded.
35238
35239 2009-12-25  Bruno Haible  <bruno@clisp.org>
35240
35241         selinux-h: Make generated .h files standalone.
35242         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35243         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35244         * lib/se-selinux.in.h: Likewise.
35245         * modules/selinux-h (Depends-on): Add unused-parameter.
35246         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35247         selinux/selinux.h and selinux/context.h.
35248         Suggested by Eric Blake.
35249
35250 2009-12-25  Bruno Haible  <bruno@clisp.org>
35251
35252         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35253         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35254         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35255         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35256         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35257
35258 2009-12-24  Bruno Haible  <bruno@clisp.org>
35259
35260         openat: Fix warning.
35261         * lib/openat-proc.c: Include <unistd.h>.
35262
35263 2009-12-24  Bruno Haible  <bruno@clisp.org>
35264
35265         New module 'unused-parameter'.
35266         * build-aux/unused-parameter.h: New file, extracted from earlier
35267         gnulib-common.m4.
35268         * modules/unused-parameter: New file.
35269         * lib/unistr.h: Include unused-parameter.h.
35270         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35271         _GL_UNUSED.
35272         * modules/unistr/base (Depends-on): Add unused-parameter.
35273
35274 2009-12-24  Bruno Haible  <bruno@clisp.org>
35275
35276         Add missing dependencies to 'extensions' module.
35277         * m4/extensions.m4: Add comment.
35278         * modules/accept4 (Depends-on): Add extensions.
35279         * modules/dup3 (Depends-on): Likewise.
35280         * modules/fcntl (Depends-on): Likewise.
35281         * modules/futimens (Depends-on): Likewise.
35282         * modules/mknod (Depends-on): Likewise.
35283         * modules/pipe2 (Depends-on): Likewise.
35284         * modules/stat-time (Depends-on): Likewise.
35285         * modules/strcasestr-simple (Depends-on): Likewise.
35286         * modules/strsignal (Depends-on): Likewise.
35287         * modules/utimensat (Depends-on): Likewise.
35288         * modules/localcharset (Depends-on): Likewise. Needed because of
35289         gl_FCNTL_O_FLAGS.
35290         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35291         AC_TYPE_MBSTATE_T.
35292         * modules/wcsnrtombs (Depends-on): Likewise.
35293         * modules/wcsrtombs (Depends-on): Likewise.
35294
35295 2009-12-24  Bruno Haible  <bruno@clisp.org>
35296
35297         binary-io: Avoid gcc warning due to SET_BINARY.
35298         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35299         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35300
35301 2009-12-24  Bruno Haible  <bruno@clisp.org>
35302
35303         Avoid future namespace pollution on glibc systems.
35304         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35305         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35306         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35307         glibc systems.
35308
35309 2009-12-24  Bruno Haible  <bruno@clisp.org>
35310
35311         Refactor common macros used in tests.
35312         * tests/macros.h: New file.
35313         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35314         and/or <stdlib.h>, if appropriate.
35315         (ASSERT, SIZEOF): Remove macros.
35316         * tests/test-areadlink-with-size.c: Likewise.
35317         * tests/test-areadlinkat.c: Likewise.
35318         * tests/test-areadlinkat-with-size.c: Likewise.
35319         * tests/test-argmatch.c: Likewise.
35320         * tests/test-argv-iter.c: Likewise.
35321         * tests/test-array-mergesort.c: Likewise.
35322         * tests/test-array_list.c: Likewise.
35323         * tests/test-array_oset.c: Likewise.
35324         * tests/test-avltree_list.c: Likewise.
35325         * tests/test-avltree_oset.c: Likewise.
35326         * tests/test-avltreehash_list.c: Likewise.
35327         * tests/test-base64.c: Likewise.
35328         * tests/test-binary-io.c: Likewise.
35329         * tests/test-bitrotate.c: Likewise.
35330         * tests/test-btowc.c: Likewise.
35331         * tests/test-byteswap.c: Likewise.
35332         * tests/test-c-ctype.c: Likewise.
35333         * tests/test-c-stack.c: Likewise.
35334         * tests/test-c-strcasecmp.c: Likewise.
35335         * tests/test-c-strcasestr.c: Likewise.
35336         * tests/test-c-strncasecmp.c: Likewise.
35337         * tests/test-c-strstr.c: Likewise.
35338         * tests/test-canonicalize-lgpl.c: Likewise.
35339         * tests/test-canonicalize.c: Likewise.
35340         * tests/test-carray_list.c: Likewise.
35341         * tests/test-ceilf1.c: Likewise.
35342         * tests/test-ceilf2.c: Likewise.
35343         * tests/test-ceill.c: Likewise.
35344         * tests/test-chown.c: Likewise.
35345         * tests/test-cloexec.c: Likewise.
35346         * tests/test-copy-acl.c: Likewise.
35347         * tests/test-copy-file.c: Likewise.
35348         * tests/test-count-one-bits.c: Likewise.
35349         * tests/test-dprintf-posix.c: Likewise.
35350         * tests/test-dup2.c: Likewise.
35351         * tests/test-dup3.c: Likewise.
35352         * tests/test-duplocale.c: Likewise.
35353         * tests/test-fbufmode.c: Likewise.
35354         * tests/test-fchdir.c: Likewise.
35355         * tests/test-fchownat.c: Likewise.
35356         * tests/test-fcntl-safer.c: Likewise.
35357         * tests/test-fcntl.c: Likewise.
35358         * tests/test-fdopendir.c: Likewise.
35359         * tests/test-fdutimensat.c: Likewise.
35360         * tests/test-fflush2.c: Likewise.
35361         * tests/test-file-has-acl.c: Likewise.
35362         * tests/test-filevercmp.c: Likewise.
35363         * tests/test-flock.c: Likewise.
35364         * tests/test-floorf1.c: Likewise.
35365         * tests/test-floorf2.c: Likewise.
35366         * tests/test-floorl.c: Likewise.
35367         * tests/test-fnmatch.c: Likewise.
35368         * tests/test-fopen.h: Likewise.
35369         * tests/test-fpending.c: Likewise.
35370         * tests/test-fprintf-posix.c: Likewise.
35371         * tests/test-fpurge.c: Likewise.
35372         * tests/test-freadable.c: Likewise.
35373         * tests/test-freadahead.c: Likewise.
35374         * tests/test-freading.c: Likewise.
35375         * tests/test-freadptr.c: Likewise.
35376         * tests/test-freadptr2.c: Likewise.
35377         * tests/test-freadseek.c: Likewise.
35378         * tests/test-freopen.c: Likewise.
35379         * tests/test-frexp.c: Likewise.
35380         * tests/test-frexpl.c: Likewise.
35381         * tests/test-fseek.c: Likewise.
35382         * tests/test-fseeko.c: Likewise.
35383         * tests/test-fstatat.c: Likewise.
35384         * tests/test-fstrcmp.c: Likewise.
35385         * tests/test-fsync.c: Likewise.
35386         * tests/test-ftell.c: Likewise.
35387         * tests/test-ftello.c: Likewise.
35388         * tests/test-func.c: Likewise.
35389         * tests/test-futimens.c: Likewise.
35390         * tests/test-fwritable.c: Likewise.
35391         * tests/test-fwriting.c: Likewise.
35392         * tests/test-getcwd.c: Likewise.
35393         * tests/test-getdate.c: Likewise.
35394         * tests/test-getdelim.c: Likewise.
35395         * tests/test-getdtablesize.c: Likewise.
35396         * tests/test-getgroups.c: Likewise.
35397         * tests/test-getline.c: Likewise.
35398         * tests/test-getndelim2.c: Likewise.
35399         * tests/test-glob.c: Likewise.
35400         * tests/test-hash.c: Likewise.
35401         * tests/test-i-ring.c: Likewise.
35402         * tests/test-iconv-utf.c: Likewise.
35403         * tests/test-iconv.c: Likewise.
35404         * tests/test-idpriv-drop.c: Likewise.
35405         * tests/test-idpriv-droptemp.c: Likewise.
35406         * tests/test-inet_ntop.c: Likewise.
35407         * tests/test-inet_pton.c: Likewise.
35408         * tests/test-isblank.c: Likewise.
35409         * tests/test-isfinite.c: Likewise.
35410         * tests/test-isinf.c: Likewise.
35411         * tests/test-isnan.c: Likewise.
35412         * tests/test-isnand.h: Likewise.
35413         * tests/test-isnanf.h: Likewise.
35414         * tests/test-isnanl.h: Likewise.
35415         * tests/test-lchown.c: Likewise.
35416         * tests/test-ldexpl.c: Likewise.
35417         * tests/test-link.c: Likewise.
35418         * tests/test-linkat.c: Likewise.
35419         * tests/test-linked_list.c: Likewise.
35420         * tests/test-linkedhash_list.c: Likewise.
35421         * tests/test-localename.c: Likewise.
35422         * tests/test-lseek.c: Likewise.
35423         * tests/test-lstat.c: Likewise.
35424         * tests/test-mbmemcasecmp.c: Likewise.
35425         * tests/test-mbmemcasecoll.c: Likewise.
35426         * tests/test-mbrtowc.c: Likewise.
35427         * tests/test-mbscasecmp.c: Likewise.
35428         * tests/test-mbscasestr1.c: Likewise.
35429         * tests/test-mbscasestr2.c: Likewise.
35430         * tests/test-mbscasestr3.c: Likewise.
35431         * tests/test-mbscasestr4.c: Likewise.
35432         * tests/test-mbschr.c: Likewise.
35433         * tests/test-mbscspn.c: Likewise.
35434         * tests/test-mbsinit.c: Likewise.
35435         * tests/test-mbsncasecmp.c: Likewise.
35436         * tests/test-mbsnrtowcs.c: Likewise.
35437         * tests/test-mbspbrk.c: Likewise.
35438         * tests/test-mbspcasecmp.c: Likewise.
35439         * tests/test-mbsrchr.c: Likewise.
35440         * tests/test-mbsrtowcs.c: Likewise.
35441         * tests/test-mbsspn.c: Likewise.
35442         * tests/test-mbsstr1.c: Likewise.
35443         * tests/test-mbsstr2.c: Likewise.
35444         * tests/test-mbsstr3.c: Likewise.
35445         * tests/test-memchr.c: Likewise.
35446         * tests/test-memchr2.c: Likewise.
35447         * tests/test-memcmp.c: Likewise.
35448         * tests/test-memmem.c: Likewise.
35449         * tests/test-memrchr.c: Likewise.
35450         * tests/test-mkdir.c: Likewise.
35451         * tests/test-mkdirat.c: Likewise.
35452         * tests/test-mkfifo.c: Likewise.
35453         * tests/test-mkfifoat.c: Likewise.
35454         * tests/test-mknod.c: Likewise.
35455         * tests/test-nanosleep.c: Likewise.
35456         * tests/test-nl_langinfo.c: Likewise.
35457         * tests/test-obstack-printf.c: Likewise.
35458         * tests/test-open.c: Likewise.
35459         * tests/test-openat.c: Likewise.
35460         * tests/test-pipe-filter-gi1.c: Likewise.
35461         * tests/test-pipe-filter-gi2-main.c: Likewise.
35462         * tests/test-pipe-filter-ii1.c: Likewise.
35463         * tests/test-pipe-filter-ii2-main.c: Likewise.
35464         * tests/test-pipe2.c: Likewise.
35465         * tests/test-popen.h: Likewise.
35466         * tests/test-posixtm.c: Likewise.
35467         * tests/test-pread.c: Likewise.
35468         * tests/test-printf-frexp.c: Likewise.
35469         * tests/test-printf-frexpl.c: Likewise.
35470         * tests/test-printf-posix.c: Likewise.
35471         * tests/test-priv-set.c: Likewise.
35472         * tests/test-quotearg.c: Likewise.
35473         * tests/test-random_r.c: Likewise.
35474         * tests/test-rawmemchr.c: Likewise.
35475         * tests/test-rbtree_list.c: Likewise.
35476         * tests/test-rbtree_oset.c: Likewise.
35477         * tests/test-rbtreehash_list.c: Likewise.
35478         * tests/test-readlink.c: Likewise.
35479         * tests/test-remove.c: Likewise.
35480         * tests/test-rename.c: Likewise.
35481         * tests/test-renameat.c: Likewise.
35482         * tests/test-rmdir.c: Likewise.
35483         * tests/test-round1.c: Likewise.
35484         * tests/test-roundf1.c: Likewise.
35485         * tests/test-roundl.c: Likewise.
35486         * tests/test-safe-alloc.c: Likewise.
35487         * tests/test-sameacls.c: Likewise.
35488         * tests/test-set-mode-acl.c: Likewise.
35489         * tests/test-setenv.c: Likewise.
35490         * tests/test-sigaction.c: Likewise.
35491         * tests/test-signbit.c: Likewise.
35492         * tests/test-sleep.c: Likewise.
35493         * tests/test-snprintf-posix.c: Likewise.
35494         * tests/test-snprintf.c: Likewise.
35495         * tests/test-sprintf-posix.c: Likewise.
35496         * tests/test-stat-time.c: Likewise.
35497         * tests/test-stat.c: Likewise.
35498         * tests/test-strcasestr.c: Likewise.
35499         * tests/test-strchrnul.c: Likewise.
35500         * tests/test-strerror.c: Likewise.
35501         * tests/test-striconv.c: Likewise.
35502         * tests/test-striconveh.c: Likewise.
35503         * tests/test-striconveha.c: Likewise.
35504         * tests/test-strsignal.c: Likewise.
35505         * tests/test-strstr.c: Likewise.
35506         * tests/test-strtod.c: Likewise.
35507         * tests/test-strverscmp.c: Likewise.
35508         * tests/test-symlink.c: Likewise.
35509         * tests/test-symlinkat.c: Likewise.
35510         * tests/test-trunc1.c: Likewise.
35511         * tests/test-trunc2.c: Likewise.
35512         * tests/test-truncf1.c: Likewise.
35513         * tests/test-truncf2.c: Likewise.
35514         * tests/test-truncl.c: Likewise.
35515         * tests/test-uname.c: Likewise.
35516         * tests/test-unlink.c: Likewise.
35517         * tests/test-unlinkat.c: Likewise.
35518         * tests/test-unsetenv.c: Likewise.
35519         * tests/test-usleep.c: Likewise.
35520         * tests/test-utimens.c: Likewise.
35521         * tests/test-utimensat.c: Likewise.
35522         * tests/test-vasnprintf-posix.c: Likewise.
35523         * tests/test-vasnprintf-posix2.c: Likewise.
35524         * tests/test-vasnprintf.c: Likewise.
35525         * tests/test-vasprintf-posix.c: Likewise.
35526         * tests/test-vasprintf.c: Likewise.
35527         * tests/test-vdprintf-posix.c: Likewise.
35528         * tests/test-vfprintf-posix.c: Likewise.
35529         * tests/test-vprintf-posix.c: Likewise.
35530         * tests/test-vsnprintf-posix.c: Likewise.
35531         * tests/test-vsnprintf.c: Likewise.
35532         * tests/test-vsprintf-posix.c: Likewise.
35533         * tests/test-wcrtomb.c: Likewise.
35534         * tests/test-wcsnrtombs.c: Likewise.
35535         * tests/test-wcsrtombs.c: Likewise.
35536         * tests/test-wctype.c: Likewise.
35537         * tests/test-wcwidth.c: Likewise.
35538         * tests/test-xfprintf-posix.c: Likewise.
35539         * tests/test-xmemdup0.c: Likewise.
35540         * tests/test-xprintf-posix.c: Likewise.
35541         * tests/test-xvasprintf.c: Likewise.
35542         * tests/unicase/test-locale-language.c: Likewise.
35543         * tests/unicase/test-mapping-part1.h: Likewise.
35544         * tests/unicase/test-predicate-part1.h: Likewise.
35545         * tests/unicase/test-u8-casecmp.c: Likewise.
35546         * tests/unicase/test-u8-casecoll.c: Likewise.
35547         * tests/unicase/test-u8-casefold.c: Likewise.
35548         * tests/unicase/test-u8-is-cased.c: Likewise.
35549         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35550         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35551         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35552         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35553         * tests/unicase/test-u8-tolower.c: Likewise.
35554         * tests/unicase/test-u8-totitle.c: Likewise.
35555         * tests/unicase/test-u8-toupper.c: Likewise.
35556         * tests/unicase/test-u16-casecmp.c: Likewise.
35557         * tests/unicase/test-u16-casecoll.c: Likewise.
35558         * tests/unicase/test-u16-casefold.c: Likewise.
35559         * tests/unicase/test-u16-is-cased.c: Likewise.
35560         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35561         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35562         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35563         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35564         * tests/unicase/test-u16-tolower.c: Likewise.
35565         * tests/unicase/test-u16-totitle.c: Likewise.
35566         * tests/unicase/test-u16-toupper.c: Likewise.
35567         * tests/unicase/test-u32-casecmp.c: Likewise.
35568         * tests/unicase/test-u32-casecoll.c: Likewise.
35569         * tests/unicase/test-u32-casefold.c: Likewise.
35570         * tests/unicase/test-u32-is-cased.c: Likewise.
35571         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35572         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35573         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35574         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35575         * tests/unicase/test-u32-tolower.c: Likewise.
35576         * tests/unicase/test-u32-totitle.c: Likewise.
35577         * tests/unicase/test-u32-toupper.c: Likewise.
35578         * tests/unicase/test-ulc-casecmp.c: Likewise.
35579         * tests/unicase/test-ulc-casecoll.c: Likewise.
35580         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35581         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35582         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35583         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35584         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35585         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35586         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35587         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35588         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35589         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35590         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35591         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35592         * tests/unictype/test-bidi_byname.c: Likewise.
35593         * tests/unictype/test-bidi_name.c: Likewise.
35594         * tests/unictype/test-bidi_of.c: Likewise.
35595         * tests/unictype/test-bidi_test.c: Likewise.
35596         * tests/unictype/test-block_list.c: Likewise.
35597         * tests/unictype/test-block_of.c: Likewise.
35598         * tests/unictype/test-block_test.c: Likewise.
35599         * tests/unictype/test-categ_and.c: Likewise.
35600         * tests/unictype/test-categ_and_not.c: Likewise.
35601         * tests/unictype/test-categ_byname.c: Likewise.
35602         * tests/unictype/test-categ_name.c: Likewise.
35603         * tests/unictype/test-categ_none.c: Likewise.
35604         * tests/unictype/test-categ_of.c: Likewise.
35605         * tests/unictype/test-categ_or.c: Likewise.
35606         * tests/unictype/test-categ_test_withtable.c: Likewise.
35607         * tests/unictype/test-combining.c: Likewise.
35608         * tests/unictype/test-decdigit.c: Likewise.
35609         * tests/unictype/test-digit.c: Likewise.
35610         * tests/unictype/test-mirror.c: Likewise.
35611         * tests/unictype/test-numeric.c: Likewise.
35612         * tests/unictype/test-pr_byname.c: Likewise.
35613         * tests/unictype/test-pr_test.c: Likewise.
35614         * tests/unictype/test-predicate-part1.h: Likewise.
35615         * tests/unictype/test-scripts.c: Likewise.
35616         * tests/unictype/test-sy_c_ident.c: Likewise.
35617         * tests/unictype/test-sy_java_ident.c: Likewise.
35618         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35619         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35620         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35621         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35622         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35623         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35624         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35625         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35626         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35627         * tests/uninorm/test-compat-decomposition.c: Likewise.
35628         * tests/uninorm/test-composition.c: Likewise.
35629         * tests/uninorm/test-decomposing-form.c: Likewise.
35630         * tests/uninorm/test-decomposition.c: Likewise.
35631         * tests/uninorm/test-u8-nfc.c: Likewise.
35632         * tests/uninorm/test-u8-nfd.c: Likewise.
35633         * tests/uninorm/test-u8-nfkc.c: Likewise.
35634         * tests/uninorm/test-u8-nfkd.c: Likewise.
35635         * tests/uninorm/test-u8-normcmp.c: Likewise.
35636         * tests/uninorm/test-u8-normcoll.c: Likewise.
35637         * tests/uninorm/test-u16-nfc.c: Likewise.
35638         * tests/uninorm/test-u16-nfd.c: Likewise.
35639         * tests/uninorm/test-u16-nfkc.c: Likewise.
35640         * tests/uninorm/test-u16-nfkd.c: Likewise.
35641         * tests/uninorm/test-u16-normcmp.c: Likewise.
35642         * tests/uninorm/test-u16-normcoll.c: Likewise.
35643         * tests/uninorm/test-u32-nfc.c: Likewise.
35644         * tests/uninorm/test-u32-nfd.c: Likewise.
35645         * tests/uninorm/test-u32-nfkc.c: Likewise.
35646         * tests/uninorm/test-u32-nfkd.c: Likewise.
35647         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35648         * tests/uninorm/test-u32-normcmp.c: Likewise.
35649         * tests/uninorm/test-u32-normcoll.c: Likewise.
35650         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35651         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35652         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35653         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35654         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35655         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35656         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35657         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35658         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35659         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35660         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35661         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35662         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35663         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35664         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35665         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35666         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35667         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35668         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35669         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35670         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35671         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35672         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35673         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35674         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35675         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35676         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35677         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35678         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35679         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35680         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35681         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35682         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35683         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35684         * tests/uniwidth/test-u8-width.c: Likewise.
35685         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35686         * tests/uniwidth/test-u16-width.c: Likewise.
35687         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35688         * tests/uniwidth/test-u32-width.c: Likewise.
35689         * tests/uniwidth/test-uc_width.c: Likewise.
35690         * tests/uniwidth/test-uc_width2.c: Likewise.
35691         * modules/acl-tests (Files): Add tests/macros.h.
35692         * modules/areadlink-tests (Files): Likewise.
35693         * modules/areadlink-with-size-tests (Files): Likewise.
35694         * modules/areadlinkat-tests (Files): Likewise.
35695         * modules/areadlinkat-with-size-tests (Files): Likewise.
35696         * modules/argmatch-tests (Files): Likewise.
35697         * modules/argv-iter-tests (Files): Likewise.
35698         * modules/array-list-tests (Files): Likewise.
35699         * modules/array-mergesort-tests (Files): Likewise.
35700         * modules/array-oset-tests (Files): Likewise.
35701         * modules/avltree-list-tests (Files): Likewise.
35702         * modules/avltree-oset-tests (Files): Likewise.
35703         * modules/avltreehash-list-tests (Files): Likewise.
35704         * modules/base64-tests (Files): Likewise.
35705         * modules/binary-io-tests (Files): Likewise.
35706         * modules/bitrotate-tests (Files): Likewise.
35707         * modules/btowc-tests (Files): Likewise.
35708         * modules/byteswap-tests (Files): Likewise.
35709         * modules/c-ctype-tests (Files): Likewise.
35710         * modules/c-stack-tests (Files): Likewise.
35711         * modules/c-strcase-tests (Files): Likewise.
35712         * modules/c-strcasestr-tests (Files): Likewise.
35713         * modules/c-strstr-tests (Files): Likewise.
35714         * modules/canonicalize-lgpl-tests (Files): Likewise.
35715         * modules/canonicalize-tests (Files): Likewise.
35716         * modules/carray-list-tests (Files): Likewise.
35717         * modules/ceilf-tests (Files): Likewise.
35718         * modules/ceill-tests (Files): Likewise.
35719         * modules/chown-tests (Files): Likewise.
35720         * modules/cloexec-tests (Files): Likewise.
35721         * modules/copy-file-tests (Files): Likewise.
35722         * modules/count-one-bits-tests (Files): Likewise.
35723         * modules/dprintf-posix-tests (Files): Likewise.
35724         * modules/dup2-tests (Files): Likewise.
35725         * modules/dup3-tests (Files): Likewise.
35726         * modules/duplocale-tests (Files): Likewise.
35727         * modules/fbufmode-tests (Files): Likewise.
35728         * modules/fchdir-tests (Files): Likewise.
35729         * modules/fcntl-safer-tests (Files): Likewise.
35730         * modules/fcntl-tests (Files): Likewise.
35731         * modules/fdopendir-tests (Files): Likewise.
35732         * modules/fdutimensat-tests (Files): Likewise.
35733         * modules/fflush-tests (Files): Likewise.
35734         * modules/filevercmp-tests (Files): Likewise.
35735         * modules/flock-tests (Files): Likewise.
35736         * modules/floorf-tests (Files): Likewise.
35737         * modules/floorl-tests (Files): Likewise.
35738         * modules/fnmatch-tests (Files): Likewise.
35739         * modules/fopen-safer-tests (Files): Likewise.
35740         * modules/fopen-tests (Files): Likewise.
35741         * modules/fpending-tests (Files): Likewise.
35742         * modules/fprintf-posix-tests (Files): Likewise.
35743         * modules/fpurge-tests (Files): Likewise.
35744         * modules/freadable-tests (Files): Likewise.
35745         * modules/freadahead-tests (Files): Likewise.
35746         * modules/freading-tests (Files): Likewise.
35747         * modules/freadptr-tests (Files): Likewise.
35748         * modules/freadseek-tests (Files): Likewise.
35749         * modules/freopen-tests (Files): Likewise.
35750         * modules/frexp-nolibm-tests (Files): Likewise.
35751         * modules/frexp-tests (Files): Likewise.
35752         * modules/frexpl-nolibm-tests (Files): Likewise.
35753         * modules/frexpl-tests (Files): Likewise.
35754         * modules/fseek-tests (Files): Likewise.
35755         * modules/fseeko-tests (Files): Likewise.
35756         * modules/fstrcmp-tests (Files): Likewise.
35757         * modules/fsync-tests (Files): Likewise.
35758         * modules/ftell-tests (Files): Likewise.
35759         * modules/ftello-tests (Files): Likewise.
35760         * modules/func-tests (Files): Likewise.
35761         * modules/futimens-tests (Files): Likewise.
35762         * modules/fwritable-tests (Files): Likewise.
35763         * modules/fwriting-tests (Files): Likewise.
35764         * modules/getcwd-tests (Files): Likewise.
35765         * modules/getdate-tests (Files): Likewise.
35766         * modules/getdelim-tests (Files): Likewise.
35767         * modules/getdtablesize-tests (Files): Likewise.
35768         * modules/getgroups-tests (Files): Likewise.
35769         * modules/getline-tests (Files): Likewise.
35770         * modules/getndelim2-tests (Files): Likewise.
35771         * modules/glob-tests (Files): Likewise.
35772         * modules/hash-tests (Files): Likewise.
35773         * modules/i-ring-tests (Files): Likewise.
35774         * modules/iconv-tests (Files): Likewise.
35775         * modules/iconv_open-utf-tests (Files): Likewise.
35776         * modules/idpriv-drop-tests (Files): Likewise.
35777         * modules/idpriv-droptemp-tests (Files): Likewise.
35778         * modules/inet_ntop-tests (Files): Likewise.
35779         * modules/inet_pton-tests (Files): Likewise.
35780         * modules/isblank-tests (Files): Likewise.
35781         * modules/isfinite-tests (Files): Likewise.
35782         * modules/isinf-tests (Files): Likewise.
35783         * modules/isnan-tests (Files): Likewise.
35784         * modules/isnand-nolibm-tests (Files): Likewise.
35785         * modules/isnand-tests (Files): Likewise.
35786         * modules/isnanf-nolibm-tests (Files): Likewise.
35787         * modules/isnanf-tests (Files): Likewise.
35788         * modules/isnanl-nolibm-tests (Files): Likewise.
35789         * modules/isnanl-tests (Files): Likewise.
35790         * modules/lchown-tests (Files): Likewise.
35791         * modules/ldexpl-tests (Files): Likewise.
35792         * modules/link-tests (Files): Likewise.
35793         * modules/linkat-tests (Files): Likewise.
35794         * modules/linked-list-tests (Files): Likewise.
35795         * modules/linkedhash-list-tests (Files): Likewise.
35796         * modules/localename-tests (Files): Likewise.
35797         * modules/lseek-tests (Files): Likewise.
35798         * modules/lstat-tests (Files): Likewise.
35799         * modules/mbmemcasecmp-tests (Files): Likewise.
35800         * modules/mbmemcasecoll-tests (Files): Likewise.
35801         * modules/mbrtowc-tests (Files): Likewise.
35802         * modules/mbscasecmp-tests (Files): Likewise.
35803         * modules/mbscasestr-tests (Files): Likewise.
35804         * modules/mbschr-tests (Files): Likewise.
35805         * modules/mbscspn-tests (Files): Likewise.
35806         * modules/mbsinit-tests (Files): Likewise.
35807         * modules/mbsncasecmp-tests (Files): Likewise.
35808         * modules/mbsnrtowcs-tests (Files): Likewise.
35809         * modules/mbspbrk-tests (Files): Likewise.
35810         * modules/mbspcasecmp-tests (Files): Likewise.
35811         * modules/mbsrchr-tests (Files): Likewise.
35812         * modules/mbsrtowcs-tests (Files): Likewise.
35813         * modules/mbsspn-tests (Files): Likewise.
35814         * modules/mbsstr-tests (Files): Likewise.
35815         * modules/memchr-tests (Files): Likewise.
35816         * modules/memchr2-tests (Files): Likewise.
35817         * modules/memcmp-tests (Files): Likewise.
35818         * modules/memmem-tests (Files): Likewise.
35819         * modules/memrchr-tests (Files): Likewise.
35820         * modules/mkdir-tests (Files): Likewise.
35821         * modules/mkfifo-tests (Files): Likewise.
35822         * modules/mkfifoat-tests (Files): Likewise.
35823         * modules/mknod-tests (Files): Likewise.
35824         * modules/nanosleep-tests (Files): Likewise.
35825         * modules/nl_langinfo-tests (Files): Likewise.
35826         * modules/obstack-printf-tests (Files): Likewise.
35827         * modules/open-tests (Files): Likewise.
35828         * modules/openat-tests (Files): Likewise.
35829         * modules/pipe-filter-gi-tests (Files): Likewise.
35830         * modules/pipe-filter-ii-tests (Files): Likewise.
35831         * modules/pipe2-tests (Files): Likewise.
35832         * modules/popen-safer-tests (Files): Likewise.
35833         * modules/popen-tests (Files): Likewise.
35834         * modules/posixtm-tests (Files): Likewise.
35835         * modules/pread-tests (Files): Likewise.
35836         * modules/printf-frexp-tests (Files): Likewise.
35837         * modules/printf-frexpl-tests (Files): Likewise.
35838         * modules/printf-posix-tests (Files): Likewise.
35839         * modules/priv-set-tests (Files): Likewise.
35840         * modules/quotearg-tests (Files): Likewise.
35841         * modules/random_r-tests (Files): Likewise.
35842         * modules/rawmemchr-tests (Files): Likewise.
35843         * modules/rbtree-list-tests (Files): Likewise.
35844         * modules/rbtree-oset-tests (Files): Likewise.
35845         * modules/rbtreehash-list-tests (Files): Likewise.
35846         * modules/readlink-tests (Files): Likewise.
35847         * modules/remove-tests (Files): Likewise.
35848         * modules/rename-tests (Files): Likewise.
35849         * modules/renameat-tests (Files): Likewise.
35850         * modules/rmdir-tests (Files): Likewise.
35851         * modules/round-tests (Files): Likewise.
35852         * modules/roundf-tests (Files): Likewise.
35853         * modules/roundl-tests (Files): Likewise.
35854         * modules/safe-alloc-tests (Files): Likewise.
35855         * modules/setenv-tests (Files): Likewise.
35856         * modules/sigaction-tests (Files): Likewise.
35857         * modules/signbit-tests (Files): Likewise.
35858         * modules/sleep-tests (Files): Likewise.
35859         * modules/snprintf-posix-tests (Files): Likewise.
35860         * modules/snprintf-tests (Files): Likewise.
35861         * modules/sprintf-posix-tests (Files): Likewise.
35862         * modules/stat-tests (Files): Likewise.
35863         * modules/stat-time-tests (Files): Likewise.
35864         * modules/strcasestr-tests (Files): Likewise.
35865         * modules/strchrnul-tests (Files): Likewise.
35866         * modules/strerror-tests (Files): Likewise.
35867         * modules/striconv-tests (Files): Likewise.
35868         * modules/striconveh-tests (Files): Likewise.
35869         * modules/striconveha-tests (Files): Likewise.
35870         * modules/strsignal-tests (Files): Likewise.
35871         * modules/strstr-tests (Files): Likewise.
35872         * modules/strtod-tests (Files): Likewise.
35873         * modules/strverscmp-tests (Files): Likewise.
35874         * modules/symlink-tests (Files): Likewise.
35875         * modules/symlinkat-tests (Files): Likewise.
35876         * modules/trunc-tests (Files): Likewise.
35877         * modules/truncf-tests (Files): Likewise.
35878         * modules/truncl-tests (Files): Likewise.
35879         * modules/uname-tests (Files): Likewise.
35880         * modules/unicase/cased-tests (Files): Likewise.
35881         * modules/unicase/ignorable-tests (Files): Likewise.
35882         * modules/unicase/locale-language-tests (Files): Likewise.
35883         * modules/unicase/tolower-tests (Files): Likewise.
35884         * modules/unicase/totitle-tests (Files): Likewise.
35885         * modules/unicase/toupper-tests (Files): Likewise.
35886         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35887         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35888         * modules/unicase/u8-casefold-tests (Files): Likewise.
35889         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35890         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35891         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35892         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35893         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35894         * modules/unicase/u8-tolower-tests (Files): Likewise.
35895         * modules/unicase/u8-totitle-tests (Files): Likewise.
35896         * modules/unicase/u8-toupper-tests (Files): Likewise.
35897         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35898         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35899         * modules/unicase/u16-casefold-tests (Files): Likewise.
35900         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35901         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35902         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35903         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35904         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35905         * modules/unicase/u16-tolower-tests (Files): Likewise.
35906         * modules/unicase/u16-totitle-tests (Files): Likewise.
35907         * modules/unicase/u16-toupper-tests (Files): Likewise.
35908         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35909         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35910         * modules/unicase/u32-casefold-tests (Files): Likewise.
35911         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35912         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35913         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35914         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35915         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35916         * modules/unicase/u32-tolower-tests (Files): Likewise.
35917         * modules/unicase/u32-totitle-tests (Files): Likewise.
35918         * modules/unicase/u32-toupper-tests (Files): Likewise.
35919         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35920         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35921         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35922         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35923         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35924         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35925         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35926         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35927         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35928         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35929         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35930         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35931         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35932         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35933         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35934         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35935         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35936         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35937         * modules/unictype/block-list-tests (Files): Likewise.
35938         * modules/unictype/block-of-tests (Files): Likewise.
35939         * modules/unictype/block-test-tests (Files): Likewise.
35940         * modules/unictype/category-C-tests (Files): Likewise.
35941         * modules/unictype/category-Cc-tests (Files): Likewise.
35942         * modules/unictype/category-Cf-tests (Files): Likewise.
35943         * modules/unictype/category-Cn-tests (Files): Likewise.
35944         * modules/unictype/category-Co-tests (Files): Likewise.
35945         * modules/unictype/category-Cs-tests (Files): Likewise.
35946         * modules/unictype/category-L-tests (Files): Likewise.
35947         * modules/unictype/category-Ll-tests (Files): Likewise.
35948         * modules/unictype/category-Lm-tests (Files): Likewise.
35949         * modules/unictype/category-Lo-tests (Files): Likewise.
35950         * modules/unictype/category-Lt-tests (Files): Likewise.
35951         * modules/unictype/category-Lu-tests (Files): Likewise.
35952         * modules/unictype/category-M-tests (Files): Likewise.
35953         * modules/unictype/category-Mc-tests (Files): Likewise.
35954         * modules/unictype/category-Me-tests (Files): Likewise.
35955         * modules/unictype/category-Mn-tests (Files): Likewise.
35956         * modules/unictype/category-N-tests (Files): Likewise.
35957         * modules/unictype/category-Nd-tests (Files): Likewise.
35958         * modules/unictype/category-Nl-tests (Files): Likewise.
35959         * modules/unictype/category-No-tests (Files): Likewise.
35960         * modules/unictype/category-P-tests (Files): Likewise.
35961         * modules/unictype/category-Pc-tests (Files): Likewise.
35962         * modules/unictype/category-Pd-tests (Files): Likewise.
35963         * modules/unictype/category-Pe-tests (Files): Likewise.
35964         * modules/unictype/category-Pf-tests (Files): Likewise.
35965         * modules/unictype/category-Pi-tests (Files): Likewise.
35966         * modules/unictype/category-Po-tests (Files): Likewise.
35967         * modules/unictype/category-Ps-tests (Files): Likewise.
35968         * modules/unictype/category-S-tests (Files): Likewise.
35969         * modules/unictype/category-Sc-tests (Files): Likewise.
35970         * modules/unictype/category-Sk-tests (Files): Likewise.
35971         * modules/unictype/category-Sm-tests (Files): Likewise.
35972         * modules/unictype/category-So-tests (Files): Likewise.
35973         * modules/unictype/category-Z-tests (Files): Likewise.
35974         * modules/unictype/category-Zl-tests (Files): Likewise.
35975         * modules/unictype/category-Zp-tests (Files): Likewise.
35976         * modules/unictype/category-Zs-tests (Files): Likewise.
35977         * modules/unictype/category-and-not-tests (Files): Likewise.
35978         * modules/unictype/category-and-tests (Files): Likewise.
35979         * modules/unictype/category-byname-tests (Files): Likewise.
35980         * modules/unictype/category-name-tests (Files): Likewise.
35981         * modules/unictype/category-none-tests (Files): Likewise.
35982         * modules/unictype/category-of-tests (Files): Likewise.
35983         * modules/unictype/category-or-tests (Files): Likewise.
35984         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35985         * modules/unictype/combining-class-tests (Files): Likewise.
35986         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35987         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35988         * modules/unictype/ctype-blank-tests (Files): Likewise.
35989         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35990         * modules/unictype/ctype-digit-tests (Files): Likewise.
35991         * modules/unictype/ctype-graph-tests (Files): Likewise.
35992         * modules/unictype/ctype-lower-tests (Files): Likewise.
35993         * modules/unictype/ctype-print-tests (Files): Likewise.
35994         * modules/unictype/ctype-punct-tests (Files): Likewise.
35995         * modules/unictype/ctype-space-tests (Files): Likewise.
35996         * modules/unictype/ctype-upper-tests (Files): Likewise.
35997         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35998         * modules/unictype/decimal-digit-tests (Files): Likewise.
35999         * modules/unictype/digit-tests (Files): Likewise.
36000         * modules/unictype/mirror-tests (Files): Likewise.
36001         * modules/unictype/numeric-tests (Files): Likewise.
36002         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36003         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36004         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36005         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36006         Likewise.
36007         * modules/unictype/property-bidi-block-separator-tests (Files):
36008         Likewise.
36009         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36010         Likewise.
36011         * modules/unictype/property-bidi-common-separator-tests (Files):
36012         Likewise.
36013         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36014         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36015         Likewise.
36016         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36017         Likewise.
36018         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36019         Likewise.
36020         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36021         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36022         Likewise.
36023         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36024         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36025         Likewise.
36026         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36027         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36028         * modules/unictype/property-bidi-segment-separator-tests (Files):
36029         Likewise.
36030         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36031         * modules/unictype/property-byname-tests (Files): Likewise.
36032         * modules/unictype/property-combining-tests (Files): Likewise.
36033         * modules/unictype/property-composite-tests (Files): Likewise.
36034         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36035         * modules/unictype/property-dash-tests (Files): Likewise.
36036         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36037         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36038         Likewise.
36039         * modules/unictype/property-deprecated-tests (Files): Likewise.
36040         * modules/unictype/property-diacritic-tests (Files): Likewise.
36041         * modules/unictype/property-extender-tests (Files): Likewise.
36042         * modules/unictype/property-format-control-tests (Files): Likewise.
36043         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36044         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36045         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36046         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36047         * modules/unictype/property-hyphen-tests (Files): Likewise.
36048         * modules/unictype/property-id-continue-tests (Files): Likewise.
36049         * modules/unictype/property-id-start-tests (Files): Likewise.
36050         * modules/unictype/property-ideographic-tests (Files): Likewise.
36051         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36052         * modules/unictype/property-ids-trinary-operator-tests (Files):
36053         Likewise.
36054         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36055         * modules/unictype/property-iso-control-tests (Files): Likewise.
36056         * modules/unictype/property-join-control-tests (Files): Likewise.
36057         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36058         * modules/unictype/property-line-separator-tests (Files): Likewise.
36059         * modules/unictype/property-logical-order-exception-tests (Files):
36060         Likewise.
36061         * modules/unictype/property-lowercase-tests (Files): Likewise.
36062         * modules/unictype/property-math-tests (Files): Likewise.
36063         * modules/unictype/property-non-break-tests (Files): Likewise.
36064         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36065         * modules/unictype/property-numeric-tests (Files): Likewise.
36066         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36067         * modules/unictype/property-other-default-ignorable-code-point-tests
36068         (Files): Likewise.
36069         * modules/unictype/property-other-grapheme-extend-tests (Files):
36070         Likewise.
36071         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36072         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36073         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36074         * modules/unictype/property-other-math-tests (Files): Likewise.
36075         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36076         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36077         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36078         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36079         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36080         * modules/unictype/property-private-use-tests (Files): Likewise.
36081         * modules/unictype/property-punctuation-tests (Files): Likewise.
36082         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36083         * modules/unictype/property-radical-tests (Files): Likewise.
36084         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36085         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36086         * modules/unictype/property-space-tests (Files): Likewise.
36087         * modules/unictype/property-terminal-punctuation-tests (Files):
36088         Likewise.
36089         * modules/unictype/property-test-tests (Files): Likewise.
36090         * modules/unictype/property-titlecase-tests (Files): Likewise.
36091         * modules/unictype/property-unassigned-code-value-tests (Files):
36092         Likewise.
36093         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36094         * modules/unictype/property-uppercase-tests (Files): Likewise.
36095         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36096         * modules/unictype/property-white-space-tests (Files): Likewise.
36097         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36098         * modules/unictype/property-xid-start-tests (Files): Likewise.
36099         * modules/unictype/property-zero-width-tests (Files): Likewise.
36100         * modules/unictype/scripts-tests (Files): Likewise.
36101         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36102         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36103         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36104         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36105         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36106         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36107         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36108         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36109         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36110         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36111         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36112         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36113         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36114         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36115         * modules/uninorm/composition-tests (Files): Likewise.
36116         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36117         * modules/uninorm/decomposition-tests (Files): Likewise.
36118         * modules/uninorm/filter-tests (Files): Likewise.
36119         * modules/uninorm/nfc-tests (Files): Likewise.
36120         * modules/uninorm/nfd-tests (Files): Likewise.
36121         * modules/uninorm/nfkc-tests (Files): Likewise.
36122         * modules/uninorm/nfkd-tests (Files): Likewise.
36123         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36124         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36125         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36126         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36127         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36128         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36129         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36130         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36131         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36132         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36133         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36134         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36135         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36136         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36137         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36138         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36139         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36140         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36141         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36142         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36143         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36144         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36145         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36146         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36147         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36148         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36149         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36150         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36151         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36152         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36153         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36154         * modules/uniwidth/u8-width-tests (Files): Likewise.
36155         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36156         * modules/uniwidth/u16-width-tests (Files): Likewise.
36157         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36158         * modules/uniwidth/u32-width-tests (Files): Likewise.
36159         * modules/uniwidth/width-tests (Files): Likewise.
36160         * modules/unlink-tests (Files): Likewise.
36161         * modules/unsetenv-tests (Files): Likewise.
36162         * modules/usleep-tests (Files): Likewise.
36163         * modules/utimens-tests (Files): Likewise.
36164         * modules/utimensat-tests (Files): Likewise.
36165         * modules/vasnprintf-posix-tests (Files): Likewise.
36166         * modules/vasnprintf-tests (Files): Likewise.
36167         * modules/vasprintf-posix-tests (Files): Likewise.
36168         * modules/vasprintf-tests (Files): Likewise.
36169         * modules/vdprintf-posix-tests (Files): Likewise.
36170         * modules/vfprintf-posix-tests (Files): Likewise.
36171         * modules/vprintf-posix-tests (Files): Likewise.
36172         * modules/vsnprintf-posix-tests (Files): Likewise.
36173         * modules/vsnprintf-tests (Files): Likewise.
36174         * modules/vsprintf-posix-tests (Files): Likewise.
36175         * modules/wcrtomb-tests (Files): Likewise.
36176         * modules/wcsnrtombs-tests (Files): Likewise.
36177         * modules/wcsrtombs-tests (Files): Likewise.
36178         * modules/wctype-tests (Files): Likewise.
36179         * modules/wcwidth-tests (Files): Likewise.
36180         * modules/xmemdup0-tests (Files): Likewise.
36181         * modules/xprintf-posix-tests (Files): Likewise.
36182         * modules/xvasprintf-tests (Files): Likewise.
36183
36184 2009-12-24  Eric Blake  <ebb9@byu.net>
36185
36186         test-nanosleep: fix typo
36187         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36188         patch.
36189         Reported by Bruno Haible.
36190
36191 2009-12-24  Bruno Haible  <bruno@clisp.org>
36192
36193         Reduce namespace pollution on glibc systems.
36194         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36195         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36196         systems.
36197         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36198         <getopt.h> on glibc systems.
36199         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36200         systems.
36201         * lib/fcntl.c: Include <unistd.h> here instead.
36202
36203 2009-12-24  Bruno Haible  <bruno@clisp.org>
36204
36205         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36206
36207 2009-12-24  Eric Blake  <ebb9@byu.net>
36208
36209         tests: add signature checks
36210         * tests/signature.h (SIGNATURE_CHECK): New file.
36211         * modules/atexit-tests (Files): Use it.
36212         * modules/btowc-tests (Files): Likewise.
36213         * modules/canonicalize-lgpl-tests (Files): Likewise.
36214         * modules/ceilf-tests (Files): Likewise.
36215         * modules/ceill-tests (Files): Likewise.
36216         * modules/chown-tests (Files): Likewise.
36217         * modules/dprintf-posix-tests (Files): Likewise.
36218         * modules/dup2-tests (Files): Likewise.
36219         * modules/dup3-tests (Files): Likewise.
36220         * modules/duplocale-tests (Files): Likewise.
36221         * modules/fchdir-tests (Files): Likewise.
36222         * modules/fcntl-tests (Files): Likewise.
36223         * modules/fdopendir-tests (Files): Likewise.
36224         * modules/fflush-tests (Files): Likewise.
36225         * modules/flock-tests (Files): Likewise.
36226         * modules/floorf-tests (Files): Likewise.
36227         * modules/floorl-tests (Files): Likewise.
36228         * modules/fnmatch-tests (Files): Likewise.
36229         * modules/fopen-tests (Files): Likewise.
36230         * modules/fprintf-posix-tests (Files): Likewise.
36231         * modules/freopen-tests (Files): Likewise.
36232         * modules/frexp-nolibm-tests (Files): Likewise.
36233         * modules/frexp-tests (Files): Likewise.
36234         * modules/frexpl-nolibm-tests (Files): Likewise.
36235         * modules/frexpl-tests (Files): Likewise.
36236         * modules/fseek-tests (Files): Likewise.
36237         * modules/fseeko-tests (Files): Likewise.
36238         * modules/fsync-tests (Files): Likewise.
36239         * modules/ftell-tests (Files): Likewise.
36240         * modules/ftello-tests (Files): Likewise.
36241         * modules/futimens-tests (Files): Likewise.
36242         * modules/getaddrinfo-tests (Files): Likewise.
36243         * modules/getcwd-tests (Files): Likewise.
36244         * modules/getdelim-tests (Files): Likewise.
36245         * modules/getdtablesize-tests (Files): Likewise.
36246         * modules/getgroups-tests (Files): Likewise.
36247         * modules/gethostname-tests (Files): Likewise.
36248         * modules/getline-tests (Files): Likewise.
36249         * modules/getopt-posix-tests (Files): Likewise.
36250         * modules/gettimeofday-tests (Files): Likewise.
36251         * modules/glob-tests (Files): Likewise.
36252         * modules/iconv-tests (Files): Likewise.
36253         * modules/inet_ntop-tests (Files): Likewise.
36254         * modules/inet_pton-tests (Files): Likewise.
36255         * modules/isblank-tests (Files): Likewise.
36256         * modules/lchown-tests (Files): Likewise.
36257         * modules/ldexpl-tests (Files): Likewise.
36258         * modules/link-tests (Files): Likewise.
36259         * modules/linkat-tests (Files): Likewise.
36260         * modules/lseek-tests (Files): Likewise.
36261         * modules/lstat-tests (Files): Likewise.
36262         * modules/mbrtowc-tests (Files): Likewise.
36263         * modules/mbsinit-tests (Files): Likewise.
36264         * modules/mbsnrtowcs-tests (Files): Likewise.
36265         * modules/mbsrtowcs-tests (Files): Likewise.
36266         * modules/memchr-tests (Files): Likewise.
36267         * modules/memcmp-tests (Files): Likewise.
36268         * modules/memmem-tests (Files): Likewise.
36269         * modules/memrchr-tests (Files): Likewise.
36270         * modules/mkdir-tests (Files): Likewise.
36271         * modules/mkfifo-tests (Files): Likewise.
36272         * modules/mkfifoat-tests (Files): Likewise.
36273         * modules/mknod-tests (Files): Likewise.
36274         * modules/nanosleep-tests (Files): Likewise.
36275         * modules/nl_langinfo-tests (Files): Likewise.
36276         * modules/obstack-printf-tests (Files): Likewise.
36277         * modules/open-tests (Files): Likewise.
36278         * modules/openat-tests (Files): Likewise.
36279         * modules/perror-tests (Files): Likewise.
36280         * modules/pipe2-tests (Files): Likewise.
36281         * modules/poll-tests (Files): Likewise.
36282         * modules/popen-tests (Files): Likewise.
36283         * modules/posix_spawn-tests (Files): Likewise.
36284         * modules/posix_spawnp-tests (Files): Likewise.
36285         * modules/pread-tests (Files): Likewise.
36286         * modules/printf-posix-tests (Files): Likewise.
36287         * modules/pty-tests (Files): Likewise.
36288         * modules/random_r-tests (Files): Likewise.
36289         * modules/rawmemchr-tests (Files): Likewise.
36290         * modules/readlink-tests (Files): Likewise.
36291         * modules/remove-tests (Files): Likewise.
36292         * modules/rename-tests (Files): Likewise.
36293         * modules/renameat-tests (Files): Likewise.
36294         * modules/rmdir-tests (Files): Likewise.
36295         * modules/round-tests (Files): Likewise.
36296         * modules/roundf-tests (Files): Likewise.
36297         * modules/roundl-tests (Files): Likewise.
36298         * modules/select-tests (Files): Likewise.
36299         * modules/setenv-tests (Files): Likewise.
36300         * modules/sigaction-tests (Files): Likewise.
36301         * modules/sleep-tests (Files): Likewise.
36302         * modules/snprintf-posix-tests (Files): Likewise.
36303         * modules/snprintf-tests (Files): Likewise.
36304         * modules/sprintf-posix-tests (Files): Likewise.
36305         * modules/stat-tests (Files): Likewise.
36306         * modules/strcasestr-tests (Files): Likewise.
36307         * modules/strchrnul-tests (Files): Likewise.
36308         * modules/strerror-tests (Files): Likewise.
36309         * modules/strsignal-tests (Files): Likewise.
36310         * modules/strstr-tests (Files): Likewise.
36311         * modules/strtod-tests (Files): Likewise.
36312         * modules/strverscmp-tests (Files): Likewise.
36313         * modules/symlink-tests (Files): Likewise.
36314         * modules/symlinkat-tests (Files): Likewise.
36315         * modules/times-tests (Files): Likewise.
36316         * modules/trunc-tests (Files): Likewise.
36317         * modules/truncf-tests (Files): Likewise.
36318         * modules/truncl-tests (Files): Likewise.
36319         * modules/tsearch-tests (Files): Likewise.
36320         * modules/uname-tests (Files): Likewise.
36321         * modules/unlink-tests (Files): Likewise.
36322         * modules/unsetenv-tests (Files): Likewise.
36323         * modules/usleep-tests (Files): Likewise.
36324         * modules/utimensat-tests (Files): Likewise.
36325         * modules/vasprintf-tests (Files): Likewise.
36326         * modules/vdprintf-posix-tests (Files): Likewise.
36327         * modules/vfprintf-posix-tests (Files): Likewise.
36328         * modules/vprintf-posix-tests (Files): Likewise.
36329         * modules/vsnprintf-posix-tests (Files): Likewise.
36330         * modules/vsnprintf-tests (Files): Likewise.
36331         * modules/vsprintf-posix-tests (Files): Likewise.
36332         * modules/wcrtomb-tests (Files): Likewise.
36333         * modules/wcsnrtombs-tests (Files): Likewise.
36334         * modules/wcsrtombs-tests (Files): Likewise.
36335         * modules/wcwidth-tests (Files): Likewise.
36336         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36337         * tests/test-isinf.c (isinf): Likewise.
36338         * tests/test-isnan.c (isnan): Likewise.
36339         * tests/test-signbit.c (signbit): Likewise.
36340         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36341         declaration, either as macro or with correct signature.
36342         (select): Ensure function under test is declared with correct
36343         signature in correct header.
36344         * tests/test-atexit.c (atexit): Likewise.
36345         * tests/test-btowc.c (btowc): Likewise.
36346         * tests/test-canonicalize-lgpl.c (realpath)
36347         (canonicalize_file_name): Likewise.
36348         * tests/test-ceilf1.c (ceilf): Likewise.
36349         * tests/test-ceill.c (ceill): Likewise.
36350         * tests/test-chown.c (chown): Likewise.
36351         * tests/test-dprintf-posix.c (dprintf): Likewise.
36352         * tests/test-dup2.c (dup2): Likewise.
36353         * tests/test-dup3.c (dup3): Likewise.
36354         * tests/test-duplocale.c (duplocale): Likewise.
36355         * tests/test-fchdir.c (fchdir): Likewise.
36356         * tests/test-fchownat.c (fchownat): Likewise.
36357         * tests/test-fcntl.c (fcntl): Likewise.
36358         * tests/test-fdopendir.c (fdopendir): Likewise.
36359         * tests/test-fflush.c (fflush): Likewise.
36360         * tests/test-flock.c (flock): Likewise.
36361         * tests/test-floorf1.c (floorf): Likewise.
36362         * tests/test-floorl.c (floorl): Likewise.
36363         * tests/test-fnmatch.c (fnmatch): Likewise.
36364         * tests/test-fopen.c (fopen): Likewise.
36365         * tests/test-fprintf-posix.c (fprintf): Likewise.
36366         * tests/test-freopen.c (freopen): Likewise.
36367         * tests/test-frexp.c (frexp): Likewise.
36368         * tests/test-frexpl.c (frexpl): Likewise.
36369         * tests/test-fseek.c (fseek): Likewise.
36370         * tests/test-fseeko.c (fseeko): Likewise.
36371         * tests/test-fstatat.c (fstatat): Likewise.
36372         * tests/test-fsync.c (fsync): Likewise.
36373         * tests/test-ftell.c (ftell): Likewise.
36374         * tests/test-ftello.c (ftello): Likewise.
36375         * tests/test-futimens.c (futimens): Likewise.
36376         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36377         (gai_strerror): Likewise.
36378         * tests/test-getcwd.c (getcwd): Likewise.
36379         * tests/test-getdelim.c (getdelim): Likewise.
36380         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36381         * tests/test-getgroups.c (getgroups): Likewise.
36382         * tests/test-gethostname.c (gethostname): Likewise.
36383         * tests/test-getline.c (getline): Likewise.
36384         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36385         Likewise.
36386         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36387         * tests/test-glob.c (glob, globfree): Likewise.
36388         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36389         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36390         * tests/test-inet_pton.c (inet_pton): Likewise.
36391         * tests/test-isblank.c (isblank): Likewise.
36392         * tests/test-lchown.c (lchown): Likewise.
36393         * tests/test-ldexpl.c (ldexpl): Likewise.
36394         * tests/test-link.c (link): Likewise.
36395         * tests/test-linkat.c (linkat): Likewise.
36396         * tests/test-lseek.c (lseek): Likewise.
36397         * tests/test-lstat.c (lstat): Likewise.
36398         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36399         * tests/test-mbsinit.c (mbsinit): Likewise.
36400         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36401         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36402         * tests/test-memchr.c (memchr): Likewise.
36403         * tests/test-memcmp.c (memcmp): Likewise.
36404         * tests/test-memmem.c (memmem): Likewise.
36405         * tests/test-memrchr.c (memrchr): Likewise.
36406         * tests/test-mkdir.c (mkdir): Likewise.
36407         * tests/test-mkdirat.c (mkdirat): Likewise.
36408         * tests/test-mkfifo.c (mkfifo): Likewise.
36409         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36410         * tests/test-mknod.c (mknod): Likewise.
36411         * tests/test-nanosleep.c (nanosleep): Likewise.
36412         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36413         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36414         Likewise.
36415         * tests/test-open.c (open): Likewise.
36416         * tests/test-openat.c (openat): Likewise.
36417         * tests/test-perror.c (perror): Likewise.
36418         * tests/test-pipe2.c (pipe2): Likewise.
36419         * tests/test-poll.c (poll): Likewise.
36420         * tests/test-popen.c (popen, pclose): Likewise.
36421         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36422         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36423         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36424         (posix_spawn_file_actions_destroy)
36425         (posix_spawn_file_actions_addclose)
36426         (posix_spawn_file_actions_addopen)
36427         (posix_spawn_file_actions_adddup2): Likewise.
36428         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36429         * tests/test-pread.c (pread): Likewise.
36430         * tests/test-printf-posix.c (printf): Likewise.
36431         * tests/test-pty.c (openpty, forkpty): Likewise.
36432         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36433         (random_r): Likewise.
36434         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36435         * tests/test-readlink.c (readlink): Likewise.
36436         * tests/test-remove.c (remove): Likewise.
36437         * tests/test-rename.c (rename): Likewise.
36438         * tests/test-renameat.c (renameat): Likewise.
36439         * tests/test-rmdir.c (rmdir): Likewise.
36440         * tests/test-round1.c (round): Likewise.
36441         * tests/test-roundf1.c (roundf): Likewise.
36442         * tests/test-roundl.c (roundl): Likewise.
36443         * tests/test-setenv.c (setenv): Likewise.
36444         * tests/test-sigaction.c (sigaction): Likewise.
36445         * tests/test-sleep.c (sleep): Likewise.
36446         * tests/test-snprintf.c (snprintf): Likewise.
36447         * tests/test-sprintf-posix.c (sprintf): Likewise.
36448         * tests/test-stat.c (stat): Likewise.
36449         * tests/test-stpncpy.c (stpncpy): Likewise.
36450         * tests/test-strcasestr.c (strcasestr): Likewise.
36451         * tests/test-strchrnul.c (strchrnul): Likewise.
36452         * tests/test-strerror.c (strerror): Likewise.
36453         * tests/test-strsignal.c (strsignal): Likewise.
36454         * tests/test-strstr.c (strstr): Likewise.
36455         * tests/test-strtod.c (strtod): Likewise.
36456         * tests/test-strverscmp.c (strverscmp): Likewise.
36457         * tests/test-symlink.c (symlink): Likewise.
36458         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36459         * tests/test-times.c (times): Likewise.
36460         * tests/test-trunc1.c (trunc): Likewise.
36461         * tests/test-truncf1.c (truncf): Likewise.
36462         * tests/test-truncl.c (truncl): Likewise.
36463         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36464         Likewise.
36465         * tests/test-uname.c (uname): Likewise.
36466         * tests/test-unlink.c (unlink): Likewise.
36467         * tests/test-unlinkat.c (unlinkat): Likewise.
36468         * tests/test-unsetenv.c (unsetenv): Likewise.
36469         * tests/test-usleep.c (usleep): Likewise.
36470         * tests/test-utimensat.c (utimensat): Likewise.
36471         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36472         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36473         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36474         * tests/test-vprintf-posix.c (vprintf): Likewise.
36475         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36476         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36477         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36478         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36479         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36480         * tests/test-wcwidth.c (wcwidth): Likewise.
36481
36482         build: pull in conditional headers during GNULIB_POSIXCHECK
36483         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36484         definitions from any conditionally-included headers.
36485         * lib/stdlib.in.h (includes): Likewise.
36486         * lib/unistd.in.h (includes): Likewise.
36487
36488 2009-12-24  Bruno Haible  <bruno@clisp.org>
36489
36490         * tests/test-argv-iter.c: Include header file being tested immediately
36491         after config.h.
36492         * tests/test-base64.c: Likewise.
36493         * tests/test-flock.c: Likewise.
36494         * tests/test-fsync.c: Likewise.
36495         * tests/test-getdate.c: Likewise.
36496         * tests/test-getndelim2.c: Likewise.
36497         * tests/test-isfinite.c: Likewise.
36498         * tests/test-isinf.c: Likewise.
36499         * tests/test-strerror.c: Likewise.
36500         * tests/test-strsignal.c: Likewise.
36501
36502 2009-12-23  Eric Blake  <ebb9@byu.net>
36503
36504         unistd: work around cygwin bug
36505         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36506         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36507         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36508
36509 2009-12-23  Bruno Haible  <bruno@clisp.org>
36510
36511         localename: More tests.
36512         * tests/test-localename.c (SIZEOF): New macro.
36513         (categories): New variable.
36514         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36515         test_locale_name_default): Add test w.r.t. thread locale.
36516         (test_locale_name_thread): New function.
36517         (main): Invoke it.
36518
36519         localename: Make aware of thread locale.
36520         * lib/localename.h (gl_locale_name_thread): New declaration.
36521         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36522         behaviour with respect to thread locale.
36523         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36524         <langinfo.h>, glthread/lock.h.
36525         (SIZE_BITS): New macro.
36526         (string_hash): New function.
36527         (struct hash_node): New type.
36528         (HASH_TABLE_SIZE): New macro.
36529         (struniq_hash_table, struniq_lock): New variables.
36530         (struniq): New function.
36531         (gl_locale_name_thread): New function.
36532         (gl_locale_name): Invoke it.
36533         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36534         * modules/localename (Depends-on): Add lock.
36535         Reported by Mike Gran <spk121@yahoo.com>.
36536
36537 2009-12-23  Eric Blake  <ebb9@byu.net>
36538
36539         va-args: new module
36540         * modules/va-args: New file.
36541         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36542         * MODULES.html.sh (Core language properties): Mention it.
36543
36544         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36545         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36546         named alias for __attribute__((__unused__)).
36547         * lib/chown.c: Update client.
36548         * lib/fchmodat.c: Likewise.
36549         * lib/fts.c: Likewise.
36550         * lib/getdate.y: Likewise.
36551         * lib/getgroups.c: Likewise.
36552         * lib/getopt.c: Likewise.
36553         * lib/getugroups.c: Likewise.
36554         * lib/mkdir.c: Likewise.
36555         * lib/mkfifo.c: Likewise.
36556         * lib/mkfifoat.c: Likewise.
36557         * lib/mknod.c: Likewise.
36558         * lib/mknodat.c: Likewise.
36559         * lib/readlink.c: Likewise.
36560         * lib/se-context.in.h: Likewise.
36561         * lib/se-selinux.in.h: Likewise.
36562         * lib/sockets.c: Likewise.
36563         * lib/symlink.c: Likewise.
36564         * lib/symlinkat.c: Likewise.
36565         * lib/unicodeio.c: Likewise.
36566         * lib/unistr.h: Likewise.
36567         * tests/test-areadlink.c: Likewise.
36568         * tests/test-areadlinkat.c: Likewise.
36569         * tests/test-filenamecat.c: Likewise.
36570         * tests/test-fseeko.c: Likewise.
36571         * tests/test-ftello.c: Likewise.
36572         * tests/test-getdate.c: Likewise.
36573         * tests/test-getgroups.c: Likewise.
36574         * tests/test-gethostname.c: Likewise.
36575         * tests/test-quotearg.c: Likewise.
36576         * tests/test-version-etc.c: Likewise.
36577         * tests/test-xalloc-die.c: Likewise.
36578         * tests/test-xfprintf-posix.c: Likewise.
36579         * tests/test-xprintf-posix.c: Likewise.
36580         * tests/test-xvasprintf.c: Likewise.
36581
36582         tests: avoid compiler warnings
36583         * tests/test-fcntl.c (main): Delete unused parameters.
36584         * tests/test-freopen-safer.c (main): Likewise.
36585         * tests/test-xalloc-die.c (main): Mark unused parameters.
36586         * tests/test-fseeko.c (main): Likewise.
36587         * tests/test-ftello.c (main): Likewise.
36588         * tests/test-nanosleep.c (main): Avoid declaration warning.
36589         * tests/test-sleep.c (main): Likewise.
36590         * tests/test-unsetenv.c (main): Silence warning about string
36591         literal.
36592         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36593
36594 2009-12-23  Bruno Haible  <bruno@clisp.org>
36595
36596         * tests/test-localename.c (test_locale_name): New function, extracted
36597         from main. Also test mixed situations.
36598         (test_locale_name_posix, test_locale_name_environ,
36599         test_locale_name_default): New functions.
36600         (main): Invoke them all.
36601         * modules/localename-tests (configure.ac): Test for newlocale.
36602
36603 2009-12-23  Bruno Haible  <bruno@clisp.org>
36604
36605         unistd: Ensure getcwd gets declared before being overridden.
36606         * lib/unistd.in.h: Conditionally include <io.h>.
36607
36608 2009-12-22  Bruno Haible  <bruno@clisp.org>
36609
36610         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36611         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36612         (gl_WCHAR_H): Invoke it.
36613         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36614         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36615         Reported by Karl Berry <karl@freefriends.org>.
36616
36617 2009-12-22  Eric Blake  <ebb9@byu.net>
36618
36619         math, unistd: avoid redundant includes
36620         * lib/math.in.h (isnan): No need to re-include <math.h>.
36621         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36622
36623         getsubopt: work around cygwin bug
36624         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36625         avoid conflicting with system getsubopt.
36626         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36627         bug.
36628
36629         getopt: synchronize from glibc
36630         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36631         parameter order.  Adjust all callers.
36632         (_getopt_internal_r, main): Adjust quoting in error messages.
36633         Drop considerations for outdated POSIX 1003.2 error message.
36634         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36635         callers.
36636         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36637
36638         test-getopt: test stderr behavior
36639         * modules/getopt-posix-tests (Depends-on): Add dup2.
36640         * tests/test-getopt.c (ASSERT): Avoid stderr.
36641         (main): Move stderr to a temporary file.
36642         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36643         Instead, add parameter to inform caller if output occurred.
36644         (test_getopt): Adjust all existing tests to expect silence, and
36645         add new tests of leading ":".
36646         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36647         glibc shortcomings with leading "-:" or "+:" in optstring.
36648         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36649         Likewise.
36650         * doc/posix-functions/getopt.texi (getopt): Likewise.
36651
36652         test-getopt: enhance test
36653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36654         supports optind=0.
36655         * tests/test-getopt.c (OPTIND_MIN): Move...
36656         * tests/test-getopt.h (OPTIND_MIN): ...here.
36657         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36658         Require that optind=0 works, since modern BSD supports it in
36659         addition to optreset, and since coreutils expects it.
36660         (test_getopt_long_only): New test.
36661         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36662         glibc shortcomings with 'W;', and enforcement of optind=0.
36663         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36664         Likewise.
36665
36666 2009-12-21  Bruno Haible  <bruno@clisp.org>
36667
36668         localename: Improvements for MacOS X and Cygwin.
36669         * lib/localename.h (gl_locale_name_environ): New declaration.
36670         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36671         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36672         (gl_locale_name_posix): Invoke it.
36673         (gl_locale_name_default): Add comments. Use Windows native API also on
36674         Cygwin.
36675
36676 2009-12-21  Bruno Haible  <bruno@clisp.org>
36677
36678         Update list of Win32 locale ids.
36679         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36680         (LANG_SAMI): Renamed from LANG_SAAMI.
36681         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36682         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36683         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36684         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36685         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36686         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36687         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36688         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36689         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36690         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36691         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36692         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36693         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36694         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36695         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36696         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36697         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36698         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36699         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36700         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36701         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36702         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36703         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36704         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36705         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36706         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36707         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36708         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36709         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36710         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36711         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36712         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36713         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36714         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36715         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36716         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36717         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36718         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36719         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36720         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36721         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36722         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36723         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36724         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36725         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36726         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36727         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36728         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36729         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36730         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36731         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36732         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36733         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36734         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36735         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36736         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36737         Add more languages and countries for Sami, Sorbian. Add more countries
36738         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36739         for Pashto. Change country for Syriac, Tswana.
36740
36741 2009-12-21  Eric Blake  <ebb9@byu.net>
36742
36743         test-utimens: avoid spurious failure
36744         * tests/test-chown.h (nap): Factor...
36745         * tests/nap.h: ...into new file.
36746         * tests/test-lchown.h (nap): Avoid duplication.
36747         * tests/test-utimens-common.h (nap): Use shared implementation,
36748         necessary on file systems with 1-second resolution.
36749         * modules/chown-tests (Files): Include new file.
36750         * modules/fdutimensat-tests (Files): Likewise.
36751         * modules/futimens-tests (Files): Likewise.
36752         * modules/lchown-tests (Files): Likewise.
36753         * modules/openat-tests (Files): Likewise.
36754         * modules/utimens-tests (Files): Likewise.
36755         * modules/utimensat-tests (Files): Likewise.
36756
36757 2009-12-19  Eric Blake  <ebb9@byu.net>
36758
36759         futimens, utimensat: work around Linux bug
36760         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36761         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36762         * lib/utimensat.c (rpl_utimensat): Work around it.
36763         * lib/futimens.c (rpl_futimens): Adjust comment.
36764
36765         utimens: work around Linux ctime bug
36766         * lib/utimens.c (detect_ctime_bug): New helper function.
36767         (update_timespec): Differentiate between workaround needed for
36768         this bug vs. what is needed for systems that lack utimensat.
36769         (fdutimens, lutimens): Work around bug.
36770
36771         utimens: check for ctime update
36772         * tests/test-utimens-common.h (check_ctime): Define.
36773         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36774         * tests/test-futimens.h (test_futimens): Likewise.
36775         * tests/test-lutimens.h (test_lutimens): Likewise.
36776         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36778
36779 2009-12-19  Bruno Haible  <bruno@clisp.org>
36780
36781         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36782         * tests/test-dprintf-posix2.sh: New file.
36783         * tests/test-dprintf-posix2.c: New file.
36784         * modules/dprintf-posix-tests (Files): Add them.
36785         (configure.ac): Check for getrlimit and setrlimit.
36786         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36787
36788 2009-12-19  Bruno Haible  <bruno@clisp.org>
36789
36790         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36791         * tests/test-fprintf-posix3.sh: New file.
36792         * tests/test-fprintf-posix3.c: New file.
36793         * modules/fprintf-posix-tests (Files): Add them.
36794         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36795
36796 2009-12-19  Eric Blake  <ebb9@byu.net>
36797
36798         dirfd: fix prototype
36799         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36800         * lib/dirfd.c (dirfd): Likewise.
36801
36802         canonicalize: reduce memory usage
36803         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36804         allocation to size.
36805         Reported by Solar Designer <solar@openwall.com>.
36806
36807 2009-12-19  Bruno Haible  <bruno@clisp.org>
36808
36809         New module attribute 'Applicability'.
36810         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36811         * gnulib-tool: New option --extract-applicability.
36812         (func_usage): Document it.
36813         (sed_extract_prog): Recognize it.
36814         (func_get_applicability): New function.
36815         (func_import): Generalize handling of 'link-warning' module.
36816         * modules/link-warning (Applicability): New section.
36817         * modules/arg-nonnull (Applicability): New section.
36818         Repoted by Simon Josefsson <simon@josefsson.org>.
36819
36820 2009-12-19  Bruno Haible  <bruno@clisp.org>
36821
36822         fflush: tweak
36823         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36824         * lib/fseeko.c (rpl_fseeko): Likewise.
36825
36826 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36827
36828         * lib/gl_list.h: Fix typo in comment.
36829
36830 2009-12-16  Eric Blake  <ebb9@byu.net>
36831
36832         fcntl: use to simplify other modules
36833         * modules/cloexec (Depends-on): Add fcntl.
36834         * modules/fchdir (Depends-on): Likewise.
36835         * modules/fd-safer-flag (Depends-on): Likewise.
36836         * modules/unistd-safer (Depends-on): Likewise.
36837         * modules/dup3 (configure.ac): Set module indicator.
36838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36839         missing.
36840         * lib/fchdir.c (_gl_register_dup): Fix comment.
36841         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36842         * lib/dup-safer.c (dup_safer): Likewise.
36843         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36844         * lib/dup3.c (dup3): Likewise.
36845         * tests/test-fchdir.c (main): Enhance test.
36846         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36847
36848         fcntl: port portions of fcntl to mingw
36849         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36850         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36851         replacement for mingw.
36852         * modules/fcntl (Description): Update.
36853         (Depends-on): Add dup2.
36854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36855         * modules/fcntl-h (Makefile.am): Substitute it.
36856         * lib/fcntl.in.h (fcntl): Update declaration.
36857         (F_DUPFD, F_GETFD): New macros, when needed.
36858         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36859         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36860         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36861         we now guarantee.
36862
36863         fcntl: work around cygwin bug in F_DUPFD
36864         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36865         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36866         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36867         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36868         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36869
36870         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36871         * modules/fcntl (Files): List new files.
36872         (configure.ac): Run a test.
36873         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36874         * lib/fcntl.c (rpl_fcntl): Likewise.
36875         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36876         (gl_FCNTL_H): Always replace fcntl.h.
36877         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36878         * lib/fcntl.in.h (fcntl): Declare replacement.
36879         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36880         needed, plus a witness.
36881         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36882         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36883         * tests/test-fcntl.c: New file.
36884         * modules/fcntl-tests: Likewise.
36885
36886         binary-io: avoid potential compilation warning
36887         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36888         directives.
36889
36890         fflush: avoid compilation error on NetBSD
36891         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36892         between off_t and fpos_t, since the latter is sometimes a struct.
36893         * lib/fseeko.c (rpl_fseeko): Likewise.
36894         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36895
36896 2009-12-15  Eric Blake  <ebb9@byu.net>
36897
36898         fcntl-h, stdio, sys_ioctl: fix declarations
36899         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36900         function must not take arguments.
36901         * lib/sys_ioctl.in.h (ioctl): Likewise.
36902         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36903         (open): Add a link warning.
36904
36905 2009-12-15  Jim Meyering  <meyering@redhat.com>
36906
36907         areadlink, areadlink-with-size: relax license to LGPLv2+
36908         * modules/areadlink (License): Relax to LGPLv2+.
36909         * modules/areadlink-with-size (License): Likewise.
36910
36911 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36912             Bruno Haible  <bruno@clisp.org>
36913
36914         *printf: Fix memory leak.
36915         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36916         * lib/vfprintf.c (vfprintf): Likewise.
36917         * lib/dprintf.c (dprintf): Likewise.
36918         * lib/vdprintf.c (vdprintf): Likewise.
36919
36920 2009-12-14  Eric Blake  <ebb9@byu.net>
36921
36922         accept4: adjust module dependencies
36923         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36924
36925         utimens: one more try at avoiding compiler warning
36926         * lib/utimens.c (lutimens): Lower scope of result.
36927
36928 2009-12-13  Bruno Haible  <bruno@clisp.org>
36929
36930         Move the malloc checking from module 'list' to new module 'xlist'.
36931         * modules/xlist: New file.
36932         * lib/gl_xlist.h: New file.
36933         * lib/gl_xlist.c: New file.
36934         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36935         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36936         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36937         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36938         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36939         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36940         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36941         gl_sortedlist_nx_add): New declarations.
36942         (struct gl_list_implementation): Rename and change methods accordingly.
36943         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36944         (gl_list_nx_create): Renamed from gl_list_create.
36945         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36946         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36947         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36948         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36949         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36950         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36951         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36952         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36953         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36954         gl_list_create_empty.
36955         (gl_list_nx_create): Renamed from gl_list_create.
36956         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36957         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36958         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36959         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36960         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36961         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36962         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36963         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36964         * lib/gl_array_list.c: Don't include xalloc.h.
36965         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36966         NULL upon out-of-memory.
36967         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36968         out-of-memory.
36969         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36970         Change return type to 'int'.
36971         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36972         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36973         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36974         upon out-of-memory.
36975         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36976         upon out-of-memory.
36977         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36978         upon out-of-memory.
36979         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36980         upon out-of-memory.
36981         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36982         out-of-memory.
36983         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36984         Update.
36985         (gl_array_list_implementation): Update.
36986         * lib/gl_carray_list.c: Don't include xalloc.h.
36987         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36988         Return NULL upon out-of-memory.
36989         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36990         out-of-memory.
36991         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36992         Change return type to 'int'.
36993         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36994         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36995         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36996         upon out-of-memory.
36997         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36998         upon out-of-memory.
36999         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37000         out-of-memory.
37001         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37002         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37003         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37004         Update.
37005         (gl_carray_list_implementation): Update.
37006         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37007         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37008         gl_linked_create_empty. Return NULL upon out-of-memory.
37009         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37010         out-of-memory.
37011         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37012         Change return type to 'int'. Return -1 upon out-of-memory.
37013         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37014         out-of-memory.
37015         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37016         upon out-of-memory.
37017         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37018         upon out-of-memory.
37019         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37020         NULL upon out-of-memory.
37021         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37022         upon out-of-memory.
37023         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37024         out-of-memory.
37025         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37026         Update.
37027         * lib/gl_linked_list.c: Don't include xalloc.h.
37028         (gl_linked_list_implementation): Update.
37029         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37030         (add_to_bucket): Change return type to 'int'.
37031         (gl_linkedhash_list_implementation): Update.
37032         * lib/gl_anytree_list1.h (free_subtree): New function.
37033         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37034         gl_tree_create_empty. Return NULL upon out-of-memory.
37035         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37036         Change return type to 'int'. Return -1 upon out-of-memory.
37037         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37038         out-of-memory.
37039         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37040         (gl_tree_remove_node): New function, moved here from
37041         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37042         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37043         Update.
37044         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37045         malloc, not xmalloc. Return NULL upon out-of-memory.
37046         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37047         out-of-memory.
37048         (gl_tree_remove_node_from_tree): New function, extracted from
37049         gl_tree_remove_node.
37050         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37051         upon out-of-memory.
37052         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37053         out-of-memory.
37054         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37055         upon out-of-memory.
37056         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37057         upon out-of-memory.
37058         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37059         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37060         not xmalloc. Return NULL upon out-of-memory.
37061         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37062         out-of-memory.
37063         (gl_tree_remove_node_from_tree): New function, extracted from
37064         gl_tree_remove_node.
37065         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37066         upon out-of-memory.
37067         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37068         out-of-memory.
37069         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37070         upon out-of-memory.
37071         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37072         upon out-of-memory.
37073         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37074         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37075         gl_anytree_list1.h before gl_anyavltree_list2.h.
37076         (gl_avltree_list_implementation): Update.
37077         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37078         gl_anytree_list1.h before gl_anyavltree_list2.h.
37079         (gl_rbtree_list_implementation): Update.
37080         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37081         Change return type to 'int'. Return -1 upon out-of-memory. Use
37082         __builtin_expect.
37083         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37084         (gl_avltreehash_list_implementation): Update.
37085         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37086         (gl_rbtreehash_list_implementation): Update.
37087         * modules/array-list (Depends-on): Remove xalloc.
37088         * modules/carray-list (Depends-on): Likewise.
37089         * modules/linked-list (Depends-on): Likewise.
37090         * modules/linkedhash-list (Depends-on): Likewise.
37091         * modules/avltree-list (Depends-on): Likewise.
37092         * modules/rbtree-list (Depends-on): Likewise.
37093         * modules/avltreehash-list (Depends-on): Likewise.
37094         * modules/rbtreehash-list (Depends-on): Likewise.
37095
37096         * modules/xsublist: New file.
37097         * lib/gl_xsublist.h: New file.
37098         * lib/gl_xsublist.c: New file.
37099         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37100         (gl_sublist_nx_create): New declaration.
37101         * lib/gl_sublist.c: Don't include xalloc.h.
37102         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37103         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37104         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37105         Change return type to 'int'. Return -1 upon out-of-memory.
37106         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37107         upon out-of-memory.
37108         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37109         NULL upon out-of-memory.
37110         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37111         upon out-of-memory.
37112         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37113         NULL upon out-of-memory.
37114         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37115         NULL upon out-of-memory.
37116         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37117         upon out-of-memory.
37118         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37119         (gl_sublist_list_implementation): Update.
37120         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37121         upon out-of-memory.
37122         * modules/sublist (Depends-on): Remove xalloc.
37123
37124         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37125         * tests/test-carray_list.c: Likewise.
37126         * tests/test-linked_list.c: Likewise.
37127         * tests/test-linkedhash_list.c: Likewise.
37128         * tests/test-avltree_list.c: Likewise.
37129         * tests/test-rbtree_list.c: Likewise.
37130         * tests/test-avltreehash_list.c: Likewise.
37131         * tests/test-rbtreehash_list.c: Likewise.
37132         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37133         * modules/carray-list-tests (Makefile.am): Likewise.
37134         * modules/linked-list-tests (Makefile.am): Likewise.
37135         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37136         * modules/avltree-list-tests (Makefile.am): Likewise.
37137         * modules/rbtree-list-tests (Makefile.am): Likewise.
37138         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37139         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37140
37141         * NEWS: Mention the changes.
37142
37143         * lib/clean-temp.c: Include gl_xlist.h.
37144         * modules/clean-temp (Depends-on): Add xlist.
37145
37146         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37147         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37148
37149         * tests/test-array_oset.c: Include gl_xlist.h.
37150         * modules/array-oset-tests (Depends-on): Add xlist.
37151
37152         Reported by José E. Marchesi <jemarch@gnu.org>.
37153
37154 2009-12-13  Bruno Haible  <bruno@clisp.org>
37155
37156         Move the malloc checking from module 'oset' to new module 'xoset'.
37157         * modules/xoset: New file.
37158         * lib/gl_xoset.h: New file.
37159         * lib/gl_xoset.c: New file.
37160         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37161         declarations.
37162         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37163         (struct gl_oset_implementation): Rename and change methods accordingly.
37164         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37165         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37166         'int'. Mark as __warn_unused_result__.
37167         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37168         gl_oset_create_empty.
37169         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37170         'int'.
37171         * lib/gl_array_oset.c: Don't include xalloc.h.
37172         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37173         malloc, not xmalloc.
37174         (grow): Change return type to 'int'. Don't call xalloc_die.
37175         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37176         to 'int'.
37177         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37178         'int'.
37179         (gl_array_oset_implementation): Update.
37180         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37181         gl_tree_create_empty.
37182         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37183         'int'.
37184         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37185         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37186         xmalloc.
37187         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37188         not xmalloc.
37189         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37190         xmalloc.
37191         (gl_avltree_oset_implementation): Update.
37192         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37193         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37194         xmalloc.
37195         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37196         not xmalloc.
37197         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37198         xmalloc.
37199         (gl_rbtree_oset_implementation): Update.
37200         * modules/array-oset (Depends-on): Remove xalloc.
37201         * modules/avltree-oset (Depends-on): Likewise.
37202         * modules/rbtree-oset (Depends-on): Likewise.
37203         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37204         * tests/test-avltree_oset.c: Likewise.
37205         * tests/test-rbtree_oset.c: Likewise.
37206         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37207         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37208         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37209         * NEWS: Mention the change.
37210
37211 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37212
37213         maint.mk: allow a project to override release-prep commands
37214         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37215         commands into a new rule.
37216         (release-prep): New rule.
37217         (release-prep-hook): New overridable variable.
37218
37219 2009-12-13  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37222
37223 2009-12-13  Jim Meyering  <meyering@redhat.com>
37224
37225         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37226         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37227
37228 2009-12-12  Bruno Haible  <bruno@clisp.org>
37229
37230         duplocale: Tweak.
37231         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37232
37233 2009-12-12  Karl Berry  <karl@gnu.org>
37234
37235         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37236
37237 2009-12-12  Bruno Haible  <bruno@clisp.org>
37238
37239         * m4/po.m4: Undo incorrect untabification.
37240
37241 2009-12-12  Bruno Haible  <bruno@clisp.org>
37242
37243         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37244         * modules/c-strtod (Depends-on): Add locale.
37245         * modules/c-strtold (Depends-on): Likewise.
37246
37247 2009-12-12  Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37250
37251 2009-12-11  Eric Blake  <ebb9@byu.net>
37252
37253         setenv: relax requirement in light of POSIX ruling
37254         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37255         not NULL.
37256         * tests/test-setenv.c (main): Relax test.
37257         * tests/test-unsetenv.c (main): Likewise.
37258         * doc/posix-functions/setenv.texi (setenv): Document this.
37259         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37260
37261 2009-12-11  Bruno Haible  <bruno@clisp.org>
37262
37263         New module 'fd-safer-flag'.
37264         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37265         * lib/dup-safer.c (dup_safer_flag): Remove function.
37266         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37267         * lib/fd-safer.c (fd_safer_flag): Remove function.
37268         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37269         * modules/cloexec (configure.ac): Drop indicator macro.
37270         * modules/fd-safer-flag: New file.
37271         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37272         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37273         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37274
37275 2009-12-11  Bruno Haible  <bruno@clisp.org>
37276
37277         Tests for module 'nl_langinfo'.
37278         * modules/nl_langinfo-tests: New file.
37279         * tests/test-nl_langinfo.sh: New file.
37280         * tests/test-nl_langinfo.c: New file.
37281
37282         New module 'nl_langinfo'.
37283         * lib/nl_langinfo.c: New file.
37284         * m4/nl_langinfo.m4: New file.
37285         * modules/nl_langinfo: New file.
37286         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37287
37288 2009-12-11  Bruno Haible  <bruno@clisp.org>
37289
37290         Tests for module 'langinfo'.
37291         * modules/langinfo-tests: New file.
37292         * tests/test-langinfo.c: New file.
37293
37294         New module 'langinfo'.
37295         * lib/langinfo.in.h: New file.
37296         * m4/langinfo_h.m4: New file.
37297         * modules/langinfo: New file.
37298         * doc/posix-headers/langinfo.texi: Mention the new module.
37299
37300 2009-12-11  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/config.charset: Untabify.
37303
37304 2009-12-11  Bruno Haible  <bruno@clisp.org>
37305
37306         * modules/unistd-safer (configure.ac): Drop indicator macro.
37307
37308 2009-12-11  Bruno Haible  <bruno@clisp.org>
37309
37310         Move pipe2-safer code to its own file.
37311         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37312         * lib/pipe-safer.c (pipe2_safer): Remove function.
37313         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37314         (Makefile.am): Add it to lib_SOURCES.
37315
37316 2009-12-10  Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37319
37320 2009-12-10  Bruno Haible  <bruno@clisp.org>
37321
37322         Declare which arguments expect non-NULL values, for GCC and clang.
37323         * build-aux/arg-nonnull.h: New file.
37324         * modules/arg-nonnull: New file.
37325         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37326         (inet_ntop, inet_pton): Use it.
37327         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37328         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37329         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37330         (open, openat): Use it.
37331         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37332         (fnmatch): Use it.
37333         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37334         (getopt, getopt_long, getopt_long_only): Use it.
37335         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37336         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37337         Use it.
37338         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37339         (iconv_open): Use it.
37340         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37341         (strtoimax, strtoumax): Use it.
37342         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37343         (duplocale): Use it.
37344         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37345         (frexp, frexpl): Use it.
37346         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37347         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37348         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37349         (tsearch, tfind, tdelete, twalk): Use it.
37350         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37351         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37352         sigpending): Use it.
37353         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37354         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37355         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37356         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37357         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37358         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37359         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37360         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37361         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37362         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37363         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37364         Use it.
37365         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37366         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37367         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37368         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37369         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37370         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37371         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37372         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37373         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37374         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37375         strtoull, unsetenv): Use it.
37376         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37377         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37378         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37379         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37380         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37381         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37382         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37383         (strcasecmp, strncasecmp): Use it.
37384         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37385         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37386         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37387         rpl_setsockopt): Use it.
37388         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37389         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37390         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37391         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37392         (gettimeofday): Use it.
37393         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37394         (times): Use it.
37395         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37396         (uname): Use it.
37397         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37398         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37399         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37400         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37401         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37402         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37403         unlinkat, write): Use it.
37404         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37405         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37406         * lib/argv-iter.h: Include arg-nonnull.h.
37407         (_ATTRIBUTE_NONNULL_): Remove macro.
37408         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37409         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37410         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37411         optimization.
37412         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37413         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37414         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37415         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37416         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37417         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37418         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37419         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37420         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37421         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37422         * modules/dirent (Depends-on): Add arg-nonnull.
37423         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37424         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37425         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37426         * modules/fnmatch (Depends-on): Add arg-nonnull.
37427         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37428         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37429         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37430         * modules/glob (Depends-on): Add arg-nonnull.
37431         (Makefile.am): Insert arg-nonnull.h into glob.h.
37432         * modules/iconv_open (Depends-on): Add arg-nonnull.
37433         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37434         * modules/inttypes (Depends-on): Add arg-nonnull.
37435         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37436         * modules/locale (Depends-on): Add arg-nonnull.
37437         (Makefile.am): Insert arg-nonnull.h into locale.h.
37438         * modules/math (Depends-on): Add arg-nonnull.
37439         (Makefile.am): Insert arg-nonnull.h into math.h.
37440         * modules/netdb (Depends-on): Add arg-nonnull.
37441         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37442         * modules/search (Depends-on): Add arg-nonnull.
37443         (Makefile.am): Insert arg-nonnull.h into search.h.
37444         * modules/signal (Depends-on): Add arg-nonnull.
37445         (Makefile.am): Insert arg-nonnull.h into signal.h.
37446         * modules/spawn (Depends-on): Add arg-nonnull.
37447         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37448         * modules/stdio (Depends-on): Add arg-nonnull.
37449         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37450         * modules/stdlib (Depends-on): Add arg-nonnull.
37451         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37452         * modules/string (Depends-on): Add arg-nonnull.
37453         (Makefile.am): Insert arg-nonnull.h into string.h.
37454         * modules/strings (Depends-on): Add arg-nonnull.
37455         (Makefile.am): Insert arg-nonnull.h into strings.h.
37456         * modules/sys_socket (Depends-on): Add arg-nonnull.
37457         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37458         * modules/sys_stat (Depends-on): Add arg-nonnull.
37459         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37460         * modules/sys_time (Depends-on): Add arg-nonnull.
37461         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37462         * modules/sys_times (Depends-on): Add arg-nonnull.
37463         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37464         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37465         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37466         * modules/time (Depends-on): Add arg-nonnull.
37467         (Makefile.am): Insert arg-nonnull.h into time.h.
37468         * modules/unistd (Depends-on): Add arg-nonnull.
37469         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37470         * modules/wchar (Depends-on): Add arg-nonnull.
37471         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37472         * modules/argv-iter (Depends-on): Add arg-nonnull.
37473         * tests/test-canonicalize.c (null_ptr): New function.
37474         (main): Use it.
37475         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37476         (main): Use it.
37477         * tests/test-memmem.c (null_ptr): New function.
37478         (main): Use it.
37479         Reported by Jim Meyering.
37480
37481 2009-12-10  Bruno Haible  <bruno@clisp.org>
37482
37483         Use spaces for indentation, not tabs.
37484         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37485         * m4/*.m4: Untabify.
37486         * build-aux/*.h: Untabify.
37487         * tests/**/*.[hc]: Untabify.
37488         * README: New section "Indent with spaces, not TABs", based on
37489         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37490         * NEWS: Mention the change.
37491
37492 2009-12-10  Bruno Haible  <bruno@clisp.org>
37493
37494         pty test: Fix link error.
37495         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37496         test_pty_LDADD.
37497
37498 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37499
37500         * modules/pty: New file.
37501         * modules/pty-tests: New file.
37502         * m4/pty.m4: New file.
37503         * tests/test-pty.c: New file.
37504         * doc/glibc-headers/pty.texi: Modified.
37505         * doc/glibc-functions/forkpty.texi: Modified.
37506         * doc/glibc-functions/openpty.texi: Modified.
37507
37508 2009-12-10  Bruno Haible  <bruno@clisp.org>
37509
37510         Avoid syntax error in C++ mode.
37511         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37512
37513 2009-12-10  Bruno Haible  <bruno@clisp.org>
37514
37515         Use sed with option -e.
37516         * gnulib-tool (func_version, func_emit_copyright_notice,
37517         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37518         option -e to sed.
37519         * modules/link-warning (Makefile.am): Likewise.
37520
37521 2009-12-10  Jim Meyering  <meyering@redhat.com>
37522
37523         mgetgroups: do not write bytes beyond end of malloc'd buffer
37524         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37525         username, we call getgroups with a one-element-shorter buffer,
37526         but still told it the length was original, max_n_groups.
37527
37528 2009-12-09  Eric Blake  <ebb9@byu.net>
37529
37530         cloexec: relax license
37531         * modules/cloexec (Maintainer): Add myself.
37532         (License): Use LGPL, not GPL.
37533
37534         link-warning: optimize generation
37535         * modules/link-warning (Makefile.am): Reduce process usage.
37536
37537 2009-12-09  Bruno Haible  <bruno@clisp.org>
37538
37539         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37540         workaround was added on 2009-11-17.
37541
37542 2009-12-09  Jim Meyering  <meyering@redhat.com>
37543             Bruno Haible  <bruno@clisp.org>
37544
37545         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37546         * modules/link-warning (Makefile.am): Make the comment-removing sed
37547         command more robust in the face of bootstrap-prepended comment lines.
37548
37549 2009-12-09  Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37552         most one group.
37553
37554 2009-12-09  Simon Josefsson <simon@josefsson.org>
37555             Bruno Haible  <bruno@clisp.org>
37556
37557         * build-aux/link-warning.h: Add copyright notice.
37558         * modules/link-warning (Makefile.am): Generate link-warning.h from
37559         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37560         * NEWS: Mention change in link-warning module.
37561         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37562         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37563         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37564         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37565         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37566         * modules/math (Makefile.am): Add dependency to math.h.
37567         * modules/search (Makefile.am): Add dependency to search.h.
37568         * modules/signal (Makefile.am): Add dependency to signal.h.
37569         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37570         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37571         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37572         * modules/string (Makefile.am): Add dependency to string.h.
37573         * modules/strings (Makefile.am): Add dependency to strings.h.
37574         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37575         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37576         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37577         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37578         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37579         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37580         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37581         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37582         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37583
37584 2009-12-09  Bruno Haible  <bruno@clisp.org>
37585
37586         fchdir: Optimize away rpl_fstat when possible.
37587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37588         REPLACE_OPEN_DIRECTORY.
37589         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37590
37591 2009-12-09  Bruno Haible  <bruno@clisp.org>
37592
37593         * lib/fchdir.c: Update comment.
37594
37595 2009-12-09  Bruno Haible  <bruno@clisp.org>
37596
37597         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37598
37599 2009-12-08  Eric Blake  <ebb9@byu.net>
37600
37601         fchdir: avoid memory leak on re-registration.
37602         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37603
37604 2009-12-08  Jim Meyering  <meyering@redhat.com>
37605
37606         init.sh: avoid Solaris 10 /bin/sh portability problem
37607         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37608         sourced script:
37609           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37610           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37611           bar
37612         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37613         and two tests used that idiom.
37614         * tests/init.sh: Update suggested usage comments.
37615         (path_prepend_): New function, to be used in place
37616         of the --src-path=DIR option.
37617         (setup_): Move PATH-prepending code into path_prepend_.
37618         * tests/test-pread.sh: Adapt to new usage.
37619         * tests/test-xalloc-die.sh: Likewise.
37620
37621 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37622
37623         * doc/gnulib.texi (Glibc pty.h): Add.
37624         * doc/glibc-functions/forkpty.texi: Add.
37625         * doc/glibc-functions/openpty.texi: Add.
37626         Suggested by Bruno Haible.
37627
37628 2009-12-08  Eric Blake  <ebb9@byu.net>
37629
37630         fchdir: fix logic bugs
37631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37632         * tests/test-fchdir.c (main): Enhance test.
37633         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37634         is in use.
37635
37636         dup2: fix logic bugs
37637         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37638         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37639         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37640         exists.
37641         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37642
37643 2009-12-07  Eric Blake  <ebb9@byu.net>
37644
37645         unlink: fix m4 detection
37646         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37647
37648         unistd-safer: add unit test
37649         * modules/unistd-safer-tests: New file.
37650         * tests/test-dup-safer.c: Likewise.
37651         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37652         * tests/test-dup2.c (setmode): Likewise.
37653         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37654
37655         cloexec: preserve text vs. binary across dup_cloexec
37656         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37657         mode.
37658         * modules/dup2-tests (Depends-on): Add binary-io.
37659         * modules/cloexec-tests (Depends-on): Likewise.
37660         * tests/test-dup2.c (setmode, is_mode): New helpers.
37661         (main): Add tests that translation mode is preserved.
37662         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37663         Reported by Bruno Haible.
37664
37665         mgetgroups: reduce duplicate listings
37666         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37667         resulting array.
37668         * tests/test-chown.h (test_chown): Simplify client.
37669         * tests/test-lchown.h (test_lchown): Likewise.
37670
37671 2009-12-06  Bruno Haible  <bruno@clisp.org>
37672
37673         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37674         value.
37675
37676 2009-12-06  Bruno Haible  <bruno@clisp.org>
37677
37678         * lib/progname.c: Include stdio.h, stdlib.h.
37679         (set_program_name): Reject a NULL argument.
37680
37681 2009-12-05  Eric Blake  <ebb9@byu.net>
37682
37683         pipe2-safer: new module
37684         * modules/pipe2-safer: New file.
37685         * lib/unistd-safer.h (pipe2_safer): New prototype.
37686         * lib/unistd--.h (pipe2): New wrapper.
37687         * lib/pipe-safer.c (pipe2_safer): New function.
37688         * modules/pipe (Depends-on): Add pipe2-safer.
37689         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37690
37691         stdlib-safer: preserve cloexec flag for mkostemp[s]
37692         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37693         fd_safer_flag.
37694
37695         unistd-safer: allow preservation of cloexec status via flag
37696         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37697         prototypes.
37698         * lib/dup-safer.c (dup_safer_flag): New function.
37699         * lib/fd-safer.c (fd_safer_flag): Likewise.
37700         * modules/cloexec (configure.ac): Set witness.
37701
37702         test-dup2: enhance test
37703         * modules/dup2-tests (Depends-on): Add cloexec.
37704         * tests/test-dup2.c (main): Enhance test.
37705
37706         cloexec: add dup_cloexec
37707         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37708         header and comments.
37709         * lib/cloexec.c (set_cloexec_flag): Add comments.
37710         (dup_cloexec): New function, with mingw implementation borrowed
37711         from...
37712         * lib/w32spawn.h (dup_noinherit): ...here.
37713         * modules/execute (Depends-on): Add cloexec.
37714         * modules/pipe (Depends-on): Likewise.
37715         * modules/cloexec (Depends-on): Add dup2.
37716         * modules/cloexec-tests (Files): New file.
37717         * tests/test-cloexec.c: Likewise.
37718
37719         test-xalloc-die: fix test for mingw
37720         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37721         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37722         directory and .exe suffix off argv[0] output.
37723
37724         test-fseeko: fix test for mingw
37725         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37726         than undefining fseek, so test will pass on mingw.
37727
37728 2009-12-05  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/progname.h (set_program_name): Clarify specification.
37731         * lib/progname.c (set_program_name): Likewise.
37732         Reported by Jim Meyering.
37733
37734 2009-12-05  Jim Meyering  <meyering@redhat.com>
37735
37736         maint.mk: backslash-escape parens in default regexp
37737         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37738         backslash-escape the literal parentheses.
37739
37740         maint.mk: news-date-check: use grep -E
37741         * top/maint.mk (today): Define a Make variable, not a...
37742         (news-date-check): ...shell variable.
37743         (news-date-regexp): Use the Make variable.
37744         Use grep's -E option.  Change the failing diagnostic to mention
37745         the variable, $(news-date-regexp).
37746
37747 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37748
37749         maintainer-makefile: allow customization of NEWS entry format
37750         * top/maint.mk (news-date-regexp): New overridable variable.
37751         (news-date-check): Use it.
37752
37753 2009-12-04  Eric Blake  <ebb9@byu.net>
37754
37755         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37756         * lib/mgetgroups.h (xgetgroups): New prototype.
37757         * lib/mgetgroups.c (xgetgroups): New wrapper.
37758         (mgetgroups): Handle ENOSYS.
37759         * modules/mgetgroups (Depends-on): Add realloc.
37760         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37761
37762         mgetgroups: avoid argument promotion issues with -1
37763         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37764         for invalid gid_t.
37765         * tests/test-chown.h (getegid, test_chown): Likewise.
37766         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37767
37768 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37769
37770         exclude: Fix header file problems.
37771         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37772
37773 2009-12-01  Jim Meyering  <meyering@redhat.com>
37774
37775         fts: fts_open: do not let an empty string cause immediate failure
37776         This is required in support of GNU rm, for which the command
37777         "rm A '' B" must process and remove both A and B, in spite of
37778         the empty string argument.
37779         * lib/fts.c (fts_open): Do not let the presence of an empty string
37780         cause fts_open to fail immediately.  Most fts-using tools must be
37781         able to process all arguments, in order, and can be expected to
37782         diagnose such arguments themselves.
37783
37784 2009-11-30  Eric Blake  <ebb9@byu.net>
37785
37786         utimens: fix compilation error
37787         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37788         Declare variable at right scope.
37789
37790 2009-11-29  Jim Meyering  <meyering@redhat.com>
37791
37792         bootstrap: handle perl-5.11's changed --version output
37793         * build-aux/bootstrap (get_version): Handle perl separately,
37794         since perl-5.11's --version output is different.
37795
37796 2009-11-28  Jim Meyering  <meyering@redhat.com>
37797
37798         userspec: depend on the inttostr module, too
37799         * modules/userspec (Depends-on): Add inttostr.
37800
37801         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37802         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37803         number of MAXUID when it evaluates to (uid_t) -1.
37804         Likewise for group ID.  Reported by Matt McCutchen in
37805         <http://savannah.gnu.org/bugs/?28113>
37806
37807         userspec: reformat to use spaces, not TABs
37808         * lib/userspec.c: Expand TABs to spaces.
37809         Add Emacs' "indent-tabs-mode: nil" hint.
37810
37811 2009-11-27  Eric Blake  <ebb9@byu.net>
37812
37813         getopt-gnu: flush out another BSD bug
37814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37815         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37816         flush out BSD bug.
37817         * tests/test-getopt.h (test_getopt): End lists with NULL.
37818         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37819         (test_getopt_long_posix): Enhance test.
37820         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37821         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37822         getopt-gnu.
37823         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37824         Likewise.
37825
37826 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37827
37828         * modules/idpriv-droptemp-tests (Notice): Fix text.
37829
37830 2009-11-27  Jim Meyering  <meyering@redhat.com>
37831
37832         test-xalloc-die: avoid spurious failure due to libtool argv difference
37833         In a libtool-enabled project, this test would fail due to a difference
37834         in the emitted program name, e.g.,
37835         -test-xalloc-die: memory exhausted
37836         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37837         Use program to avoid that.
37838         * modules/xalloc-die-tests (Depends-on): Add progname.
37839         * tests/test-xalloc-die.c: Include progname.h".
37840         (program_name): Remove decl.
37841         (main): Call set_program_name.
37842         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37843
37844 2009-11-26  Richard Jones  <rjones@redhat.com>
37845
37846         w32sock: leave win32 error in place.
37847         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37848
37849 2009-11-26  Eric Blake  <ebb9@byu.net>
37850
37851         init.sh: suggest to use skip_ and fail_ functions in comments
37852         * tests/init.sh: Add a sentence.
37853
37854 2009-11-25  Bruno Haible  <bruno@clisp.org>
37855
37856         init.sh: add documentation in comments
37857         * tests/init.sh: Add some developer and user documentation.
37858
37859 2009-11-26  Jim Meyering  <meyering@redhat.com>
37860
37861         init.sh: accommodate even those who specify bogus srcdir manually
37862         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37863         configure-time tests to be sanitized, so that there is no need to
37864         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37865         (with no double quotes) suffices.  However, since tests may be
37866         invoked manually, and since you may explicitly set srcdir to the
37867         name of a directory containing spaces, do quote its uses here.
37868         * tests/test-pread.sh: Likewise.
37869         Suggested by Bruno Haible.
37870
37871         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37872         * tests/test-pread.sh: Write no data into the pipe, because
37873         test-pread actually reads none.  This avoids a diagnostic,
37874         "bash: echo: write error: Broken pipe", that arises in the unusual
37875         event something is ignoring SIGPIPE, and might be interpreted
37876         as some sort of failure.  Reported by Bruno Haible.
37877
37878 2009-11-25  Jim Meyering  <meyering@redhat.com>
37879
37880         test-pread: cover failure with ESPIPE and EINVAL
37881         * tests/test-pread.c (main): Test for failure, too.
37882         * tests/test-pread.sh: Invoke with stdin on a pipe.
37883         Suggested by Eric Blake.
37884
37885         pread: improvement and fix
37886         * modules/pread (Depends-on): Depend on lseek, for portability to
37887         e.g., mingw.  Suggested by Eric Blake.
37888         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37889
37890         unistd.in.h: correct declaration of pread
37891         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37892         Reported by Richard W.M. Jones.
37893
37894         test-pread.sh: distribute the test script
37895         * modules/pread-tests (Files): Include test-pread.sh.
37896
37897         test-pread.sh: clean up
37898         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37899         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37900         That is unnecessary, since it's always ".".
37901         Suggestion from Eric Blake.
37902
37903         test-pread.sh: make executable
37904         * tests/test-pread.sh: Set executable bit.
37905         Reported by Eric Blake.
37906
37907         correct typo in test-pread.sh
37908         * tests/test-pread.sh: Add #! line.
37909
37910         test pread
37911         * tests/test-pread.c: New file.
37912         * tests/test-pread.sh: Likewise.
37913         * modules/pread-tests: Likewise.
37914
37915         pread: new module
37916         * modules/pread: New file.
37917         * lib/unistd.in.h (pread): Define/declare.
37918         * lib/pread.c (pread): New file.
37919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37920         * modules/unistd (Makefile.am): Substitute witnesses.
37921         * doc/posix-functions/pread.texi (pread): Update.
37922         * MODULES.html.sh: Add pread.
37923
37924 2009-11-25  Jim Meyering  <meyering@redhat.com>
37925
37926         tests/init.sh: new file to be used via most *.sh tests
37927         * tests/init.sh: New file.
37928
37929 2009-11-25  Eric Blake  <ebb9@byu.net>
37930
37931         utimens: work around older Linux failure with symlinks
37932         * lib/utimens.c (lutimensat_works_really): New variable.
37933         (fdutimens, lutimens): Use it to manage kernels that support
37934         nanosecond times on files, but not on symlinks.
37935         Reported by OndÅ™ej Vašík.
37936
37937         utimes: fix configure grammar
37938         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37939
37940 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37941
37942         regex: Fix fastmap for multibyte character ranges.
37943         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37944         characters when a multibyte character range is included.
37945
37946 2009-11-22  Andy Wingo  <wingo@pobox.com>
37947
37948         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37949         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37950
37951 2009-11-24  Bruno Haible  <bruno@clisp.org>
37952
37953         doc: Most *_l functions exist in MacOS X 10.5.
37954         * doc/posix-functions/duplocale.texi: Update platforms list.
37955         * doc/posix-functions/freelocale.texi: Likewise.
37956         * doc/posix-functions/newlocale.texi: Likewise.
37957         * doc/posix-functions/uselocale.texi: Likewise.
37958         * doc/posix-functions/isalnum_l.texi: Likewise.
37959         * doc/posix-functions/isalpha_l.texi: Likewise.
37960         * doc/posix-functions/isblank_l.texi: Likewise.
37961         * doc/posix-functions/iscntrl_l.texi: Likewise.
37962         * doc/posix-functions/isdigit_l.texi: Likewise.
37963         * doc/posix-functions/isgraph_l.texi: Likewise.
37964         * doc/posix-functions/islower_l.texi: Likewise.
37965         * doc/posix-functions/isprint_l.texi: Likewise.
37966         * doc/posix-functions/ispunct_l.texi: Likewise.
37967         * doc/posix-functions/isspace_l.texi: Likewise.
37968         * doc/posix-functions/isupper_l.texi: Likewise.
37969         * doc/posix-functions/iswalnum_l.texi: Likewise.
37970         * doc/posix-functions/iswalpha_l.texi: Likewise.
37971         * doc/posix-functions/iswblank_l.texi: Likewise.
37972         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37973         * doc/posix-functions/iswctype_l.texi: Likewise.
37974         * doc/posix-functions/iswdigit_l.texi: Likewise.
37975         * doc/posix-functions/iswgraph_l.texi: Likewise.
37976         * doc/posix-functions/iswlower_l.texi: Likewise.
37977         * doc/posix-functions/iswprint_l.texi: Likewise.
37978         * doc/posix-functions/iswpunct_l.texi: Likewise.
37979         * doc/posix-functions/iswspace_l.texi: Likewise.
37980         * doc/posix-functions/iswupper_l.texi: Likewise.
37981         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37982         * doc/posix-functions/isxdigit_l.texi: Likewise.
37983         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37984         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37985         * doc/posix-functions/strcoll_l.texi: Likewise.
37986         * doc/posix-functions/strfmon_l.texi: Likewise.
37987         * doc/posix-functions/strftime_l.texi: Likewise.
37988         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37989         * doc/posix-functions/strxfrm_l.texi: Likewise.
37990         * doc/posix-functions/tolower_l.texi: Likewise.
37991         * doc/posix-functions/toupper_l.texi: Likewise.
37992         * doc/posix-functions/towctrans_l.texi: Likewise.
37993         * doc/posix-functions/towlower_l.texi: Likewise.
37994         * doc/posix-functions/towupper_l.texi: Likewise.
37995         * doc/posix-functions/wcscoll_l.texi: Likewise.
37996         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37997         * doc/posix-functions/wctrans_l.texi: Likewise.
37998         * doc/posix-functions/wctype_l.texi: Likewise.
37999         * doc/glibc-functions/strptime_l.texi: Likewise.
38000         * doc/glibc-functions/strtod_l.texi: Likewise.
38001         * doc/glibc-functions/strtof_l.texi: Likewise.
38002         * doc/glibc-functions/strtol_l.texi: Likewise.
38003         * doc/glibc-functions/strtold_l.texi: Likewise.
38004         * doc/glibc-functions/strtoll_l.texi: Likewise.
38005         * doc/glibc-functions/strtoul_l.texi: Likewise.
38006         * doc/glibc-functions/strtoull_l.texi: Likewise.
38007         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38008         * doc/glibc-functions/wcstod_l.texi: Likewise.
38009         * doc/glibc-functions/wcstof_l.texi: Likewise.
38010         * doc/glibc-functions/wcstol_l.texi: Likewise.
38011         * doc/glibc-functions/wcstold_l.texi: Likewise.
38012         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38013         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38014         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38015
38016 2009-11-24  Bruno Haible  <bruno@clisp.org>
38017
38018         duplocale: Fix logic bug.
38019         * lib/duplocale.c: Don't include <langinfo.h>.
38020         (_NL_LOCALE_NAME): Remove macro.
38021         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38022         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38023
38024 2009-11-23  Jim Meyering  <meyering@redhat.com>
38025
38026         test-update-copyright: don't hard-code /usr/bin/perl
38027         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38028         perl to print the current year.  Gilles Espinasse reported that
38029         the replaced use of perl was hard-coded as /usr/bin/perl.
38030
38031 2009-11-23  Bruno Haible  <bruno@clisp.org>
38032
38033         duplocale: Add support for glibc 2.3.x.
38034         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38035
38036 2009-11-22  Bruno Haible  <bruno@clisp.org>
38037
38038         vasnprintf: Tiny optimization.
38039         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38040         MacOS X.
38041
38042 2009-11-22  Bruno Haible  <bruno@clisp.org>
38043
38044         Tests for module 'duplocale'.
38045         * modules/duplocale-tests: New file.
38046         * tests/test-duplocale.c: New file.
38047
38048         New module 'duplocale'.
38049         * m4/duplocale.m4: New file.
38050         * lib/locale.in.h (duplocale): New declaration.
38051         * lib/duplocale.c: New file.
38052         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38053         gl_LOCALE_H_DEFAULTS): New macros.
38054         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38055         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38056         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38057         REPLACE_DUPLOCALE.
38058         * modules/duplocale: New file.
38059         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38060
38061 2009-11-22  Bruno Haible  <bruno@clisp.org>
38062
38063         * modules/locale-tests (configure.ac): Test for newlocale function.
38064         * tests/test-locale.c: When the system has extended locale functions,
38065         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38066
38067         locale: Make locale_t available when possible.
38068         * lib/locale.in.h: Include <xlocale.h> when it exists.
38069         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38070         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38071         * modules/locale (Depends-on): Add extensions.
38072         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38073         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38074
38075 2009-11-22  Bruno Haible  <bruno@clisp.org>
38076
38077         Add comments.
38078         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38079         invocation.
38080         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38081         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38082         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38083
38084 2009-11-22  Bruno Haible  <bruno@clisp.org>
38085
38086         error: account for the possibility of freopen (stdout).
38087         * lib/error.c: Include <unistd.h>.
38088         (flush_stdout): New function, extracted from error and error_at_line.
38089         Determine stdout's fd dynamically.
38090         (error, error_at_line): Invoke flush_stdout.
38091         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38092         * modules/error (Depends-on): Add unistd.
38093
38094 2009-11-22  Bruno Haible  <bruno@clisp.org>
38095
38096         diffseq: Add comment.
38097         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38098
38099 2009-11-22  Jim Meyering  <meyering@redhat.com>
38100
38101         c-stack: avoid defining an unused static function
38102         * lib/c-stack.c (find_stack_direction): Do not define this function
38103         when it will not be used.
38104
38105         diffseq: avoid spurious gcc warnings
38106         * lib/diffseq.h (IF_LINT2): Define.
38107         (compareseq): Use it to initialize two members of "part".
38108         This avoids two used-uninitialized warnings.
38109
38110 2009-11-21  Jim Meyering  <meyering@redhat.com>
38111
38112         c-stack: avoid "ignoring return value of `write'" warning
38113         * lib/c-stack.c: Include "ignore-value.h".
38114         (die): Explicitly ignore each write return value.
38115         * modules/c-stack (Depends-on): Add ignore-value.
38116
38117 2009-11-21  Bruno Haible  <bruno@clisp.org>
38118
38119         diffseq: reduce scope of variable 'best'.
38120         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38121         variable, earlier used for two different purposes.
38122
38123 2009-11-21  Jim Meyering  <meyering@redhat.com>
38124
38125         diffseq: remove useless assignment to "best"
38126         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38127         assignment.  At that point "best" is already guaranteed to be zero.
38128
38129 2009-11-20  Eric Blake  <ebb9@byu.net>
38130
38131         build: mention ftp redirector in release announcements
38132         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38133         values that used to come from cfg.mk; mention FTP redirect URL.
38134         * build-aux/announce-gen: Mention the mirror list.
38135         Suggested by Karl Berry.
38136
38137         nanosleep: improve port to mingw
38138         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38140         LIB_NANOSLEEP, but only when needed.
38141         * modules/select (Link): Document LIBSOCKET.
38142         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38143         enough.
38144
38145         nanosleep: work around cygwin bug
38146         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38147         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38148         bug.
38149         (getnow): Delete, not needed.
38150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38151         LIB_CLOCK_GETTIME.
38152         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38153         clock-time, gettime.
38154         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38155         bug.
38156         * modules/nanosleep-tests: New test.
38157         * tests/test-nanosleep.c: New file.
38158
38159         sleep: work around cygwin bug
38160         * lib/sleep.c (rpl_sleep): Work around the bug.
38161         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38162         (gl_PREREQ_SLEEP): Delete unused macro.
38163         * modules/sleep (Depends-on): Add verify.
38164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38165         * modules/unistd (Makefile.am): Substitute witness.
38166         * lib/unistd.in.h (sleep): Update prototype.
38167         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38168         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38169         * modules/sleep-tests (Depends-on): Check for alarm.
38170
38171 2009-11-20  Jim Meyering  <meyering@redhat.com>
38172
38173         maint.mk: improve sc_prohibit_magic_number_exit
38174         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38175         so it does not match uses like System.exit(1).
38176         Add comments showing how to correct all offenders.
38177
38178 2009-11-19  Eric Blake  <ebb9@byu.net>
38179
38180         xalloc-die-tests: add missing library
38181         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38182
38183         test-xvasprintf: silence compiler warnings
38184         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38185         empty string from gcc.
38186
38187 2009-11-19  Jim Meyering  <meyering@redhat.com>
38188
38189         xfreopen: new module, from coreutils
38190         * modules/xfreopen: New module.
38191         * lib/xfreopen.c: New file.
38192         * lib/xfreopen.h: New file.
38193         * MODULES.html.sh (File stream based Input/Output"): Add it.
38194
38195 2009-11-19  Eric Blake  <ebb9@byu.net>
38196
38197         manywarnings: depend on warnings
38198         * modules/manywarnings (Depends-on): Add warnings.
38199
38200         build: avoid compiler warnings
38201         * lib/select.c (rpl_select): Delete unused variable.
38202         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38203
38204 2009-11-18  Eric Blake  <ebb9@byu.net>
38205
38206         tests: avoid false negative with --with-packager
38207         * tests/test-version-etc.sh: Discard packager information.
38208         * tests/test-argp-version-etc-1.sh: Likewise.
38209         Reported by Mike Frysinger.
38210
38211         utimens: fix regression on Solaris
38212         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38213         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38214         can only change fd timestamps via futimesat.  Instead, use an
38215         additional witness macro to avoid BSD bug.
38216         Reported by Jim Meyering.
38217
38218 2009-11-17  Eric Blake  <ebb9@byu.net>
38219
38220         usleep: use it to simplify tests
38221         * modules/stat-time-tests (Depends-on): Add usleep.
38222         (configure.ac): Drop usleep check.
38223         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38224         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38225         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38226         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38227         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38228         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38229         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38230         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38231         Likewise.
38232         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38233         * tests/test-lchown.h (nap): Likewise.
38234         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38235         * tests/test-stat-time.c (nap): Likewise.
38236         * tests/test-utimens-common.h (nap): Update comments.
38237
38238         usleep: new module
38239         * modules/usleep: New file.
38240         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38241         * lib/usleep.c (usleep): Likewise.
38242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38243         * modules/unistd (Makefile.am): Substitute witnesses.
38244         * lib/unistd.in.h (usleep): Add declaration.
38245         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38246         * MODULES.html.sh (Date and time): Likewise.
38247         * modules/usleep-tests (Depends-on): New test.
38248         * tests/test-usleep.c: New file.
38249
38250         chown: work around OpenBSD bug
38251         * lib/chown.c (rpl_chown): Work around the bug.
38252         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38253         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38254         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38255         * modules/chown (Depends-on): Add stdbool.
38256         * modules/lchown (Depends-on): Likewise.
38257         * doc/posix-functions/chown.texi (chown): Document the bug.
38258         * doc/posix-functions/lchown.texi (lchown): Likewise.
38259         * tests/test-lchown.h (test_chown): Relax test.
38260
38261         mkstemp: avoid conflict with C++ keyword template
38262         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38263         * lib/mkostemp.c (mkostemp): Likewise.
38264         * lib/mkostemps.c (mkostemps): Likewise.
38265         * lib/mkstemp.c (mkstemp): Likewise.
38266         * lib/mkstemps.c (mkstemps): Likewise.
38267
38268         xalloc-die-tests: optimize
38269         * tests/test-xalloc-die.sh: Reduce number of processes.
38270
38271 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38272
38273         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38274         patch from ludo@gnu.org (Ludovic Courtès).
38275
38276 2009-11-17  Jim Meyering  <meyering@redhat.com>
38277
38278         version-etc: use proper license string
38279         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38280         * modules/version-etc-fsf: Likewise.
38281
38282 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38283
38284         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38285         printed to stdout.  Deal with EOL differences.
38286
38287 2009-11-17  Eric Blake  <ebb9@byu.net>
38288
38289         unsetenv: work around Solaris bug
38290         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38291         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38292         Reported by Jim Meyering.
38293
38294         vasnprintf: avoid compiler warnings
38295         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38296         variables.
38297         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38298
38299 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38300
38301         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38302         settings since xalloc-die is no longer the self test,
38303         xalloc-die.sh is.
38304
38305 2009-11-17  Jim Meyering  <meyering@redhat.com>
38306
38307         test-xalloc-die.sh: make the code agree with the commit log
38308         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38309         at the end, just in case you happen to have a test-xalloc-die
38310         program in some other PATH directory.
38311
38312         test-xalloc-die.sh: fix a portability bug
38313         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38314         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38315         Otherwise, argv[0] (as often seen in diagnostics) would be too
38316         system-dependent, sometimes with, and sometimes without the leading "./".
38317
38318         version-etc-fsf: relax license to LGPLv3+
38319         * modules/version-etc-fsf (License): Relax license.
38320
38321 2009-11-16  Eric Blake  <ebb9@byu.net>
38322
38323         xalloc-die-tests: avoid printing null pointer
38324         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38325         shell script.
38326         * tests/test-xalloc-die.c (program_name): Declare.
38327         * tests/test-xalloc-die.sh (tmpfiles): New file.
38328
38329         setenv, unsetenv: work around various bugs
38330         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38331         (setenv) [HAVE_SETENV]: Work around bugs.
38332         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38333         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38334         for bugs.
38335         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38336         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38338         * modules/stdlib (Makefile.am): Update substitutions.
38339         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38340         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38341         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38342         * modules/setenv-tests: New test.
38343         * modules/unsetenv-tests: Likewise.
38344         * tests/test-setenv.c: New file.
38345         * tests/test-unsetenv.c: Likewise.
38346
38347 2009-11-16  Jim Meyering  <meyering@redhat.com>
38348
38349         version-etc: relax license to LGPLv3+
38350         * modules/version-etc (License): Relax license.
38351
38352         better AC_REQUIRE expanded-before-required-warning avoidance
38353         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38354         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38355         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38356         which is no longer needed.
38357
38358 2009-11-16  Eric Blake  <ebb9@byu.net>
38359
38360         test-freading: clean up temporary file
38361         * tests/test-freading.c (main): Remove file on success, and use
38362         ASSERT more liberally.
38363         Reported by Jim Meyering.
38364
38365 2009-11-16  Jim Meyering  <meyering@redhat.com>
38366
38367         avoid new AC_REQUIRE expanded-before-required warnings
38368         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38369         merely using it.
38370         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38371         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38372
38373 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38374
38375         * tests/test-xalloc-die.c: New file.
38376         * modules/xalloc-die-tests: New file.
38377         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38378         XFAIL_TESTS so it can be appended by modules.
38379
38380 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38381
38382         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38383         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38384
38385 2009-11-14  Eric Blake  <ebb9@byu.net>
38386
38387         fnmatch: avoid compiler warning
38388         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38389         to silence compiler warning about mismatch signedness in ?:.
38390         Reported by Robert Millan.
38391
38392         intprops: add double-inclusion guard
38393         * lib/intprops.h: Allow idempotent includes.
38394         Suggested by Bruce Korb.
38395
38396         openat: detect Solaris fchownat bug
38397         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38398         penalizing glibc chownat when only lchownat is broken.
38399         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38400         trailing slash bugs.
38401         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38402         * modules/openat-tests (Files): Include more files.
38403         (Depends-on): Add mgetgroups, sleep, stat-time.
38404         (configure.ac): Add additional checks.
38405         (Makefile.am): Build new test.
38406         * tests/test-fchownat.c: New file.
38407
38408         lchown: detect Solaris and FreeBSD bug
38409         * lib/lchown.c (rpl_lchown): Work around bug.
38410         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38412         * modules/unistd (Makefile.am): Populate it.
38413         * lib/unistd.in.h (lchown): Update declaration.
38414         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38415         * modules/lchown-tests: New file.
38416         * tests/test-lchown.h (test_lchown): Likewise.
38417         * tests/test-lchown.c (main): Likewise.
38418
38419         chown: detect Solaris and FreeBSD bug
38420         * lib/chown.c (rpl_chown): Work around bug.
38421         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38422         (gl_PREREQ_CHOWN): Delete.
38423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38424         * modules/unistd (Makefile.am): Populate it.
38425         * lib/unistd.in.h (chown): Update declaration.
38426         * lib/lchown.c (chown): Update client.
38427         * modules/lchown (Depends-on): Add lstat.
38428         * doc/posix-functions/chown.texi (chown): Document the bug.
38429         * doc/posix-functions/getgroups.texi (getgroups): Document
38430         getgroups pitfall.
38431         * modules/chown-tests: New file.
38432         * tests/test-chown.h (test_chown): Likewise.
38433         * tests/test-chown.c (main): Likewise.
38434
38435 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38436
38437         gnulib-tool: correctly detect absence of m4 directories
38438         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38439
38440 2009-11-14  Jim Meyering  <meyering@redhat.com>
38441
38442         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38443         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38444
38445 2009-11-14  John W. Eaton  <jwe@gnu.org>
38446
38447         strftime.h: wrap funtion declaration in extern "C" block
38448         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38449
38450 2009-11-13  Eric Blake  <ebb9@byu.net>
38451
38452         getgroups: avoid compiler warning
38453         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38454
38455         getgroups: work around FreeBSD bug
38456         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38457         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38458         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38459         * tests/test-getgroups.c (main): Fix buffer overrun.
38460
38461         getgroups: avoid compilation failure
38462         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38463         * modules/getgroups (Depends-on): Add stdint.
38464
38465 2009-11-13  Jim Meyering  <meyering@redhat.com>
38466
38467         test-getgroups: avoid compilation failure
38468         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38469
38470 2009-11-13  Eric Blake  <ebb9@byu.net>
38471
38472         mgetgroups: new module, taken from coreutils
38473         * modules/mgetgroups: New file.
38474         * lib/mgetgroups.h: Likewise.
38475         * lib/mgetgroups.c (mgetgroups): Likewise.
38476         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38477         * MODULES.html.sh (Users and groups): Mention it.
38478
38479         getgroups: don't expose GETGROUPS_T to user
38480         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38481         an element at a time if GETGROUPS_T is wrong size.
38482         * lib/getugroups.h (getugroups): Change signature.
38483         * lib/unistd.in.h (getgroups): Likewise.
38484         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38485         signature needs fixing.
38486         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38487         AC_TYPE_GETGROUPS.
38488         * modules/group-member (Depends-on): Add getgroups.
38489         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38490         (group_member): Rely on getgroups replacement.
38491         * lib/getugroups.c (getugroups): Use gid_t.
38492         * tests/test-getgroups.c (main): Likewise.
38493         * NEWS: Mention the signature change.
38494         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38495         problem with signature.
38496         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38497         GETGROUPS_T is still useful for setgroups.
38498
38499         getgroups, getugroups: provide stubs for mingw
38500         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38501         * lib/getugroups.c (getugroups): Likewise.
38502         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38503         function.  Modernize replacement scheme.
38504         (gl_PREREQ_GETGROUPS): Delete.
38505         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38506         * modules/getgroups (configure.ac): Declare witness.
38507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38508         * modules/unistd (Depends-on): Substitute witness.
38509         * lib/unistd.in.h (getgroups): Declare replacement.
38510
38511         getgroups: avoid calling exit
38512         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38513         drop xalloc.
38514         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38515         dependencies.
38516         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38517         exiting, in the rare case of malloc failure.
38518
38519         getgroups: fix logic error
38520         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38521         has more than 20 groups.
38522         * modules/getgroups-tests: New test.
38523         * tests/test-getgroups.c: New file.
38524
38525 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38526
38527         * tests/test-base64.c: Improve.
38528
38529 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38530
38531         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38532         Blake <ebb9@byu.net>.
38533
38534 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38535
38536         * tests/test-xvasprintf.c: Add %s%s related checks.
38537
38538 2009-11-12  Eric Blake  <ebb9@byu.net>
38539
38540         version-etc: match standards.texi style
38541         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38542         and use <> only for URLs.
38543
38544 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38545
38546         fts: do not fail on a submount during traversal
38547         * lib/fts.c (fts_build): Read the stat info again after opening
38548         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38549         Original report at http://bugzilla.redhat.com/501848.
38550
38551 2009-11-12  Jim Meyering  <meyering@redhat.com>
38552
38553         bootstrap: sync from coreutils
38554         * build-aux/bootstrap (bootstrap_epilogue): New function.
38555         Use git_modules_config in one more place.  This make bootstrap's
38556         --gnulib-srcdir option more useful for testing.
38557
38558         bootstrap: generalize autoheader check
38559         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38560         AC_CONFIG_HEADERS.
38561
38562 2009-11-11  Eric Blake  <ebb9@byu.net>
38563
38564         mkfifoat: use new modules for Solaris and BSD bugs
38565         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38566         * lib/mkfifoat.c (mknodat): Split...
38567         * lib/mknodat.c (mknodat): ...into new file.
38568         * modules/mkfifoat (Files): Ship new file.
38569         (Depends-on): Add mkfifo, mknod.
38570         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38571         (Depends-on): Add symlink.
38572         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38573         redundant with test_mkfifo.h.
38574         (do_mkfifoat, do_mknodat): New helpers.
38575
38576         mknod: new module
38577         * modules/mknod: New file.
38578         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38579         * lib/mknod.c (mknod): Likewise.
38580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38581         defaults.
38582         * modules/sys_stat (Makefile.am): Substitute them.
38583         * lib/sys_stat.in.h (mknod): Declare replacement.
38584         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38585         Document it.
38586         * doc/posix-functions/mknod.texi (mknod): Likewise.
38587         * modules/mknod-tests: New test.
38588         * tests/test-mknod.c: Likewise.
38589
38590         mkfifo: new module
38591         * modules/mkfifo: New file.
38592         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38593         * lib/mkfifo.c (mkfifo): Likewise.
38594         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38595         defaults.
38596         * modules/sys_stat (Makefile.am): Substitute them.
38597         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38598         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38599         Document it.
38600         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38601         * modules/mkfifo-tests: New test.
38602         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38603         from test-mkfifoat.c.
38604         * tests/test-mkfifo.c: New file.
38605
38606         readlink: detect FreeBSD bug
38607         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38608         slash on symlink.
38609         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38610         * tests/test-readlink.h (test_readlink): Enhance test.
38611
38612         symlink: detect FreeBSD bug
38613         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38614         slash on symlink.
38615         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38616         * tests/test-symlink.h (test_symlink): Enhance test.
38617
38618 2009-11-10  Eric Blake  <ebb9@byu.net>
38619
38620         link: detect FreeBSD bug
38621         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38622         symlink.
38623         * doc/posix-functions/link.texi (link): Document the bug.
38624         * tests/test-link.h (test_link): Enhance test.
38625         * tests/test-linkat.c (main): Update caller.
38626
38627         unlink, remove: detect FreeBSD bug
38628         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38629         slash on symlink.
38630         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38631         * doc/posix-functions/remove.texi (remove): Likewise.
38632         * tests/test-unlink.h (test_unlink): Enhance test.
38633         * tests/test-remove.c (main): Likewise.
38634
38635 2009-11-09  Eric Blake  <ebb9@byu.net>
38636
38637         rename: detect FreeBSD bug
38638         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38639         slash on symlink.
38640         * modules/renameat-tests (Depends-on): Add filenamecat.
38641         * tests/test-rename.h (test_rename): Allow one more errno.
38642         * tests/test-renameat.c (main): Likewise.
38643         * doc/posix-functions/rename.texi (rename): Document the bug.
38644
38645         open: detect FreeBSD bug
38646         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38647         symlink.
38648         * doc/posix-functions/open.texi (open): Document the bug.
38649         * doc/posix-functions/utimes.texi (utimes): Likewise.
38650         * tests/test-open.h (test_open): Add parameters, and test symlink
38651         handling.
38652         * tests/test-open.c (main): Adjust caller.
38653         * tests/test-fcntl-safer.c (main): Likewise.
38654         * modules/open-tests (Depends-on): Add stdbool, symlink.
38655         * modules/fcntl-safer-tests (Depends-on): Likewise.
38656         * tests/test-openat.c (main): Add test-open tests.
38657
38658         stat: detect FreeBSD bug
38659         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38660         symlink.
38661         * doc/posix-functions/stat.texi (stat): Document the bug.
38662         * tests/test-stat.h (test_stat_func): Add argument.
38663         * tests/test-stat.c (main): Adjust caller.
38664         * tests/test-fstatat.c (main): Likewise.
38665         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38666         Reported by Jim Meyering.
38667
38668 2009-11-09  James Youngman  <jay@gnu.org>
38669
38670         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38671         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38672
38673 2009-11-08  Jim Meyering  <meyering@redhat.com>
38674
38675         utimens: remove invalid futimesat call
38676         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38677         It used the file descriptor of the target file as the DIR_FD
38678         parameter and NULL as the file name.  That caused failure with
38679         errno == EFAULT on FreeBSD-8.0-rc2
38680
38681 2009-11-07  Eric Blake  <ebb9@byu.net>
38682
38683         fflush, freadseek: use fseeko, not fseek
38684         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38685         (clear_ungetc_buffer): Avoid potential problems on large files.
38686         * lib/freadseek.c (freadseek): Likewise.
38687         * modules/freadseek (Depends-on): Add fseeko.
38688         * modules/fseek (configure.ac): Set a witness.
38689         * tests/test-fflush.c (main): Use fseeko.
38690         * tests/test-fpurge.c (fseek): Disable link warning.
38691         * tests/test-freadable.c (fseek): Likewise.
38692         * tests/test-freading.c (fseek): Likewise.
38693         * tests/test-fseeko.c (fseek): Likewise.
38694         * tests/test-ftell.c (fseek): Likewise.
38695         * tests/test-ftello.c (fseek): Likewise.
38696         * tests/test-fwritable.c (fseek): Likewise.
38697         * tests/test-fwriting.c (fseek): Likewise.
38698
38699 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38700
38701         * modules/memchr (Depends-on): Drop getpagesize dependency.
38702
38703 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38704
38705         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38706         Reported by Ludovic Courtès.
38707         * build-aux/pmccabe2html: Improve example usage.
38708         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38709
38710 2009-11-06  Jim Meyering  <meyering@redhat.com>
38711
38712         do-release-commit-and-tag: New module.
38713         Automate the release-commit and tag process.
38714         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38715         * modules/do-release-commit-and-tag: New file.
38716         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38717
38718 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38719
38720         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38721         because test-select.c uses inet_pton.
38722
38723 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38724
38725         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38726         GETADDRINFO_LIB.  Bump serial number.
38727         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38728         Suggested by Eric Blake <ebb9@byu.net>.
38729
38730 2009-11-05  Eric Blake  <ebb9@byu.net>
38731
38732         strtod: detect darwin bug
38733         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38734         Reported by Leo Davis.
38735
38736         freopen-safer: new module
38737         * modules/freopen-safer: New module.
38738         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38739         * lib/freopen-safer.c (freopen_safer): New file.
38740         * lib/stdio-safer.h (freopen_safer): New declaration.
38741         * lib/stdio--.h (freopen): New override.
38742         * MODULES.html.sh (File stream based Input/Output): Mention it.
38743         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38744         freopen-safer module.
38745         * doc/posix-functions/stderr.texi (stderr): Likewise.
38746         * doc/posix-functions/stdin.texi (stdin): Likewise.
38747         * doc/posix-functions/stdout.texi (stdout): Likewise.
38748         * modules/freopen-safer-tests: New test.
38749         * tests/test-reopen-safer.c: New file.
38750
38751 2009-11-05  Jim Meyering  <meyering@redhat.com>
38752
38753         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38754         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38755
38756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38757
38758         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38759
38760 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38761
38762         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38763
38764 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38765
38766         Fix link error.
38767         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38768         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38769
38770 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38771
38772         * tests/test-func.c: Also test value of __func__.
38773
38774 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38775
38776         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38777         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38778
38779 2009-11-05  Bruno Haible  <bruno@clisp.org>
38780
38781         Fix link error.
38782         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38783         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38784         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38785
38786 2009-11-05  Bruno Haible  <bruno@clisp.org>
38787
38788         Tests for module 'inet_pton'.
38789         * modules/inet_pton-tests: New file.
38790         * tests/test-inet_pton.c: New file.
38791
38792 2009-11-05  Bruno Haible  <bruno@clisp.org>
38793
38794         Tests for module 'inet_ntop'.
38795         * modules/inet_ntop-tests: New file.
38796         * tests/test-inet_ntop.c: New file.
38797
38798 2009-11-04  Eric Blake  <ebb9@byu.net>
38799
38800         stdlib-safer: wrap all mkstemp variants
38801         * modules/mkostemp (configure.ac): Set witness.
38802         * modules/mkostemps (configure.ac): Likewise.
38803         * modules/mkstemps (configure.ac): Likewise.
38804         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38805         (mkstemps_safer): Wrap more functions.
38806         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38807         wrapping.
38808         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38809         (mkstemps_safer): Implement the wrappers.
38810
38811         mkstemps, mkostemps: new modules
38812         * modules/mkostemps: New module.
38813         * modules/mkstemps: Likewise.
38814         * lib/mkostemps.c (mkostemps): New file.
38815         * lib/mkstemps.c (mkstemps): Likewise.
38816         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38817         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38819         * modules/stdlib (Makefile.am): Substitute them.
38820         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38821         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38822         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38823         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38824         * MODULES.html.sh (File system functions): Mention them.
38825
38826         tempname: resync from glibc
38827         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38828         same values for __GT_FILE as glibc.  Abort even when assertions
38829         are disabled.
38830         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38831         match its value otherwise.  Allow idempotent inclusion.
38832         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38833         * lib/mkostemp.c (mkostemp): Likewise.
38834         * lib/mkstemp.c (mkstemp): Likewise.
38835         * lib/tmpfile.c (tmpfile): Likewise.
38836         * NEWS: Document this.
38837
38838         utimens: fix use of futimens on older Linux
38839         * lib/utimens.c (fdutimens): Use updated, rather than original,
38840         timespec to avoid bug in older Linux kernel.
38841         Reported by Simon Josefsson.
38842
38843 2009-11-04  Bruno Haible  <bruno@clisp.org>
38844
38845         Make num_processors more flexible and consistent.
38846         * lib/nproc.h (enum nproc_query): New type.
38847         (num_processors): Add a 'query' argument.
38848         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38849         (num_processors): Add a 'query' argument. Test the value of the
38850         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38851         mingw, count the number of CPUs available for the current process.
38852         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38853         Check for sched_getaffinity and sched_getaffinity_np.
38854         * modules/nproc (Depends-on): Add c-ctype, extensions.
38855         * NEWS: Mention the change.
38856
38857 2009-11-03  Bruno Haible  <bruno@clisp.org>
38858
38859         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38860
38861 2009-11-03  Jim Meyering  <meyering@redhat.com>
38862
38863         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38864         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38865         if it is defined.
38866
38867 2009-11-02  Eric Blake  <ebb9@byu.net>
38868
38869         mktime, timegm: share common declaration
38870         * lib/mktime-internal.h: New file.
38871         * lib/mktime.c: Use it rather than open-coding a declaration.
38872         * lib/timegm.c: Likewise.
38873         * modules/mktime (Files): Ship it.
38874         * modules/timegm (Files): Likewise.
38875         Suggested by Bruno Haible.
38876
38877         test-update-copyright: update test to match script changes
38878         * tests/test-update-copyright.sh: Avoid hard-coding perl
38879         location.  Don't update *.bak created by earlier runs.
38880
38881 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38882             Simon Josefsson  <simon@josefsson.org>
38883             Bruno Haible  <bruno@clisp.org>
38884
38885         Fix link error on Solaris 8.
38886         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38887         also in libnsl. Define also INET_PTON_LIB.
38888         * modules/inet_pton (Link): New section.
38889
38890 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38891             Bruno Haible  <bruno@clisp.org>
38892
38893         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38894         * modules/inet_ntop (Link): New section.
38895         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38896
38897 2009-11-02  Eric Blake  <ebb9@byu.net>
38898
38899         maint: avoid compiler warnings in m4 macros
38900         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38901         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38902
38903 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38904
38905         * m4/pmccabe2html.m4: Remove file.
38906         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38907         function.  Change maintainer.
38908         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38909         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38910         Courtès).
38911
38912 2009-10-31  Eric Blake  <ebb9@byu.net>
38913
38914         fseeko: fix m4 regression
38915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38916         regression from 2009-10-27.
38917         Reported by Ralf Wildenhues.
38918
38919 2009-10-31  Jim Meyering  <meyering@redhat.com>
38920
38921         inttostr: aesthetics and improved (compile-time) safety
38922         Define inttype_is_signed rather than inttype_is_unsigned,
38923         since the sole use is via "#if inttype_is_signed".
38924         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38925         inttype_is_unsigned.
38926         * lib/offtostr.c (inttype_is_signed): Likewise.
38927         * lib/uinttostr.c (inttype_is_signed): Likewise.
38928         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38929         * lib/inttostr.c (inttostr): Use verify to cross-check the
38930         inttype_is_signed value and the signedness of the actual type.
38931         * modules/inttostr (Depends-on): Add verify.
38932
38933 2009-10-30  Eric Blake  <ebb9@byu.net>
38934
38935         build: avoid compiler warnings
38936         * lib/fchmodat.c (lchmod): Mark unused variables.
38937         * lib/getopt.c (_getopt_initialize): Likewise.
38938         * lib/mktime.c (__mktime_internal): Provide prototype.
38939         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38940         older gcc that do not understand #pragma GCC diagnostic.
38941         * lib/uinttostr.c (inttype_is_unsigned): Define.
38942         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38943
38944 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38945
38946         stat: fix compilation on AIX
38947         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38948         only see struct stat64.
38949
38950 2009-10-30  Eric Blake  <ebb9@byu.net>
38951
38952         exclude: make more robust
38953         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38954         rather than masking a coding bug.
38955         Suggested by Bruno Haible.
38956
38957 2009-10-30  Jim Meyering  <meyering@redhat.com>
38958
38959         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38960         Rather than putting #!/usr/bin/perl on the first line,
38961         start with a variant of what's recommended by "man perlrun" that
38962         invokes the first "perl" program from your shell's search path.
38963         * build-aux/gitlog-to-changelog: Replace #!... as above.
38964         Add a "Local Variables" perl mode setting.
38965         Prompted by a patch from Ludovic Courtès.
38966         Improved by Eric Blake.
38967         * build-aux/useless-if-before-free: Likewise.
38968         * build-aux/announce-gen: Likewise.
38969         * build-aux/update-copyright: Likewise.
38970
38971 2009-10-29  Eric Blake  <ebb9@byu.net>
38972
38973         filenamecat-lgpl: adjust clients
38974         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38975         filenamecat.
38976         * modules/renameat (Depends-on): Likewise.
38977
38978         filenamecat: split into filenamecat-lgpl
38979         * modules/filenamecat-lgpl: New module.
38980         * modules/filenamecat (Files): Move library-safe files into
38981         filenamecat-lgpl.
38982         (Depends-on): Add filenamecat-lgpl.
38983         (configure.ac): Declare witness.
38984         * lib/filenamecat.h (file_name_concat): Only declare when using
38985         GPL module.
38986         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38987         Move...
38988         * lib/filenamecat-lgpl.c: ...into new file.
38989         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38990         (gl_FILE_NAME_CONCAT): Use it.
38991         * MODULES.html.sh (File system functions): Mention new module.
38992
38993         argp: avoid memory leak
38994         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38995         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38996         base_name, since the latter malloc()s and can call exit().
38997         Leak introduced 2006-07-03.
38998
38999         dirname-lgpl: adjust clients that don't need full dirname
39000         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39001         * modules/filenamecat (Depends-on): Likewise.
39002         * modules/linkat (Depends-on): Likewise.
39003         * modules/mkancesdirs (Depends-on): Likewise.
39004         * modules/mkdir (Depends-on): Likewise.
39005         * modules/openat (Depends-on): Likewise.
39006         * modules/savewd (Depends-on): Likewise.
39007         * modules/rename (Depends-on): Likewise.
39008         (License): Relax license.
39009         * modules/mkdir-tests (Depends-on): Drop progname.
39010         (Makefile.am): Delete unneeded LDADD.
39011         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39012
39013         dirname: split into dirname-lgpl
39014         * modules/dirname-lgpl: New module.
39015         * modules/dirname (Files): Move library-safe files into
39016         dirname-lgpl.
39017         (Depends-on): Add dirname-lgpl.
39018         (configure.ac): Declare witness.
39019         * modules/double-slash-root (License): Relax license.
39020         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39021         module.
39022         * lib/dirname.c (dir_len, mdir_name): Move...
39023         * lib/dirname-lgpl.c: ...into new file.
39024         * lib/basename.c (last_component, base_len): Move...
39025         * lib/basename-lgpl.c: ...into new file.
39026         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39027         (gl_DIRNAME): Use it.
39028         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39029         Mention new module.
39030         * modules/dirname-tests (Depends-on): Add progname.
39031         * tests/test-dirname.c (program_name): Delete.
39032
39033         mkdir: make safe for libraries
39034         * modules/mkdir (Depends-on): Drop xalloc.
39035         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39036         exit.
39037
39038         tests: avoid some compiler warnings
39039         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39040         literals.
39041         * tests/test-memchr.c (main): Avoid type mismatch.
39042         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39043         * tests/test-base64.c (main): Likewise.
39044         * tests/test-getdelim.c (main): Likewise.
39045         * tests/test-gethostname.c (main): Likewise.
39046         * tests/test-getline.c (main): Likewise.
39047         * tests/test-netinet_in.c (main): Likewise.
39048         * tests/test-select.c (open_server_socket, main): Likewise.
39049         * tests/test-select-stdin.c (main): Likewise.
39050         * tests/test-sockets.c (main): Likewise.
39051         * tests/test-strsignal.c (main): Likewise.
39052         * tests/test-sys_select.c (main): Likewise.
39053         * tests/test-sys_socket.c (main): Likewise.
39054         * tests/test-u64.c (main): Likewise.
39055         * tests/test-xfprintf-posix.c (main): Likewise.
39056         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39057
39058         sockets: avoid compiler warning
39059         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39060
39061         maint: detect usage(1) and other suspicious exits
39062         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39063
39064 2009-10-29  Jim Meyering  <meyering@redhat.com>
39065
39066         timespec: long-to-int truncation could make timespec_cmp malfunction
39067         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39068         a multiple of 2^32 nanoseconds as no difference.
39069
39070 2009-10-28  Jim Meyering  <meyering@redhat.com>
39071
39072         fprintftime: wrap macro code argument in "do {...} while(0)"
39073         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39074         cpy macro must be a statement that can be followed by a semicolon.
39075         Now that the else clause contains a comment and is hence longer
39076         than one line, I require curly braces.  That in turn requires
39077         that we wrap this code block in the standard do...while(0).
39078
39079         fprintftime: remove stray semicolon from previous change
39080         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39081
39082         fprintftime: avoid a warning about ignored fwrite return value
39083         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39084         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39085         that is unsafe.
39086         * modules/fprintftime (Depends-on): Add ignore-value.
39087
39088         exclude: avoid an unwarranted warning
39089         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39090
39091 2009-10-27  Eric Blake  <ebb9@byu.net>
39092
39093         fseek: avoid compilation failure when fflush is replaced
39094         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39095         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39096         module is in use.
39097         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39098         module is not in use; since REPLACE_FSEEK worked otherwise.
39099         (GNULIB_FTELLO): Likewise for ftell.
39100         Reported by Ian Beckwith and others.
39101
39102 2009-10-27  Bruno Haible  <bruno@clisp.org>
39103
39104         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39105         Reported by Jim Meyering.
39106
39107 2009-10-27  Jim Meyering  <jim@meyering.net>
39108             Bruno Haible  <bruno@clisp.org>
39109
39110         Avoid warning despite dropping the return value of fwrite.
39111         * lib/unicodeio.c: Include ignore-value.h.
39112         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39113         * modules/unicodeio (Depends-on): Add ignore-value.
39114
39115 2009-10-26  Eric Blake  <ebb9@byu.net>
39116
39117         areadlinkat: fix fallback path
39118         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39119         pointer and zero.
39120
39121 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39122
39123         Use a better IO block size for modern systems
39124         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39125         * lib/md2.c: Likewise.
39126         * lib/md4.c: Likewise.
39127         * lib/md5.c: Likewise.
39128         * lib/sha1.c: Likewise.
39129         * lib/sha256.c: Likewise.
39130         * lib/sha512.c: Likewise.
39131
39132 2009-10-22  Eric Blake  <ebb9@byu.net>
39133
39134         tests: avoid several compiler warnings
39135         * tests/test-getcwd.c (main): Avoid buffer underflow.
39136         * tests/test-getdate.c (main): String literals are not safe with
39137         putenv, so use setenv.  Declare unused argument.
39138         * modules/getdate-tests (Depends-on): Add setenv.
39139         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39140         problems with string literals in char *.
39141         * tests/test-hash.c (main): Avoid shadowing declaration.
39142         (insert_new): Treat string literals as char const *.
39143         * tests/test-getopt.h (test_getopt): Likewise.
39144         (getopt_loop): Alter types to minimize casting elsewhere.
39145         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39146         (test_getopt_long_posix): Likewise.
39147         (do_getopt_long): Add wrapper to minimize casting.
39148         * tests/test-atexit.c (clear_temp_file): Use void.
39149         * tests/test-areadlink-with-size.c (main): Declare unused
39150         arguments.
39151         * tests/test-areadlink.c (main): Likewise.
39152         * tests/test-areadlinkat-with-size.c (main): Likewise.
39153         * tests/test-areadlinkat.c (main): Likewise.
39154         * tests/test-canonicalize-lgpl.c (main): Likewise.
39155         * tests/test-canonicalize.c (main): Likewise.
39156         * tests/test-dirent-safer.c (main): Likewise.
39157         * tests/test-dirname.c (main): Likewise.
39158         * tests/test-dup2.c (main): Likewise.
39159         * tests/test-fchdir.c (main): Likewise.
39160         * tests/test-fcntl-h.c (main): Likewise.
39161         * tests/test-fcntl-safer.c (main): Likewise.
39162         * tests/test-fdopendir.c (main): Likewise.
39163         * tests/test-fdutimensat.c (main): Likewise.
39164         * tests/test-fflush.c (main): Likewise.
39165         * tests/test-filenamecat.c (main): Likewise.
39166         * tests/test-filevercmp.c (main): Likewise.
39167         * tests/test-fopen-safer.c (main): Likewise.
39168         * tests/test-fopen.c (main): Likewise.
39169         * tests/test-fpending.c (main): Likewise.
39170         * tests/test-fpurge.c (main): Likewise.
39171         * tests/test-freading.c (main): Likewise.
39172         * tests/test-fstatat.c (main): Likewise.
39173         * tests/test-fsync.c (main): Likewise.
39174         * tests/test-futimens.c (main): Likewise.
39175         * tests/test-getndelim2.c (main): Likewise.
39176         * tests/test-gettimeofday.c (main): Likewise.
39177         * tests/test-getopt.c (main): Likewise.
39178         * tests/test-i-ring.c (main): Likewise.
39179         * tests/test-inttypes.c (main): Likewise.
39180         * tests/test-link.c (main): Likewise.
39181         * tests/test-lstat.c (main): Likewise.
39182         * tests/test-math.c (main): Likewise.
39183         * tests/test-md5.c (main): Likewise.
39184         * tests/test-memchr2.c (main): Likewise.
39185         * tests/test-memrchr.c (main): Likewise.
39186         * tests/test-mkdir.c (main): Likewise.
39187         * tests/test-mkdirat.c (main): Likewise.
39188         * tests/test-mkfifoat.c (main): Likewise.
39189         * tests/test-open.c (main): Likewise.
39190         * tests/test-openat-safer.c (main): Likewise.
39191         * tests/test-openat.c (main): Likewise.
39192         * tests/test-quotearg.c (main): Likewise.
39193         * tests/test-rawmemchr.c (main): Likewise.
39194         * tests/test-readlink.c (main): Likewise.
39195         * tests/test-remove.c (main): Likewise.
39196         * tests/test-rename.c (main): Likewise.
39197         * tests/test-renameat.c (main): Likewise.
39198         * tests/test-rmdir.c (main): Likewise.
39199         * tests/test-sha1.c (main): Likewise.
39200         * tests/test-signal.c (main): Likewise.
39201         * tests/test-sigaction.c (main): Likewise.
39202         * tests/test-stat.c (main): Likewise.
39203         * tests/test-stat-time.c (main): Likewise.
39204         * tests/test-stddef.c (main): Likewise.
39205         * tests/test-stdint.c (main): Likewise.
39206         * tests/test-stdio.c (main): Likewise.
39207         * tests/test-stdlib.c (main): Likewise.
39208         * tests/test-strchrnul.c (main): Likewise.
39209         * tests/test-strerror.c (main): Likewise.
39210         * tests/test-string.c (main): Likewise.
39211         * tests/test-strtod.c (main): Likewise.
39212         * tests/test-strverscmp.c (main): Likewise.
39213         * tests/test-symlink.c (main): Likewise.
39214         * tests/test-symlinkat.c (main): Likewise.
39215         * tests/test-sys_stat.c (main): Likewise.
39216         * tests/test-sys_time.c (main): Likewise.
39217         * tests/test-time.c (main): Likewise.
39218         * tests/test-unistd.c (main): Likewise.
39219         * tests/test-unlink.c (main): Likewise.
39220         * tests/test-unlinkat.c (main): Likewise.
39221         * tests/test-utimens.c (main): Likewise.
39222         * tests/test-utimensat.c (main): Likewise.
39223         * tests/test-version-etc.c (main): Likewise.
39224         * tests/test-wchar.c (main): Likewise.
39225         * tests/test-wctype.c (main): Likewise.
39226         * tests/test-xprintf-posix.c (main): Likewise.
39227         * tests/test-posixtm.c (main): Likewise.
39228         (STREQ): Delete unused macro.
39229         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39230         shadowed variables.
39231         * tests/test-memchr.c (main): Likewise.
39232
39233 2009-10-21  Eric Blake  <ebb9@byu.net>
39234
39235         areadlinkat: avoid failure on older glibc
39236         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39237         rather than mis-comparing 0 against FUNC_RESULT of char*.
39238
39239 2009-10-21  Bruno Haible  <bruno@clisp.org>
39240
39241         * modules/stpncpy (License): Relicense under LGPLv2+.
39242         Reported by David Lutterkort <lutter@redhat.com>.
39243
39244 2009-10-20  Eric Blake  <ebb9@byu.net>
39245
39246         utimensat: work around Solaris 9 bug
39247         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39248         has trailing slash bugs.
39249         * tests/test-lutimens.h (test_lutimens): Enhance test.
39250         * tests/test-utimens.h (test_utimens): Likewise.
39251         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39252         * doc/posix-functions/utimes.texi (utimes): Likewise.
39253         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39254         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39255         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39256         * doc/posix-functions/futimens.texi (futimens): Likewise.
39257
39258         fdutimensat: new module
39259         * modules/fdutimensat: New file.
39260         * lib/fdutimensat.c (fdutimensat): Likewise.
39261         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39262         * MODULES.html.sh (File system functions): Mention module.
39263         * modules/fdutimensat-tests: New test.
39264         * tests/test-fdutimensat.c: Likewise.
39265
39266         doc: regenerate INSTALL
39267         * doc/INSTALL: Reflect recent autoconf update.
39268         * doc/INSTALL.ISO: Likewise.
39269         * doc/INSTALL.UTF-8: Likewise.
39270
39271 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39272
39273         acl: warn if ACL support is not detected
39274         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39275
39276 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39277
39278         * lib/nproc.h: Add extern "C" block for C++.
39279
39280 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39281             Bruno Haible  <bruno@clisp.org>
39282
39283         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39284         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39285         * doc/posix-functions/isalpha.texi: Likewise.
39286         * doc/posix-functions/isblank.texi: Likewise.
39287         * doc/posix-functions/iscntrl.texi: Likewise.
39288         * doc/posix-functions/isdigit.texi: Likewise.
39289         * doc/posix-functions/isgraph.texi: Likewise.
39290         * doc/posix-functions/islower.texi: Likewise.
39291         * doc/posix-functions/isprint.texi: Likewise.
39292         * doc/posix-functions/ispunct.texi: Likewise.
39293         * doc/posix-functions/isspace.texi: Likewise.
39294         * doc/posix-functions/isupper.texi: Likewise.
39295         * doc/posix-functions/isxdigit.texi: Likewise.
39296
39297 2009-10-18  Bruno Haible  <bruno@clisp.org>
39298
39299         Tests for module 'isblank'.
39300         * modules/isblank-tests: New file.
39301         * tests/test-isblank.c: New file.
39302
39303         New module 'isblank'.
39304         * lib/isblank.c: New file.
39305         * m4/isblank.m4: New file.
39306         * modules/isblank: New file.
39307         * doc/posix-functions/isblank.texi: Mention the new module.
39308
39309 2009-10-18  Bruno Haible  <bruno@clisp.org>
39310
39311         New module 'ctype'.
39312         * lib/ctype.in.h: New file.
39313         * m4/ctype.m4: New file.
39314         * modules/ctype: New file.
39315         * doc/posix-headers/ctype.texi: Mention the new module.
39316
39317 2009-10-18  Jim Meyering  <meyering@redhat.com>
39318
39319         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39320         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39321         right after its initialization, rather than farther down.
39322         Keeping these in close proximity makes it easier to ensure
39323         that each such variable is initialized.  E.g.,
39324
39325             LIB_CLOCK_GETTIME=
39326             AC_SUBST([LIB_CLOCK_GETTIME])
39327
39328         This change also increments these serial numbers.
39329         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39330         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39332
39333 2009-10-18  Bruno Haible  <bruno@clisp.org>
39334
39335         Don't let environment variables perturb build.
39336         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39337         (gl_PREREQ_GETHRXTIME): ... not here.
39338
39339 2009-10-18  Bruno Haible  <bruno@clisp.org>
39340
39341         Avoid symlink attack in localcharset module.
39342         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39343         (O_NOFOLLOW): Define fallback.
39344         (get_charset_aliases): Don't open the file if it is a symbolic link.
39345         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39346         gl_FCNTL_H.
39347         (gl_FCNTL_H): Require it.
39348         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39349         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39350         Reported by Fergal Glynn <fglynn@veracode.com>.
39351
39352 2009-10-18  Bruno Haible  <bruno@clisp.org>
39353
39354         Implement nproc for mingw.
39355         * lib/nproc.c: Include <windows.h>
39356         (num_processors): On native Windows platforms, try GetSystemInfo.
39357
39358 2009-10-18  Bruno Haible  <bruno@clisp.org>
39359
39360         Implement nproc for IRIX.
39361         * lib/nproc.c: Include <sys/sysmp.h>.
39362         (num_processors): On IRIX systems, try sysmp.
39363         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39364
39365 2009-10-18  Bruno Haible  <bruno@clisp.org>
39366
39367         Implement nproc for HP-UX.
39368         * lib/nproc.c: Include <sys/pstat.h>
39369         (num_processors): On HP-UX systems, try pstat_getdynamic.
39370         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39371         pstat_getdynamic.
39372
39373 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39374             Bruno Haible  <bruno@clisp.org>
39375
39376         Implement nproc for NetBSD, OpenBSD.
39377         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39378         (ARRAY_SIZE): New macro.
39379         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39380         * m4/nproc.m4: New file.
39381         * modules/nproc (Files): Add m4/nproc.m4.
39382         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39383         (Makefile.am): Instead, augment lib_SOURCES.
39384
39385 2009-10-18  Bruno Haible  <bruno@clisp.org>
39386
39387         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39388         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39389         sys/param.h.
39390
39391 2009-10-16  Eric Blake  <ebb9@byu.net>
39392
39393         utimensat: new module
39394         * modules/utimensat: New file.
39395         * lib/utimensat.c (utimensat): Likewise.
39396         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39397         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39398         so we can work around Linux bugs.
39399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39400         * modules/sys_stat (Makefile.am): Substitute them.
39401         * lib/sys_stat.in.h (utimensat): Declare it.
39402         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39403         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39404         * modules/utimensat-tests: New test.
39405         * tests/test-utimensat.c: Likewise.
39406
39407         utimens: let lutimens work on non-symlinks
39408         * lib/utimens.c (lutimens): Fall back to utimens rather than
39409         failing with ENOSYS, when file is not a symlink.
39410         (utimens): Reduce redirection.
39411         * tests/test-lutimens.h (test_lutimens): Update test to cover
39412         non-symlinks.
39413         * tests/test-utimens.h (test_utimens): Update test to cover
39414         symlinks.
39415         * tests/test-utimens.c (main): Update caller.
39416
39417         utimens: cache whether utimensat syscall works
39418         * lib/utimens.c (utimensat_works_really): New cache variable.
39419         (fdutimens, lutimens): Use it to avoid failing syscall.
39420
39421         test-stat-time, test-utimens: improve portability
39422         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39423         ext4 on alpha, and for cygwin.
39424         * tests/test-utimens-common.h: New file.
39425         (nap): Factor delays into single function.
39426         * tests/test-lutimens.h (test_lutimens): Use new header.
39427         * tests/test-futimens.h (test_futimens): Likewise.
39428         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39429         timestamps to occur from same machine, as was done previously for
39430         test_utimens.
39431         * modules/utimens-tests (Files): Ship new file.
39432         * modules/futimens-tests (Files): Likewise.
39433         Reported in part by Jim Meyering.
39434
39435         sys_stat: sort replacement declarations
39436         * lib/sys_stat.in.h: Sort declarations.
39437         * lib/futimens.c (futimens): Fix typo.
39438
39439 2009-10-15  Jim Meyering  <meyering@redhat.com>
39440
39441         don't let environment settings perturb build
39442         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39443         could cause a configure-time and/or build-time malfunction.
39444         Typically, a configure-time function-in-library test is performed
39445         via code like this:
39446
39447           LIB_VAR=
39448           AC_SUBST([LIB_VAR])
39449           prefix_saved_LIBS=$LIBS
39450             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39451                        [test "$ac_cv_search_FUNC" = "none required" ||
39452                         LIB_VAR=$ac_cv_search_FUNC])
39453           LIBS=$prefix_saved_LIBS
39454
39455         However, in each of the files affected by this change, the LIB_VAR=
39456         initialization was omitted.  Thus, when set in the environment, its
39457         value would propagate into generated Makefiles when FUNC is not found
39458         in LIB_NAME.
39459         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39460         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39462
39463 2009-10-14  Eric Blake  <ebb9@byu.net>
39464
39465         fchdir: avoid infinite recursion in mingw
39466         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39467         recursing.
39468
39469         test-stat-time: port to mingw
39470         * tests/test-stat-time.c (force_unlink): Return a value.
39471         (test_ctime) [W32]: Fix compilation error.
39472         (nap): Don't call usleep with too large an argument.  Use
39473         force_unlink.
39474         * doc/pastposix-functions/usleep.texi (usleep): Document the
39475         portability issue.
39476
39477 2009-10-13  Jim Meyering  <meyering@redhat.com>
39478
39479         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39480         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39481         * modules/pipe-filter-ii: Likewise.
39482         * modules/sys_socket-tests: Likewise.
39483         * modules/tsearch-tests: Likewise.
39484         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39485         (check): Depend on it.
39486
39487 2009-10-12  Eric Blake  <ebb9@byu.net>
39488
39489         utimens-tests: port to NFS file systems
39490         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39491         comparisons to avoid spurious failures from timestamp drift
39492         between NFS machines.
39493
39494 2009-10-12  Eric Blake  <ebb9@byu.net>
39495
39496         stat-time-tests: minor cleanups
39497         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39498         * tests/test-stat-time.c (nap): Separate assignment from call.
39499         Suggested by Paolo Bonzini and Bruno Haible.
39500
39501         sys_stat: guarantee struct timespec
39502         * lib/sys_stat.in.h (includes): Always include <time.h>
39503         * modules/sys_stat (Depends-on): Add time.
39504         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39505         mode_t permission values.
39506         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39507         get at subsecond timestamps.
39508
39509 2009-10-10  Eric Blake  <ebb9@byu.net>
39510
39511         futimens: new module
39512         * modules/futimens: New file.
39513         * lib/futimens.c (futimens): Likewise.
39514         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39515         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39516         we can work around Linux bugs.
39517         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39518         * modules/sys_stat (Makefile.am): Substitute them.
39519         * lib/sys_stat.in.h (futimens): Declare it.
39520         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39521         * doc/posix-functions/futimens.texi (futimens): Likewise.
39522         * modules/futimens-tests: New test.
39523         * tests/test-futimens.c: Likewise.
39524
39525         utimens: introduce fdutimens
39526         * lib/utimens.h (fdutimens): New prototype.
39527         * lib/utimens.c (gl_futimens): Move guts...
39528         (fdutimens): ...to new interface.
39529         * tests/test-utimens.c (do_fdutimens): Use it.
39530
39531         utimens: add UTIME_NOW and UTIME_OMIT support
39532         * lib/utimens.c (validate_timespec, update_timespec): New helper
39533         functions.
39534         (gl_futimens, lutimens): Use them.
39535         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39536         stdbool, sys_stat.
39537         (Link): Mention resulting library dependency.
39538         * modules/utimecmp (Link): Likewise.
39539         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39540         (Makefile.am): Pick up library dependency.
39541         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39542         definition.
39543         * tests/test-sys_stat.c: Test the definitions.
39544         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39545         * NEWS: Document library dependency.
39546
39547         utimecmp: support symlink timestamps
39548         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39549         hashing when possible.  Use pathconf when available.
39550         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39551         * modules/utimecmp (Depends-on): Add lstat.
39552
39553         utimens: add lutimens interface
39554         * lib/utimens.c (lutimens): New function.
39555         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39556         * lib/utimens.h (lutimens): Declare new interface.
39557         * tests/test-utimens.c (main): Enhance test.
39558         * tests/test-lutimens.h (test_lutimens): New file.
39559         * modules/utimens-tests (Files): Distribute it.
39560         (Depends-on): Add symlink.
39561         (configure.ac): Check for usleep.
39562
39563         utimens: validate futimens usage
39564         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39565         fewer syscalls on failure later on.  Avoid compiler warning on
39566         mingw.
39567         * modules/utimens (Depends-on): Add dup2.
39568
39569         utimens: add test
39570         * modules/utimens-tests: New test.
39571         * tests/test-utimens.h: New file.
39572         * tests/test-futimens.h: Likewise.
39573         * tests/test-utimens.c: Likewise.
39574
39575         doc: mention timestamp portability issues
39576         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39577         instead.
39578         * doc/posix-functions/utime.texi (utime): Likewise.
39579         * doc/posix-functions/utimes.texi (utimes): Likewise.
39580         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39581         instead.
39582         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39583         module.
39584         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39585         Mention weakness with symlink timestamps.
39586         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39587         to utimensat/futimens instead.
39588         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39589
39590         test-dup2: enhance test
39591         * tests/test-dup2.c (main): Also check AT_FDCWD.
39592
39593         test-stat-time: avoid more spurious failures
39594         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39595         xfs; and avoid race if the two timestamps cross quantization edge.
39596
39597         relocatable: prefer 'file system' over 'filesystem'
39598         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39599         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39600         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39601         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39602         * lib/relocatable.c (compute_curr_prefix): Likewise.
39603
39604 2009-10-10  Jim Meyering  <meyering@redhat.com>
39605
39606         stat-time-tests: check for the usleep function
39607         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39608
39609 2009-10-10  Bruno Haible  <bruno@clisp.org>
39610
39611         * modules/xnanosleep: Put the Link section after the Include section.
39612
39613 2009-10-09  Eric Blake  <ebb9@byu.net>
39614
39615         dup2: work around FreeBSD 6.1 bug
39616         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39617         * doc/posix-functions/dup2.texi (dup2): Document it.
39618         Reported by Nelson H. F. Beebe and Jim Meyering.
39619
39620         test-stat-time: port to buggy NFS clients
39621         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39622         (test_ctime): Also skip test if mtime and ctime are skewed.
39623
39624         maint: prefer 'file system' over 'filesystem'
39625         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39626         * doc/posix-functions/lstat.texi (lstat): Likewise.
39627         * lib/file-has-acl.c (file_has_acl): Likewise.
39628         * lib/fwriteerror.c [TEST]: Likewise.
39629         * tests/test-areadlink.h (test_areadlink): Likewise.
39630         * tests/test-areadlinkat-with-size.c (main): Likewise.
39631         * tests/test-areadlinkat.c (main): Likewise.
39632         * tests/test-canonicalize-lgpl.c (main): Likewise.
39633         * tests/test-canonicalize.c (main): Likewise.
39634         * tests/test-fstatat.c (main): Likewise.
39635         * tests/test-linkat.c (main): Likewise.
39636         * tests/test-lstat.h (test_lstat_func): Likewise.
39637         * tests/test-mkdir.h (test_mkdir): Likewise.
39638         * tests/test-readlink.h (test_readlink): Likewise.
39639         * tests/test-remove.c (main): Likewise.
39640         * tests/test-rename.h (test_rename): Likewise.
39641         * tests/test-renameat.c (main): Likewise.
39642         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39643         * tests/test-symlink.h (test_symlink): Likewise.
39644         * tests/test-symlinkat.c (main): Likewise.
39645         * tests/test-unlink.h (test_unlink_func): Likewise.
39646         * tests/test-unlinkat.c (main): Likewise.
39647
39648         maint: make realtime library usage explicit
39649         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39650         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39651         * modules/settime (Link): Likewise.
39652         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39653
39654         test-stat-time: speed up execution
39655         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39656         warning on mingw.
39657         (nap): New helper function.
39658         (prepare_test): Use it to reduce sleep time.
39659         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39660         execution.
39661         * modules/stat-time-tests (configure.ac): Check for usleep.
39662
39663 2009-10-09  Jim Meyering  <meyering@redhat.com>
39664
39665         selinux-h: always use getfilecon wrappers
39666         * lib/getfilecon.c: New file.
39667         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39668         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39669         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39670         (fgetfilecon): Provide a stub.
39671         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39672         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39673         file unconditionally.
39674         When <selinux/selinux.h> is found, arrange to use wrappers.
39675         * modules/selinux-h (Files): Add getfilecon.c.
39676         (Makefile.am): Substitute include-next-related bits
39677         into the now-always-generated selinux/selinux.h file.
39678         * doc/glibc-functions/lgetfilecon.texi: New file.
39679         * doc/glibc-functions/fgetfilecon.texi: New file.
39680         * doc/glibc-functions/getfilecon.texi: New file.
39681         * doc/glibc-functions/getfilecon-desc.texi: New file.
39682         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39683         which to pull in the new files.
39684         * MODULES.html.sh (Misc): Add selinux-h.
39685
39686 2009-10-08  Jim Meyering  <meyering@redhat.com>
39687
39688         unistd: fix comment typo
39689         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39690
39691 2009-10-08  Eric Blake  <ebb9@byu.net>
39692
39693         areadlink: use SIZE_MAX consistently
39694         * modules/areadlink (Depends-on): Add stdint.
39695         * modules/areadlink-with-size (Depends-on): Likewise.
39696         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39697         gives NULL; drop sys/types, since unistd gives size_t; and add
39698         stdint for SIZE_MAX.
39699         (SIZE_MAX): Rely on headers.
39700         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39701         and add stdint.
39702         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39703         (SIZE_MAX): Likewise.
39704         (INITIAL_BUF_SIZE): Turn into enum.
39705         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39706
39707 2009-10-08  Jim Meyering  <meyering@redhat.com>
39708
39709         areadlinkat: avoid compilation failure
39710         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39711         Fix typo in comment.
39712
39713 2009-10-07  Eric Blake  <ebb9@byu.net>
39714
39715         areadlinkat-with-size: new module
39716         * modules/areadlinkat-with-size: New module.
39717         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39718         * lib/areadlink.h (areadlinkat): Declare it.
39719         * MODULES.html.sh (File system functions): Mention it.
39720         * modules/areadlinkat-with-size-tests: New test.
39721         * tests/test-areadlinkat-with-size.c: New file.
39722
39723         xreadlinkat: new module
39724         * modules/xreadlinkat: New module.
39725         * lib/xreadlinkat.c (xreadlinkat): New file.
39726         * lib/xreadlink.h (xreadlinkat): Declare it.
39727         * MODULES.html.sh (File system functions): Mention it.
39728
39729         areadlinkat: new module
39730         * lib/at-func.c (FUNC_FAIL): New define.
39731         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39732         * modules/areadlinkat: New module.
39733         * lib/linkat.c (areadlinkat): Move...
39734         * lib/areadlinkat.c (areadlinkat): ...to new file.
39735         * lib/areadlink.h (areadlinkat): Declare it.
39736         * modules/linkat (Depends-on): Add areadlinkat.
39737         * MODULES.html.sh (File system functions): Mention it.
39738         * modules/areadlinkat-tests: New test.
39739         * tests/test-areadlinkat.c: New file.
39740
39741         areadlink, areadlink-with-size: add tests
39742         * modules/areadlink-tests: New test.
39743         * modules/areadlink-with-size-tests: Likewise.
39744         * tests/test-areadlink.h: New file.
39745         * tests/test-areadlink.c: Likewise.
39746         * tests/test-areadlink-with-size.c: Likewise.
39747
39748         maint: minor cleanups
39749         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39750         _UNUSED_PARAMETER_ instead.
39751         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39752         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39753         * modules/linkat-tests (Files): Distribute test-link.h.
39754
39755         openat, utimens: whitespace cleanup
39756         * lib/openat.c: Prefer space throughout, rather than mix of 8
39757         spaces vs. tabs.
39758         * lib/at-func.c: Likewise.
39759         * lib/utimens.c: Likewise.
39760
39761         openat: avoid using wrong fd
39762         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39763         working directory chooses same fd.
39764         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39765
39766         mkdir, mkdirat: fix cygwin 1.5.x bug
39767         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39768         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39769         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39770         bug.
39771         (gl_PREREQ_MKDIR): Delete unused macro.
39772         * modules/mkdir (Files): Track file rename.
39773         (configure.ac): Update macro name.
39774         * modules/openat (Depends-on): Add mkdir.
39775         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39776
39777         mkdir, mkdirat: add tests
39778         * modules/mkdir-tests: New test.
39779         * tests/test-mkdir.h: New file.
39780         * tests/test-mkdir.c: Likewise.
39781         * tests/test-mkdirat.c: Likewise.
39782         * modules/openat-tests (Files): Add new files.
39783         (Makefile.am): Run new test.
39784
39785 2009-10-06  Eric Blake  <ebb9@byu.net>
39786
39787         doc: tweak *at function documentation
39788         * doc/posix-functions/faccessat.texi (faccessat): Mention
39789         known issue with replacement.
39790         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39791         * doc/posix-functions/linkat.texi (linkat): Likewise.
39792         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39793         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39794         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39795         * doc/posix-functions/renameat.texi (renameat): Likewise.
39796         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39797
39798         openat: fix GNU/Hurd bug in unlinkat
39799         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39800         broken.
39801         * doc/posix-functions/unlink.texi (unlink): Document this.
39802         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39803
39804         fdopendir: fix GNU/Hurd bug
39805         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39806         allowing non-directory fds.
39807         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39808         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39809         * modules/dirent (Makefile.am): Substitute it.
39810         * lib/dirent.in.h (fdopendir): Declare replacement.
39811         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39812         * tests/test-fdopendir.c (main): Test something other than
39813         /dev/null, since on Hurd that behaves like a directory.
39814
39815         test-symlink: port to GNU/Hurd
39816         * tests/test-symlink.h (test_symlink): Relax expected errno.
39817
39818         doc: tweak more cygwin information
39819         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39820         now compatible with glibc.
39821         * doc/posix-functions/getopt.texi (getopt): Likewise.
39822
39823         getopt-gnu: add another test
39824         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39825         guarantee behavior relied on by m4.
39826         * tests/test-getopt.c (main): Use it.
39827         * modules/getopt-posix-tests (Depends-on): Add setenv.
39828         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39829
39830         getopt: fix compilation on darwin
39831         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39832         include.
39833         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39834         Reported by Ludovic Courtès.
39835
39836 2009-10-06  Bruno Haible  <bruno@clisp.org>
39837
39838         * modules/size_max (Description): Discourage its use.
39839         Reported by Simon Josefsson.
39840
39841 2009-10-06  Jim Meyering  <meyering@redhat.com>
39842
39843         linkat: avoid compilation failure
39844         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39845
39846 2009-10-05  Eric Blake  <ebb9@byu.net>
39847
39848         linkat: support Linux 2.6.17
39849         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39850         linkat on Linux, but allow cache variable override.
39851         * lib/linkat.c (rpl_linkat): Define override.
39852         * modules/linkat (Depends-on): Add symlinkat.
39853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39854         * modules/unistd (Makefile.am): Substitute it.
39855         * lib/unistd.in.h (linkat): Declare replacement.
39856         Reported by Pádraig Brady.
39857
39858         quotearg: port test to systems with C.UTF-8 locale
39859         * tests/test-quotearg.c (struct result_strings): Add another
39860         member, differentiating between C.ASCII and C.UTF-8 handling.
39861         (compare_strings): Add parameter.
39862         (main): Adjust all callers.
39863
39864         getopt: avoid clash with FreeBSD _getopt_internal
39865         * lib/getopt.in.h (_getopt_internal): Override the name.
39866         * lib/getopt_int.h (includes): Pick up any overrides.
39867         Reported by Reuben Thomas.
39868
39869         hash: allow C89 compilation
39870         * lib/hash.c (check_tuning): Move declaration before statement.
39871         Reported by Reuben Thomas.
39872
39873 2009-10-05  Karl Berry  <karl@gnu.org>
39874
39875         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39876
39877 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39878             Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/uname.c (uname): Use a table-driven algorithm to compute
39881         Windows NT versions.
39882
39883 2009-10-04  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39886         program_invocation_short_name.
39887         * modules/progname (configure.ac): Test for presence of
39888         program_invocation_short_name.
39889         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39890
39891 2009-10-04  Bruno Haible  <bruno@clisp.org>
39892
39893         * lib/progname.c (set_program_name): Fix comment.
39894         Reported by Jim Meyering.
39895
39896 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39897             Bruno Haible  <bruno@clisp.org>
39898
39899         * lib/uname.c: Include <string.h>.
39900         (uname): Do only one call to GetVersionEx in the common case.
39901
39902 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39903             Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39906         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39907         (uname): Add support for Windows CE and various non-x86 CPU types.
39908
39909 2009-10-03  Bruno Haible  <bruno@clisp.org>
39910
39911         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39912         invocation to tests/configure.ac.
39913         Reported by Ian Beckwith <ianb@erislabs.net>.
39914
39915 2009-10-02  Eric Blake  <ebb9@byu.net>
39916
39917         fchdir: avoid compiler warning
39918         * lib/fchdir.c (canonicalize_file_name)
39919         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39920
39921         test-open: support mingw errno values
39922         * tests/test-open.h (test_open): Relax test.
39923         * tests/test-fopen.h (test_fopen): Likewise.
39924         * tests/test-openat-safer.c (main): Likewise.
39925
39926         open: fix opening directory on mingw
39927         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39928
39929         test-open: on GNU/Hurd, /dev/null is a directory
39930         * tests/test-fopen.h (main): Rename...
39931         (test_fopen): ...to this.  Use a guaranteed non-directory when
39932         confirming open behavior on trailing slash.
39933         * tests/test-openat-safer.c (main): Likewise.
39934         * tests/test-open.h (main): Likewise....
39935         (test_open): ...to this.
39936         * tests/test-fopen.c (main): Adjust caller.
39937         * tests/test-fopen-safer.c (main): Likewise.
39938         * tests/test-open.c (main): Likewise.
39939         * tests/test-fcntl-safer.c (main): Likewise.
39940         Reported by Samuel Thibault.
39941
39942         rename, fchdir: don't ignore chdir failure
39943         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39944         * lib/rename.c (rpl_rename) [W32]: Likewise.
39945         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39946         an empty destination directory if source cannot be renamed,
39947         although there is still possibility for failure.
39948         * doc/posix-functions/rename.texi (rename): Document the race.
39949         Reported by Jim Meyering.
39950
39951         maint: cleanup whitespace in recent commits
39952         * lib/rename.c (rpl_rename): Remove tabs.
39953         * tests/test-link.h (test_link): Likewise.
39954         * lib/fchdir.c (get_name): Likewise.
39955         Reported by Jim Meyering.
39956
39957 2009-10-02  Ben Pfaff  <blp@gnu.org>
39958
39959         relocatable-prog-wrapper: Add missing dependency on
39960         double-slash-root.
39961         * modules/relocatable-prog-wrapper: Add dependency.
39962         Reported by Ian Beckwith <ianb@erislabs.net>.
39963
39964 2009-10-02  Eric Blake  <ebb9@byu.net>
39965
39966         renameat: fix Solaris bugs
39967         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39968         needed fixing.
39969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39970         * modules/stdio (Makefile.am): Substitute it.
39971         * lib/stdio.in.h (renameat): Declare replacement.
39972         * lib/renameat.c (rpl_renameat): Implement fix.
39973
39974         renameat: new module
39975         * modules/renameat: New file.
39976         * lib/renameat.c (renameat): Likewise.
39977         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39979         * modules/stdio (Makefile.am): Substitute them.
39980         * lib/stdio.in.h (renameat): Declare it.
39981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39982         * doc/posix-functions/renameat.texi (renameat): Likewise.
39983         * modules/renameat-tests: New test.
39984         * tests/test-renameat.c: Likewise.
39985
39986         rename: fix mingw bugs
39987         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39988         directory overwrite bugs.
39989
39990         rename: fix another cygwin 1.5 bug
39991         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39992         checks.
39993         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39994         unnecessary cygwin workarounds.  Also work around bug with moving
39995         full directory onto an empty one.
39996         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39997
39998         rename-dest-slash: merge into rename module
39999         * modules/rename-dest-slash (Status): Mark obsolete.
40000         (Depends-on): Add rename.
40001         (Files): Let rename do it all.
40002         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40003         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40004         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40005         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40006         * lib/rename.c (rpl_rename): Update comments.
40007
40008         rename: fix cygwin 1.5.x bugs
40009         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40010         * lib/rename.c (rpl_rename): Work around them.
40011         * modules/rename (Depends-on): Add same-inode.
40012
40013         rename: fix Solaris 10 bug
40014         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40015         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40016         was the only bug.
40017
40018         rename: fix Solaris 9 bug
40019         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40020         on non-directory.  Avoid calling exit.
40021         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40022         strdup.
40023         * modules/rename-tests (Depends-on): Drop lstat.
40024         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40025         (gl_PREREQ_RENAME): Delete unused macro.
40026
40027         rename-dest-slash: fix NetBSD bug
40028         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40029         links.
40030         * modules/rename-dest-slash (Depends-on): Add same-inode.
40031
40032         rename-tests: new test, exposes several platform bugs
40033         * modules/rename-tests: New file.
40034         * tests/test-rename.h: Likewise.
40035         * tests/test-rename.c: Likewise.
40036         * doc/posix-functions/rename.texi (rename): Improve documentation,
40037         including bugs that will eventually be fixed in gnulib.
40038
40039 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40040
40041         * lib/uname.c: Include <stdlib.h>
40042         (uname): Assume version info is available.
40043
40044 2009-10-02  Jim Meyering  <meyering@redhat.com>
40045
40046         gnu-web-doc-update: correct --help output
40047         * build-aux/gnu-web-doc-update: Make --help output relevant.
40048
40049         gnu-web-doc-update: add standard options
40050         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40051
40052         gnu-web-doc-update: New module.
40053         Use this script to automatically update the on-line web documentation
40054         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40055         * modules/gnu-web-doc-update: New file, from coreutils.
40056         * build-aux/gnu-web-doc-update: New script.
40057
40058 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40059
40060         link: LoadLibrary is not needed.
40061         * lib/link.c: Use GetModuleHandle.
40062
40063 2009-10-01  Eric Blake  <ebb9@byu.net>
40064
40065         getopt: bump serial number
40066         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40067         change.
40068
40069         tests: tighten link, rmdir, and remove tests
40070         * tests/test-link.h (includes): No need to use <config.h> here.
40071         Clean up if directory hard link was created, otherwise test for
40072         trailing '.'.
40073         * tests/test-linkat.c (main): Simplify.
40074         * tests/test-remove.c (main): Enhance test for trailing '.'.
40075         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40076
40077 2009-10-01  Jim Meyering  <meyering@redhat.com>
40078
40079         maint.mk: requiring "make major" was annoying, for a "minor" release.
40080         What is intended is "stable", to contrast with alpha and beta,
40081         so require "make stable", not "make major".
40082         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40083         (get_tool_versions): Likewise.
40084         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40085
40086 2009-09-30  Ben Pfaff  <blp@gnu.org>
40087
40088         Fix broken build of replacement for Windows tmpfile().
40089         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40090         flags argument added along with the 'mkostemp' module.
40091
40092 2009-09-28  Bruno Haible  <bruno@clisp.org>
40093
40094         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40095         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40096         to 'remove_elt'.
40097         (gl_list_remove): Update.
40098         * lib/gl_list.c (gl_list_remove): Update.
40099         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40100         to 'remove_elt'.
40101         (gl_oset_remove): Update.
40102         * lib/gl_list.c (gl_oset_remove): Update.
40103         Reported by Eric Blake.
40104
40105 2009-09-28  Eric Blake  <ebb9@byu.net>
40106
40107         doc: mention yet more cygwin 1.7 status
40108         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40109         cygwin.
40110         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40111         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40112
40113         argp: fix test failure
40114         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40115         that are not upper-case.  Pass correct range to tolower.
40116
40117 2009-09-27  Jim Meyering  <meyering@redhat.com>
40118
40119         test-yesno: work around sparc-dash here-document infelicity
40120         Without this change, the literal \177 byte in a here document
40121         would make dash 0.5.5.1-3 access uninitialized memory.
40122         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40123         Instead, use a marker, "@", and filter through tr to create the desired
40124         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40125
40126 2009-09-27  Bruno Haible  <bruno@clisp.org>
40127
40128         Disable untested support for new flavours of ACLs on AIX.
40129         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40130         progress.
40131         * lib/set-mode-acl.c (qset_acl): Likewise.
40132
40133 2008-12-07  Bruno Haible  <bruno@clisp.org>
40134
40135         Add support for new flavours of ACLs on AIX. (Untested.)
40136         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40137         (file_has_acl): Add support for newer AIX.
40138         * lib/set-mode-acl.c (qset_acl): Likewise.
40139         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40140         Rainer Tammer <tammer@tammer.net>.
40141
40142 2009-09-26  Eric Blake  <ebb9@byu.net>
40143
40144         argp: fix compilation of getopt
40145         * lib/getopt.in.h (includes): Use different guard than glibc.
40146         Reported by Sergey Poznyakoff.
40147
40148         doc: mention more cygwin 1.7 status
40149         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40150         bug.
40151         * doc/posix-functions/execl.texi (execl): Likewise.
40152         * doc/posix-functions/execle.texi (execle): Likewise.
40153         * doc/posix-functions/execlp.texi (execlp): Likewise.
40154         * doc/posix-functions/execv.texi (execv): Likewise.
40155         * doc/posix-functions/execve.texi (execve): Likewise.
40156         * doc/posix-functions/execvp.texi (execvp): Likewise.
40157         * doc/glibc-functions/canonicalize_file_name.texi
40158         (canonicalize_file_name): Cygwin 1.7 now provides this.
40159         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40160         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40161         on AT_SYMLINK_NOFOLLOW.
40162
40163 2009-09-24  Eric Blake  <ebb9@byu.net>
40164
40165         test-linkat: make test more robust
40166         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40167
40168         getopt: fix inclusion guards for cygwin
40169         * modules/getopt-posix (Depends-on): Add include-next.
40170         (Makefile.am): Substitute more items in replacement header.
40171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40172         <getopt.h>.
40173         * lib/getopt.in.h (includes): Use split inclusion guard, and
40174         prefer <getopt.h> over include <unistd.h> when one is present.
40175         (option): Also override name of 'struct option'.
40176
40177         same-inode: revert prior change; it is not yet ready
40178         * NEWS: Undo mention of this change.
40179         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40180         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40181         * lib/cycle-check.c (cycle_check): Likewise.
40182         * lib/same.c (same_name): Likewise.
40183         * lib/at-func2.c (at_func2): Likewise.
40184
40185 2009-09-23  Eric Blake  <ebb9@byu.net>
40186
40187         linkat: new module
40188         * modules/linkat: New file.
40189         * lib/at-func2.c (at_func2): Likewise.
40190         * lib/linkat.c (linkat): Likewise.
40191         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40192         * lib/openat-priv.h (at_func2): Add declaration.
40193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40194         * modules/unistd (Makefile.am): Substitute them.
40195         * lib/unistd.in.h (linkat): Declare it.
40196         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40197         * doc/posix-functions/linkat.texi (linkat): Likewise.
40198         * doc/posix-functions/link.texi (link): Tweak wording.
40199         * tests/test-link.c (main): Move guts...
40200         * tests/test-link.h (test_link): ...into new file.
40201         * modules/linkat-tests: New test.
40202         * tests/test-linkat.c: Likewise.
40203         * modules/link-tests (Files): Ship new file.
40204         (Depends-on): Add stdbool.
40205
40206         dirname: add library-safe mdir_name
40207         * lib/dirname.h (mdir_name): New prototype.
40208         * lib/dirname.c (dir_name): Move guts...
40209         (mdir_name): ...to new function that avoids xalloc_die.
40210
40211         fchdir: another mingw fix
40212         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40213         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40214         on mingw (where it has not yet been ported), and make it optional
40215         elsewhere.
40216         (_gl_register_fd): Use it.
40217
40218         same-inode: make SAME_INODE tri-state, to port to mingw
40219         * NEWS: Mention this change.
40220         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40221         st_ino always being 0.
40222         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40223         * lib/cycle-check.c (cycle_check): Likewise.
40224         * lib/same.c (same_name): Likewise.
40225
40226         lstat: avoid mingw compilation error
40227         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40228         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40229         lstat ourselves.
40230         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40231         was adequate.
40232         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40233         the checks for lstat.
40234         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40235
40236         link: fix test failure on Solaris 9
40237         * lib/link.c (rpl_link): Don't assume link will catch bogus
40238         trailing slash on source.
40239
40240         test-symlinkat: enhance test
40241         * tests/test-readlink.c (main): Move guts...
40242         * tests/test-readlink.h (test_readlink): ...into new file.
40243         * tests/test-symlink.c (main): Move guts...
40244         * tests/test-symlink.h (test_symlink): ...into new file.
40245         * tests/test-symlinkat.c (main): Use new files for further
40246         coverage.
40247         (do_symlink, do_readlink): New helper functions.
40248         * modules/symlink-tests (Files): Ship new file.
40249         (Depends-on): Add stdbool.
40250         * modules/readlink-tests (Files): Ship new file.
40251         (Depends-on): Add stdbool.
40252         * modules/symlinkat-tests (Files): Use new files.
40253
40254 2009-09-23  Eric Blake  <ebb9@byu.net>
40255
40256         readlink: document portability issue with symlink length
40257         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40258         systems have bogus st_size on symlinks, and mention the
40259         areadlink-with-size module.
40260         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40261         * doc/posix-functions/readlink.texi (readlink): Mention the
40262         areadlink module, and ERANGE failure.
40263         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40264         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40265
40266         readlink: fix Solaris 9 bug with trailing slash
40267         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40268         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40269         * doc/posix-functions/readlink.texi (readlink): Document this.
40270         * modules/readlink-tests: New test.
40271         * tests/test-readlink.c: Likewise.
40272
40273         readlink: fix cygwin 1.5.x bug with return type
40274         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40275         * lib/unistd.in.h (readlink): Use ssize_t.
40276         * lib/readlink.c (readlink): Likewise.
40277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40278         * modules/unistd (Makefile.am): Substitute it.
40279         * lib/unistd.in.h (readlink): Declare replacement.
40280         * doc/posix-functions/readlink.texi (readlink): Document this.
40281
40282         symlink: use throughout gnulib
40283         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40284         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40285         symlink is not used.
40286         * modules/symlinkat (Depends-on): Add symlink.
40287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40288         * modules/canonicalize-tests (Depends-on): Likewise.
40289         * modules/lstat-tests (Depends-on): Likewise.
40290         * modules/openat-tests (Depends-on): Likewise.
40291         * modules/remove-tests (Depends-on): Likewise.
40292         * modules/rmdir-tests (Depends-on): Likewise.
40293         * modules/unlink-tests (Depends-on): Likewise.
40294         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40295         * tests/test-canonicalize.c (symlink): Likewise.
40296         * tests/test-fstatat.c (symlink): Likewise.
40297         * tests/test-lstat.c (symlink): Likewise.
40298         * tests/test-remove.c (symlink): Likewise.
40299         * tests/test-rmdir.c (symlink): Likewise.
40300         * tests/test-unlink.c (symlink): Likewise.
40301         * tests/test-unlinkat.c (symlink): Likewise.
40302
40303         symlink: new module, for Solaris 9 bug
40304         * modules/symlink: New file.
40305         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40306         * lib/symlink.c: Likewise.
40307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40308         * modules/unistd (Makefile.am): Substitute them.
40309         * lib/unistd.in.h (symlink): Declare replacement.
40310         * MODULES.html.sh (File system functions): Mention it.
40311         * doc/posix-functions/symlink.texi (symlink): Likewise.
40312         * modules/symlink-tests: New test.
40313         * tests/test-symlink.c: Likewise.
40314
40315 2009-09-23  Bruno Haible  <bruno@clisp.org>
40316
40317         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40318         when needed.
40319         Test case: gnulib-tool --import --with-tests atexit inttypes.
40320         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40321
40322 2009-09-23  Bruno Haible  <bruno@clisp.org>
40323
40324         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40325         subcommand, not in a subshell.
40326
40327 2009-09-22  Eric Blake  <ebb9@byu.net>
40328
40329         unistd: sort replacement declarations
40330         * lib/unistd.in.h: Sort declarations.
40331
40332         open, openat: minor optimization
40333         * lib/open.c (open): If open succeeded, len is non-zero.
40334         * lib/openat.c (rpl_openat): Likewise.
40335
40336         link-follow: ensure correct result
40337         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40338         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40339         distinguish between possible failures.
40340
40341 2009-09-21  Eric Blake  <ebb9@byu.net>
40342
40343         fts: avoid compiler warning
40344         * lib/fts.c (dirent_inode_sort_may_be_useful)
40345         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40346
40347 2009-09-19  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/progreloc.c (canonicalize_file_name): New declaration.
40350
40351 2009-09-19  Eric Blake  <ebb9@byu.net>
40352
40353         link: fix quoting
40354         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40355
40356         openat: fix openat bugs on Solaris 9
40357         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40358         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40359         * modules/openat (Depends-on): Add open.
40360         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40361         * modules/fcntl-h (Makefile.am): Substitute it.
40362         * lib/fcntl.in.h (openat): Declare replacement.
40363         * doc/posix-functions/openat.texi (openat): Document this.
40364
40365         openat: move fstatat and unlinkat into correct files
40366         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40367         compiled.
40368         * lib/openat.c (fstatat, unlinkat): Move...
40369         * lib/fstatat.c (fstatat): ...into correct files.
40370         * lib/unlinkat.c (unlinkat): Likewise.
40371
40372         openat: fix unlinkat bugs on Solaris 9
40373         * lib/unlinkat.c (unlinkat): New file.
40374         * modules/openat (Depends-on): Add unlink.
40375         (Files): Distribute it.
40376         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40377         trailing slash behavior is broken.
40378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40379         * modules/unistd (Makefile.am): Substitute it.
40380         * lib/unistd.in.h (unlinkat): Declare replacement.
40381         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40382
40383         openat: fix fstatat bugs on Solaris 9
40384         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40385         stat.
40386         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40387
40388         test-unlinkat: enhance test, to expose Solaris 9 bug
40389         * tests/test-unlink.c (main): Factor guts...
40390         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40391         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40392         * tests/test-rmdir.c (main): Adjust caller.
40393         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40394         (unlinker): New helper function.
40395         (rmdirat): Enhance check.
40396         * modules/rmdir-tests (Depends-on): Add stdbool.
40397         * modules/unlink-tests (Depends-on): Likewise.
40398         (Files): Add test-unlink.h.
40399         * modules/openat-tests (Files): Likewise.
40400         (Depends-on): Add unlinkdir.
40401
40402         test-fstatat: new test, to expose Solaris 9 bugs
40403         * tests/test-stat.c (main): Factor guts...
40404         * tests/test-stat.h (test_stat_func): ...into new file.
40405         * tests/test-lstat.c (main): Factor guts...
40406         * tests/test-lstat.h (test_lstat_func): ...into new file.
40407         * tests/test-fstatat.c: New file.
40408         * modules/stat-tests (Files): Add test-stat.h.
40409         * modules/lstat-tests (Files): Add test-lstat.h.
40410         (Depends-on): Add stdbool.
40411         * modules/openat-tests (Depends-on): Add pathmax.
40412         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40413         (Makefile.am): Run new test.
40414
40415         remove: new module, for mingw and Solaris 9 bugs
40416         * modules/remove: New file.
40417         * lib/remove.c: Likewise.
40418         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40420         * modules/stdio (Makefile.am): Use them.
40421         * lib/stdio.in.h (remove): Declare replacement.
40422         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40423         * doc/posix-functions/remove.texi (remove): Likewise.
40424         * modules/remove-tests: New test.
40425         * tests/test-remove.c: Likewise.
40426
40427         unlink: new module, for Solaris 9 bug
40428         * modules/unlink: New file.
40429         * lib/unlink.c: Likewise.
40430         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40432         * modules/unistd (Makefile.am): Use them.
40433         * lib/unistd.in.h (stat): Declare replacement.
40434         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40435         * doc/posix-functions/unlink.texi (unlink): Likewise.
40436         * modules/unlink-tests: New test.
40437         * tests/test-unlink.c: Likewise.
40438
40439         lstat: fix Solaris 9 bug
40440         * lib/lstat.c (lstat): Also check for trailing slash on
40441         non-symlink, non-directories.  Use stat module to simplify logic.
40442         * doc/posix-functions/lstat.texi (lstat): Document it.
40443         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40444         (configure.ac): Check for symlink.
40445         * tests/test-lstat.c (main): Add more tests.
40446
40447         stat: add as dependency to other modules
40448         * modules/chown (Depends-on): Add stat.
40449         * modules/euidaccess (Depends-on): Likewise.
40450         * modules/fchdir (Depends-on): Likewise.
40451         * modules/isdir (Depends-on): Likewise.
40452         * modules/link (Depends-on): Likewise.
40453         * modules/lstat (Depends-on): Likewise.
40454         * modules/mkdir-p (Depends-on): Likewise.
40455         * modules/modechange (Depends-on): Likewise.
40456         * modules/open (Depends-on): Likewise.
40457         * modules/readlink (Depends-on): Likewise.
40458         * modules/same (Depends-on): Likewise.
40459
40460         stat: fix Solaris 9 bug
40461         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40462         slash.
40463         * lib/stat.c (rpl_stat): Work around it.
40464         * doc/posix-functions/stat.texi (stat): Update documentation.
40465
40466         stat: new module, for mingw bug
40467         * modules/stat: New file.
40468         * lib/stat.c: Likewise.
40469         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40470         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40471         * modules/sys_stat (Makefile.am): Use them.
40472         * lib/sys_stat.in.h (stat): Declare replacement.
40473         * lib/openat.c (fstatat): Deal with lstat and stat being function
40474         macros.
40475         * modules/openat (Depends-on): Add inline.
40476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40477         * doc/posix-functions/stat.texi (stat): Likewise.
40478         * modules/stat-tests: New test.
40479         * tests/test-stat.c: Likewise.
40480
40481 2009-09-19  Jim Meyering  <meyering@redhat.com>
40482
40483         syntax-check: detect unnecessary inclusion of canonicalize.h
40484         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40485
40486 2009-09-19  Eric Blake  <ebb9@byu.net>
40487
40488         canonicalize-lgpl: adjust clients to use correct header
40489         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40490         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40491         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40492         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40493         * lib/progreloc.c (includes): Likewise.
40494
40495 2009-09-19  Jim Meyering  <meyering@redhat.com>
40496
40497         test-posixtm.c: correct a comment
40498         * tests/test-posixtm.c: Correct first-line comment.
40499         Spotted by Eric Blake.
40500
40501 2009-09-16  Jim Meyering  <meyering@redhat.com>
40502
40503         posixtm-tests: make T const-correct; add a test case
40504         * tests/test-posixtm.c (T): Declare const.
40505         Add a test for -(2^31+1).
40506         Remove useless can-succeed-only-in-2002 test.
40507
40508         posixtm-tests: adjust the sole failing test
40509         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40510         expected output matches what mktime now produces.  Cross-checked via
40511         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40512
40513         posixtm: move #ifdef'd tests into a new module
40514         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40515         * tests/test-posixtm.c: ... this new file.
40516         * modules/posixtm-tests: New module.
40517
40518 2009-09-19  Eric Blake  <ebb9@byu.net>
40519
40520         openat: simplify use of at-func.c
40521         * lib/at-func.c (includes): Include prerequisites here, to
40522         simplify requirements on client files.
40523         * lib/openat-priv.h: Add double-inclusion guard.
40524         * lib/faccessat.c (includes): Simplify.
40525         * lib/fchmodat.c (includes): Likewise.
40526         * lib/fchownat.c (includes): Likewise.
40527         * lib/mkdirat.c (includes): Likewise.
40528         * lib/mkfifoat.c (includes): Likewise.
40529         * lib/symlinkat.c (includes): Likewise.
40530
40531         openat: allow return of fd 0
40532         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40533         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40534         unistd-safer.
40535         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40536         <fcntl.h>; this module does not leak fds.
40537         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40538         must be allowed to return 0, leaving openat_safer to add the
40539         safety.
40540         (openat_permissive): Avoid writing to just-opened fd 2 if
40541         restoring the current directory fails.
40542         * lib/openat-die.c (openat_restore_fail): Add comment.
40543         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40544         (save_cwd): Guarantee safe fd, but without use of open_safer.
40545         * tests/test-openat.c: New test.
40546         * modules/openat-tests (Files, Makefile.am): Distribute and build
40547         new file.
40548
40549         relocatable-prog-wrapper: fix build
40550         * modules/relocatable-prog-wrapper (Files): Update name of
40551         canonicalize m4 file, broken on 2009-09-17.
40552         Reported by emad hajjar <aleppos@hotmail.com>.
40553
40554 2009-09-19  Bruno Haible  <bruno@clisp.org>
40555
40556         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40557         * lib/safe-alloc.c: Likewise.
40558         Reported by Ian Beckwith <ianb@erislabs.net>.
40559
40560 2009-09-18  Bruno Haible  <bruno@clisp.org>
40561
40562         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40563         Reported by <erobles@sensacd.com.mx>.
40564
40565 2009-09-17  Eric Blake  <ebb9@byu.net>
40566
40567         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40568         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40569         slashes when checking if last component is missing.
40570         * tests/test-canonicalize.c (main): Test this.
40571
40572         canonicalize, canonicalize-lgpl: honor // if distinct from /
40573         * modules/canonicalize (Files): Add double-slash-root.m4.
40574         * modules/canonicalize-lgpl (Files): Likewise.
40575         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40576         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40577         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40578         fallback definition.
40579         (canonicalize_filename_mode): Use it to protect //.
40580         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40581         (__realpath): Likewise.
40582         * tests/test-canonicalize.c (main): Test this.
40583         * tests/test-canonicalize-lgpl.c (main): Likewise.
40584         * modules/canonicalize-tests (Depends-on): Add same-inode.
40585         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40586
40587         canonicalize-lgpl: fix glibc bug with trailing slash
40588         * m4/canonicalize-lgpl.m4: Move contents...
40589         * m4/canonicalize.m4: ...here.
40590         (gl_CANONICALIZE_LGPL): Factor realpath check...
40591         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40592         glibc 2.3.5 bug, fixed 2005-04-27.
40593         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40594         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40595         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40596         * modules/canonicalize-lgpl (Files): Manage file rename.
40597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40598         * modules/stdlib (Makefile.am): Substitute witness.
40599         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40600         is needed.
40601         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40602         replacement is required.
40603         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40604         * doc/glibc-functions/canonicalize_file_name.texi
40605         (canonicalize_file_name): Document this.
40606         * doc/posix-functions/realpath.texi (realpath): Likewise.
40607
40608         canonicalize-lgpl: reject non-directory with trailing slash
40609         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40610         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40611         catches failures in glibc 2.3.5.
40612         * tests/test-canonicalize.c (main): Likewise.
40613
40614         canonicalize-lgpl: use native realpath if it works
40615         * lib/canonicalize-lgpl.c (realpath): Guard with
40616         FUNC_REALPATH_WORKS.
40617         * lib/stdlib.in.h (realpath): Make declaration optional based on
40618         HAVE_REALPATH.
40619         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40620         native realpath works.
40621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40622         * modules/stdlib (Makefile.am): Substitute witness.
40623
40624         canonicalize, canonicalize-lgpl: use <stdlib.h>
40625         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40626         (Include): Mention <stdlib.h>.
40627         (configure.ac): Mention functions we provide.
40628         * modules/canonicalize (configure.ac): Likewise.
40629         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40630         realpath if canonicalize_file_name is missing.
40631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40632         * modules/stdlib (Makefile.am): Substitute witnesses.
40633         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40634         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40635         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40636         * NEWS: Document this.
40637         * doc/glibc-functions/canonicalize_file_name.texi
40638         (canonicalize_file_name): Likewise.
40639         * doc/posix-functions/realpath.texi (realpath): Likewise.
40640         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40641
40642         test-canonicalize: consolidate into single C program
40643         * tests/test-canonicalize.sh: Delete; move setup into...
40644         * tests/test-canonicalize.c (main): ...the program, making it
40645         easier to run in debugger.  Add some tests.
40646         * modules/canonicalize-tests (Files): Remove unused file.
40647         (Depends-on): Add progname.
40648         (configure.ac, Makefile.am): Simplify.
40649
40650         test-canonicalize-lgpl: consolidate into single C program
40651         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40652         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40653         easier to run in debugger.  Add some tests.
40654         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40655         (configure.ac, Makefile.am): Simplify.
40656
40657         canonicalize: avoid resolvepath
40658         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40659         unnecessary checks.
40660         * lib/canonicalize.c (includes): Simplify.
40661         (canonicalize_file_name): Drop resolvepath implementation.
40662         * modules/canonicalize (Depends-on): Drop filenamecat.
40663
40664         canonicalize: don't lose errno
40665         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40666         over calls to free.
40667
40668         canonicalize: simplify errno handling
40669         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40670         assignment.
40671
40672         canonicalize, canonicalize-lgpl: update module dependencies
40673         * modules/canonicalize (Depends-on): Add extensions, lstat,
40674         pathmax, stdlib.
40675         (Files): Drop pathmax.h.
40676         (configure.ac): Adjust macro name.
40677         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40678         lstat, stdlib, sys_stat.
40679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40680         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40681         extensions.
40682         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40683         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40684         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40685         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40686         declaration, if available.
40687         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40688         we can rely on the readlink module.
40689         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40690         (includes): Use <unistd.h> unconditionally.
40691
40692 2009-09-17  Eric Blake  <ebb9@byu.net>
40693
40694         maint: make Include sections of modules consistent
40695         * modules/alloca: Use only header name; no need to list #include.
40696         * modules/alloca-opt: Likewise.
40697         * modules/arpa_inet: Likewise.
40698         * modules/canon-host: Likewise.
40699         * modules/configmake: Likewise.
40700         * modules/dirent: Likewise.
40701         * modules/eealloc: Likewise.
40702         * modules/environ: Likewise.
40703         * modules/fchdir: Likewise.
40704         * modules/fcntl: Likewise.
40705         * modules/fcntl-h: Likewise.
40706         * modules/gethrxtime: Likewise.
40707         * modules/gettime: Likewise.
40708         * modules/ignore-value: Likewise.
40709         * modules/inet_ntop: Likewise.
40710         * modules/inet_pton: Likewise.
40711         * modules/inttypes: Likewise.
40712         * modules/isnand-nolibm: Likewise.
40713         * modules/isnanf-nolibm: Likewise.
40714         * modules/mbchar: Likewise.
40715         * modules/mbfile: Likewise.
40716         * modules/mbiter: Likewise.
40717         * modules/mbuiter: Likewise.
40718         * modules/netdb: Likewise.
40719         * modules/netinet_in: Likewise.
40720         * modules/nproc: Likewise.
40721         * modules/pagealign_alloc: Likewise.
40722         * modules/poll: Likewise.
40723         * modules/printf-frexp: Likewise.
40724         * modules/pthread: Likewise.
40725         * modules/putenv: Likewise.
40726         * modules/random_r: Likewise.
40727         * modules/relocatable-prog: Likewise.
40728         * modules/search: Likewise.
40729         * modules/select: Likewise.
40730         * modules/selinux-h: Likewise.
40731         * modules/settime: Likewise.
40732         * modules/signal: Likewise.
40733         * modules/size_max: Likewise.
40734         * modules/socklen: Likewise.
40735         * modules/ssize_t: Likewise.
40736         * modules/stdarg: Likewise.
40737         * modules/stdbool: Likewise.
40738         * modules/stddef: Likewise.
40739         * modules/stdint: Likewise.
40740         * modules/stdio: Likewise.
40741         * modules/stdlib: Likewise.
40742         * modules/string: Likewise.
40743         * modules/strings: Likewise.
40744         * modules/sys_file: Likewise.
40745         * modules/sys_ioctl: Likewise.
40746         * modules/sys_select: Likewise.
40747         * modules/sys_socket: Likewise.
40748         * modules/sys_stat: Likewise.
40749         * modules/sys_time: Likewise.
40750         * modules/sys_times: Likewise.
40751         * modules/sys_utsname: Likewise.
40752         * modules/sys_wait: Likewise.
40753         * modules/sysexits: Likewise.
40754         * modules/time: Likewise.
40755         * modules/times: Likewise.
40756         * modules/tmpfile: Likewise.
40757         * modules/trim: Likewise.
40758         * modules/unistd: Likewise.
40759         * modules/wchar: Likewise.
40760         * modules/wctype: Likewise.
40761
40762 2009-09-17  Bruno Haible  <bruno@clisp.org>
40763
40764         Make getdate.y compile on QNX and NetBSD 5 / i386.
40765         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40766         TIME_T_FITS_IN_LONG_INT.
40767         * lib/getdate.y (long_time_t): New type.
40768         (relative_time): Change type of 'seconds' field to long_time_t.
40769         (get_date): Update types of local variables. Check against overflow
40770         during conversion from long_time_t to time_t.
40771         Reported by Matt Kraai <kraai@ftbfs.org>
40772         and Hasso Tepper <hasso@netbsd.org>.
40773
40774 2009-09-17  Bruno Haible  <bruno@clisp.org>
40775
40776         * modules/COPYING: Update copyright years.
40777         * modules/README: Likeiwse.
40778         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40779         Reported by Ian Beckwith <ianb@erislabs.net>.
40780
40781 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40782
40783         * users.txt: Update references for gnuit package.
40784
40785 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40786
40787         * m4/getdelim.m4: Fix typo in copyright line.
40788
40789 2009-09-17  Bruno Haible  <bruno@clisp.org>
40790
40791         * lib/atoll.c: Use the standard header with GPL copyright.
40792         * lib/argz.in.h: Likewise.
40793         * lib/glob.c: Likewise.
40794         * lib/glob-libc.h: Likewise.
40795         * lib/random_r.c: Likewise.
40796         * lib/siglist.h: Likewise.
40797         * lib/strsignal.c: Likewise.
40798         Reported by Ian Beckwith <ianb@erislabs.net>.
40799
40800 2009-09-17  Eric Blake  <ebb9@byu.net>
40801
40802         rmdir: ensure correct dependency order
40803         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40804
40805 2009-09-17  Bruno Haible  <bruno@clisp.org>
40806
40807         Disable assertion that fails on NetBSD 5 / i386.
40808         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40809         Reported by Sam Steingold <sds@gnu.org>
40810         and Hasso Tepper <hasso@netbsd.org>.
40811
40812 2009-09-16  Eric Blake  <ebb9@byu.net>
40813
40814         unlinkdir: port to mingw
40815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40816         on which no one can unlink a directory.
40817
40818         stdlib: sort witness names
40819         * modules/stdlib (Makefile.am): Sort replacements.
40820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40821         * lib/stdlib.in.h: Likewise.
40822
40823         parse-duration-tests: avoid link failure
40824         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40825         LIBINTL.
40826         Reported by Tom G. Christensen.
40827
40828         openat-tests: ensure unlinkat behaves like rmdir
40829         * tests/test-rmdir.c (main): Factor guts...
40830         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40831         * modules/rmdir-tests (Files): Ship new file.
40832         * modules/openat-tests: New test.
40833         * tests/test-unlinkat.c: Likewise.
40834
40835         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40836         * modules/rmdir-errno (Status, Notice): Now obsolete.
40837
40838         rmdir: work around cygwin 1.5.x and mingw bugs
40839         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40840         * lib/rmdir.c (rmdir): Work around it.
40841         * modules/rmdir (Status, Notice): No longer obsolete.
40842         (Files): Add dos.m4.
40843         (Depends-on): Add unistd.
40844         (configure.ac): Set witnesses.
40845         (License): Relax to LGPLv2+.
40846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40847         * modules/unistd (Makefile.am): Substitute witnesses.
40848         * lib/unistd.in.h (rmdir): Declare replacement.
40849         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40850         * modules/rmdir-tests: New tests.
40851         * tests/test-rmdir.c: Likewise.
40852
40853 2009-09-15  Eric Blake  <ebb9@byu.net>
40854
40855         fchdir: improve use of replacement functions
40856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40858         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40859         REPLACE_CLOSEDIR.
40860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40861         * modules/sys_stat (Makefile.am): Substitute correct witness.
40862         * modules/dirent (Makefile.am): Likewise.
40863         * modules/unistd (Makefile.am): Likewise.
40864         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40865         * lib/unistd.in.h (dup): Likewise.
40866         * lib/sys_stat.in.h (fstat): Likewise.
40867
40868         maint: ignore gnulib-tool temp files
40869         * .gitignore: Ignore files created during gnulib-tool --test.
40870
40871 2009-09-13  Jim Meyering  <meyering@redhat.com>
40872
40873         posixtm: don't reject a time that specify "60" as the number of seconds
40874         * lib/posixtm.c (posixtime): The code to reject invalid dates
40875         would also reject a time specified with the .60 suffix.
40876         But POSIX allows that, in order to accommodate leap seconds.
40877         So don't reject it.
40878         (main): Adjust tests accordingly.
40879         * modules/posixtm (Depends-on): Add stpcpy.
40880
40881 2009-09-11  Jim Meyering  <meyering@redhat.com>
40882
40883         announce-gen: include [$release_type] in emitted Subject:
40884         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40885         e.g., [stable] in the emitted Subject: line.
40886
40887 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40888
40889         Remove obsolete macros from several modules.
40890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40891         obsolete Autoconf macros with their modern counterparts.
40892         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40893         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40895         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40896         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40897         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40899         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40900         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40901         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40902         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40904         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40905         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40906         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40908         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40909         * m4/time_r.m4 (gl_TIME_R): Likewise.
40910         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40911         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40912         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40913
40914         Fix copyright header in build-aux scripts.
40915         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40916         recommendation.
40917         * build-aux/ncftpput-ftp: Likewise.
40918         * build-aux/update-copyright: Likewise.
40919
40920 2009-09-09  Eric Blake  <ebb9@byu.net>
40921
40922         test-link: allow Linux choice of errno
40923         * tests/test-link.c (main): Relax test for alternate error.
40924
40925         strndup: fix improper m4 caching
40926         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40927         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40928         (gl_PREREQ_STRNDUP): Delete.
40929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40930         * modules/string (Makefile.am): Substitute it.
40931         * lib/string.in.h (strndup): Modernize prototype.
40932
40933         getcwd: port to mingw
40934         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40935         different from the POSIX assumptions made throughout the getcwd
40936         module; fortunately, the mingw getcwd does not need replacement.
40937         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40938         * modules/getcwd-tests: New test.
40939         * tests/test-getcwd.c: Likewise.
40940
40941         link: fix platform bugs
40942         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40943         * lib/link.c (link): Work around them.  Fix related mingw bug.
40944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40945         * modules/unistd (Makefile.am): Substitute it.
40946         * lib/unistd.in.h (link): Declare replacement.
40947         * doc/posix-functions/link.texi (link): Document this.
40948         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40949
40950         test-link: consolidate into single C program, test more cases
40951         * tests/test-link.sh: Delete.
40952         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40953         at least Cygwin and Solaris.
40954         * modules/link-tests (Files): Remove unused file.
40955         (Depends-on): Add errno, sys_stat.
40956         (Makefile.am): Simplify.
40957
40958 2009-09-08  Bruno Haible  <bruno@clisp.org>
40959
40960         Work around towlower, towupper bug on mingw.
40961         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40962         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40963         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40964         * doc/posix-functions/towupper.texi: Likewise.
40965         Reported by Eric Blake.
40966
40967 2009-09-08  Jim Meyering  <meyering@redhat.com>
40968
40969         build: don't try to run autoheader if we don't use it
40970         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40971         is not used in configure.ac.
40972
40973 2009-09-08  Eric Blake  <ebb9@byu.net>
40974
40975         euidaccess: fix compilation error
40976         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40977
40978         rawmemchr: relax license
40979         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40980         okay.
40981         Reported by Jim Meyering.
40982
40983         mkfifoat: new module
40984         * modules/mkfifoat: New file.
40985         * lib/mkfifoat.c: Likewise.
40986         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40988         * modules/sys_stat (Makefile.am): Use them.
40989         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40990         * MODULES.html.sh (File system functions): Mention module.
40991         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40992         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40993         * modules/mkfifoat-tests: New test.
40994         * tests/test-mkfifoat.c: Likewise.
40995
40996         strchrnul: relax license
40997         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40998         okay.
40999         Reported by Jim Meyering.
41000
41001 2009-09-08  Eric Blake  <ebb9@byu.net>
41002
41003         fstatat: fix compilation on Solaris
41004         * lib/fstatat.c (includes): Add fcntl.h.
41005         Reported by Pádraig Brady.
41006
41007 2009-09-07  Eric Blake  <ebb9@byu.net>
41008
41009         rename: modernize replacement
41010         * modules/rename (Depends-on): Add stdio.
41011         (configure.ac): Declare witness.
41012         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41013         stdio take care of replacement.
41014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41015         * modules/stdio (Makefile.am): Substitute them.
41016         * lib/stdio.in.h (rename): Declare replacement.
41017         * lib/rename.c (includes): Allow cross-compilation to non-windows
41018         machines.
41019         * doc/posix-functions/rename.texi (rename): Improve
41020         documentation.
41021
41022         stdio: sort witness names
41023         * modules/stdio (Makefile.am): Sort replacements.
41024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41025         * lib/stdio.in.h: Likewise.
41026
41027         getcwd: minor cleanups
41028         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41029         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41030
41031         openat: provide more convenience names
41032         * modules/faccessat (configure.ac): Add C witness.
41033         * lib/unistd.in.h (readlinkat): Fix typo.
41034         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41035         convenience wrappers.
41036         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41037         wrappers in syntax checks.
41038
41039 2009-09-06  Eric Blake  <ebb9@byu.net>
41040
41041         doc: fix comments in recent patches
41042         * lib/faccessat.c: Mention correct function.
41043         * lib/fchmodat.c: Likewise.
41044         * lib/fchownat.c: Likewise.
41045         * lib/symlinkat.c: Likewise.
41046         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41047         constants.
41048
41049         faccessat, symlinkat: continue cleanup of previous patch
41050         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41051         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41052         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41054         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41055         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41056         set.
41057
41058 2009-09-06  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41061         (fstatat): Declare if GNULIB_FSTATAT is set.
41062         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41063         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41064         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41065         * modules/fcntl-h (Files): Remove m4/openat.m4.
41066         * modules/sys_stat (Files): Remove m4/openat.m4.
41067         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41068         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41069         * modules/unistd (Files): Remove m4/openat.m4.
41070         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41071         GNULIB_OPENAT.
41072         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41073         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41075         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41076         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41077         gl_OPENAT_DEFAULTS.
41078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41079         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41080         Don't require gl_OPENAT_DEFAULTS.
41081         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41082         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41083         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41084         (gl_OPENAT_DEFAULTS): Remove macro.
41085
41086 2009-09-06  Bruno Haible  <bruno@clisp.org>
41087
41088         * modules/openat (configure.ac): Remove unneeded witness.
41089
41090 2009-09-06  Bruno Haible  <bruno@clisp.org>
41091
41092         Set errno to ENOSYS when a function is entirely unsupported.
41093         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41094         EOPNOTSUPP.
41095         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41096         * modules/chown (Depends-on): Remove errno.
41097
41098 2009-09-06  Bruno Haible  <bruno@clisp.org>
41099
41100         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41101
41102 2009-09-06  Bruno Haible  <bruno@clisp.org>
41103
41104         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41105
41106 2009-09-06  Ben Pfaff  <blp@gnu.org>
41107             Bruno Haible  <bruno@clisp.org>
41108
41109         Work around a glibc bug in strtok_r.
41110         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41111         Undefine if UNDEFINE_STRTOK_R is set.
41112         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41114         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41115         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41116         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41117         UNDEFINE_STRTOK_R.
41118         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41119
41120 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41121
41122         exclude: minor fix
41123         * lib/exclude.c: Include wctype.h
41124
41125 2009-09-06  Akim Demaille  <demaille@gostai.com>
41126
41127         bootstrap: improve error message
41128         * build-aux/bootstrap (find_tool): Upon failure, report the list
41129         of candidates.
41130         Honor the initial value of the envvar.
41131
41132 2009-09-05  Eric Blake  <ebb9@byu.net>
41133
41134         symlinkat: new module
41135         * modules/symlinkat: New file.
41136         * lib/symlinkat.c: Likewise.
41137         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41139         * modules/unistd (Makefile.am): Use them.
41140         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41141         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41142         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41143         * MODULES.html.sh (File system functions): Mention module.
41144         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41145         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41146         * modules/symlinkat-tests: New test.
41147         * tests/test-symlinkat.c: Likewise.
41148
41149         test-openat-safer: add more checks
41150         * tests/test-openat-safer.c (main): Check more code paths.
41151
41152 2009-09-05  Jim Meyering  <meyering@redhat.com>
41153
41154         syntax-check: detect unnecessary inclusion of openat.h
41155         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41156
41157 2009-09-05  Bruno Haible  <bruno@clisp.org>
41158
41159         Support towlower, towupper.
41160         * doc/posix-functions/towlower.texi: Mention module wctype.
41161         * doc/posix-functions/towupper.texi: Likewise.
41162         * lib/wctype.in.h (towlower, towupper): New functions.
41163         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41164         (ASSERT): New macro.
41165         (e): New variable.
41166         (main): Test also towlower, towupper. Test WEOF argument.
41167         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41168
41169 2009-09-05  Bruno Haible  <bruno@clisp.org>
41170
41171         Fix conversion behaviour when the input is invalid.
41172         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41173         mark occurring in first pass of indirect conversion.
41174         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41175         input.
41176         Found by clang's static analyzer.
41177
41178 2009-09-05  Bruno Haible  <bruno@clisp.org>
41179
41180         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41181         where direct conversion is possible.
41182
41183 2009-09-04  Eric Blake  <ebb9@byu.net>
41184
41185         openat: fail with ENOENT on empty name
41186         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41187         buffer.
41188
41189         link-follow: fix logic bug in prior patch
41190         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41191         reversed sense of yes and no in prior patch.  Avoid confusing
41192         compilation failure with desired semantics.
41193
41194         link-follow: accomodate mingw and cross-compilation
41195         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41196         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41197         cross-compilation results to -1, to make linkat easier to
41198         implement when cross-compiling.  Trivially support mingw.
41199         * modules/link-follow (configure.ac): Call new name.
41200         * NEWS: Mention this.
41201
41202 2009-09-03  Eric Blake  <ebb9@byu.net>
41203
41204         faccessat: compile replacement
41205         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41206         needed.
41207
41208         fts: fix compilation error
41209         * lib/fts.c (includes): Re-add "openat.h", for
41210         openat_needs_fchdir.
41211
41212         faccessat: new module
41213         * modules/faccessat: New file.
41214         * lib/faccessat.c: Likewise.
41215         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41217         * modules/unistd (Makefile.am): Use it.
41218         * lib/unistd.in.h (faccessat): Declare it.
41219         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41220         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41221         * MODULES.html.sh (File system functions): Mention it.
41222         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41223         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41224
41225         euidaccess: prefer POSIX over non-standard implementation
41226         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41227         * lib/euidaccess.c (euidaccess): Use it if available.
41228
41229         openat: make template easier to use
41230         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41231         AT_FUNC_F2 to be undefined.
41232         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41233         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41234         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41235         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41236         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41237         Likewise.
41238         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41239         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41240         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41241         Likewise.
41242
41243         openat: declare in POSIX headers
41244         * NEWS: Mention this.
41245         * modules/openat (configure.ac): Declare witnesses.
41246         (Depends-on): Add fcntl-h, sys_stat, unistd.
41247         (Include): Mention correct headers.
41248         * modules/fcntl-h (Depends-on): Add link-warning.
41249         (Files): Add openat.m4.
41250         (Makefile.am): Substitute witnesses.
41251         * modules/sys_stat (Files, Makefile.am): Likewise.
41252         * modules/unistd (Files, Makefile.am): Likewise.
41253         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41254         (gl_OPENAT_DEFAULTS): New macro.
41255         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41258         (SYS_STAT_H): Remove unused variable.
41259         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41260         * lib/fcntl--.h (includes): Remove unneeded header.
41261         * lib/openat-safer.c (includes): Likewise.
41262         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41263         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41264         appropriate headers.
41265         (__OPENAT_PREFIX): Delete.
41266         * lib/fcntl.in.h (openat): Provide declaration.
41267         (AT_FDCWD): Fix Solaris bug.
41268         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41269         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41270         * lib/fchmodat.c (includes):  Adjust to find declaration.
41271         * lib/fchownat.c (includes): Likewise.
41272         * lib/mkdirat.c (includes): Likewise.
41273         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41274         still visible.
41275
41276 2009-09-02  Eric Blake  <ebb9@byu.net>
41277
41278         errno: use consistently
41279         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41280         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41281         * lib/canonicalize.c (ELOOP): Likewise.
41282         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41283         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41284         * lib/lchown.c (EOPNOTSUPP): Likewise.
41285         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41286         * lib/savewd.c (ESTALE): Likewise.
41287         * lib/settime.c (ENOSYS): Likewise.
41288         * lib/utimens.c (ENOSYS): Likewise.
41289         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41290         * lib/chdir-safer.c (ELOOP): Likewise.
41291         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41292         * modules/c-stack (Depends-on): Add errno.
41293         * modules/canonicalize (Depends-on): Likewise.
41294         * modules/chdir-safer (Depends-on): Likewise.
41295         * modules/fdopendir (Depends-on): Likewise.
41296         * modules/inet_ntop (Depends-on): Likewise.
41297         * modules/inet_pton (Depends-on): Likewise.
41298         * modules/lchown (Depends-on): Likewise.
41299         * modules/openat (Depends-on): Likewise.
41300         * modules/savewd (Depends-on): Likewise.
41301         * modules/settime (Depends-on): Likewise.
41302         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41303
41304         fts: avoid leaking fds
41305         * modules/fts (Depends-on): Add cloexec.
41306         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41307         flag.
41308
41309         fts: make directory fds more robust
41310         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41311         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41312
41313         backupfile, chdir-long, fts, savedir: make safer
41314         * lib/backupfile.c (includes): Use "dirent--.h", since
41315         numbered_backup can write to stderr during readdir.
41316         * lib/savedir.c (includes): Likewise.
41317         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41318         emulation can write to stderr on failure.
41319         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41320         * lib/getcwd.c: Document why opendir_safer is unused.
41321         * lib/glob.c: Likewise.
41322         * lib/scandir.c: Likewise.
41323         * lib/openat-proc.c: Likewise, for open_safer.
41324         * modules/backupfile (Depends-on): Add dirent-safer.
41325         * modules/savedir (Depends-on): Likewise.
41326         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41327         * modules/chdir-long (Depends-on): Add openat-safer.
41328
41329         openat-safer: new module
41330         * modules/openat-safer: New file.
41331         * lib/openat-safer.c: Likewise.
41332         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41333         * lib/fcntl-safer.h (openat_safer): Declare.
41334         * lib/fcntl--.h (openat): Override.
41335         * MODULES.html.sh (File descriptor based I/O): Mention it.
41336         * lib/openat.h: Add double-inclusion guards.
41337         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41338         "fcntl--.h", so we can implement openat.
41339         * modules/openat-safer-tests: New test.
41340         * tests/test-openat-safer.c: New file.
41341
41342         dirent-safer: new module
41343         * modules/dirent-safer: New file.
41344         * lib/dirent--.h: Likewise.
41345         * lib/dirent-safer.h: Likewise.
41346         * lib/opendir-safer.c: Likewise.
41347         * m4/dirent-safer.m4: Likewise.
41348         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41349         * modules/dirent-safer-tests: New test.
41350         * tests/test-dirent-safer.c: New file.
41351         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41352
41353         fdopendir: optimize on mingw
41354         * lib/unistd.in.h (_gl_directory_name): New prototype.
41355         * lib/fchdir.c (_gl_directory_name): Implement it.
41356         (fchdir): Use it to simplify implementation.
41357         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41358         fchdir, when available, to avoid calling [f]chdir().
41359
41360         fdopendir: split into its own module
41361         * lib/openat.c (fdopendir): Move...
41362         * lib/fdopendir.c: ...into new file.
41363         * modules/fdopendir: New module.
41364         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41365         * modules/openat (Depends-on): Add fdopendir.
41366         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41367         fdopendir here.
41368         * modules/savedir (Depends-on): Only need fdopendir, not full
41369         openat.
41370         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41371         * lib/openat.h (fdopendir): Drop prototype.
41372         * lib/dirent.in.h (fdopendir): Provide prototype.
41373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41374         * modules/dirent (Makefile.am): Substitute them.
41375         * MODULES.html.sh (File system functions): Mention it.
41376         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41377         * modules/fdopendir-tests: New file.
41378         * tests/test-fdopendir.c: Likewise.
41379
41380         fchdir: use more consistent macro convention
41381         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41382         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41383         REPLACE_FCHDIR, rather than relying on config.h macros.
41384         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41385         inside a single make-time REPLACE_FCHDIR block, rather than using
41386         the config.h FCHDIR_REPLACEMENT.
41387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41388         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41389         Manage fstat replacement.
41390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41391         REPLACE_FCHDIR.
41392         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41393         (Makefile.am): Substitute REPLACE_FCHDIR.
41394         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41395         FCHDIR_REPLACEMENT.
41396         * lib/dup-safer.c (dup_safer): Likewise.
41397         * lib/dup2.c (rpl_dup2): Likewise.
41398         * lib/dup3.c (rpl_dup3): Likewise.
41399         * lib/open.c (rpl_open): Likewise.
41400
41401         fchdir: simplify error handling, and support dup3
41402         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41403         stdbool, malloc-posix, realloc-posix.
41404         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41405         (ensure_dirs_slot): Return false on allocation failure.
41406         (rpl_dup2): Delete.
41407         (_gl_register_dup): New function.
41408         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41409         (_gl_register_fd): Close fd on allocation failure.
41410         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41411         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41412         prototype.
41413         (rpl_dup2_fchdir): Delete prototype.
41414         * lib/open.c (open): Update caller.
41415         * lib/dup2.c (dup2): Track fchdir metadata.
41416         * lib/dup3.c (dup3): Likewise.
41417         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41419
41420 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41421
41422         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41423         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41424         don't pass arguments to AC_OUTPUT.
41425
41426 2009-09-02  Bruno Haible  <bruno@clisp.org>
41427
41428         * modules/mkdtemp (License): Relicense under LGPLv2+.
41429         Reported by Paolo Bonzini.
41430
41431 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41432
41433         Replace uses of obsolete autoconf macros in Jim's modules.
41434         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41435         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41436         can evoke a warning from autoconf when run with -Wobsolete
41437         enabled.  They were declared obsolete for good reasons (see
41438         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41439         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41440         should not continue using the deprecated macros.
41441         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41442         obsolete Autoconf macros with modern counterparts.
41443         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41444         * m4/dos.m4 (gl_AC_DOS): Likewise.
41445         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41446         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41447         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41448         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41449         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41450         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41451         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41452         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41453         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41454         Likewise.
41455         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41456         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41457         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41458         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41459         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41460         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41461
41462 2009-09-01  Eric Blake  <ebb9@byu.net>
41463
41464         fchdir: fix off-by-one bug in previous patch
41465         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41466         (_gl_unregister_fd): Delete useless if.
41467
41468 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41469
41470         maint.mk: sort the list of syntax-check rules
41471         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41472         easier to get a sense of progress when the rules are run sequentially
41473         and take a long time.
41474
41475 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41476
41477         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41478         * modules/netinet_in: Likewise.
41479         * modules/sys_file: Likewise.
41480         * modules/sys_ioctl: Likewise.
41481         * modules/sys_select: Likewise.
41482         * modules/sys_socket: Likewise.
41483         * modules/sys_stat: Likewise.
41484         * modules/sys_time: Likewise.
41485         * modules/sys_times: Likewise.
41486         * modules/sys_utsname: Likewise.
41487         * modules/sys_wait: Likewise.
41488
41489 2009-09-01  Jim Meyering  <meyering@redhat.com>
41490
41491         fts: help ensure that return values are not ignored
41492         * lib/fts_.h (__GNUC_PREREQ): Define.
41493         (__attribute_warn_unused_result__): Define.
41494         (fts_children, fts_close, fts_open, fts_read): Declare with
41495         __attribute_warn_unused_result__.
41496
41497         fts: fts_close now fails also when closing a dir file descriptor fails
41498         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41499         and propagate to caller, along with errno.
41500
41501         announce-gen: correct formatting in --help output
41502         * build-aux/announce-gen (usage): Move the one-line description in
41503         --help output "up", to where it belongs, just after Usage:.
41504
41505 2009-08-31  Eric Blake  <ebb9@byu.net>
41506
41507         fchdir: port to mingw
41508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41509         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41510         opened, then use a substitute.
41511         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41512         replacement.
41513         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41514         (_gl_register_fd): No need to check stat if open already filters
41515         all directories.
41516         (fchdir): Fix error condition to match POSIX.
41517         * modules/fchdir (Depends-on): Add sys_stat.
41518         * doc/posix-functions/open.texi (open): Document the limitation.
41519         * modules/fchdir-tests: New file.
41520         * tests/test-fchdir.c: Likewise.
41521
41522         canonicalize: allow cross-testing from cygwin to mingw
41523         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41524         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41525         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41526         Likewise.
41527         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41528         target does not support symlinks.
41529         * tests/test-canonicalize-lgpl.sh: Likewise.
41530
41531         chown: avoid compilation warning on mingw
41532         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41533         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41534         mingw.
41535         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41536         * modules/chown (Depends-on): Add errno.
41537
41538 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41539
41540         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41541         command.
41542
41543 2009-08-31  Jim Meyering  <meyering@redhat.com>
41544
41545         canonicalize: remove useless initialization
41546         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41547         initialization of local, "end".
41548
41549 2009-08-30  Bruno Haible  <bruno@clisp.org>
41550
41551         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41552         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41553         ENOSYS.
41554
41555 2009-08-30  Bruno Haible  <bruno@clisp.org>
41556
41557         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41558         /usr/xpg4/bin/tr when it exists.
41559         * tests/test-pipe-filter-gi1.sh: Likewise.
41560
41561 2009-08-30  Bruno Haible  <bruno@clisp.org>
41562
41563         Work around deficient /usr/bin/id program on Solaris.
41564         * tests/test-file-has-acl.sh (ID): New variable.
41565         * tests/test-set-mode-acl.sh (ID): Likewise.
41566         * tests/test-copy-acl.sh (ID): Likewise.
41567         * tests/test-copy-file.sh (ID): Likewise.
41568
41569 2009-08-30  Bruno Haible  <bruno@clisp.org>
41570
41571         New module 'xstriconveh'.
41572         * lib/xstriconveh.h: New file.
41573         * lib/xstriconveh.c: New file.
41574         * modules/xstriconveh: New file.
41575
41576 2009-08-30  Bruno Haible  <bruno@clisp.org>
41577
41578         Make it easier to use mem_cd_iconveh.
41579         * lib/striconveh.h (iconveh_t): New type.
41580         (iconveh_open, iconveh_close): New declarations.
41581         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41582         with a single 'const iconveh_t *' argument.
41583         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41584         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41585         with a single 'const iconveh_t *' argument.
41586         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41587         * tests/test-striconveh.c (main): Update.
41588         * NEWS: Mention the change.
41589
41590 2009-08-30  Bruno Haible  <bruno@clisp.org>
41591
41592         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41593         problem.
41594
41595 2009-08-30  Bruno Haible  <bruno@clisp.org>
41596
41597         Work around iconv_open problem on Solaris.
41598         * lib/iconv_open-solaris.gperf: New file.
41599         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41600         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41601         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41602         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41603         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41604         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41605
41606 2009-08-29  Jim Meyering  <meyering@redhat.com>
41607
41608         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41609         * top/maint.mk (cvs-check): Remove target; it was just an alias
41610         to the better-named vc-diff-check.
41611         (maintainer-distcheck): Remove rule.  It was used only from
41612         the (alpha/beta/major) target, and all of its commands but one
41613         were coreutils-specific.
41614         (vc-dist): Remove rule.
41615         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41616         Run vc-diff-check, not vc-dist.
41617         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41618
41619 2009-08-27  Bruno Haible  <bruno@clisp.org>
41620
41621         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41622         of 0.
41623
41624 2009-08-27  Bruno Haible  <bruno@clisp.org>
41625
41626         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41627         compilers.
41628         * doc/func.texi: Document the SunPRO C bug.
41629
41630 2009-08-27  Bruno Haible  <bruno@clisp.org>
41631
41632         Fix link error on Solaris.
41633         * tests/test-parse-duration.c (xstrdup): Remove function.
41634
41635 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41636
41637         ignore-value: handle pointer types, too
41638         * lib/ignore-value.h (__attribute__): Remove definition.
41639         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41640         of a more concise and more-often effective "(void) i" statement.
41641         (ignore_ptr): New function to suppress warnings from functions that
41642         return pointers, and to make it explicit that one function doesn't
41643         handle all cases.
41644
41645 2009-08-25  Bruno Haible  <bruno@clisp.org>
41646
41647         dup2: work around a Linux bug.
41648         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41649         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41650         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41651         Reported by Simon Josefsson.
41652
41653 2009-08-25  Jim Meyering  <meyering@redhat.com>
41654
41655         libguestfs uses gnulib
41656         * users.txt: Add libguestfs.
41657
41658 2009-08-24  Eric Blake  <ebb9@byu.net>
41659
41660         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41661         * lib/pipe2.c (includes): Add binary-io.h.
41662         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41663
41664 2009-08-24  Bruno Haible  <bruno@clisp.org>
41665
41666         Tolerate declared but missing accept4 syscall.
41667         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41668         available.
41669         * lib/sys_socket.in.h (accept4): If the function is already present,
41670         override it.
41671         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41672         * modules/accept4 (Makefile.am): Compile accept4.c always.
41673         Reported by Paolo Bonzini and Eric Blake.
41674
41675 2009-08-23  Bruno Haible  <bruno@clisp.org>
41676
41677         New module 'accept4'.
41678         * lib/sys_socket.in.h (accept4): New declaration.
41679         * lib/accept4.c: New file.
41680         * m4/accept4.m4: New file.
41681         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41682         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41683         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41684         HAVE_ACCEPT4.
41685         * modules/accept4: New file.
41686         * doc/glibc-functions/accept4.texi: Mention the new module.
41687
41688 2009-08-24  Jim Meyering  <meyering@redhat.com>
41689
41690         progname: also set global program_invocation_name, when possible
41691         Before this change, a libtool-enabled program that calls glibc's
41692         error function would report the program name as
41693         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41694         * modules/progname (configure.ac): Check for a declaration of
41695         program_invocation_name.
41696         * lib/progname.c:  Include <errno.h>.
41697         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41698         Set program_invocation_name.
41699
41700 2009-08-23  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/dup3.c: Include <string.h>.
41703
41704 2009-08-23  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41707         * lib/pipe2.c (pipe2): Likewise.
41708         Suggested by Eric Blake.
41709
41710 2009-08-23  Bruno Haible  <bruno@clisp.org>
41711
41712         Tolerate declared but missing dup3 syscall.
41713         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41714         * lib/unistd.in.h (dup3): If the function is already present,
41715         override it.
41716         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41717         * modules/dup3 (Makefile.am): Compile dup3.c always.
41718         Reported by Paolo Bonzini.
41719
41720 2009-08-23  Bruno Haible  <bruno@clisp.org>
41721
41722         Tolerate declared but missing pipe2 syscall.
41723         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41724         available.
41725         * lib/unistd.in.h (pipe2): If the function is already present,
41726         override it.
41727         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41728         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41729         Reported by Paolo Bonzini.
41730
41731 2009-08-23  Bruno Haible  <bruno@clisp.org>
41732
41733         * lib/pipe2.c (pipe2): Move #ifs inside function.
41734
41735 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41736
41737         quotearg: document limitations of quote_these_too
41738         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41739         those limitations are created.
41740         * lib/quotearg.h (set_char_quoting): Document that digits and
41741         letters that are special after backslash are not permitted.
41742         (quotearg_char): Cross-reference set_char_quoting documentation.
41743
41744 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41745
41746         quotearg: implement custom_quoting_style
41747         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41748         right_quote fields.
41749         (set_custom_quoting): New public function.
41750         (quotearg_buffer_restyled): Add left_quote and right_quote
41751         arguments, handle them very much like locale quoting, and update
41752         all uses.
41753         (quotearg_n_custom): New public function.
41754         (quotearg_n_custom_mem): New public function.
41755         (quotearg_custom): New public function.
41756         (quotearg_custom_mem): New public function.
41757         * lib/quotearg.h: Prototype and document new public functions.
41758         (enum quoting_style): For escape_quoting_style and
41759         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41760         ignored even though they're otherwise like c_quoting_style.
41761         Add custom_quoting_style member and document with comparison to
41762         clocale_quoting_style.
41763         * tests/test-quotearg.c (custom_quotes): New array.
41764         (custom_results): New array.
41765         (main): Extend to test custom quoting.
41766
41767 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41768
41769         quotearg: fix right quote escaping when it's in quote_these_too
41770         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41771         quote, be sure to prepend only one backslash.
41772         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41773         (main): Test it.
41774
41775 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41776
41777         quotearg-tests: test escaping of embedded locale quotes
41778         * tests/test-quotearg.c (struct result_strings): Add member for
41779         new input.
41780         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41781         (inputs): Add new input.
41782         (results_g): Add expected results.
41783         (flag_results): Likewise.
41784         (locale_results): Likewise.
41785         (compare_strings): Check those.
41786
41787 2009-08-23  Bruno Haible  <bruno@clisp.org>
41788
41789         Tests for module 'dup3'.
41790         * modules/dup3-tests: New file.
41791         * tests/test-dup3.c: New file.
41792
41793         New module 'dup3'.
41794         * lib/unistd.in.h (dup3): New declaration.
41795         * lib/dup3.c: New file.
41796         * m4/dup3.m4: New file.
41797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41798         HAVE_DUP3.
41799         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41800         * modules/dup3: New file.
41801         * doc/glibc-functions/dup3.texi: Mention the new module.
41802
41803 2009-08-23  Bruno Haible  <bruno@clisp.org>
41804
41805         Tweak the dup2 test.
41806         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41807         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41808         the test file is still empty. Fix argument order of lseek.
41809
41810 2009-08-23  Bruno Haible  <bruno@clisp.org>
41811
41812         Avoid test link errors when the modules getopt-gnu, gettext are used.
41813         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41815
41816 2009-08-23  Bruno Haible  <bruno@clisp.org>
41817
41818         Fix getdtablesize() on mingw.
41819         * lib/getdtablesize.c (getdtablesize): Implement differently.
41820         * lib/unistd.in.h (getdtablesize): Improve comment.
41821
41822 2009-08-23  Bruno Haible  <bruno@clisp.org>
41823
41824         New module 'mkostemp'.
41825         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41826         * lib/stdlib.in.h (mksotemp): New declaration.
41827         * lib/mkostemp.c: New file, from glibc with modifications.
41828         * lib/tempname.h (GT_FILE): Remove outdated comment.
41829         (gen_tempname): Add flags argument.
41830         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41831         (__GT_FILE): Map to 1.
41832         (small_open, large_open): Remove macros.
41833         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41834         * lib/mkstemp.c (mkstemp): Update.
41835         * lib/mkdtemp.c (mkdtemp): Likewise.
41836         * m4/mkostemp.m4: New file.
41837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41838         HAVE_MKOSTEMP.
41839         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41840         HAVE_MKOSTEMP.
41841         * modules/mkostemp: New file, based on modules/mkstemp.
41842         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41843         * NEWS: Mention the change.
41844
41845 2009-08-23  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41848         Reported by Eric Blake.
41849
41850 2009-08-23  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41853         Reported by Eric Blake.
41854
41855 2009-08-23  Bruno Haible  <bruno@clisp.org>
41856
41857         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41858         * modules/pipe2 (Depends-on): Likewise.
41859
41860 2009-08-23  Eric Blake  <ebb9@byu.net>
41861
41862         fcntl-h: add O_TTY_INIT support
41863         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41864         * tests/test-fcntl-h.c (o): Test it.
41865         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41866
41867         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41868         * modules/fcntl: Move <fcntl.h> header replacement...
41869         * modules/fcntl-h: ...to new name, so as not to collide with
41870         like-named function.
41871         * tests/test-fcntl.c: Rename...
41872         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41873         * modules/fcntl-tests: Rename...
41874         * modules/fcntl-h-tests: ...to this.  Update test file name.
41875         * modules/chdir-long (Depends-on): Update clients.
41876         * modules/chdir-safer (Depends-on): Likewise.
41877         * modules/fcntl-safer (Depends-on): Likewise.
41878         * modules/fts (Depends-on): Likewise.
41879         * modules/mkancesdirs (Depends-on): Likewise.
41880         * modules/mkdir-p (Depends-on): Likewise.
41881         * modules/open (Depends-on): Likewise.
41882         * modules/savewd (Depends-on): Likewise.
41883         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41884         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41885
41886 2009-08-22  Bruno Haible  <bruno@clisp.org>
41887
41888         * modules/binary-io (License): Relicense under LGPL.
41889         * modules/pipe2 (License): Likewise.
41890
41891 2009-08-22  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41894         return value.
41895         * lib/pipe-filter-gi.c (filter_init): Likewise.
41896         Reported by Eric Blake.
41897
41898 2009-08-22  Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41901         * modules/pipe (Depends-on): Add pipe2.
41902
41903 2009-08-22  Bruno Haible  <bruno@clisp.org>
41904
41905         Tests for module 'pipe2'.
41906         * modules/pipe2-tests: New file.
41907         * tests/test-pipe2.c: New file.
41908
41909         New module 'pipe2'.
41910         * lib/unistd.in.h (pipe2): New declaration.
41911         * lib/pipe2.c: New file.
41912         * m4/pipe2.m4: New file.
41913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41914         HAVE_PIPE2.
41915         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41916         * modules/pipe2: New file.
41917         * doc/glibc-functions/pipe2.texi: Mention the new module.
41918
41919 2009-08-22  Bruno Haible  <bruno@clisp.org>
41920
41921         Reference some new glibc functions.
41922         * doc/glibc-functions/accept4.texi: New file.
41923         * doc/glibc-functions/dup3.texi: New file.
41924         * doc/glibc-functions/mkostemp.texi: New file.
41925         * doc/glibc-functions/pipe2.texi: New file.
41926         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41927         (Glibc sys/socket.h): Refer to accept4.
41928         (Glibc unistd.h): Refer to dup3, pipe2.
41929         Reported by Eric Blake.
41930
41931 2009-08-22  Jim Meyering  <meyering@redhat.com>
41932             Bruno Haible  <bruno@clisp.org>
41933
41934         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41935         This makes it so packages using automake-1.11's silent-rules option
41936         can print e.g., a single "GEN    configmake.h" line, rather than
41937         the 30+ statements that perform the job.  If you want to see the
41938         actual commands, you can still run "make V=1".
41939         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41940         so that make output is abbreviated when those variables are defined
41941         appropriately.
41942         * modules/argz: Likewise.
41943         * modules/arpa_inet: Likewise.
41944         * modules/byteswap: Likewise.
41945         * modules/configmake: Likewise.
41946         * modules/dirent: Likewise.
41947         * modules/errno: Likewise.
41948         * modules/fcntl: Likewise.
41949         * modules/float: Likewise.
41950         * modules/fnmatch: Likewise.
41951         * modules/getopt-posix: Likewise.
41952         * modules/glob: Likewise.
41953         * modules/iconv_open: Likewise.
41954         * modules/inttypes: Likewise.
41955         * modules/localcharset: Likewise.
41956         * modules/locale: Likewise.
41957         * modules/math: Likewise.
41958         * modules/netdb: Likewise.
41959         * modules/netinet_in: Likewise.
41960         * modules/poll: Likewise.
41961         * modules/posix_spawnp-tests: Likewise.
41962         * modules/sched: Likewise.
41963         * modules/search: Likewise.
41964         * modules/selinux-h: Likewise.
41965         * modules/signal: Likewise.
41966         * modules/spawn: Likewise.
41967         * modules/stdarg: Likewise.
41968         * modules/stdbool: Likewise.
41969         * modules/stddef: Likewise.
41970         * modules/stdint: Likewise.
41971         * modules/stdio: Likewise.
41972         * modules/stdlib: Likewise.
41973         * modules/string: Likewise.
41974         * modules/strings: Likewise.
41975         * modules/sys_file: Likewise.
41976         * modules/sys_ioctl: Likewise.
41977         * modules/sys_select: Likewise.
41978         * modules/sys_socket: Likewise.
41979         * modules/sys_stat: Likewise.
41980         * modules/sys_time: Likewise.
41981         * modules/sys_times: Likewise.
41982         * modules/sys_utsname: Likewise.
41983         * modules/sys_wait: Likewise.
41984         * modules/sysexits: Likewise.
41985         * modules/time: Likewise.
41986         * modules/unistd: Likewise.
41987         * modules/wchar: Likewise.
41988         * modules/wctype: Likewise.
41989
41990 2009-08-22  Jim Meyering  <meyering@redhat.com>
41991
41992         announce-gen: detect write failure
41993         * build-aux/announce-gen: Add Coda at end.
41994         Remove equivalent-but-more-verbose block at top.
41995
41996 2009-08-19  Akim Demaille  <demaille@gostai.com>
41997
41998         bootstrap: --help to stdout.
41999         * bootstrap (usage): Don't send --help to stderr.
42000         Use a here doc instead of a long string.
42001
42002 2009-08-21  Eric Blake  <ebb9@byu.net>
42003
42004         test-popen-safer: split from test-popen
42005         * tests/test-popen.c (main): Move...
42006         * tests/test-popen.h: ...into new file.
42007         * tests/test-popen-safer2.c: New file.
42008         * modules/popen-tests (Files): Add test-popen.h.
42009         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42010         Suggested by Bruno Haible.
42011
42012         test-fcntl-safer: split from test-open
42013         * tests/test-open.c (main): Move...
42014         * tests/test-open.h: ...into new file.
42015         * tests/test-fcntl-safer.c: New file.
42016         * modules/open-tests (Files): Add test-open.h.
42017         * modules/fcntl-safer-tests: New file.
42018         Suggested by Bruno Haible.
42019
42020         test-fopen-safer: split from test-fopen
42021         * tests/test-fopen.c (main): Move...
42022         * tests/test-fopen.h: ...into new file.
42023         * tests/test-fopen-safer.c: New file.
42024         * modules/fopen-tests (Files): Add test-fopen.h.
42025         * modules/fopen-safer-tests: New file.
42026         Suggested by Bruno Haible.
42027
42028 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42029
42030         popen-safer: test O_CLOEXEC at run-time.
42031         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42032
42033 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42034
42035         fcntl: move more flags to the header
42036         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42037         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42038         * lib/fcntl.in.h: Do both things here.
42039
42040 2009-08-21  Jim Meyering  <meyering@redhat.com>
42041
42042         consistently remove $@-t before redirecting to it
42043         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42044         * modules/alloca-opt: Likewise.
42045         * modules/byteswap: Likewise.
42046         * modules/fnmatch: Likewise.
42047         * modules/getopt-posix: Likewise.
42048         * modules/glob: Likewise.
42049         * modules/poll: Likewise.
42050         * modules/posix_spawnp-tests: Likewise.
42051         * modules/sys_socket: Likewise.
42052         * modules/sysexits: Likewise.
42053
42054 2009-08-21  Eric Blake  <ebb9@byu.net>
42055
42056         popen: simplify access to original popen
42057         * lib/popen.c (rpl_popen): No need to worry about popen being a
42058         macro.
42059         Reported by Bruno Haible.
42060
42061 2009-08-20  Eric Blake  <ebb9@byu.net>
42062
42063         build: avoid some compiler warnings
42064         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42065         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42066         type.
42067         (new_exclude_segment, excluded_file_pattern_p)
42068         (excluded_file_name_p): Reduce scope.
42069         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42070         old-style declaration.
42071
42072 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42073
42074         * tests/test-exclude1.sh: Handle Windows EOL.
42075         * tests/test-exclude2.sh: Likewise.
42076         * tests/test-exclude3.sh: Likewise.
42077         * tests/test-exclude4.sh: Likewise.
42078         * tests/test-exclude5.sh: Likewise.
42079         * tests/test-exclude6.sh: Likewise.
42080         * tests/test-exclude7.sh: Likewise.
42081
42082 2009-08-19  Akim Demaille  <demaille@gostai.com>
42083
42084         bootstrap: find sha1sum when named gsha1sum.
42085         * bootstrap (find_tool): New.
42086         ($SHA1SUM): New.
42087         Use it.
42088
42089 2009-08-20  Jim Meyering  <meyering@redhat.com>
42090
42091         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42092         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42093         expression that converts "." in a file name to "\." in the resulting
42094         regexp.  Start with a dummy statement, so that prior shell variable
42095         definitions are expanded portably.  Reported by Simon Josefsson.
42096
42097 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42098
42099         Fix polling for writeability of a screen buffer.
42100         * lib/poll.c: Distinguish input and screen buffers for the
42101         Win32 implementation.
42102         * lib/select.c: Likewise.
42103
42104 2009-08-19  Eric Blake  <ebb9@byu.net>
42105
42106         popen-safer: prevent popen from clobbering std descriptors
42107         * modules/popen-safer: New file.
42108         * lib/popen-safer.c: Likewise.
42109         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42110         * lib/stdio--.h (popen): Provide override.
42111         * lib/stdio-safer.h (popen_safer): Provide declaration.
42112         * tests/test-popen.c (includes): Partially test this.
42113         * modules/popen-safer-tests: New file, for more tests.
42114         * tests/test-popen-safer.c: Likewise.
42115         * MODULES.html.sh (file stream based Input/Output): Mention it.
42116
42117         tests: test some of the *-safer modules
42118         * modules/fopen-safer (Depends-on): Add fopen.
42119         * modules/fcntl-safer (Depends-on): Add fcntl.
42120         * modules/stdlib-safer (Depends-on): Add stdlib.
42121         (configure.ac): Set indicator.
42122         * modules/unistd-safer (configure.ac): Likewise.
42123         * modules/tmpfile-safer (configure.ac): Likewise.
42124         (Depends-on): Add tmpfile.
42125         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42126         active.
42127         * tests/test-fopen.c (includes): Test safer versions when they are
42128         in use.
42129         * tests/test-open.c (includes): Likewise.
42130
42131         popen: fix cygwin 1.5 bug when stdin closed
42132         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42133         * modules/popen: New file.
42134         * modules/popen-tests: Likewise.
42135         * tests/test-popen.c: Likewise.
42136         * m4/popen.m4: Likewise.
42137         * lib/popen.c: Likewise.
42138         * lib/stdio.in.h (popen): New declaration.
42139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42140         * modules/stdio (Makefile.am): Likewise.
42141         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42142
42143 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42144
42145         maint.mk: give full control over update-copyright exclusions
42146         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42147         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42148         (update-copyright): Don't force inclusion of top-level
42149         ChangeLog.  Don't force exclusion of all COPYING files, but make
42150         them the default exclusion instead.
42151
42152 2009-08-16  Bruno Haible  <bruno@clisp.org>
42153
42154         Fix test failures on Solaris 10.
42155         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42156         tests when Solaris iconv() is used.
42157         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42158         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42159         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42160         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42161         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42162
42163 2009-08-16  Bruno Haible  <bruno@clisp.org>
42164
42165         Fix test failures on Solaris 10.
42166         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42167         'tr' program and pass it as first argument.
42168         * tests/test-pipe-filter-gi1.sh: Likewise.
42169         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42170         program as first argument.
42171         * tests/test-pipe-filter-gi1.c (main): Likewise.
42172
42173 2009-08-16  Eric Blake  <ebb9@byu.net>
42174
42175         fpurge: fix previous commits
42176         * modules/fpurge (Makefile.am): Make replacement conditional,
42177         partially reverting 2007-04-29 change; missed in previous
42178         attempt.
42179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42180         is missing.
42181
42182 2009-08-16  Bruno Haible  <bruno@clisp.org>
42183
42184         Clarify fpurge's effect on the file position.
42185         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42186         * tests/test-fpurge.c (main): Make a second pass for checking the file
42187         position.
42188
42189 2009-08-16  Bruno Haible  <bruno@clisp.org>
42190
42191         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42192         declaration of fpurge is missing.
42193         * tests/test-fpurge.c (main): Check that the file has not more contents
42194         than expected. Close the file before removing it.
42195
42196 2009-08-15  Eric Blake  <ebb9@byu.net>
42197
42198         fpurge: don't wrap working cygwin implementation
42199         * lib/fpurge.c (fpurge): Fix comment typo.
42200         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42201         1.7 to avoid replacement.
42202         * tests/test-fpurge.c (main): Enhance test.
42203
42204 2009-08-15  Eric Blake  <ebb9@byu.net>
42205         and Jim Meyering  <meyering@redhat.com>
42206
42207         test-update-copyright: skip if perl is insufficient
42208         * tests/test-update-copyright.sh: Failure to run maintainer tool
42209         should not cause testsuite failure on cygwin 1.5.
42210
42211 2009-08-14  Eric Blake  <ebb9@byu.net>
42212
42213         doc: mention more functions added in cygwin 1.7.0
42214         * doc/posix-headers/limits.texi (limits.h): Update for recent
42215         cygwin additions.
42216         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42217         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42218         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42219         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42220         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42221
42222 2009-08-14  Eric Blake  <ebb9@byu.net>
42223
42224         maint.mk: simplify update-copyright rule
42225         * top/maint.mk (update-copyright-local): Delete, and document how
42226         to do it in cfg.mk instead.
42227         (update-copyright-exclude-regexp): Delete, and document how to do
42228         it in .x-update-copyright instead.
42229         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42230         exclude ChangeLog.
42231
42232 2009-08-14  Bruno Haible  <bruno@clisp.org>
42233
42234         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42235
42236 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42237
42238         maint.mk: support update-copyright-env
42239         * top/maint.mk (update-copyright-env): Define place-holder.
42240         (update-copyright): Expand $(update-copyright-env) before
42241         invoking update-copyright.
42242
42243 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42244
42245         update-copyright: implement forced reformatting
42246         * build-aux/update-copyright: Implement and document
42247         UPDATE_COPYRIGHT_FORCE.
42248         * tests/test-update-copyright.sh: Test it.
42249
42250 2009-08-14  Eric Blake  <ebb9@byu.net>
42251         and Bruno Haible  <bruno@clisp.org>
42252
42253         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42254         * tests/test-locale.c: Revert previous patch related to NULL.
42255         * tests/test-stdio.c: Likewise.
42256         * tests/test-stdlib.c: Likewise.
42257         * tests/test-string.c: Likewise.
42258         * tests/test-unistd.c: Likewise.
42259         * modules/time-tests (Depends-on): Add verify.
42260         * modules/wchar-tests (Depends-on): Likewise.
42261         * tests/test-time.c: Test for NULL compliance.
42262         * tests/test-wchar.c: Likewise.
42263         * modules/locale (Depends-on): Add stddef.
42264         * modules/stdio (Depends-on): Likewise.
42265         * modules/stdlib (Depends-on): Likewise.
42266         * modules/string (Depends-on): Likewise.
42267         * modules/time (Depends-on): Likewise.
42268         * modules/unistd (Depends-on): Likewise.
42269         * modules/wchar (Depends-on): Likewise.
42270         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42271         * lib/stdlib.in.h (includes): Likewise.
42272         * lib/string.in.h (includes): Likewise.
42273         * lib/time.in.h (includes): Likewise.
42274         * lib/unistd.in.h (includes): Likewise.
42275         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42276         replaced.
42277         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42278         * m4/stddef_h.m4: New file.
42279         * modules/stddef: Likewise.
42280         * lib/stddef.in.h: Likewise.
42281         * modules/stddef-tests: Likewise.
42282         * tests/test-stddef.c: Likewise.
42283         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42284         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42285         * doc/posix-headers/locale.texi (locale.h): Likewise.
42286         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42287         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42288         * doc/posix-headers/string.texi (string.h): Likewise.
42289         * doc/posix-headers/time.texi (time.h): Likewise.
42290         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42291         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42292
42293 2009-08-14  Eric Blake  <ebb9@byu.net>
42294
42295         doc: improve git diff of texinfo files
42296         * .gitattributes: Add rule for *.texi files, with hint on how to
42297         use it.
42298         Copied from m4, and based on a report by Bruno Haible.
42299
42300 2009-08-14  Bruno Haible  <bruno@clisp.org>
42301
42302         Disable multithread support by default on Cygwin 1.5.x for real.
42303         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42304
42305 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42306
42307         update-copyright: much ado about intervals
42308         * build-aux/update-copyright: Implement and document
42309         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42310         of copyright year intervals.
42311         Also, document UPDATE_COPYRIGHT_YEAR.
42312         * tests/test-update-copyright.sh: Test it.
42313
42314         update-copyright: convert 2-digit to 4-digit years
42315         * build-aux/update-copyright: Implement and document.
42316         * tests/test-update-copyright.sh: Update.
42317
42318 2009-08-14  Jim Meyering  <meyering@redhat.com>
42319
42320         test-exclude: avoid coreutils "make check" failure
42321         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42322         just as in test-argmatch.c.
42323
42324 2009-08-13  Eric Blake  <ebb9@byu.net>
42325
42326         test-dup2: fix bad assumption
42327         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42328         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42329
42330         test-version-etc: fix CRLF portability issue
42331         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42332         recognize \r.
42333         * tests/test-argp-version-etc-1.sh: Likewise.
42334
42335         getopt: update client modules
42336         * modules/argp (Depends-on): Use getopt-gnu.
42337         * modules/git-merge-changelog (Depends-on): Likewise.
42338         * modules/long-options (Depends-on): Likewise.
42339         * modules/xstrtol (Depends-on): Likewise.
42340
42341 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42342
42343         * tests/test-version-etc.sh: Don't fail on different
42344         project/version.  Don't fail on CRLF differences.  Rewrite to use
42345         multiple -e instead of multiple sed forks, suggested by Eric Blake
42346         <ebb9@byu.net>.
42347         * tests/test-argp-version-etc-1.sh: Likewise.
42348
42349 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42350
42351         * tests/test-version-etc.sh: Don't fail on different
42352         project/version.
42353
42354 2009-08-12  Bruno Haible  <bruno@clisp.org>
42355
42356         Tests for modules 'getopt-posix', 'getopt-gnu'.
42357         * modules/getopt-posix-tests: New file.
42358         * tests/test-getopt.c: New file.
42359         * tests/test-getopt.h: New file.
42360         * tests/test-getopt_long.h: New file.
42361
42362         New modules 'getopt-posix', 'getopt-gnu'.
42363         * modules/getopt-gnu: New file, renamed from modules/getopt.
42364         * modules/getopt-posix: New file.
42365         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42366         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42367         (gl_GETOPT): Remove macro.
42368         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42369         Disable the test against BSD systems that declare optreset. Test
42370         against mingw bug. Test against lack of support of optional arguments
42371         on many platforms.
42372         * doc/glibc-headers/getopt.texi: Update module name and list of
42373         relevant platforms.
42374         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42375         'getopt-gnu' and more portability problems.
42376         * NEWS: Mention the changes.
42377
42378 2009-08-12  Bruno Haible  <bruno@clisp.org>
42379
42380         Ensure that optarg etc. get declared by <unistd.h>.
42381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42382         AC_USE_SYSTEM_EXTENSIONS.
42383         * modules/getopt (Depends-on): Add 'extensions'.
42384
42385 2009-08-12  Bruno Haible  <bruno@clisp.org>
42386
42387         Avoid test link errors.
42388         * modules/pipe-filter-ii-tests (Makefile.am): Define
42389         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42390         * modules/pipe-filter-gi-tests (Makefile.am): Define
42391         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42393
42394 2009-08-12  Bruno Haible  <bruno@clisp.org>
42395
42396         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42397         gl_GETOPT_SUBSTITUTE before.
42398         (gl_GETOPT): Use it.
42399         * m4/argp.m4 (gl_ARGP): Update.
42400         Reported by Sergey Poznyakoff.
42401
42402         * m4/getopt.m4: Reorder macros.
42403         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42404         (gl_GETOPT_SUBSTITUTE): Remove macro.
42405
42406 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42407
42408         Minor improvement in gitlog-to-changelog
42409
42410         * build-aux/gitlog-to-changelog: New option `--format' makes
42411         output format string configurable.
42412
42413 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42414
42415         Optimize exclude: use hash tables for non-wildcard patterns.
42416
42417         * lib/exclude.c: Include hash.h and mbuiter.h
42418         (struct exclude_pattern, exclude_segment): New data types.
42419         (struct exclude): Rewrite.
42420         (fnmatch_pattern_has_wildcards): New function.
42421         (new_exclude_segment, free_exclude_segment): New functions.
42422         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42423         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42424         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42425         * modules/exclude: Depend on hash and mbuiter.
42426
42427         * modules/exclude-tests: New file.
42428         * tests/test-exclude.c: New file.
42429         * tests/test-exclude1.sh: New file.
42430         * tests/test-exclude2.sh: New file.
42431         * tests/test-exclude3.sh: New file.
42432         * tests/test-exclude4.sh: New file.
42433         * tests/test-exclude5.sh: New file.
42434         * tests/test-exclude6.sh: New file.
42435         * tests/test-exclude7.sh: New file.
42436
42437 2009-08-12  Bruno Haible  <bruno@clisp.org>
42438
42439         Ensure that getopt() gets declared by <unistd.h>.
42440         * lib/unistd.in.h: Conditionally include getopt.h.
42441         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42442         Set GNULIB_UNISTD_H_GETOPT.
42443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42444         GNULIB_UNISTD_H_GETOPT.
42445         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42446
42447 2009-08-12  Bruno Haible  <bruno@clisp.org>
42448
42449         Clarify logic.
42450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42451         gl_replace_getopt instead of GETOPT_H.
42452
42453 2009-08-12  Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/getopt.m4: Add comments.
42456
42457 2009-08-12  Bruno Haible  <bruno@clisp.org>
42458
42459         Disable multithread support by default on Cygwin 1.5.x.
42460         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42461         set gl_use_threads=no if not specified otherwise.
42462
42463 2009-08-11  Bruno Haible  <bruno@clisp.org>
42464
42465         Avoid compilation error on NetBSD 5.0.
42466         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42467         * tests/test-stdio.c: Likewise.
42468         * tests/test-stdlib.c: Likewise.
42469         * tests/test-string.c: Likewise.
42470         * tests/test-unistd.c: Likewise.
42471         Reported by Greg Troxel <gdt@ir.bbn.com>
42472         at <https://savannah.gnu.org/support/?106973>.
42473
42474 2009-08-11  Bruno Haible  <bruno@clisp.org>
42475
42476         * modules/dup2-tests (Depends-on): Remove close.
42477
42478         Undo 2009-07-19 commit.
42479         * modules/acl-tests (Depends-on): Remove close.
42480         * modules/binary-io-tests (Depends-on): Likewise.
42481         * modules/closein-tests (Depends-on): Likewise.
42482         * modules/flock-tests (Depends-on): Likewise.
42483         * modules/fsync-tests (Depends-on): Likewise.
42484         * modules/lseek-tests (Depends-on): Likewise.
42485         * modules/pipe-tests (Depends-on): Likewise.
42486         * modules/posix_spawn-tests (Depends-on): Likewise.
42487         * modules/posix_spawnp-tests (Depends-on): Likewise.
42488         * modules/stat-time-tests (Depends-on): Likewise.
42489         * modules/yesno-tests (Depends-on): Likewise.
42490
42491 2009-08-10  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42494
42495 2009-08-10  Bruno Haible  <bruno@clisp.org>
42496
42497         Fix a gcc warning.
42498         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42499
42500 2009-08-10  Bruno Haible  <bruno@clisp.org>
42501
42502         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42503         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42504         not only the first time.
42505         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42506         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42507         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42508         is 1, not only the the first time.
42509
42510 2009-08-10  Bruno Haible  <bruno@clisp.org>
42511
42512         Make it possible to use module 'gethostname' without module 'close'.
42513         * lib/unistd.in.h (close): Evoke a link error only if
42514         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42516         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42517         * modules/unistd (Makefile.am): Substitute
42518         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42519         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42520         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42522         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42523         * modules/sys_ioctl (Makefile.am): Substitute
42524         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42525         * modules/socket (configure.ac): On native Windows, set
42526         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42527         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42528         Reported by Sam Steingold <sds@gnu.org>.
42529
42530 2009-08-10  Bruno Haible  <bruno@clisp.org>
42531
42532         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42533         * modules/ioctl (configure.ac): Likewise.
42534
42535 2009-08-10  Bruno Haible  <bruno@clisp.org>
42536
42537         Avoid collision between gnulib wrapper and libintl wrapper.
42538         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42539         already defined in intl/printf.c.
42540         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42541         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42542
42543 2009-08-09  Bruno Haible  <bruno@clisp.org>
42544
42545         Make <sys/select.h> really self-contained, also on Solaris 10.
42546         * lib/sys_select.in.h: Include <string.h>.
42547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42548         Solaris 10 problem.
42549         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42550         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42551         Reported by Jim Meyering.
42552
42553 2009-08-09  Bruno Haible  <bruno@clisp.org>
42554
42555         Avoid warnings from 'aclocal' that are due to a use of macro name
42556         AM_XGETTEXT_OPTION that is not defined in automake.
42557         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42558         automake.
42559         * modules/error (configure.ac): Likewise.
42560         * modules/propername (configure.ac): Likewise.
42561         * modules/vasprintf (configure.ac): Likewise.
42562         * modules/verror (configure.ac): Likewise.
42563         * modules/xprintf (configure.ac): Likewise.
42564         * modules/xvasprintf (configure.ac): Likewise.
42565
42566 2009-08-08  Bruno Haible  <bruno@clisp.org>
42567
42568         Avoid compilation error in C++ mode.
42569         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42570         Reported by Sam Steingold <sds@gnu.org>.
42571
42572 2009-08-08  Bruno Haible  <bruno@clisp.org>
42573
42574         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42575         for the various Unix platforms.
42576         * doc/posix-headers/limits.texi: Update platforms list regarding
42577         HOST_NAME_MAX.
42578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42579
42580 2009-08-07  Jim Meyering  <meyering@redhat.com>
42581
42582         selinux-at: fix typo in a comment
42583         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42584         Spotted by Paolo Bonzini.
42585
42586         selinux-at: remove redundant m4 code, add documentation
42587         * modules/selinux-at (configure.ac): Remove redundant code.
42588         LIB_SELINUX is already set via the dependent module, selinux-h.
42589         (Include): Add quotes around selinux-at.h.
42590         * lib/selinux-at.h: Add documentation.
42591         Reported by Bruno Haible in
42592         http://marc.info/?l=gnulib-bug&m=124958988300749
42593
42594 2009-08-07  Bruno Haible  <bruno@clisp.org>
42595
42596         Avoid link error on MacOS X 10.3 and 10.4.
42597         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42598         on non-ELF systems.
42599         * lib/argp-pv.c (argp_program_version): Likewise.
42600         Reported by Simon Josefsson.
42601
42602 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42603
42604         * tests/test-version-etc.sh: Use $EXEEXT.
42605
42606 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42607
42608         update-copyright: update documentation to point to maint.mk
42609         * build-aux/update-copyright: Here.
42610
42611 2009-08-06  Jim Meyering  <meyering@redhat.com>
42612
42613         maint.mk: support update-copyright-local
42614         * top/maint.mk (update-copyright-local): Define place-holder.
42615         (update-copyright): Depend on $(update-copyright-local).
42616
42617 2009-08-06  Jim Meyering  <meyering@redhat.com>
42618
42619         selinux-at: new module
42620         Initially written for coreutils, this module will soon be
42621         used by findutils, too.
42622         * MODULES.html.sh [Misc]: Add selinux-at.
42623         * lib/selinux-at.h: New file, from coreutils.
42624         * lib/selinux-at.c: Likewise.
42625         * modules/selinux-at: Likewise.
42626         (License): Change from LGPL to GPL, since it depends
42627         on the GPL'd openat module.
42628
42629         doc: update README
42630         * README: Remove references to cogito.
42631         Remove cvs-repo-updating instructions from 2007.
42632         Don't imply that CVS is better if you have limited disk space.
42633
42634 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42635
42636         update-copyright: support C-style comments
42637         * build-aux/update-copyright: Implement and document.
42638         * tests/test-update-copyright.sh: Test.
42639
42640 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42641
42642         update-copyright: support omitted "(C)"
42643         * build-aux/update-copyright: Implement and document.  Also,
42644         allow variable whitespace before "(C)".
42645         * tests/test-update-copyright.sh: Test.
42646
42647 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42648
42649         update-copyright: don't trip on non-FSF copyright statements
42650         * build-aux/update-copyright: Fix so that the first correctly
42651         formatted FSF copyright statement is recognized no matter what
42652         appears before it.  Update documentation.
42653         * tests/test-update-copyright.sh: Test that.
42654
42655 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42656
42657         update-copyright: clean up code a little
42658         * build-aux/update-copyright: Append "_re" to the name of any
42659         variable holding a regular expression.
42660         Replace "old" and "new" with "stmt" in variable names.
42661         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42662         handled correctly.
42663         Format code more consistently.
42664
42665 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42666
42667         update-copyright-tests: improve portability
42668         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42669         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42670
42671 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42672
42673         update-copyright: support @copyright{} and &copy;
42674         * build-aux/update-copyright: Implement and document.
42675         * tests/test-update-copyright.sh: Test.
42676
42677 2009-08-04  Jim Meyering  <meyering@redhat.com>
42678
42679         update-copyright-tests: correctly test EOL=\r\n handling
42680         * tests/test-update-copyright.sh: Put \r at the end of some lines
42681         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42682
42683         maint.mk: make update-copyright exclusion list more configurable
42684         * top/maint.mk (update-copyright): Default to excluding COPYING,
42685         but allow an override, in case someone does want to update that file.
42686
42687         maint.mk: don't update copyright date in COPYING
42688         * top/maint.mk (update-copyright): Exclude COPYING.
42689
42690         maint.mk: add a copyright-updating rule
42691         * top/maint.mk (update-copyright): New rule.
42692         Derived from coreutils/Makefile.am.
42693
42694         update-copyright: rename some variables
42695         * build-aux/update-copyright: Rename a few variables for clarity.
42696         Tweak syntax.  List Joel E. Denny as coauthor.
42697
42698 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42699
42700         update-copyright: fix bug for 2-digit last year and add tests
42701         * build-aux/update-copyright: Fix bug.
42702         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42703         specified.
42704         * modules/update-copyright-tests: New
42705         * tests/test-update-copyright.sh: New.
42706
42707 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42708
42709         update-copyright: handle leading tabs in line prefix
42710         * build-aux/update-copyright: Count leading tabs as 8 spaces
42711         when computing margin.  This helps with the formatting of
42712         ChangeLogs, for example.
42713         Fix documentation a little.
42714
42715 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42716
42717         update-copyright: support EOL=\r\n
42718         * build-aux/update-copyright: Implement that.
42719
42720 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42721
42722         update-copyright: automatically format copyright statements
42723         * build-aux/update-copyright: Implement that.
42724         Also, be a little more predictable and safer by always failing
42725         when the full copyright format is not perfectly recognized as an
42726         unbroken whole.  Discussed at
42727         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42728         Rewrite documentation.
42729
42730 2009-08-03  Bruno Haible  <bruno@clisp.org>
42731
42732         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42733
42734 2009-08-02  Bruno Haible  <bruno@clisp.org>
42735
42736         Tests for module 'uname'.
42737         * modules/uname-tests: New file.
42738         * tests/test-uname.c: New file.
42739
42740         New module 'uname'.
42741         * lib/uname.c: New file.
42742         * m4/uname.m4: New file.
42743         * modules/uname: New file.
42744         * doc/posix-functions/uname.texi: Mention the new module.
42745
42746 2009-08-02  Bruno Haible  <bruno@clisp.org>
42747
42748         Tests for module 'sys_utsname'.
42749         * modules/sys_utsname-tests: New file.
42750         * tests/test-sys_utsname.c: New file.
42751
42752         New module 'sys_utsname'.
42753         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42754         * m4/sys_utsname_h.m4: New file.
42755         * modules/sys_utsname: New file.
42756         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42757
42758 2009-08-02  Bruno Haible  <bruno@clisp.org>
42759
42760         Implicitly initialize the sockets library.
42761         * lib/gethostname.c: Include sockets.h.
42762         (rpl_gethostname): Invoke gl_sockets_startup.
42763         * lib/socket.c: Include sockets.h.
42764         (rpl_socket): Invoke gl_sockets_startup.
42765         * modules/gethostname (Depends-on): Add sockets.
42766         * modules/socket (Depends-on): Likewise.
42767         * tests/test-poll.c: Don't include sockets.h.
42768         (main): Don't invoke gl_sockets_startup.
42769         * tests/test-select.c: Don't include sockets.h.
42770         (main): Don't invoke gl_sockets_startup.
42771
42772 2009-08-02  Bruno Haible  <bruno@clisp.org>
42773
42774         Allow multiple calls to gl_sockets_startup.
42775         * lib/sockets.c (initialized_sockets_version): New variable.
42776         (gl_sockets_startup): Do nothing if already called for this or a higher
42777         version.
42778         (gl_sockets_cleanup): Reset initialized_sockets_version.
42779
42780 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42781
42782         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42783         different project/version.
42784
42785 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42786             Bruno Haible  <bruno@clisp.org>
42787
42788         Tests for module 'pipe-filter-gi'.
42789         * modules/pipe-filter-gi-tests: New file.
42790         * tests/test-pipe-filter-gi1.sh: New file.
42791         * tests/test-pipe-filter-gi1.c: New file.
42792         * tests/test-pipe-filter-gi2.sh: New file.
42793         * tests/test-pipe-filter-gi2-main.c: New file.
42794         * tests/test-pipe-filter-gi2-child.c: New file.
42795
42796         New module 'pipe-filter-gi'.
42797         * lib/pipe-filter-gi.c: New file.
42798         * modules/pipe-filter-gi: New file.
42799
42800 2009-08-02  Bruno Haible  <bruno@clisp.org>
42801             Paolo Bonzini  <bonzini@gnu.org>
42802
42803         Tests for module 'pipe-filter-ii'.
42804         * modules/pipe-filter-ii-tests: New file.
42805         * tests/test-pipe-filter-ii1.sh: New file.
42806         * tests/test-pipe-filter-ii1.c: New file.
42807         * tests/test-pipe-filter-ii2.sh: New file.
42808         * tests/test-pipe-filter-ii2-main.c: New file.
42809         * tests/test-pipe-filter-ii2-child.c: New file.
42810
42811         New module 'pipe-filter-ii'.
42812         * lib/pipe-filter.h: New file.
42813         * lib/pipe-filter-ii.c: New file.
42814         * lib/pipe-filter-aux.h: New file.
42815         * modules/pipe-filter-ii: New file.
42816
42817 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42818
42819         * lib/gc-libgcrypt.c: Change copyright to FSF.
42820         * lib/gc-gnulib.c: Likewise.
42821
42822 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42823
42824         * lib/gethostname.c: Include limits.h.
42825
42826 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42827             Bruno Haible  <bruno@clisp.org>
42828
42829         Ensure HOST_NAME_MAX as part of the gethostname module.
42830         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42831         define also HOST_NAME_MAX.
42832         * tests/test-gethostname.c: Include <limits.h>.
42833         (main): Check also HOST_NAME_MAX.
42834         * doc/posix-headers/limits.texi: Document the mingw problem.
42835
42836 2009-08-02  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42839         Add comments.
42840
42841 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42842
42843         * lib/gethostname.c: Add Windows wrapper.
42844         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42845         * modules/gethostname: Depend on sys_socket & errno, for also
42846         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42847         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42848
42849 2009-07-31  Jim Meyering  <meyering@redhat.com>
42850
42851         getloadavg: fix symbol name in comment
42852         * lib/getloadavg.c: Correct a typo I introduced when adding
42853         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42854         Matt Kraai spotted the problem.
42855
42856 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42857
42858         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42859         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42860         code also if ! defined N_NAME_POINTER.
42861         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42862         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42863         but the n_name member is a 12-byte array.
42864
42865 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42866
42867         update-copyright: generalize comment handling
42868         * build-aux/update-copyright: Handle copyright statements
42869         within more comment styles.
42870         Document usage.
42871         Report any file with an external copyright holder or parse failure.
42872
42873 2009-07-29  Jim Meyering  <meyering@redhat.com>
42874
42875         mktime: correct setting of REPLACE_MKTIME
42876         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42877
42878         update-copyright: new module
42879         * modules/update-copyright: New file.
42880         * build-aux/update-copyright: New file.
42881         * MODULES.html.sh (maint+release support): Add update-copyright.
42882
42883 2009-07-27  Bruno Haible  <bruno@clisp.org>
42884
42885         Fix compilation error when <ctime> is used and mktime is replaced.
42886         * lib/time.in.h (mktime): New declaration.
42887         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42888         REPLACE_MKTIME instead of defining mktime in config.h.
42889         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42890         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42891         Reported by Ross McFarland <rwmcfa1@neces.com>.
42892
42893 2009-07-27  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42896         Reported by Matt Kraai <mkraai@beckman.com>.
42897
42898 2009-07-25  Jim Meyering  <meyering@redhat.com>
42899
42900         maint.mk: avoid warnings about missing files
42901         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42902         diagnostic when .prev-version does not exist.
42903         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42904         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42905         nonexistent cfg.mk.
42906         Suggestions from Simon Josefsson.
42907
42908 2009-07-25  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42911         defined as macros. Needed on QNX 6.4.1.
42912         Reported by Matt Kraai <mkraai@beckman.com>.
42913
42914 2009-07-23  Jim Meyering  <meyering@redhat.com>
42915
42916         maint.mk: invoke "make dist" with a working value of XZ_OPT
42917         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42918
42919 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42920
42921         Make fseeko.c compile on QNX.
42922         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42923
42924 2009-07-22  Peter Simons  <simons@cryp.to>
42925
42926         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42927         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42928         * lib/md4.h: Likewise.
42929         * lib/md5.h: Likewise.
42930         * lib/sha1.h: Likewise.
42931         * lib/sha256.h: Likewise.
42932         * lib/sha512.h: Likewise.
42933
42934         tests-sha1: don't assign literal string to 'char *' variable
42935         * tests/test-sha1.c (main): Declare locals with "const" to match
42936         attributes of the right hand side.
42937
42938 2009-07-21  Eric Blake  <ebb9@byu.net>
42939
42940         dup2: fix more mingw problems
42941         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42942         fd to itself.
42943         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42944         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42945         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42946         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42947         care of mingw bugs.
42948
42949 2009-07-21  Jim Meyering  <meyering@redhat.com>
42950
42951         vc-list-files: avoid failure when /bin/sh is dash
42952         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42953         On some Debian based systems, /bin/sh is a symlink to dash, and running
42954         this command would omit the "/" following each 'tests' prefix:
42955           dash -x build-aux/vc-list-files -C . tests
42956         That is because bash and dash work differently:
42957           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42958           bash ok
42959           dash odd
42960
42961 2009-07-21  Eric Blake  <ebb9@byu.net>
42962
42963         dup2-tests: test previous patch
42964         * modules/dup2-tests: New file.
42965         * tests/test-dup2.c: Likewise.
42966         * tests/test-open.c (main): Avoid unspecified behavior.
42967         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42968         test.
42969
42970         dup2: work around mingw and cygwin 1.5 bug
42971         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42973         * modules/unistd (Makefile.am): Substitute it.
42974         * lib/unistd.in.h (dup2): Declare the replacement.
42975         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42976         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42977         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42978         * modules/execute (Depends-on): Add dup2.
42979         * modules/fseterr (Depends-on): Likewise.
42980         * modules/pipe (Depends-on): Likewise.
42981         * modules/posix_spawn-internal (Depends-on): Likewise.
42982
42983 2009-07-21  Bruno Haible  <bruno@clisp.org>
42984
42985         * modules/.gitattributes: New file.
42986
42987 2009-07-20  Bruno Haible  <bruno@clisp.org>
42988
42989         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42990         (main): Use it.
42991
42992 2009-07-20  Eric Blake  <ebb9@byu.net>
42993
42994         test-pipe: make a bit more robust.
42995         * tests/test-pipe.c (myerr): Allow error messages regardless of
42996         what we do to stderr.
42997         (test_pipe): Rearrange to avoid deadlock.
42998         (child_main): Try a larger read, to ensure we avoided deadlock.
42999         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43000         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43001         if misused.
43002
43003 2009-07-19  Jim Meyering  <meyering@redhat.com>
43004
43005         fts: avoid false-positive cycle-detection
43006         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43007         for each new command line argument.
43008
43009 2009-07-19  Bruno Haible  <bruno@clisp.org>
43010
43011         Fix build error on mingw with the modules sys_select and unistd.
43012         * modules/acl-tests (Depends-on): Add close.
43013         * modules/binary-io-tests (Depends-on): Likewise.
43014         * modules/closein-tests (Depends-on): Likewise.
43015         * modules/flock-tests (Depends-on): Likewise.
43016         * modules/fsync-tests (Depends-on): Likewise.
43017         * modules/lseek-tests (Depends-on): Likewise.
43018         * modules/pipe-tests (Depends-on): Likewise.
43019         * modules/posix_spawn-tests (Depends-on): Likewise.
43020         * modules/posix_spawnp-tests (Depends-on): Likewise.
43021         * modules/stat-time-tests (Depends-on): Likewise.
43022         * modules/yesno-tests (Depends-on): Likewise.
43023
43024 2009-07-19  Bruno Haible  <bruno@clisp.org>
43025
43026         Unify conditionals.
43027         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43028         macros, not at the compiler macros.
43029         * lib/pipe.c: Likewise.
43030         * lib/execute.c: Likewise.
43031         * lib/spawni.c: Likewise.
43032
43033 2009-07-19  Bruno Haible  <bruno@clisp.org>
43034
43035         Fix handling of closed stdin/stdout/stderr on mingw.
43036         * lib/w32spawn.h: Include unistd.h.
43037         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43038         file descriptor with O_NOINHERIT flag.
43039         (fd_safer_noinherit): New function, based on fd-safer.c.
43040         (dup_safer_noinherit): New function, based on dup-safer.c.
43041         (undup_safer_noinherit): New function.
43042         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43043         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43044         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43045         instead of fd_safer.
43046         * tests/test-pipe.c: Include <windows.h>.
43047         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43048         result.
43049
43050         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43051         from main.
43052         (test_pipe): Pass an extra argument for disambiguation.
43053         (main): Invoke parent_main or child_main.
43054
43055         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43056         consistently.
43057
43058 2009-07-18  Eric Blake  <ebb9@byu.net>
43059
43060         test-pipe: fix mingw build
43061         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43062
43063 2009-07-18  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/pipe-tests (Makefile.am): Fix typo.
43066
43067 2009-07-18  Eric Blake  <ebb9@byu.net>
43068
43069         error: fix mingw build
43070         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43071         Reported by Bruno Haible.
43072
43073         error: avoid undefined use of stdout
43074         * lib/error.c (error, error_at_line): Check that fd 1 is open
43075         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43076         is handling faults and the close_stdout module wants to report the
43077         detection of closed stdout as an error.
43078
43079 2009-07-17  Eric Blake  <ebb9@byu.net>
43080
43081         pipe: be robust in face of closed fds
43082         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43083         should cause child to misbehave.
43084         * modules/pipe-tests: New module.
43085         * tests/test-pipe.c: New file.
43086         * tests/test-pipe.sh: New file.
43087         Reported by Akim Demaille.
43088
43089 2009-07-14  Bruno Haible  <bruno@clisp.org>
43090
43091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43092         Reported by anonymous kc.
43093
43094 2009-07-07  Jim Meyering  <meyering@redhat.com>
43095
43096         maint.mk: don't look for translatable strings in *.m4 or *.mk
43097         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43098         when searching for translatable strings.
43099
43100 2009-07-05  Jim Meyering  <meyering@redhat.com>
43101
43102         remove superfluous parentheses in STREQ definition
43103         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43104         * lib/getugroups.c (STREQ): Likewise.
43105         * lib/fnmatch.c (STREQ): Likewise.
43106         Spotted by Bruno Haible.
43107
43108 2009-07-04  Jim Meyering  <meyering@redhat.com>
43109
43110         argv-iter: new module
43111         * MODULES.html.sh: Add argv-iter.
43112         * lib/argv-iter.c, lib/argv-iter.h: New files.
43113         * modules/argv-iter: New file.
43114         * modules/argv-iter-tests: New file.
43115         * tests/test-argv-iter.c: Test it.
43116
43117 2009-07-04  Bruno Haible  <bruno@clisp.org>
43118
43119         Fix assertion.
43120         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43121         contains more exact copies of a given entry than file2, leave the extra
43122         copies unpaired rather than aborting.
43123         Reported by Eric Blake.
43124
43125 2009-07-02  Bruno Haible  <bruno@clisp.org>
43126
43127         Speedup git-merge-changelog for git cherry-pick.
43128         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43129         (entries_mapping_get): New function, extracted from compute_mapping.
43130         (entries_mapping_reverse_get): New function.
43131         (compute_mapping): Add a 'full' argument. Return the result in a
43132         'struct entries_mapping'.
43133         (main): Update. Access the mappings through entries_mapping_get.
43134         Reported by Eric Blake.
43135
43136 2009-07-02  Bruno Haible  <bruno@clisp.org>
43137
43138         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43139         best_i.
43140
43141 2009-07-02  Bruno Haible  <bruno@clisp.org>
43142
43143         Speed up approximate search for matching ChangeLog entries.
43144         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43145         argument. Call fstrcmp_bounded instead of fstrcmp.
43146         (compute_mapping, try_split_merged_entry, main): Update callers.
43147
43148 2009-07-02  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43151
43152 2009-06-30  Bruno Haible  <bruno@clisp.org>
43153
43154         Reduce the number of uc_is_cased calls.
43155         * lib/unicase.h (casing_suffix_context_t): Add
43156         'first_char_except_ignorable' field.
43157         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43158         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43159         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43160         Update initializer.
43161         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43162         case-ignorable characters.
43163         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43164         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43165         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43166         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43167         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43168
43169 2009-06-30  Bruno Haible  <bruno@clisp.org>
43170
43171         Tests for module 'unicase/ignorable'.
43172         * modules/unicase/ignorable-tests: New file.
43173         * tests/unicase/test-ignorable.c: New file, generated by
43174         gen-uni-tables.
43175
43176         Tests for module 'unicase/cased'.
43177         * modules/unicase/cased-tests: New file.
43178         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43179         * tests/unicase/test-predicate-part1.h: New file, derived from
43180         tests/unictype/test-predicate-part1.h.
43181         * tests/unicase/test-predicate-part2.h: New file, same as
43182         tests/unictype/test-predicate-part2.h.
43183
43184         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43185         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43186         (output_casing_properties): New function.
43187         (main): Call it.
43188         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43189         * lib/unicase/cased.c: Include unictype/bitmap.h.
43190         (uc_is_cased): Define through a bitmap lookup.
43191         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43192         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43193         (uc_is_case_ignorable): Define through a bitmap lookup.
43194         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43195         lib/unictype/bitmap.h.
43196         (Depends-on): Add inline. Clean up.
43197         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43198         lib/unictype/bitmap.h.
43199         (Depends-on): Add inline. Clean up.
43200         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43201         recognition.
43202         * tests/unicase/test-u16-tolower.c (main): Likewise.
43203         * tests/unicase/test-u32-tolower.c (main): Likewise.
43204
43205 2009-06-30  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43208         * lib/unicase/u16-casemap.c: Likewise.
43209         * lib/unicase/u32-casemap.c: Likewise.
43210
43211 2009-06-29  Bruno Haible  <bruno@clisp.org>
43212
43213         Define u32_casefold as a wrapper around u32_ct_casefold.
43214         * lib/unicase/u32-casefold.c: Update.
43215         * modules/unicase/u32-casefold (Depends-on): Add
43216         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43217         unicase/empty-suffix-context. Clean up.
43218
43219         Define u16_casefold as a wrapper around u16_ct_casefold.
43220         * lib/unicase/u16-casefold.c: Update.
43221         * modules/unicase/u16-casefold (Depends-on): Add
43222         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43223         unicase/empty-suffix-context. Clean up.
43224
43225         Define u8_casefold as a wrapper around u8_ct_casefold.
43226         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43227         * lib/unicase/u8-casefold.c: Update.
43228         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43229         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43230
43231         Define u32_totitle as a wrapper around u32_ct_totitle.
43232         * lib/unicase/u32-totitle.c: Update.
43233         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43234         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43235
43236         Define u16_totitle as a wrapper around u16_ct_totitle.
43237         * lib/unicase/u16-totitle.c: Update.
43238         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43239         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43240
43241         Define u8_totitle as a wrapper around u8_ct_totitle.
43242         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43243         functions.
43244         (FUNC): Delegate to U_CT_TOTITLE.
43245         * lib/unicase/u8-totitle.c: Update.
43246         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43247         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43248
43249         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43250         invocation.
43251         * modules/unicase/u32-tolower (Depends-on): Add
43252         unicase/empty-prefix-context, unicase/empty-suffix-context.
43253
43254         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43255         invocation.
43256         * modules/unicase/u16-tolower (Depends-on): Add
43257         unicase/empty-prefix-context, unicase/empty-suffix-context.
43258
43259         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43260         * modules/unicase/u8-tolower (Depends-on): Add
43261         unicase/empty-prefix-context, unicase/empty-suffix-context.
43262
43263         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43264         invocation.
43265         * modules/unicase/u32-toupper (Depends-on): Add
43266         unicase/empty-prefix-context, unicase/empty-suffix-context.
43267
43268         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43269         invocation.
43270         * modules/unicase/u16-toupper (Depends-on): Add
43271         unicase/empty-prefix-context, unicase/empty-suffix-context.
43272
43273         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43274         * modules/unicase/u8-toupper (Depends-on): Add
43275         unicase/empty-prefix-context, unicase/empty-suffix-context.
43276
43277         New module 'unicase/u32-ct-casefold'.
43278         * lib/unicase/u32-ct-casefold.c: New file.
43279         * modules/unicase/u32-ct-casefold: New file.
43280
43281         New module 'unicase/u16-ct-casefold'.
43282         * lib/unicase/u16-ct-casefold.c: New file.
43283         * modules/unicase/u16-ct-casefold: New file.
43284
43285         New module 'unicase/u8-ct-casefold'.
43286         * lib/unicase/u8-ct-casefold.c: New file.
43287         * lib/unicase/u-ct-casefold.h: New file, derived from
43288         lib/unicase/u-casefold.h.
43289         * modules/unicase/u8-ct-casefold: New file.
43290
43291         New module 'unicase/u32-ct-totitle'.
43292         * lib/unicase/u32-ct-totitle.c: New file.
43293         * modules/unicase/u32-ct-totitle: New file.
43294
43295         New module 'unicase/u16-ct-totitle'.
43296         * lib/unicase/u16-ct-totitle.c: New file.
43297         * modules/unicase/u16-ct-totitle: New file.
43298
43299         New module 'unicase/u8-ct-totitle'.
43300         * lib/unicase/u8-ct-totitle.c: New file.
43301         * lib/unicase/u-ct-totitle.h: New file, derived from
43302         lib/unicase/u-totitle.h.
43303         * modules/unicase/u8-ct-totitle: New file.
43304
43305         New module 'unicase/u32-ct-tolower'.
43306         * lib/unicase/u32-ct-tolower.c: New file.
43307         * modules/unicase/u32-ct-tolower: New file.
43308
43309         New module 'unicase/u16-ct-tolower'.
43310         * lib/unicase/u16-ct-tolower.c: New file.
43311         * modules/unicase/u16-ct-tolower: New file.
43312
43313         New module 'unicase/u8-ct-tolower'.
43314         * lib/unicase/u8-ct-tolower.c: New file.
43315         * modules/unicase/u8-ct-tolower: New file.
43316
43317         New module 'unicase/u32-ct-toupper'.
43318         * lib/unicase/u32-ct-toupper.c: New file.
43319         * modules/unicase/u32-ct-toupper: New file.
43320
43321         New module 'unicase/u16-ct-toupper'.
43322         * lib/unicase/u16-ct-toupper.c: New file.
43323         * modules/unicase/u16-ct-toupper: New file.
43324
43325         New module 'unicase/u8-ct-toupper'.
43326         * lib/unicase/u8-ct-toupper.c: New file.
43327         * modules/unicase/u8-ct-toupper: New file.
43328
43329         Add context arguments to u*_casemap functions.
43330         * lib/unicase/unicasemap.h: Include unicase.h.
43331         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43332         suffix_context arguments.
43333         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43334         functions.
43335         (FUNC): Add prefix_context and suffix_context arguments. Use
43336         uc_is_cased and uc_is_case_ignorable.
43337         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43338         * lib/unicase/u16-casemap.c: Likewise.
43339         * lib/unicase/u32-casemap.c: Likewise.
43340         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43341         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43342         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43343         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43344         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43345         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43346
43347         New module 'unicase/u32-suffix-context'.
43348         * lib/unicase/u32-suffix-context.c: New file.
43349         * modules/unicase/u32-suffix-context: New file.
43350
43351         New module 'unicase/u16-suffix-context'.
43352         * lib/unicase/u16-suffix-context.c: New file.
43353         * modules/unicase/u16-suffix-context: New file.
43354
43355         New module 'unicase/u8-suffix-context'.
43356         * lib/unicase/u8-suffix-context.c: New file.
43357         * lib/unicase/u-suffix-context.h: New file.
43358         * modules/unicase/u8-suffix-context: New file.
43359
43360         New module 'unicase/empty-suffix-context'.
43361         * lib/unicase/empty-suffix-context.c: New file.
43362         * modules/unicase/empty-suffix-context: New file.
43363
43364         New module 'unicase/u32-prefix-context'.
43365         * lib/unicase/u32-prefix-context.c: New file.
43366         * modules/unicase/u32-prefix-context: New file.
43367
43368         New module 'unicase/u16-prefix-context'.
43369         * lib/unicase/u16-prefix-context.c: New file.
43370         * modules/unicase/u16-prefix-context: New file.
43371
43372         New module 'unicase/u8-prefix-context'.
43373         * lib/unicase/u8-prefix-context.c: New file.
43374         * lib/unicase/u-prefix-context.h: New file.
43375         * lib/unicase/context.h: New file.
43376         * modules/unicase/u8-prefix-context: New file.
43377
43378         New module 'unicase/empty-prefix-context'.
43379         * lib/unicase/empty-prefix-context.c: New file.
43380         * modules/unicase/empty-prefix-context: New file.
43381
43382         New module 'unicase/ignorable'.
43383         * lib/unicase/ignorable.c: New file.
43384         * modules/unicase/ignorable: New file.
43385
43386         New module 'unicase/cased'.
43387         * lib/unicase/caseprop.h: New file.
43388         * lib/unicase/cased.c: New file.
43389         * modules/unicase/cased: New file.
43390
43391         New functions for case mapping of substrings.
43392         * lib/unicase.h (casing_prefix_context_t): New type.
43393         (unicase_empty_prefix_context): New variable.
43394         (u8_casing_prefix_context, u16_casing_prefix_context,
43395         u32_casing_prefix_context, u8_casing_prefixes_context,
43396         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43397         declarations.
43398         (casing_suffix_context_t): New type.
43399         (unicase_empty_suffix_context): New variable.
43400         (u8_casing_suffix_context, u16_casing_suffix_context,
43401         u32_casing_suffix_context, u8_casing_suffixes_context,
43402         u16_casing_suffixes_context, u32_casing_suffixes_context,
43403         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43404         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43405         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43406         declarations.
43407
43408 2009-06-28  Jim Meyering  <meyering@redhat.com>
43409
43410         boostrap: indent only with spaces
43411         * build-aux/bootstrap: Indent only with spaces, never TABs.
43412
43413         bootstrap: split long lines
43414         * build-aux/bootstrap: Keep line length < 80.
43415
43416         bootstrap: sync from coreutils
43417         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43418         just as autoreconf does.  Verify a list of prerequisite
43419         package-name,version-number pairs if defined in bootstrap.conf.
43420         Refer to README-prereq, if prerequisites are not satisfied.
43421
43422 2009-06-27  Eric Blake  <ebb9@byu.net>
43423
43424         tests: add test for bogus NULL definition
43425         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43426         * tests/test-stdlib.c: Likewise.
43427         * tests/test-string.c: Likewise.
43428         * tests/test-locale.c: Likewise.
43429         * tests/test-unistd.c: Likewise.
43430         * modules/stdio-tests (Depends-on): Add verify.
43431         * modules/stdlib-tests (Depends-on): Likewise.
43432         * modules/string-tests (Depends-on): Likewise.
43433         * modules/locale-tests (Depends-on): Likewise.
43434         * modules/unistd-tests (Depends-on): Likewise.
43435
43436 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43437
43438         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43439         self-explaining comment.
43440         * m4/selinux-selinux-h: Update serial.
43441         (gl_LIBSELINUX): New macro, adding a warning for missing development
43442         packages to code extracted from...
43443         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43444         Add warning for missing development packages here, too.
43445
43446 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43447
43448         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43449
43450 2009-06-25  Eric Blake  <ebb9@byu.net>
43451
43452         version-etc: fix regression
43453         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43454         gcc.
43455         (version_etc): Use it, to catch bugs with trailing NULL.
43456         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43457         (version_etc_va): Fix logic bug.
43458         * modules/version-etc-tests: Add test.
43459         * tests/test-version-etc.c: New file.
43460         * tests/test-version-etc.sh: Likewise.
43461
43462 2009-06-25  Sam Steingold  <sds@gnu.org>
43463
43464         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43465         mbtowc declaration.
43466
43467 2009-06-25  Eric Blake  <ebb9@byu.net>
43468
43469         fpurge: migrate into <stdio.h>
43470         * lib/fpurge.h: Delete...
43471         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43472         * lib/fpurge.c (fpurge): Change declaring header.
43473         * modules/fpurge (Files): Drop deleted file.
43474         (Depends-on): Add stdio.
43475         (configure.ac): Set witness.
43476         * modules/stdio (Makefile.am): Support fpurge macros.
43477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43478         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43479         * lib/fflush.c: Update client.
43480         * tests/test-fpurge.c: Likewise.
43481         * NEWS: Mention the change.
43482
43483 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43484
43485         * lib/argp-version-etc.c (program_authors): Add const
43486         qualifier.
43487         * lib/version-etc.c: Fix typos in the comments.
43488         * modules/argp-version-etc: Depends on version-etc.
43489
43490 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43491
43492         argp-version-etc: new module.
43493
43494         * lib/argp-version-etc.c: New file.
43495         * lib/argp-version-etc.h: New file.
43496         * modules/argp-version-etc: New file.
43497         * modules/argp-version-etc-tests: New file.
43498         * tests/test-argp-version-etc.c: New test.
43499         * tests/test-argp-version-etc-1.sh: New test.
43500
43501 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43502
43503         Provide additional interfaces and documentation for version-etc
43504         module.
43505
43506         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43507         interfaces.
43508         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43509         prototypes.
43510
43511 2009-06-24  Bruno Haible  <bruno@clisp.org>
43512
43513         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43514         HAVE_LIB${NAME} macro.
43515         Reported by Sam Steingold <sds@gnu.org>.
43516
43517 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43518
43519         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43520         needed.
43521
43522 2009-06-21  Bruno Haible  <bruno@clisp.org>
43523
43524         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43525         work.
43526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43527         together with LIB${NAME}, LTLIB${NAME}.
43528         Reported by Sam Steingold <sds@gnu.org>.
43529
43530 2009-06-20  Jim Meyering  <meyering@redhat.com>
43531
43532         tests: make sc_require_test_exit_idiom more generic
43533         * top/maint.mk (Exit_witness_file): New overridable variable.
43534         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43535         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43536
43537 2009-06-19  Jim Meyering  <meyering@redhat.com>
43538
43539         hash: reverse order of src/dst parameters in an internal interface
43540         * lib/hash.c (transfer_entries): Reverse order of parameters to
43541         put DST before SRC.  Adjust callers.
43542
43543         tests: test-hash: avoid wholesale duplication
43544         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43545         Instead, use a loop and add a single conditional.
43546
43547         tests: test-hash: allow seed selection via a command line argument
43548         * tests/test-hash.c (get_seed): New function.
43549         (main): Use it.
43550
43551 2009-06-19  Eric Blake  <ebb9@byu.net>
43552
43553         hash: avoid memory leak on allocation failure
43554         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43555         failure.  Factor repeated algorithm...
43556         (transfer_entries): ...into new helper routine.
43557         (hash_delete): React to hash_rehash return value.
43558
43559         hash: reduce memory pressure in hash_rehash no-op case
43560         * lib/hash.c (next_prime): Avoid overflow.
43561         (hash_initialize): Factor bucket size computation...
43562         (compute_bucket_size): ...into new helper function.
43563         (hash_rehash): Use new function and open coding to reduce memory
43564         pressure, and avoid a memory leak in USE_OBSTACK code.
43565         Reported by Jim Meyering.
43566
43567 2009-06-18  Eric Blake  <ebb9@byu.net>
43568
43569         hash: make rotation more obvious
43570         * modules/hash (Depends-on): Add bitrotate and stdint.
43571         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43572         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43573         (SIZE_MAX): Rely on headers for definition.
43574         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43575         (raw_hasher): Use rotr_sz.
43576         Suggested by Jim Meyering.
43577
43578         hash: fix memory leak in last patch
43579         * lib/hash.c (hash_rehash): Avoid memory leak.
43580
43581         hash: avoid no-op rehashing
43582         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43583
43584         hash: provide default callback functions
43585         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43586         (hash_initialize): Use them as defaults.
43587         * tests/test-hash.c (main): Test this.
43588
43589         hash: minor optimization
43590         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43591         when possible.
43592         (hash_initialize): Document this promise.
43593         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43594         * tests/test-hash.c (hash_compare_strings): Test this.
43595
43596 2009-06-18  Bruno Haible  <bruno@clisp.org>
43597
43598         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43599         going to be replaced anyway.
43600
43601 2009-06-18  Bruno Haible  <bruno@clisp.org>
43602
43603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43604         in one place.
43605         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43606         be replaced anyway.
43607
43608 2009-06-18  Eric Blake  <ebb9@byu.net>
43609
43610         hash: check for resize before insertion
43611         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43612         threshold before insertion, so that a pathological hash_rehash
43613         that fills every bucket can still trigger another rehash.
43614
43615 2009-06-18  Jim Meyering  <meyering@redhat.com>
43616
43617         hash-tests: add a loop around the small tests
43618         * tests/test-hash.c (main): Repeat small tests with selected
43619         small initial table sizes.
43620
43621 2009-06-17  Eric Blake  <ebb9@byu.net>
43622
43623         hash: minor cleanups
43624         * lib/hash.h (hash_entry): Make opaque, by moving...
43625         * lib/hash.c (hash_entry): ...here.
43626         (hash_insert): Clarify restrictions on what can be inserted.
43627         (hash_get_next): Clarify when it is safe to remove an element
43628         during traversal.
43629         (check_tuning): Skip verification when tuning is known safe.
43630         (hash_initialize): Clarify restrictions on tuning.
43631
43632 2009-06-17  Jim Meyering  <jim@meyering.net>
43633         and Eric Blake  <ebb9@byu.net>
43634
43635         hash-tests: new module
43636         * modules/hash-tests: New file.
43637         * tests/test-hash.c: New file.
43638
43639 2009-06-17  Eric Blake  <ebb9@byu.net>
43640
43641         strstr-simple: document new module
43642         * MODULES.html.sh: Document new module.
43643
43644         strstr, strcasestr: replace on platforms with broken memchr
43645         * modules/strstr: Split into...
43646         * modules/strstr-simple: ...new module that does not care about
43647         performance, but does care about glibc bug.
43648         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43649         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43650         if platform memchr is broken, per Debian bug 521737.
43651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43652         memchr.
43653         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43654         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43655         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43656         * modules/mountlist (Depends-on): Add strstr-simple.
43657         * modules/gen-uni-tables (Depends-on): Likewise.
43658         * modules/argz (Depends-on): Add strstr.
43659
43660 2009-06-17  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/posix_spawn-internal (Depends-on): Add errno.
43663
43664 2009-06-17  Bruno Haible  <bruno@clisp.org>
43665
43666         Define missing ESTALE on Interix 3.5.
43667         * lib/errno.in.h (ESTALE): Assign a value if missing.
43668         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43670         missing.
43671         * doc/posix-headers/errno.texi: Mention the Interix bug.
43672         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43673
43674 2009-06-15  Eric Blake  <ebb9@byu.net>
43675
43676         memchr, memchr2: add valgrind exception
43677         * lib/memchr.valgrind: New file.
43678         * lib/memchr2.valgrind: New file.
43679         * modules/memchr (Files): Distribute valgrind file.
43680         * modules/memchr2 (Files): Likewise.
43681
43682         docs: memchr is no longer obsolete
43683         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43684         * lib/string.in.h (memchr): Simplify logic.
43685
43686 2009-06-14  Jim Meyering  <meyering@redhat.com>
43687
43688         link-follow: fix the "checking..." message to not mention trailing slash
43689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43690         never considered trailing slashes.
43691
43692 2009-06-14  Bruno Haible  <bruno@clisp.org>
43693
43694         * m4/memchr.m4: Mention also the bug on IA-64.
43695         * doc/posix-functions/memchr.texi: Likewise.
43696
43697 2009-06-12  Eric Blake  <ebb9@byu.net>
43698
43699         memchr: detect broken x86_64 and alpha implementations
43700         * modules/memchr-tests (Depends-on): Move mmap detection...
43701         * modules/memchr (Depends-on): ...here.
43702         (configure.ac): Set indicator.
43703         * lib/string.in.h (memchr): Declare replacement.
43704         * modules/string (Makefile.am): Trigger replacement.
43705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43706         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43707         bugs.
43708         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43709         * modules/getpagesize (License): Relax license.
43710
43711 2009-06-11  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/idpriv.h: Add more references.
43714
43715 2009-06-08  Bruno Haible  <bruno@clisp.org>
43716
43717         Tests for module 'idpriv-droptemp'.
43718         * modules/idpriv-droptemp-tests: New file.
43719         * tests/test-idpriv-droptemp.sh: New file.
43720         * tests/test-idpriv-droptemp.su.sh: New file.
43721         * tests/test-idpriv-droptemp.c: New file.
43722
43723         New module 'idpriv-droptemp'.
43724         * lib/idpriv-droptemp.c: New file.
43725         * modules/idpriv-droptemp: New file.
43726
43727 2009-06-08  Bruno Haible  <bruno@clisp.org>
43728
43729         Tests for module 'idpriv-drop'.
43730         * modules/idpriv-drop-tests: New file.
43731         * tests/test-idpriv-drop.sh: New file.
43732         * tests/test-idpriv-drop.su.sh: New file.
43733         * tests/test-idpriv-drop.c: New file.
43734
43735         New module 'idpriv-drop'.
43736         * lib/idpriv.h: New file.
43737         * lib-idpriv-drop.c: New file.
43738         * m4/idpriv.m4: New file.
43739         * modules/idpriv-drop: New file.
43740
43741 2009-06-08  Bruno Haible  <bruno@clisp.org>
43742
43743         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43745         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43746         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43747         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43748         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43750
43751 2009-06-08  Eric Blake  <ebb9@byu.net>
43752
43753         test-strstr: use memory fence, when possible
43754         * tests/test-strstr.c (main): Use memory fence, in order to be
43755         more likely to trigger Debian bug 521737.
43756         * modules/strstr-tests (Files): Pull in additional files.
43757
43758         memchr: no longer obsolete, for wider field testing
43759         * modules/memchr (Status, Notice): Delete, this module is no
43760         longer obsolete.
43761         * modules/vasnprintf (Depends-on): Add memchr.
43762
43763 2009-06-07  Jim Meyering  <meyering@redhat.com>
43764
43765         hash: declare some functions with the warn_unused_result attribute
43766         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43767
43768 2009-06-07  Bruno Haible  <bruno@clisp.org>
43769
43770         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43771         Reported by Eric Blake.
43772
43773 2009-06-06  Eric Blake  <ebb9@byu.net>
43774
43775         test-alignof: fix typo with long double
43776         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43777         compiler error.
43778
43779 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43780
43781         Escape non-texinfo { and }s.
43782         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43783         markup error.
43784
43785 2009-06-04  Jim Meyering  <meyering@redhat.com>
43786
43787         gitlog-to-changelog: don't infloop on an empty commit log
43788         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43789         Reported by Boris Petersen <transacid@centerim.org>.
43790
43791 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43792
43793         version-etc: extend for packagers
43794         Add three new configure options, intended for packagers:
43795           --with-packager="packager name"
43796           --with-packager-version="packager-specific version"
43797           --with-packager-bug-reports="packager bug reporting"
43798         An example with coreutils:
43799           $ ./configure \
43800             --with-packager=Gentoo \
43801             --with-packager-bug-report=http://bugs.gentoo.org/ \
43802             --with-packager-version="patchset 1.6"
43803           $ ./src/ls --version | head -n2
43804           ls (GNU coreutils) 7.1-dirty
43805           Packaged by Gentoo (patchset 1.6)
43806         Note that the bug reporting info via --help doesn't show up because
43807         coreutils uses its own custom emit_bug_reporting_address() implementation
43808         in src/system.h.  If it didn't, it'd look like:
43809           $ ./src/ls --help | tail -n4
43810           Report bugs to <bug-coreutils@gnu.org>.
43811           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43812           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43813           General help using GNU software: <http://www.gnu.org/gethelp/>.
43814         * lib/version-etc.c: Print new information, if provided.
43815         * m4/version-etc.m4: New file.
43816         * modules/version-etc (Files): Add m4/version-etc.m4.
43817         (configure.ac): Add gl_VERSION_ETC.
43818
43819 2009-05-31  Bruno Haible  <bruno@clisp.org>
43820
43821         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43822         and 'int64_t'.
43823         * modules/alignof-tests (Dependencies): Add stdint.
43824         Reported by Eric Blake.
43825
43826 2009-05-31  Bruno Haible  <bruno@clisp.org>
43827
43828         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43829         restriction due to compiler bugs.
43830         Reported by Eric Blake.
43831
43832 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43833             Bruno Haible  <bruno@clisp.org>
43834
43835         Fix test-alignof failure.
43836         * lib/alignof.h (alignof_slot): New macro.
43837         (alignof_type): New macro, with the same semantics as the previous
43838         'alignof'.
43839         (alignof): Alias to alignof_slot.
43840         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43841         check that the results are usable as constant expressions.
43842
43843 2009-05-31  Bruno Haible  <bruno@clisp.org>
43844
43845         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43846         * tests/test-memchr.c (main): Check that memchr does not read past the
43847         first occurrence of the byte.
43848         * tests/test-strstr.c (main): Update comment.
43849         Suggested by Eric Blake.
43850
43851 2009-05-30  Bruno Haible  <bruno@clisp.org>
43852
43853         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43854         detail how to use dumpbin.
43855         Reported by David Byron <dbyron@dbyron.com>.
43856
43857 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43858
43859         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43860
43861 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43862
43863         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43864
43865 2009-05-28  Bruno Haible  <bruno@clisp.org>
43866
43867         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43868         build-aux/ files.
43869
43870 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43871
43872         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43873
43874 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43875
43876         * gnulib-tool (sed_transform_main_lib_file)
43877         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43878         regexps.
43879
43880 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43881
43882         * tests/test-strstr.c: Add another self-test.
43883         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43884         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43885
43886 2009-05-23  Bruno Haible  <bruno@clisp.org>
43887
43888         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43889         change.
43890
43891 2009-05-21  Bruno Haible  <bruno@clisp.org>
43892
43893         Simplify use of mode_t varargs.
43894         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43895         uses 'mode_t' or 'int'.
43896         * lib/openat.c (openat): Likewise.
43897         * lib/open-safer.c (open_safer): Likewise.
43898         * m4/mode_t.m4: New file.
43899         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43900         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43901         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43902         * modules/open (Files): Add m4/mode_t.m4.
43903         * modules/openat (Files): Likewise.
43904         * modules/fcntl-safer (Files): Likewise.
43905         Suggested by Eric Blake.
43906
43907 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43908
43909         * doc/glibc-functions/fallocate.texi: New file.
43910         * doc/gnulib.texi: Include it.
43911
43912 2009-05-21  Eric Blake  <ebb9@byu.net>
43913             Bruno Haible  <bruno@clisp.org>
43914
43915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43916         invocations.
43917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43918
43919 2009-05-21  Eric Blake  <ebb9@byu.net>
43920             Bruno Haible  <bruno@clisp.org>
43921
43922         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43923         include_next. Fix of 2008-11-20 commit.
43924         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43925         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43926         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43927         NEXT_MATH_H.
43928         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43929         instead of NEXT_MATH_H.
43930
43931 2009-05-21  Bruno Haible  <bruno@clisp.org>
43932
43933         Avoid redefinition warnings for SIZE_MAX.
43934         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43935         Reported by Simon Josefsson.
43936
43937 2009-05-21  Bruno Haible  <bruno@clisp.org>
43938
43939         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43940         AC_CACHE_VAL.
43941
43942 2009-05-20  Bruno Haible  <bruno@clisp.org>
43943
43944         Make zeroptr.h work on mingw.
43945         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43946         mprotect.
43947         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43948         * modules/memchr2-tests (configure.ac): Likewise.
43949         * modules/memcmp-tests (configure.ac): Likewise.
43950         * modules/memmem-tests (configure.ac): Likewise.
43951         * modules/memrchr-tests (configure.ac): Likewise.
43952         Reported by Simon Josefsson.
43953
43954 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43955
43956         * tests/test-glob.c: Include string.h for strcmp prototype.
43957
43958 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43959
43960         * modules/getdelim (Depends-on): Add explicit stdint, although it
43961         was implicitly already pulled in via realloc-posix.
43962         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43963
43964 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43965
43966         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43967         G. Christensen" <tgc@jupiterrise.com>.
43968         * m4/sys_socket_h.m4: Check for sa_family_t.
43969         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43970         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43971         * tests/test-sys_socket.c: Check that sa_family_t works.
43972
43973 2009-05-18  Eric Blake  <ebb9@byu.net>
43974
43975         maint.mk: allow gnulib_dir in VPATH build
43976         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43977
43978 2009-05-15  Jim Meyering  <meyering@redhat.com>
43979
43980         maint.mk: Give gnulib_dir a default definition.
43981         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43982         Thus, most packages no longer need to specify this variable in cfg.mk
43983
43984 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43985
43986         rename.m4: fix typos that would make non-mingw cross-configure fail
43987         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43988
43989 2009-05-13  Eric Blake  <ebb9@byu.net>
43990
43991         mmap-anon: avoid out-of-order autoconf expansion
43992         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43993         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43994         * modules/memchr-tests (Depends-on): Add extensions.
43995         * modules/memchr2-tests (Depends-on): Add extensions.
43996         * modules/memcmp-tests (Depends-on): Add extensions.
43997         * modules/memmem-tests (Depends-on): Add extensions.
43998         * modules/memrchr-tests (Depends-on): Add extensions.
43999
44000 2009-05-13  Bruno Haible  <bruno@clisp.org>
44001
44002         Make some tests ISO C 99 compliant.
44003         * tests/zerosize-ptr.h: New file.
44004         * tests/test-memchr.c: Include zerosize-ptr.h.
44005         (main): Use a zero-size object pointer instead of NULL.
44006         * tests/test-memchr2.c: Include zerosize-ptr.h.
44007         (main): Use a zero-size object pointer instead of NULL.
44008         * tests/test-memcmp.c: Include zerosize-ptr.h.
44009         (main): Use a zero-size object pointer instead of NULL.
44010         * tests/test-memmem.c: Include zerosize-ptr.h.
44011         (main): Use a zero-size object pointer instead of NULL.
44012         * tests/test-memrchr.c: Include zerosize-ptr.h.
44013         (main): Use a zero-size object pointer instead of NULL.
44014         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44015         m4/mmap-anon.m4.
44016         (Depends-on): Add getpagesize.
44017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44018         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44019         m4/mmap-anon.m4.
44020         (Depends-on): Add getpagesize.
44021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44022         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44023         m4/mmap-anon.m4.
44024         (Depends-on): Add getpagesize.
44025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44026         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44027         m4/mmap-anon.m4.
44028         (Depends-on): Add getpagesize.
44029         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44030         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44031         m4/mmap-anon.m4.
44032         (Depends-on): Add getpagesize.
44033         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44034
44035 2009-05-12  Bruno Haible  <bruno@clisp.org>
44036
44037         Tests for module 'alignof'.
44038         * modules/alignof-tests: New file.
44039         * tests/test-alignof.c: New file.
44040
44041 2009-05-12  Bruno Haible  <bruno@clisp.org>
44042
44043         Fix alignof macro.
44044         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44045         vendor compilers that are always correct.
44046
44047 2009-05-12  Bruno Haible  <bruno@clisp.org>
44048
44049         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44050         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44051         not whether its fully works.
44052
44053 2009-05-12  Bruno Haible  <bruno@clisp.org>
44054
44055         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44056
44057 2009-05-12  Jim Meyering  <meyering@redhat.com>
44058
44059         * top/maint.mk: Adjust backslash alignment.
44060
44061 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44062
44063         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44064
44065 2009-05-11  Eric Blake  <ebb9@byu.net>
44066
44067         argp: avoid undefined behavior
44068         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44069         macros.
44070
44071 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44072
44073         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44074         user.name to prevent git commit from complaining.
44075
44076 2009-05-10  Bruno Haible  <bruno@clisp.org>
44077
44078         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44079         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44080         it rewrites every file name only once.
44081         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44082
44083 2009-05-08  Bruno Haible  <bruno@clisp.org>
44084
44085         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44086         instead of 'max'.
44087
44088 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44089
44090         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44091         sockaddr_storage test.
44092
44093 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44094
44095         * modules/sys_socket (Makefile.am): Substitute
44096         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44097         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44098         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44099         * tests/test-sys_socket.c: Check sockaddr_storage.
44100
44101 2009-05-08  Bruno Haible  <bruno@clisp.org>
44102
44103         New module 'alignof'.
44104         * lib/alignof.h: New file.
44105         * modules/alignof: New file.
44106
44107 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44108             Bruno Haible  <bruno@clisp.org>
44109
44110         Fix test-file-has-acl on FreeBSD.
44111         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44112         mask is implicitly added.
44113         * tests/test-file-has-acl.c: Include <signal.h>.
44114         (main): Terminate the test after 5 seconds.
44115         * modules/acl-tests (configure.ac): Check for alarm function.
44116
44117 2009-05-04  Bruno Haible  <bruno@clisp.org>
44118
44119         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44120         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44121         * modules/errno (configure.ac): Drop AC_REQUIRE.
44122         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44123         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44124
44125 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44126
44127         * modules/glob-tests: New module.
44128         * tests/test-glob.c: Add.
44129
44130 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44131
44132         * modules/fnmatch-tests: New module.
44133         * tests/test-fnmatch.c: Add.
44134
44135 2009-05-04  Eric Blake  <ebb9@byu.net>
44136
44137         maint: make the new no-submodule-changes rule VPATH-safe
44138         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44139
44140 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44141             Bruno Haible  <bruno@clisp.org>
44142
44143         acl: Fix infinite loop on FreeBSD.
44144         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44145         of return value from acl_get_entry.
44146         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44147         Likewise.
44148
44149 2009-05-03  Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/acl-internal.h (acl_entries): Clarify return value.
44152         * lib/acl_entries.c (acl_entries): Likewise.
44153
44154 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44155
44156         Bug fix in acl module.
44157         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44158
44159 2009-05-03  Bruno Haible  <bruno@clisp.org>
44160
44161         Create gperf-generated file in the source dir, not in the build dir.
44162         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44163         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44164         * modules/unicase/locale-language (unicase/locale-languages.h):
44165         Likewise.
44166         * modules/unicase/special-casing (unicase/special-casing-table.h):
44167         Likewise.
44168         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44169         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44170         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44171         Reported by Ralf Wildenhues.
44172
44173 2009-05-03  Bruno Haible  <bruno@clisp.org>
44174
44175         * modules/fnmatch (Description, configure.ac): Taken from
44176         fnmatch-posix.
44177         * modules/fnmatch-posix: Turn into a symbolic reference to the
44178         'fnmatch' module, and deprecate.
44179         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44180
44181 2009-05-03  Bruno Haible  <bruno@clisp.org>
44182
44183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44184         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44185         Reported by Ralf Wildenhues.
44186
44187 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44188
44189         * m4/fnmatch.m4: Fix fnmatch re-define.
44190
44191 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44192
44193         priv-set: new module and tests; adapt write-any-file
44194         * lib/priv-set.c: New file.
44195         * lib/priv-set.h: New file.
44196         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44197         * lib/write-any-file.c: Simplify by using priv-set module.
44198         * m4/priv-set.m4: New file.
44199         * modules/priv-set: New file.
44200         * modules/unlinkdir: Add dependency on priv-set module.
44201         * modules/write-any-file: Likewise.
44202
44203         Tests for module 'priv-set'.
44204         * modules/priv-set-tests: New file.
44205         * tests/test-priv-set.c: New file.
44206
44207 2009-05-03  Jim Meyering  <meyering@redhat.com>
44208             Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44211         use the converted UTF-8 variant of the name instead.
44212
44213 2009-05-03  Jim Meyering  <meyering@redhat.com>
44214
44215         tests: tighten some getdate tests
44216         * tests/test-getdate.c (main): Tighten tests: require equality,
44217         not just greater than.  Set TZ envvar to UTC0.
44218
44219 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44220
44221         getdate: correctly interpret "next monday" when run on a Monday
44222         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44223         that e.g., "next tues" (when run on a tuesday) results in a date
44224         that is one week in the future, and not today's date.
44225         I.e., add a week when the wday is the same as the current one.
44226         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44227         and earlier by Martin Bernreuther and Jan Minář.
44228         * tests/test-getdate.c (main): Check that "next DAY" is always in
44229         the future and that "last DAY" is always in the past.
44230
44231 2009-05-02  Jim Meyering  <meyering@redhat.com>
44232
44233         build: ensure that a release build fails when a submodule is unclean
44234         * top/maint.mk (no-submodule-changes): New rule.
44235         (alpha beta major): Depend on it.
44236
44237 2009-05-02  Bruno Haible  <bruno@clisp.org>
44238
44239         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44240         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44241         shell variable gl_fnmatch_required to detect which variant is
44242         requested.
44243         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44244         gl_FUNC_FNMATCH_POSIX.
44245         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44246         exclude fnmatch-posix.
44247
44248 2009-05-02  Bruno Haible  <bruno@clisp.org>
44249
44250         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44251         * modules/mbsrtowcs (License): Change to LGPLv2+.
44252         * modules/strnlen1 (License): Likewise.
44253         Reported by Simon Josefsson.
44254
44255 2009-05-02  Bruno Haible  <bruno@clisp.org>
44256
44257         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44258         "cross".
44259         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44260         gnulib-tool was called with option --source-base=lib.
44261
44262 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44263
44264         Use automake *-local hooks without commands, for extensibility.
44265         * modules/localcharset (Makefile.am): Rename install-exec-local
44266         rule to install-exec-localcharset, and make it a prerequisite of
44267         install-exec-local.  Likewise, rename the uninstall-local rule to
44268         uninstall-localcharset, and make it a prerequisite of the former.
44269
44270 2009-05-01  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44273         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44274         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44276         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44277         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44278         m4/locale-zh.m4, m4/codeset.m4.
44279
44280         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44281         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44282         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44283         m4/locale-zh.m4.
44284
44285         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44286         REPLACE_WCRTOMB if mbstate_t must be replaced.
44287         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44288         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44289
44290 2009-05-01  Bruno Haible  <bruno@clisp.org>
44291
44292         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44293         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44294         dngettext, dcngettext, textdomain, bindtextdomain,
44295         bind_textdomain_codeset): Undefine before redefining.
44296
44297 2009-04-30  Bruno Haible  <bruno@clisp.org>
44298
44299         Fix bug introduced on 2009-04-25.
44300         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44301         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44302         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44303         is defined.
44304         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44305         is defined.
44306         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44307         is defined.
44308         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44309
44310 2009-04-28  Bruno Haible  <bruno@clisp.org>
44311
44312         Comment tweaks.
44313         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44314         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44315         * lib/unicase.h (u*_casexfrm): Likewise.
44316         Reported by Paolo Bonzini.
44317
44318 2009-04-28  Bruno Haible  <bruno@clisp.org>
44319
44320         Fix a compilation error.
44321         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44322         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44323         Reported by Jim Meyering.
44324
44325 2009-04-27  Bruno Haible  <bruno@clisp.org>
44326
44327         New module 'libunistring'.
44328         * modules/libunistring: New file.
44329         * m4/libunistring.m4: New file.
44330         * MODULES.html.sh (Unicode string functions): Add it.
44331
44332 2009-04-27  Eric Blake  <ebb9@byu.net>
44333
44334         maint.mk: allow package-specific header to provide <config.h>
44335         * top/maint.mk (sc_require_config_h): New variable.
44336         (sc_require_config_h, sc_require_config_h_first): Use it.
44337
44338 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44339
44340         * top/maint.mk (sc_avoid_if_before_free): Except
44341         useless-if-before-free script.
44342
44343 2009-04-27  Eric Blake  <ebb9@byu.net>
44344
44345         maintainer-makefile: depend on all required helper scripts
44346         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44347         useless-if-before-free.
44348         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44349         version, rather than assuming gnulib checkout is available.
44350         Reported by Simen Josefsson.
44351
44352 2009-04-26  Bruno Haible  <bruno@clisp.org>
44353
44354         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44355         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44356         "../" or "..".
44357
44358 2009-04-26  Bruno Haible  <bruno@clisp.org>
44359
44360         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44361         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44362         AC_LIB_HAVE_LINKFLAGS.
44363
44364 2009-04-26  Bruno Haible  <bruno@clisp.org>
44365
44366         Simplify calling convention of u*_conv_from_encoding.
44367         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44368         u32_conv_from_encoding): Expect a resultbuf argument and return the
44369         result directly as a pointer.
44370         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44371         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44372         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44373         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44374         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44375         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44376         Update.
44377         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44378         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44379         * lib/vasnprintf.c (VASNPRINTF): Update.
44380         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44381         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44382         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44383         * NEWS: Mention the change.
44384
44385 2009-04-26  Bruno Haible  <bruno@clisp.org>
44386
44387         Simplify calling convention of u*_conv_to_encoding.
44388         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44389         u32_conv_to_encoding): Expect a resultbuf argument and return the
44390         result directly as a pointer.
44391         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44392         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44393         freeing scaled_offsets if mem_iconveha failed.
44394         * lib/unicase/u-casexfrm.h (FUNC): Update.
44395         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44396         * lib/vasnprintf.c (VASNPRINTF): Update.
44397         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44398         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44399         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44400         * NEWS: Mention the change.
44401
44402 2009-04-26  Bruno Haible  <bruno@clisp.org>
44403
44404         Avoid test failures on AIX and OSF/1.
44405         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44406         malloc(0).
44407         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44408         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44409         Likewise.
44410         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44411         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44412         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44413         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44414         * doc/posix-functions/malloc.texi: Document the portability problem
44415         related to malloc(0).
44416
44417 2009-04-26  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44420         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44421         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44422
44423 2009-04-25  Bruno Haible  <bruno@clisp.org>
44424
44425         Avoid link error when creating a namespace clean library.
44426         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44427         as macro with arguments if already defined as an alias.
44428         * lib/signbitf.c (gl_signbitf): Don't undefine.
44429         * lib/signbitd.c (gl_signbitd): Don't undefine.
44430         * lib/signbitl.c (gl_signbitl): Don't undefine.
44431
44432 2009-04-25  Jim Meyering  <meyering@redhat.com>
44433
44434         vc-list-files: fix another quoting bug
44435         * build-aux/vc-list-files: Avoid sed backslash expansion
44436         of pathological directory names.
44437
44438 2009-04-25  Eric Blake  <ebb9@byu.net>
44439
44440         vc-list-files: fix shell quoting error
44441         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44442         timestamp.
44443
44444 2009-04-25  Jim Meyering  <meyering@redhat.com>
44445
44446         vc-list-files: restore lost functionality with subdir argument
44447         * build-aux/vc-list-files: When given a non-"." sub-directory
44448         argument, substitute the $dir/ prefix back onto each resulting name.
44449         Otherwise, coreutils' root_tests check would fail.
44450
44451 2009-04-24  Eric Blake  <ebb9@byu.net>
44452
44453         vc-list-files: ignore git symlinks
44454         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44455         than ls-files, to ignore git symlinks.
44456
44457         maint.mk: import improvements from m4
44458         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44459         (move_if_change): Delete unused macro.
44460         (news-date-check, vc-diff-check): Support VPATH builds.
44461         (announcement): Likewise.  Split --bootstrap-tools list...
44462         (boostrap-tools): ...into separate list, which can be overridden
44463         in cfg.mk.
44464         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44465         requiring dependency on useless-if-before-free module.
44466         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44467         Support VPATH builds.
44468
44469 2009-04-24  Jim Meyering  <meyering@redhat.com>
44470
44471         maint.mk: remove coreutils-specific rules and variables
44472         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44473         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44474         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44475
44476         maint.mk: remove obsolete rule
44477         * top/maint.mk (rel-check): Remove rule.
44478         (WGET, WGETFLAGS): Remove now-unused variables.
44479
44480 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44481
44482         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44483         consistency.
44484
44485         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44486         '$(PATH_SEPARATOR)' instead of ':'.
44487
44488 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44489
44490         * lib/getopt1.c (main): Use 'const' for static array.
44491
44492 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44493
44494         * top/maint.mk: Sync with coreutils.
44495         * NEWS: Explain incompatibilities.
44496
44497 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44498             Bruno Haible  <bruno@clisp.org>
44499
44500         Fix cross-compilation results.
44501         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44502         statement, as third argument of AC_TRY_RUN.
44503         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44504         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44505         Likewise.
44506         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44507         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44508         Likewise.
44509         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44511         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44512
44513 2009-04-20  Bruno Haible  <bruno@clisp.org>
44514
44515         Avoid test failure on mingw.
44516         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44517
44518 2009-04-20  Bruno Haible  <bruno@clisp.org>
44519
44520         Avoid compilation error on mingw.
44521         * modules/localename-tests (Depends-on): Add locale.
44522
44523 2009-04-19  Bruno Haible  <bruno@clisp.org>
44524
44525         Support for building a shared library on Windows platforms.
44526         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44527         (main): Test the presence of UNINORM_NFC here.
44528         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44529         (main): Test the presence of UNINORM_NFD here.
44530         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44531         (main): Test the presence of UNINORM_NFKC here.
44532         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44533         (main): Test the presence of UNINORM_NFKD here.
44534
44535 2009-04-19  Bruno Haible  <bruno@clisp.org>
44536
44537         Avoid a compiler warning.
44538         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44539         Change type of variable 'sequence'.
44540
44541 2009-04-19  Bruno Haible  <bruno@clisp.org>
44542
44543         * modules/configmake (Makefile.am): When the contents of configmake.h
44544         does not change, arrange to preserve its modification time.
44545
44546 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44547
44548         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44549         gettext domain.
44550
44551 2009-04-16  Jim Meyering  <meyering@redhat.com>
44552
44553         useless-if-before-free: improve conversion code
44554         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44555         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44556
44557 2009-04-14  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/fcntl (Depends-on): Add extensions.
44560         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44561
44562 2009-04-12  Ben Pfaff  <blp@gnu.org>
44563
44564         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44565         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44566
44567 2009-03-20  Ben Pfaff  <blp@gnu.org>
44568
44569         Make rename replace existing destinations on Windows.
44570         * m4/rename.m4: Add test for Mingw.
44571         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44572         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44573         * doc/posix-functions/rename.texi: Document.
44574
44575 2009-04-10  Bruno Haible  <bruno@clisp.org>
44576
44577         New include file "iconveh.h".
44578         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44579         * lib/striconveh.h: Include it.
44580         (enum iconv_ilseq_handler): Remove definition.
44581         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44582         striconveh.h.
44583         * lib/striconveha.c: Include striconveh.h.
44584         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44585         * modules/striconveh (Files): Add lib/iconveh.h.
44586         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44587         lib/striconveh.h.
44588
44589 2009-04-10  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/uniconv.h: Update comment.
44592
44593 2009-04-10  Bruno Haible  <bruno@clisp.org>
44594
44595         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44596         always.
44597         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44598         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44599         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44600         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44601         "unistring-notinline.h", so that the function gets defined always.
44602         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44603         * lib/unistr/u8-uctomb.c: Likewise.
44604         * lib/unistr/u16-mbtouc.c: Likewise.
44605         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44606         * lib/unistr/u16-uctomb.c: Likewise.
44607         * lib/unistr/u32-mbtouc.c: Likewise.
44608         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44609         * lib/unistr/u32-uctomb.c: Likewise.
44610
44611 2009-04-10  Bruno Haible  <bruno@clisp.org>
44612
44613         Mark 'utime' obsolete.
44614         * modules/utime (Status, Notice): New sections.
44615         Suggested by Jim Meyering.
44616
44617         Fix cross-compile guess for utime test.
44618         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44619         autoconf.
44620         * doc/posix-functions/utime.texi: Give more precisions.
44621         Reported by Jan <ipif@ymail.com>.
44622
44623 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44624
44625         filevercmp: correct today's change
44626         * lib/filevercmp.c: Also handle coreutils' test inputs.
44627         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44628
44629         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44630         for reporting it.
44631         * lib/filevercmp.c: Special handle for "", "." and "..".
44632         * tests/test-filevercmp.c: Enlarge the set suite.
44633
44634 2009-04-07  Jim Meyering  <meyering@redhat.com>
44635
44636         useless-if-before-free: show how to remove braced useless free, too
44637         * build-aux/useless-if-before-free: still only in a comment, though.
44638
44639 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44640
44641         maint.mk: import changes to syntax-check macros from coreutils
44642         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44643         Use them in the relevant macros.
44644
44645 2009-04-06  Bruno Haible  <bruno@clisp.org>
44646
44647         Fix unportable use of bit-fields.
44648         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44649         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44650         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44651
44652 2009-04-06  Bruno Haible  <bruno@clisp.org>
44653
44654         Avoid test failures on AIX and OSF/1.
44655         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44656         that malloc(0) = NULL.
44657         * tests/unicase/test-u8-tolower.c (check): Likewise.
44658         * tests/unicase/test-u8-totitle.c (check): Likewise.
44659         * tests/unicase/test-u8-toupper.c (check): Likewise.
44660         * tests/unicase/test-u16-casefold.c (check): Likewise.
44661         * tests/unicase/test-u16-tolower.c (check): Likewise.
44662         * tests/unicase/test-u16-totitle.c (check): Likewise.
44663         * tests/unicase/test-u16-toupper.c (check): Likewise.
44664         * tests/unicase/test-u32-casefold.c (check): Likewise.
44665         * tests/unicase/test-u32-tolower.c (check): Likewise.
44666         * tests/unicase/test-u32-totitle.c (check): Likewise.
44667         * tests/unicase/test-u32-toupper.c (check): Likewise.
44668         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44669         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44670         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44671         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44672         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44673         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44674         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44675         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44676         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44677         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44678         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44679         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44680
44681 2009-04-05  Bruno Haible  <bruno@clisp.org>
44682
44683         Work around an autoconf limitation.
44684         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44685         comment line if it would be longer than 3 KB.
44686
44687 2009-04-05  Bruno Haible  <bruno@clisp.org>
44688
44689         Avoid test failure with libiconv-1.13.
44690         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44691         of the expected test results.
44692
44693 2009-04-05  Bruno Haible  <bruno@clisp.org>
44694
44695         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44696         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44697         that it should be installed.
44698
44699 2009-04-05  Bruno Haible  <bruno@clisp.org>
44700
44701         * gnulib-tool: New option --copy-file.
44702         (func_usage): Document it.
44703         (func_dest_tmpfilename): Moved out of func_import.
44704         (func_add_file, func_update_file): New functions, extracted from
44705         func_import.
44706         (func_import): Update.
44707
44708 2009-04-05  Karl Berry  <karl@gnu.org>
44709
44710         * README: prominently mention gnulib-tool.
44711         Rearrange sections so getting the code is near the top.
44712
44713 2009-04-05  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/unicase.h: Mention u*_cmp2.
44716         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44717         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44718         * lib/unicase/ulc-casecmp.c: Likewise.
44719         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44720         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44721         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44722         unistr/u8-cmp.
44723         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44724         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44725         unistr/u16-cmp.
44726         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44727         unistr/u32-cmp.
44728
44729         * lib/uninorm.h: Mention u*_cmp2.
44730         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44731         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44732         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44733         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44734         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44735         unistr/u8-cmp.
44736         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44737         unistr/u16-cmp.
44738         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44739         unistr/u32-cmp.
44740
44741         New module 'unistr/u32-cmp2'.
44742         * lib/unistr/u32-cmp2.c: New file.
44743         * modules/unistr/u32-cmp2: New file.
44744
44745         New module 'unistr/u16-cmp2'.
44746         * lib/unistr/u16-cmp2.c: New file.
44747         * modules/unistr/u16-cmp2: New file.
44748
44749         New module 'unistr/u8-cmp2'.
44750         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44751         * lib/unistr/u8-cmp2.c: New file.
44752         * lib/unistr/u-cmp2.h: New file.
44753         * modules/unistr/u8-cmp2: New file.
44754
44755 2009-04-05  Bruno Haible  <bruno@clisp.org>
44756
44757         * lib/unictype.h (uc_property_is_valid): New macro.
44758         * tests/unictype/test-pr_byname.c (main): Use it.
44759
44760         * lib/unistr.h: Doc fixes.
44761         * lib/uniconv.h: Doc fixes.
44762         * lib/unictype.h: Doc fixes.
44763
44764 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44765
44766         Port coreutils 7.2 to Solaris 8.
44767
44768         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44769         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44770         for Solaris 8.  This is a bit of a hack, as it means it's the
44771         caller's responsibility to add -lnsl if needed, but most likely it
44772         won't be needed since only getaddrinfo uses this and getaddrinfo
44773         isn't needed on Solaris 8.
44774
44775         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44776         problem to Solaris 8 encountered with coreutils 7.2, which
44777         resulted in a message "fnmatch.c:292: warning: passing argument 4
44778         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44779         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44780
44781 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44782
44783         * m4/ld-version-script.m4: Add FIXME comment.
44784
44785 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44786
44787         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44788         SOVERSION variable.
44789
44790 2009-04-02  Bruno Haible  <bruno@clisp.org>
44791
44792         * Makefile (info, html, dvi, pdf): Combine the rules.
44793         Suggested by Jim Meyering.
44794
44795 2009-04-01  Bruno Haible  <bruno@clisp.org>
44796
44797         * Makefile (info, html, dvi, pdf): New targets.
44798         Reported by Reuben Thomas <rrt@sc3d.org>.
44799
44800 2009-04-01  Bruno Haible  <bruno@clisp.org>
44801
44802         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44803         can be put into PATH.
44804         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44805
44806 2009-04-01  Bruno Haible  <bruno@clisp.org>
44807
44808         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44809
44810 2009-04-01  Bruno Haible  <bruno@clisp.org>
44811
44812         Rename module 'visibility'.
44813         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44814         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44815         * doc/gnulib.texi: Update.
44816         * MODULES.html.sh (Misc): Update.
44817         * NEWS: Mention the change.
44818
44819 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44820
44821         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44822         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44823         Eric Blake <ebb9@byu.net> for review.
44824         * MODULES.html.sh: Add lib-msvc-compat.
44825         * doc/gnulib.texi: Link to new section.
44826         * m4/ld-output-def.m4: New file.
44827         * doc/ld-output-def.texi: New file.
44828
44829 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44830
44831         Rename ld-version-script to lib-symbol-versions.  Suggested by
44832         Bruno Haible <bruno@clisp.org>.
44833         * modules/ld-version-script: Renamed to lib-symbol-versions.
44834         * doc/ld-version-script.texi: Fix module name.
44835         * MODULES.html.sh: Add lib-symbol-versions.
44836
44837 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44838
44839         * modules/u64-tests: New file.
44840         * tests/test-u64.c: New file.
44841
44842 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44843
44844         * MODULES.html.sh: Mention u64.
44845         * modules/u64: New module.
44846         * modules/crypto/sha512: Depend on u64 module instead of providing
44847         u64.h.
44848
44849 2009-03-27  Eric Blake  <ebb9@byu.net>
44850
44851         test-strerror: make debugging EAI_SYSTEM easier
44852         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44853         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44854         failure was EAI_SYSTEM.
44855
44856 2009-03-25  Bruno Haible  <bruno@clisp.org>
44857
44858         Fix a problem with --enable-relocatable on Solaris 7.
44859         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44860         since 2008-02-24.
44861
44862 2009-03-25  Eric Blake  <ebb9@byu.net>
44863
44864         test-sockets: avoid gcc warning
44865         * tests/test-sockets.c (main): Silence compiler warning.
44866
44867 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44868
44869         New modules nproc, pthread, contributed by Glen Lenker.
44870
44871         * MODULES.html.sh: Add pthread, nproc.
44872         * lib/nproc.c: New file.
44873         * lib/nproc.h: New file.
44874         * lib/pthread.in.h: New file.
44875         * m4/pthread.m4: New file.
44876         * modules/nproc: New file.
44877         * modules/pthread: New file.
44878
44879 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44880
44881         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44882         New variable.
44883
44884 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44885
44886         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44887         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44888         * tests/test-filevercmp.c: Add tests for backup suffixes.
44889
44890 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44891
44892         * modules/stdlib (Depends-on): Add stdint, needed when defining
44893         struct random_data on, for example, HP-UX 10.20.  Reported by
44894         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44895
44896 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44897
44898         * lib/readline.c (readline): Call fflush on stdout after printing
44899         prompt.
44900
44901 2009-03-20  Bruno Haible  <bruno@clisp.org>
44902
44903         Remove dependency from 'close' module to -lws2_32 on native Windows.
44904         * lib/close-hook.h: New file.
44905         * lib/close-hook.c: New file.
44906         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44907         w32sock.h.
44908         (_gl_close_fd_maybe_socket): Remove function.
44909         (rpl_close): Invoke execute_all_close_hooks instead of
44910         _gl_close_fd_maybe_socket.
44911         * lib/sockets.c: Include close-hook.h, w32sock.h.
44912         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44913         (close_sockets_hook): New variable.
44914         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44915         (gl_sockets_cleanup): Unregister it.
44916         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44917         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44918         * modules/close-hook: New file.
44919         * modules/close (Files): Remove lib/w32sock.h.
44920         (Depends-on): Add close-hook.
44921         (Link): Remove section.
44922         * modules/sockets (Files): Add lib/w32sock.h.
44923         (Depends-on): Add close-hook.
44924         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44925         invocation.
44926         * NEWS: Mention that LIB_CLOSE is gone.
44927
44928 2009-03-23  Eric Blake  <ebb9@byu.net>
44929
44930         signal-tests: test previous patch
44931         * tests/test-signal.c: New file.
44932         * modules/signal-tests: Likewise.
44933
44934         signal.h: always support 'volatile sig_atomic_t'
44935         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44936         (gl_SIGNAL_H_DEFAULTS): Add a default.
44937         * modules/signal (Makefile.am): Substitute if needed.
44938         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44939         users can blindly add volatile.
44940         * doc/posix-headers/signal.texi (signal.h): Document it.
44941         Reported by Matthew Woehlke.
44942
44943 2009-03-23  Jim Meyering  <meyering@redhat.com>
44944
44945         pathmax: PATH_MAX: use pathconf only when available
44946         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44947         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44948         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44949         This avoids a link failure in a PSP cross-compilation environment
44950         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44951
44952         * lib/vasnprintf.c (divide): Fix typo in comment.
44953
44954 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44955
44956         * gnulib-tool (func_filter_filelist): Fix comment.
44957
44958 2009-03-20  Bruno Haible  <bruno@clisp.org>
44959
44960         Make sockets.h self-contained.
44961         * lib/sockets.c: Include sockets.h first.
44962         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44963
44964 2009-03-19  Eric Blake  <ebb9@byu.net>
44965
44966         doc: mention more functions added in cygwin 1.7.0
44967         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44968         addition.
44969         * doc/posix-functions/log2f.texi: Likewise.
44970
44971 2009-03-19  Jim Meyering  <meyering@redhat.com>
44972
44973         fsusage: avoid syntax error due to statement-before-declaration
44974         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44975         after all declarations.  Reported by Matthew Woehlke in
44976         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44977
44978 2009-03-18  Eric Blake  <ebb9@byu.net>
44979
44980         build-aux/compile: sync from automake
44981         * build-aux/compile: New file, from automake.
44982         * config/srclist.txt: Mention build-aux/compile.
44983
44984 2009-03-17  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/git-merge-changelog.c: Fix typo in comment.
44987         Reported by Reuben Thomas <rrt@sc3d.org>.
44988
44989 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44990
44991         * m4/regex.m4: update and improve help for
44992         --without-included-regex.
44993
44994 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44995
44996         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44997         failure on missing include files.
44998
44999 2009-03-17  Eric Blake  <ebb9@byu.net>
45000
45001         doc: mention more functions added in cygwin 1.7.0
45002         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45003         addition.
45004         * doc/posix-functions/fwscanf.texi: Likewise.
45005         * doc/posix-functions/swprintf.texi: Likewise.
45006         * doc/posix-functions/swscanf.texi: Likewise.
45007         * doc/posix-functions/vfwprintf.texi: Likewise.
45008         * doc/posix-functions/vfwscanf.texi: Likewise.
45009         * doc/posix-functions/vswprintf.texi: Likewise.
45010         * doc/posix-functions/vswscanf.texi: Likewise.
45011         * doc/posix-functions/vwprintf.texi: Likewise.
45012         * doc/posix-functions/vwscanf.texi: Likewise.
45013         * doc/posix-functions/wcscasecmp.texi: Likewise.
45014         * doc/posix-functions/wcsdup.texi: Likewise.
45015         * doc/posix-functions/wcsftime.texi: Likewise.
45016         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45017         * doc/posix-functions/wprintf.texi: Likewise.
45018         * doc/posix-functions/wscanf.texi: Likewise.
45019         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45020
45021 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45022
45023         maint.mk: really add $(AM_MAKEFLAGS)
45024         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45025         was inadvertently omitted in the last commit.
45026         Spotted by Bruno Haible.
45027
45028         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45029         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45030         $(AM_MAKEFLAGS)' rather than plain `make'.
45031
45032         gnulib-tool: execute $MAKE not make
45033         * gnulib-tool: Default $MAKE to 'make'.
45034         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45035         than make.  Initialize $MAKE in the do-autobuild script.
45036
45037         gnulib-tool: use $MAKE not make in generated files
45038         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45039         make, in generated files.  Initialize $MAKE in the do-autobuild
45040         script.
45041
45042         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45043
45044         GNUmakefile: disable parallelism only for multiple, recursive targets
45045         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45046         additions in the Makefile.
45047         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45048         by Automake.
45049         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45050         are listed on the command line and at least one of them is
45051         listed in $(ALL_RECURSIVE_TARGETS).
45052
45053 2009-03-14  Bruno Haible  <bruno@clisp.org>
45054
45055         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45056         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45057         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45058         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45059         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45060         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45061         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45062         unistr/u8-uctomb.
45063         * modules/unistr/u8-strchr (Depends-on): Likewise.
45064         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45065         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45066         unistr/u16-uctomb.
45067         * modules/unistr/u16-strchr (Depends-on): Likewise.
45068         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45069
45070 2009-03-12  Bruno Haible  <bruno@clisp.org>
45071
45072         Work around select() bug on Interix 3.5.
45073         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45074         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45075         * m4/select.m4: New file.
45076         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45077         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45078         * modules/select (Files): Add m4/select.m4.
45079         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45080         * modules/nanosleep (Depends-on): Add select.
45081         * modules/poll (Depends-on): Likewise.
45082         * doc/posix-functions/select.texi: Mention the Interix bug.
45083         Reported by Markus Duft <mduft@gentoo.org>.
45084
45085         * lib/select.c: Renamed from lib/winsock-select.c.
45086         * modules/select (Files): Add lib/select.c, remove
45087         lib/winsock-select.c.
45088         (configure.ac): Update.
45089
45090 2009-03-12  Jim Meyering  <meyering@redhat.com>
45091
45092         avoid gcc warnings about unused macro definitions
45093         * lib/readtokens.c (STREQ): Remove unused definition.
45094         * lib/xmalloc.c (SIZE_MAX): Likewise.
45095         * lib/openat-die.c (N_): Likewise.
45096         * lib/mountlist.c (SIZE_MAX): Remove definition.
45097         Instead, include <stdint.h>.
45098         * lib/readutmp.c: Likewise.
45099         * modules/readutmp (Depends-on): Add stdint.
45100         * modules/mountlist (Depends-on): Add stdint.
45101         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45102
45103 2009-03-10  Bruno Haible  <bruno@clisp.org>
45104
45105         Tests for module 'mbmemcasecoll'.
45106         * modules/mbmemcasecoll-tests: New file.
45107         * tests/test-mbmemcasecoll1.sh: New file.
45108         * tests/test-mbmemcasecoll2.sh: New file.
45109         * tests/test-mbmemcasecoll3.sh: New file.
45110         * tests/test-mbmemcasecoll.c: New file.
45111
45112         New module 'mbmemcasecoll'.
45113         * lib/mbmemcasecoll.h: New file.
45114         * lib/mbmemcasecoll.c: New file.
45115         * modules/mbmemcasecoll: New file.
45116
45117         * tests/test-mbmemcasecmp.h: New file, extracted from
45118         tests/test-mbmemcasecmp.c.
45119         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45120         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45121         (main): Update.
45122         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45123
45124 2009-03-09  Bruno Haible  <bruno@clisp.org>
45125
45126         Tests for module 'mbmemcasecmp'.
45127         * modules/mbmemcasecmp-tests: New file.
45128         * tests/test-mbmemcasecmp1.sh: New file.
45129         * tests/test-mbmemcasecmp2.sh: New file.
45130         * tests/test-mbmemcasecmp3.sh: New file.
45131         * tests/test-mbmemcasecmp.c: New file.
45132
45133         New module 'mbmemcasecmp'.
45134         * lib/mbmemcasecmp.h: New file.
45135         * lib/mbmemcasecmp.c: New file.
45136         * modules/mbmemcasecmp: New file.
45137
45138 2009-03-09  Bruno Haible  <bruno@clisp.org>
45139
45140         Tests for module 'unicase/ulc-casecoll'.
45141         * modules/unicase/ulc-casecoll-tests: New file.
45142         * tests/unicase/test-ulc-casecoll1.sh: New file.
45143         * tests/unicase/test-ulc-casecoll2.sh: New file.
45144         * tests/unicase/test-ulc-casecoll.c: New file.
45145
45146         New module 'unicase/ulc-casecoll'.
45147         * lib/unicase.h (ulc_casecoll): New declaration.
45148         * lib/unicase/ulc-casecoll.c: New file.
45149         * modules/unicase/ulc-casecoll: New file.
45150
45151         New module 'unicase/ulc-casexfrm'.
45152         * lib/unicase.h (ulc_casexfrm): New declaration.
45153         * lib/unicase/ulc-casexfrm.c: New file.
45154         * modules/unicase/ulc-casexfrm: New file.
45155
45156 2009-03-09  Bruno Haible  <bruno@clisp.org>
45157
45158         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45159         invocations.
45160
45161         * m4/mbscasecmp.m4: Remove file.
45162         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45163         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45164
45165         * m4/mbscasestr.m4: Remove file.
45166         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45167         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45168
45169         * m4/mbschr.m4: Remove file.
45170         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45171         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45172
45173         * m4/mbscspn.m4: Remove file.
45174         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45175         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45176
45177         * m4/mbslen.m4: Remove file.
45178         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45179         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45180
45181         * m4/mbsncasecmp.m4: Remove file.
45182         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45183         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45184
45185         * m4/mbsnlen.m4: Remove file.
45186         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45187         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45188
45189         * m4/mbspbrk.m4: Remove file.
45190         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45191         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45192
45193         * m4/mbspcasecmp.m4: Remove file.
45194         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45195         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45196
45197         * m4/mbsrchr.m4: Remove file.
45198         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45199         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45200
45201         * m4/mbssep.m4: Remove file.
45202         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45203         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45204
45205         * m4/mbsspn.m4: Remove file.
45206         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45207         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45208
45209         * m4/mbsstr.m4: Remove file.
45210         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45211         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45212
45213         * m4/mbstok_r.m4: Remove file.
45214         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45215         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45216
45217         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45218
45219         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45220         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45221
45222         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45223
45224 2009-03-08  Bruno Haible  <bruno@clisp.org>
45225
45226         Tests for module 'unicase/ulc-casecmp'.
45227         * modules/unicase/ulc-casecmp-tests: New file.
45228         * tests/unicase/test-ulc-casecmp1.sh: New file.
45229         * tests/unicase/test-ulc-casecmp2.sh: New file.
45230         * tests/unicase/test-ulc-casecmp.c: New file.
45231
45232         New module 'unicase/ulc-casecmp'.
45233         * lib/unicase.h (ulc_casecmp): New declaration.
45234         * lib/unicase/ulc-casecmp.c: New file.
45235         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45236         'const SRC_UNIT *'.
45237         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45238         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45239         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45240         * modules/unicase/ulc-casecmp: New file.
45241
45242         Tests for module 'unicase/u32-is-cased'.
45243         * modules/unicase/u32-is-cased-tests: New file.
45244         * tests/unicase/test-u32-is-cased.c: New file.
45245
45246         Tests for module 'unicase/u16-is-cased'.
45247         * modules/unicase/u16-is-cased-tests: New file.
45248         * tests/unicase/test-u16-is-cased.c: New file.
45249
45250         Tests for module 'unicase/u8-is-cased'.
45251         * modules/unicase/u8-is-cased-tests: New file.
45252         * tests/unicase/test-u8-is-cased.c: New file.
45253         * tests/unicase/test-is-cased.h: New file.
45254
45255         New module 'unicase/u32-is-cased'.
45256         * lib/unicase/u32-is-cased.c: New file.
45257         * modules/unicase/u32-is-cased: New file.
45258
45259         New module 'unicase/u16-is-cased'.
45260         * lib/unicase/u16-is-cased.c: New file.
45261         * modules/unicase/u16-is-cased: New file.
45262
45263         New module 'unicase/u8-is-cased'.
45264         * lib/unicase/u8-is-cased.c: New file.
45265         * lib/unicase/u-is-cased.h: New file.
45266         * modules/unicase/u8-is-cased: New file.
45267
45268         Tests for module 'unicase/u32-is-casefolded'.
45269         * modules/unicase/u32-is-casefolded-tests: New file.
45270         * tests/unicase/test-u32-is-casefolded.c: New file.
45271
45272         Tests for module 'unicase/u16-is-casefolded'.
45273         * modules/unicase/u16-is-casefolded-tests: New file.
45274         * tests/unicase/test-u16-is-casefolded.c: New file.
45275
45276         Tests for module 'unicase/u8-is-casefolded'.
45277         * modules/unicase/u8-is-casefolded-tests: New file.
45278         * tests/unicase/test-u8-is-casefolded.c: New file.
45279         * tests/unicase/test-is-casefolded.h: New file.
45280
45281         New module 'unicase/u32-is-casefolded'.
45282         * lib/unicase/u32-is-casefolded.c: New file.
45283         * modules/unicase/u32-is-casefolded: New file.
45284
45285         New module 'unicase/u16-is-casefolded'.
45286         * lib/unicase/u16-is-casefolded.c: New file.
45287         * modules/unicase/u16-is-casefolded: New file.
45288
45289         New module 'unicase/u8-is-casefolded'.
45290         * lib/unicase/u8-is-casefolded.c: New file.
45291         * modules/unicase/u8-is-casefolded: New file.
45292
45293         Tests for module 'unicase/u32-is-titlecase'.
45294         * modules/unicase/u32-is-titlecase-tests: New file.
45295         * tests/unicase/test-u32-is-titlecase.c: New file.
45296
45297         Tests for module 'unicase/u16-is-titlecase'.
45298         * modules/unicase/u16-is-titlecase-tests: New file.
45299         * tests/unicase/test-u16-is-titlecase.c: New file.
45300
45301         Tests for module 'unicase/u8-is-titlecase'.
45302         * modules/unicase/u8-is-titlecase-tests: New file.
45303         * tests/unicase/test-u8-is-titlecase.c: New file.
45304         * tests/unicase/test-is-titlecase.h: New file.
45305
45306         New module 'unicase/u32-is-titlecase'.
45307         * lib/unicase/u32-is-titlecase.c: New file.
45308         * modules/unicase/u32-is-titlecase: New file.
45309
45310         New module 'unicase/u16-is-titlecase'.
45311         * lib/unicase/u16-is-titlecase.c: New file.
45312         * modules/unicase/u16-is-titlecase: New file.
45313
45314         New module 'unicase/u8-is-titlecase'.
45315         * lib/unicase/u8-is-titlecase.c: New file.
45316         * modules/unicase/u8-is-titlecase: New file.
45317
45318         Tests for module 'unicase/u32-is-lowercase'.
45319         * modules/unicase/u32-is-lowercase-tests: New file.
45320         * tests/unicase/test-u32-is-lowercase.c: New file.
45321
45322         Tests for module 'unicase/u16-is-lowercase'.
45323         * modules/unicase/u16-is-lowercase-tests: New file.
45324         * tests/unicase/test-u16-is-lowercase.c: New file.
45325
45326         Tests for module 'unicase/u8-is-lowercase'.
45327         * modules/unicase/u8-is-lowercase-tests: New file.
45328         * tests/unicase/test-u8-is-lowercase.c: New file.
45329         * tests/unicase/test-is-lowercase.h: New file.
45330
45331         New module 'unicase/u32-is-lowercase'.
45332         * lib/unicase/u32-is-lowercase.c: New file.
45333         * modules/unicase/u32-is-lowercase: New file.
45334
45335         New module 'unicase/u16-is-lowercase'.
45336         * lib/unicase/u16-is-lowercase.c: New file.
45337         * modules/unicase/u16-is-lowercase: New file.
45338
45339         New module 'unicase/u8-is-lowercase'.
45340         * lib/unicase/u8-is-lowercase.c: New file.
45341         * modules/unicase/u8-is-lowercase: New file.
45342
45343         Tests for module 'unicase/u32-is-uppercase'.
45344         * modules/unicase/u32-is-uppercase-tests: New file.
45345         * tests/unicase/test-u32-is-uppercase.c: New file.
45346
45347         Tests for module 'unicase/u16-is-uppercase'.
45348         * modules/unicase/u16-is-uppercase-tests: New file.
45349         * tests/unicase/test-u16-is-uppercase.c: New file.
45350
45351         Tests for module 'unicase/u8-is-uppercase'.
45352         * modules/unicase/u8-is-uppercase-tests: New file.
45353         * tests/unicase/test-u8-is-uppercase.c: New file.
45354         * tests/unicase/test-is-uppercase.h: New file.
45355
45356         New module 'unicase/u32-is-uppercase'.
45357         * lib/unicase/u32-is-uppercase.c: New file.
45358         * modules/unicase/u32-is-uppercase: New file.
45359
45360         New module 'unicase/u16-is-uppercase'.
45361         * lib/unicase/u16-is-uppercase.c: New file.
45362         * modules/unicase/u16-is-uppercase: New file.
45363
45364         New module 'unicase/u8-is-uppercase'.
45365         * lib/unicase/u8-is-uppercase.c: New file.
45366         * modules/unicase/u8-is-uppercase: New file.
45367
45368         New module 'unicase/u32-is-invariant'.
45369         * lib/unicase/u32-is-invariant.c: New file.
45370         * modules/unicase/u32-is-invariant: New file.
45371
45372         New module 'unicase/u16-is-invariant'.
45373         * lib/unicase/u16-is-invariant.c: New file.
45374         * modules/unicase/u16-is-invariant: New file.
45375
45376         New module 'unicase/u8-is-invariant'.
45377         * lib/unicase/u8-is-invariant.c: New file.
45378         * lib/unicase/invariant.h: New file.
45379         * lib/unicase/u-is-invariant.h: New file.
45380         * modules/unicase/u8-is-invariant: New file.
45381
45382         Tests for module 'unicase/u32-casecoll'.
45383         * modules/unicase/u32-casecoll-tests: New file.
45384         * tests/unicase/test-u32-casecoll.c: New file.
45385
45386         Tests for module 'unicase/u16-casecoll'.
45387         * modules/unicase/u16-casecoll-tests: New file.
45388         * tests/unicase/test-u16-casecoll.c: New file.
45389
45390         Tests for module 'unicase/u8-casecoll'.
45391         * modules/unicase/u8-casecoll-tests: New file.
45392         * tests/unicase/test-u8-casecoll.c: New file.
45393
45394         New module 'unicase/u32-casecoll'.
45395         * lib/unicase/u32-casecoll.c: New file.
45396         * modules/unicase/u32-casecoll: New file.
45397
45398         New module 'unicase/u16-casecoll'.
45399         * lib/unicase/u16-casecoll.c: New file.
45400         * modules/unicase/u16-casecoll: New file.
45401
45402         New module 'unicase/u8-casecoll'.
45403         * lib/unicase/u8-casecoll.c: New file.
45404         * lib/unicase/u-casecoll.h: New file.
45405         * modules/unicase/u8-casecoll: New file.
45406
45407         New module 'unicase/u32-casexfrm'.
45408         * lib/unicase/u32-casexfrm.c: New file.
45409         * modules/unicase/u32-casexfrm: New file.
45410
45411         New module 'unicase/u16-casexfrm'.
45412         * lib/unicase/u16-casexfrm.c: New file.
45413         * modules/unicase/u16-casexfrm: New file.
45414
45415         New module 'unicase/u8-casexfrm'.
45416         * lib/unicase/u8-casexfrm.c: New file.
45417         * lib/unicase/u-casexfrm.h: New file.
45418         * modules/unicase/u8-casexfrm: New file.
45419
45420         Tests for module 'unicase/u32-casecmp'.
45421         * modules/unicase/u32-casecmp-tests: New file.
45422         * tests/unicase/test-u32-casecmp.c: New file.
45423
45424         Tests for module 'unicase/u16-casecmp'.
45425         * modules/unicase/u16-casecmp-tests: New file.
45426         * tests/unicase/test-u16-casecmp.c: New file.
45427
45428         Tests for module 'unicase/u8-casecmp'.
45429         * modules/unicase/u8-casecmp-tests: New file.
45430         * tests/unicase/test-u8-casecmp.c: New file.
45431         * tests/unicase/test-casecmp.h: New file.
45432
45433         New module 'unicase/u32-casecmp'.
45434         * lib/unicase/u32-casecmp.c: New file.
45435         * modules/unicase/u32-casecmp: New file.
45436
45437         New module 'unicase/u16-casecmp'.
45438         * lib/unicase/u16-casecmp.c: New file.
45439         * modules/unicase/u16-casecmp: New file.
45440
45441         New module 'unicase/u8-casecmp'.
45442         * lib/unicase/u8-casecmp.c: New file.
45443         * lib/unicase/u-casecmp.h: New file.
45444         * modules/unicase/u8-casecmp: New file.
45445
45446         Tests for module 'unicase/u32-casefold'.
45447         * modules/unicase/u32-casefold-tests: New file.
45448         * tests/unicase/test-u32-casefold.c: New file.
45449
45450         Tests for module 'unicase/u16-casefold'.
45451         * modules/unicase/u16-casefold-tests: New file.
45452         * tests/unicase/test-u16-casefold.c: New file.
45453
45454         Tests for module 'unicase/u8-casefold'.
45455         * modules/unicase/u8-casefold-tests: New file.
45456         * tests/unicase/test-u8-casefold.c: New file.
45457
45458         New module 'unicase/u32-casefold'.
45459         * lib/unicase/u32-casefold.c: New file.
45460         * modules/unicase/u32-casefold: New file.
45461
45462         New module 'unicase/u16-casefold'.
45463         * lib/unicase/u16-casefold.c: New file.
45464         * modules/unicase/u16-casefold: New file.
45465
45466         New module 'unicase/u8-casefold'.
45467         * lib/unicase/u8-casefold.c: New file.
45468         * lib/unicase/u-casefold.h: New file.
45469         * modules/unicase/u8-casefold: New file.
45470
45471         New module 'unicase/tocasefold'.
45472         * lib/unicase/casefold.h: New file.
45473         * lib/unicase/tocasefold.c: New file.
45474         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45475         * modules/unicase/tocasefold: New file.
45476
45477         Tests for module 'unicase/u32-totitle'.
45478         * modules/unicase/u32-totitle-tests: New file.
45479         * tests/unicase/test-u32-totitle.c: New file.
45480
45481         Tests for module 'unicase/u16-totitle'.
45482         * modules/unicase/u16-totitle-tests: New file.
45483         * tests/unicase/test-u16-totitle.c: New file.
45484
45485         Tests for module 'unicase/u8-totitle'.
45486         * modules/unicase/u8-totitle-tests: New file.
45487         * tests/unicase/test-u8-totitle.c: New file.
45488
45489         New module 'unicase/u32-totitle'.
45490         * lib/unicase/u32-totitle.c: New file.
45491         * modules/unicase/u32-totitle: New file.
45492
45493         New module 'unicase/u16-totitle'.
45494         * lib/unicase/u16-totitle.c: New file.
45495         * modules/unicase/u16-totitle: New file.
45496
45497         New module 'unicase/u8-totitle'.
45498         * lib/unicase/u8-totitle.c: New file.
45499         * lib/unicase/u-totitle.h: New file.
45500         * modules/unicase/u8-totitle: New file.
45501
45502         Tests for module 'unicase/u32-tolower'.
45503         * modules/unicase/u32-tolower-tests: New file.
45504         * tests/unicase/test-u32-tolower.c: New file.
45505
45506         Tests for module 'unicase/u16-tolower'.
45507         * modules/unicase/u16-tolower-tests: New file.
45508         * tests/unicase/test-u16-tolower.c: New file.
45509
45510         Tests for module 'unicase/u8-tolower'.
45511         * modules/unicase/u8-tolower-tests: New file.
45512         * tests/unicase/test-u8-tolower.c: New file.
45513
45514         New module 'unicase/u32-tolower'.
45515         * lib/unicase/u32-tolower.c: New file.
45516         * modules/unicase/u32-tolower: New file.
45517
45518         New module 'unicase/u16-tolower'.
45519         * lib/unicase/u16-tolower.c: New file.
45520         * modules/unicase/u16-tolower: New file.
45521
45522         New module 'unicase/u8-tolower'.
45523         * lib/unicase/u8-tolower.c: New file.
45524         * modules/unicase/u8-tolower: New file.
45525
45526         Tests for module 'unicase/u32-toupper'.
45527         * modules/unicase/u32-toupper-tests: New file.
45528         * tests/unicase/test-u32-toupper.c: New file.
45529
45530         Tests for module 'unicase/u16-toupper'.
45531         * modules/unicase/u16-toupper-tests: New file.
45532         * tests/unicase/test-u16-toupper.c: New file.
45533
45534         Tests for module 'unicase/u8-toupper'.
45535         * modules/unicase/u8-toupper-tests: New file.
45536         * tests/unicase/test-u8-toupper.c: New file.
45537
45538         New module 'unicase/u32-toupper'.
45539         * lib/unicase/u32-toupper.c: New file.
45540         * modules/unicase/u32-toupper: New file.
45541
45542         New module 'unicase/u16-toupper'.
45543         * lib/unicase/u16-toupper.c: New file.
45544         * modules/unicase/u16-toupper: New file.
45545
45546         New module 'unicase/u8-toupper'.
45547         * lib/unicase/u8-toupper.c: New file.
45548         * modules/unicase/u8-toupper: New file.
45549
45550         New module 'unicase/u32-casemap'.
45551         * lib/unicase/u32-casemap.c: New file.
45552         * modules/unicase/u32-casemap: New file.
45553
45554         New module 'unicase/u16-casemap'.
45555         * lib/unicase/u16-casemap.c: New file.
45556         * modules/unicase/u16-casemap: New file.
45557
45558         New module 'unicase/u8-casemap'.
45559         * lib/unicase/unicasemap.h: New file.
45560         * lib/unicase/u8-casemap.c: New file.
45561         * lib/unicase/u-casemap.h: New file.
45562         * modules/unicase/u8-casemap: New file.
45563
45564         New module 'unicase/special-casing'.
45565         * lib/unicase/special-casing.h: New file.
45566         * lib/unicase/special-casing.c: New file.
45567         * lib/unicase/special-casing-table.gperf: New file, generated by
45568         gen-uni-tables.c.
45569         * modules/unicase/special-casing: New file.
45570
45571         Tests for module 'unicase/locale-language'.
45572         * modules/unicase/locale-language-tests: New file.
45573         * tests/unicase/test-locale-language.sh: New file.
45574         * tests/unicase/test-locale-language.c: New file.
45575
45576         New module 'unicase/locale-language'.
45577         * lib/unicase/locale-language.c: New file.
45578         * lib/unicase/locale-languages.gperf: New file.
45579         * modules/unicase/locale-language: New file.
45580
45581         Generate more tables for case conversion and case folding.
45582         * lib/gen-uni-tables.c (SCC_*): New enum items.
45583         (struct special_casing_rule): New type.
45584         (casing_rules, num_casing_rules, allocated_casing_rules): New
45585         variables.
45586         (add_casing_rule, fill_casing_rules): New functions.
45587         (struct casefold_rule): New type.
45588         (casefolding_rules, num_casefolding_rules,
45589         allocated_casefolding_rules): New variables.
45590         (fill_casefolding_rules): New function.
45591         (unicode_casefold): New variable.
45592         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45593         sort_casing_rules, output_casing_rules): New functions.
45594         (main): Accept to more arguments: SpecialCasing.txt and
45595         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45596         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45597         Output mapping for casefolding.
45598
45599         * lib/unicase.h: Include stdbool.h, uninorm.h.
45600         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45601         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45602         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45603         arguments.
45604         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45605         resultp arguments.
45606         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45607         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45608         resultp arguments.
45609         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45610         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45611         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45612         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45613         declarations.
45614         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45615
45616 2009-03-08  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45619         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45620         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45621         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45622
45623 2009-03-07  Bruno Haible  <bruno@clisp.org>
45624
45625         Adjust u*_normcmp, u*_normcoll API.
45626         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45627         u16_normcoll, u32_normcoll): Change failure conventions.
45628         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45629         errno and return -1.
45630         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45631
45632 2009-03-07  Bruno Haible  <bruno@clisp.org>
45633
45634         Tests for module 'uninorm/u32-normcoll'.
45635         * modules/uninorm/u32-normcoll-tests: New file.
45636         * tests/uninorm/test-u32-normcoll.c: New file.
45637
45638         Tests for module 'uninorm/u16-normcoll'.
45639         * modules/uninorm/u16-normcoll-tests: New file.
45640         * tests/uninorm/test-u16-normcoll.c: New file.
45641
45642         Tests for module 'uninorm/u8-normcoll'.
45643         * modules/uninorm/u8-normcoll-tests: New file.
45644         * tests/uninorm/test-u8-normcoll.c: New file.
45645
45646 2009-03-07  Bruno Haible  <bruno@clisp.org>
45647
45648         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45649         tests/uninorm/test-u32-normcmp.c.
45650         * tests/uninorm/test-u32-normcmp.c: Include it.
45651         (test_nonascii): New function, extracted from main. Add some more
45652         tests.
45653         (main): Invoke test_ascii and test_nonascii.
45654         * modules/uninorm/u32-normcmp-tests (Files): Add
45655         tests/uninorm/test-u32-normcmp.h.
45656         (Depends-on): Remove uninorm/u32-normcmp.
45657
45658         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45659         tests/uninorm/test-u16-normcmp.c.
45660         * tests/uninorm/test-u16-normcmp.c: Include it.
45661         (test_nonascii): New function, extracted from main. Add some more
45662         tests.
45663         (main): Invoke test_ascii and test_nonascii.
45664         * modules/uninorm/u16-normcmp-tests (Files): Add
45665         tests/uninorm/test-u16-normcmp.h.
45666         (Depends-on): Remove uninorm/u16-normcmp.
45667
45668         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45669         tests/uninorm/test-u8-normcmp.c.
45670         * tests/uninorm/test-u8-normcmp.c: Include it.
45671         (test_nonascii): New function, extracted from main. Add some more
45672         tests.
45673         (main): Invoke test_ascii and test_nonascii.
45674         * modules/uninorm/u8-normcmp-tests (Files): Add
45675         tests/uninorm/test-u8-normcmp.h.
45676         (Depends-on): Remove uninorm/u8-normcmp.
45677
45678 2009-03-07  Bruno Haible  <bruno@clisp.org>
45679
45680         New module 'uninorm/u32-normcoll'.
45681         * lib/uninorm/u32-normcoll.c: New file.
45682         * modules/uninorm/u32-normcoll: New file.
45683
45684         New module 'uninorm/u16-normcoll'.
45685         * lib/uninorm/u16-normcoll.c: New file.
45686         * modules/uninorm/u16-normcoll: New file.
45687
45688         New module 'uninorm/u8-normcoll'.
45689         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45690         declarations.
45691         * lib/uninorm/u8-normcoll.c: New file.
45692         * lib/uninorm/u-normcoll.h: New file.
45693         * modules/uninorm/u8-normcoll: New file.
45694
45695         New module 'uninorm/u32-normxfrm'.
45696         * lib/uninorm/u32-normxfrm.c: New file.
45697         * modules/uninorm/u32-normxfrm: New file.
45698
45699         New module 'uninorm/u16-normxfrm'.
45700         * lib/uninorm/u16-normxfrm.c: New file.
45701         * modules/uninorm/u16-normxfrm: New file.
45702
45703         New module 'uninorm/u8-normxfrm'.
45704         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45705         declarations.
45706         * lib/uninorm/u8-normxfrm.c: New file.
45707         * lib/uninorm/u-normxfrm.h: New file.
45708         * modules/uninorm/u8-normxfrm: New file.
45709
45710 2009-03-07  Bruno Haible  <bruno@clisp.org>
45711
45712         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45713         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45714         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45715
45716 2009-03-07  Bruno Haible  <bruno@clisp.org>
45717
45718         New module 'memxfrm'.
45719         * lib/memxfrm.h: New file.
45720         * lib/memxfrm.c: New file.
45721         * modules/memxfrm: New file.
45722
45723 2009-03-07  Bruno Haible  <bruno@clisp.org>
45724
45725         New module 'memcmp2'.
45726         * lib/memcmp2.h: New file.
45727         * lib/memcmp2.c: New file.
45728         * modules/memcmp2: New file.
45729
45730 2009-03-07  Bruno Haible  <bruno@clisp.org>
45731
45732         Tests for module 'uninorm/decomposing-form'.
45733         * modules/uninorm/decomposing-form-tests: New file.
45734         * tests/uninorm/test-decomposing-form.c: New file.
45735
45736         New module 'uninorm/decomposing-form'.
45737         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45738         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45739         Add 'decomposing_variant' field.
45740         * lib/uninorm/decomposing-form.c: New file.
45741         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45742         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45743         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45744         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45745         * modules/uninorm/decomposing-form: New file.
45746         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45747         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45748
45749 2009-03-07  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45752         strings.
45753
45754 2009-03-06  Bruno Haible  <bruno@clisp.org>
45755
45756         Tests for module 'uninorm/u32-normcmp'.
45757         * tests/uninorm/test-u32-normcmp.c: New file.
45758         * modules/uninorm/u32-normcmp-tests: New file.
45759
45760         Tests for module 'uninorm/u16-normcmp'.
45761         * tests/uninorm/test-u16-normcmp.c: New file.
45762         * modules/uninorm/u16-normcmp-tests: New file.
45763
45764         Tests for module 'uninorm/u8-normcmp'.
45765         * tests/uninorm/test-u8-normcmp.c: New file.
45766         * modules/uninorm/u8-normcmp-tests: New file.
45767
45768         New module 'uninorm/u32-normcmp'.
45769         * lib/uninorm/u32-normcmp.c: New file.
45770         * modules/uninorm/u32-normcmp: New file.
45771
45772         New module 'uninorm/u16-normcmp'.
45773         * lib/uninorm/u16-normcmp.c: New file.
45774         * modules/uninorm/u16-normcmp: New file.
45775
45776         New module 'uninorm/u8-normcmp'.
45777         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45778         declarations.
45779         * lib/uninorm/u8-normcmp.c: New file.
45780         * lib/uninorm/u-normcmp.h: New file.
45781         * modules/uninorm/u8-normcmp: New file.
45782
45783 2009-03-06  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45786         Reported by Eric Blake.
45787
45788 2009-03-06  Eric Blake  <ebb9@byu.net>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45792         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45793         condition.
45794         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45795         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45796         condition.
45797         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45798
45799 2009-03-06  Eric Blake  <ebb9@byu.net>
45800
45801         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45802         to avoid compiler warnings.
45803         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45804
45805 2009-03-05  Bruno Haible  <bruno@clisp.org>
45806
45807         * tests/test-ftell.c (main): Disable test beyond end of file on
45808         FreeMiNT.
45809         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45810
45811 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45812
45813         * lib/filevercmp.c: Move hidden files up in ordering.
45814         * tests/test-filevercmp.c: Add tests for hidden files.
45815
45816 2009-03-04  Bruno Haible  <bruno@clisp.org>
45817
45818         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45819         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45820         AM_CFLAGS.
45821         Reported by Simon Josefsson.
45822
45823 2009-03-03  Bruno Haible  <bruno@clisp.org>
45824
45825         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45826         Reported by Simon Josefsson.
45827
45828         * doc/ld-version-script.texi: Update node reference.
45829
45830 2009-03-03  Bruno Haible  <bruno@clisp.org>
45831
45832         * modules/visibility (License): Change to 'unlimited'.
45833         Suggested by Simon Josefsson.
45834
45835 2009-03-03  Jim Meyering  <meyering@redhat.com>
45836
45837         unlinkdir: cannot_unlink_dir may modify process state
45838         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45839         it's neither thread-safe nor appropriate for use in a library.
45840
45841 2009-03-03  Eric Blake  <ebb9@byu.net>
45842
45843         test-closein: silence test under Darwin
45844         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45845         care if it dies from EPIPE or EBADF.
45846
45847 2009-03-03  Bruno Haible  <bruno@clisp.org>
45848
45849         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45850         earlier.
45851         * doc/visibility.texi: Fix @node and @section.
45852
45853 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45854
45855         * doc/gnulib.texi: Link to sections for ld version script and
45856         visibility.
45857         * doc/visibility.texi: Add @node and @section.
45858         * modules/ld-version-script: New module.
45859         * m4/ld-version-script.m4: New file.
45860         * doc/ld-version-script.texi: New file.
45861
45862 2009-03-02  David Lutterkort  <lutter@redhat.com>
45863
45864         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45866
45867 2009-03-02  Bruno Haible  <bruno@clisp.org>
45868
45869         * doc/visibility.texi: Mention libtool's -export-symbols option.
45870
45871 2009-03-02  Jim Meyering  <meyering@redhat.com>
45872
45873         announce-gen: new option: --no-print-checksums
45874         * build-aux/announce-gen (usage): Describe it.
45875         (print_checksums): Print a newline here, not in the [*] footnote.
45876         (main): Honor it.
45877
45878 2009-03-01  Bruno Haible  <bruno@clisp.org>
45879
45880         Use socklen_t in the native Windows replacements prototypes.
45881         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45882         instead of 'int'.
45883         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45884         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45885         * modules/getsockopt (Depends-on): Add socklen.
45886         * modules/setsockopt (Depends-on): Add socklen.
45887
45888 2009-03-01  Bruno Haible  <bruno@clisp.org>
45889
45890         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45891         least 4.2.
45892
45893 2009-03-01  Eric Blake  <ebb9@byu.net>
45894             Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45897         error messages.
45898         * lib/wait-process.c (wait_subprocess): Omit error message about
45899         deadly signal sent to the child of termsigp != NULL.
45900
45901 2009-03-01  Eric Blake  <ebb9@byu.net>
45902
45903         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45904
45905 2009-03-01  Bruno Haible  <bruno@clisp.org>
45906
45907         Avoid a gcc warning.
45908         * tests/test-sched.c (b): Make global.
45909         Reported by Eric Blake.
45910
45911 2009-01-19  Martin Lambers  <marlam@marlam.de>
45912
45913         Provide POSIX semantics for socket timeout options on W32.
45914         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45915         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45916         * modules/setsockopt: Depend on sys_time module for struct timeval.
45917         * modules/getsockopt: Depend on sys_time module for struct timeval.
45918
45919 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45920
45921         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45922         __USE_GNU, for consistency with netdb.in.h.
45923         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45924
45925 2009-03-01  Bruno Haible  <bruno@clisp.org>
45926
45927         More support for FreeMiNT.
45928         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45929         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45930
45931 2009-03-01  Bruno Haible  <bruno@clisp.org>
45932
45933         More support for FreeMiNT.
45934         * lib/fpurge.c (fpurge): Correct last commit.
45935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45936
45937 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45938
45939         Fix unportable awk script in vc-list-files.
45940         * build-aux/vc-list-files: In the replacement awk script, use
45941         substr with a second argument of 1, not zero.
45942         Report by Simon Josefsson.
45943
45944 2009-02-28  Bruno Haible  <bruno@clisp.org>
45945
45946         More support for FreeMiNT.
45947         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45948         to FreeMiNT today.
45949         * lib/fwriting.c (fwriting): Likewise.
45950         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45951
45952 2009-02-28  Bruno Haible  <bruno@clisp.org>
45953
45954         * tests/test-freadseek.c (main): Disable test beyond end of file on
45955         FreeMiNT.
45956         * tests/test-ftello.c (main): Likewise.
45957         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45958
45959 2009-02-28  Bruno Haible  <bruno@clisp.org>
45960
45961         Add tentative support for FreeMiNT.
45962         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45963         * lib/fpurge.c (fpurge): Likewise.
45964         * lib/freadable.c (freadable): Likewise.
45965         * lib/freading.c (freading): Likewise.
45966         * lib/freadptr.c (freadptr): Likewise.
45967         * lib/freadseek.c (freadptrinc): Likewise.
45968         * lib/fseeko.c (rpl_fseeko): Likewise.
45969         * lib/fseterr.c (fseterr): Likewise.
45970         * lib/fwritable.c (fwritable): Likewise.
45971         * lib/fwriting.c (fwriting): Likewise.
45972         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45973         Hourihane.
45974         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45975
45976 2009-02-28  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45979         SIGCHLD.
45980         Reported by Jim Meyering.
45981
45982 2009-02-28  Bruno Haible  <bruno@clisp.org>
45983
45984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45985         Mention the results of these tests on various platforms.
45986         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45987         order.
45988         * doc/posix-functions/printf.texi: Likewise.
45989         * doc/posix-functions/snprintf.texi: Likewise.
45990         * doc/posix-functions/sprintf.texi: Likewise.
45991         * doc/posix-functions/vfprintf.texi: Likewise.
45992         * doc/posix-functions/vprintf.texi: Likewise.
45993         * doc/posix-functions/vsnprintf.texi: Likewise.
45994         * doc/posix-functions/vsprintf.texi: Likewise.
45995         * doc/glibc-functions/obstack_printf.texi: Likewise.
45996         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45997
45998 2009-02-28  Bruno Haible  <bruno@clisp.org>
45999
46000         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46001         Reported by Loïc Minier <lool@dooz.org>.
46002
46003 2009-02-27  Bruno Haible  <bruno@clisp.org>
46004
46005         * gnulib-tool (func_import): Make the sed expression used to create the
46006         sed script for updating the .gitignore file POSIX compliant.
46007         Reported by Eric Blake.
46008
46009 2009-02-27  Bruno Haible  <bruno@clisp.org>
46010
46011         * gnulib-tool (sed): Don't alias as "sed --posix".
46012         Reported by Eric Blake.
46013
46014 2009-02-27  Bruno Haible  <bruno@clisp.org>
46015
46016         Avoid test link errors.
46017         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46018         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46019         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46020         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46022
46023 2009-02-27  Bruno Haible  <bruno@clisp.org>
46024
46025         Avoid spurious "(cached)" in configure output.
46026         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46027         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46028         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46029         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46030         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46031         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46032         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46033         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46034         Reported by Eric Blake.
46035
46036 2009-02-27  Eric Blake  <ebb9@byu.net>
46037
46038         printf: fix regression in previous patch
46039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46040
46041 2009-02-27  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46044         value.
46045         * lib/stdint.in.h: Likewise.
46046         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46047
46048 2009-02-27  Eric Blake  <ebb9@byu.net>
46049
46050         doc: mention more functions added in cygwin 1.7.0
46051         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46052         addition.
46053         * doc/posix-functions/open_wmemstream.texi: Likewise.
46054         * doc/posix-functions/wcsnlen.texi: Likewise.
46055         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46056         * doc/posix-functions/wcstod.texi: Likewise.
46057         * doc/posix-functions/wcstof.texi: Likewise.
46058         * doc/posix-functions/wcstoimax.texi: Likewise.
46059         * doc/posix-functions/wcstok.texi: Likewise.
46060         * doc/posix-functions/wcstoumax.texi: Likewise.
46061
46062         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46064         * doc/posix-functions/fprintf.texi: Update.
46065         * doc/posix-functions/printf.texi: Update.
46066         * doc/posix-functions/snprintf.texi: Update.
46067         * doc/posix-functions/sprintf.texi: Update.
46068         * doc/posix-functions/vfprintf.texi: Update.
46069         * doc/posix-functions/vprintf.texi: Update.
46070         * doc/posix-functions/vsnprintf.texi: Update.
46071         * doc/posix-functions/vsprintf.texi: Update.
46072         * doc/glibc-functions/obstack_printf.texi: Update.
46073         * doc/glibc-functions/obstack_vprintf.texi: Update.
46074
46075 2009-02-26  Eric Blake  <ebb9@byu.net>
46076
46077         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46078         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46079         compilation bug by using runtime conversion.
46080         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46081         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46082         * modules/ceill-tests (Files): Use nan.h.
46083         * modules/floorl-tests (Files): Likewise.
46084         * modules/frexpl-tests (Files): Likewise.
46085         * modules/isnanl-tests (Files): Likewise.
46086         * modules/ldexpl-tests (Files): Likewise.
46087         * modules/roundl-tests (Files): Likewise.
46088         * modules/truncl-tests (Files): Likewise.
46089         * tests/test-ceill.c (main): Use a working NaN.
46090         * tests/test-floorl.c (main): Likewise.
46091         * tests/test-frexpl.c (main): Likewise.
46092         * tests/test-isnan.c (test_long_double): Likewise.
46093         * tests/test-isnanl.h (main): Likewise.
46094         * tests/test-ldexpl.h (main): Likewise.
46095         * tests/test-roundl.h (main): Likewise.
46096         * tests/test-truncl.h (main): Likewise.
46097         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46098
46099 2009-02-26  Eric Blake  <ebb9@byu.net>
46100             Bruno Haible  <bruno@clisp.org>
46101
46102         Work around a *printf bug with %ls on Solaris.
46103         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46104         precision is specified, sprintf stops converting the wide string
46105         argument when the number of bytes that have been produced by this
46106         conversion equals or exceeds the precision.
46107         * doc/posix-functions/fprintf.texi: Update.
46108         * doc/posix-functions/printf.texi: Update.
46109         * doc/posix-functions/snprintf.texi: Update.
46110         * doc/posix-functions/sprintf.texi: Update.
46111         * doc/posix-functions/vfprintf.texi: Update.
46112         * doc/posix-functions/vprintf.texi: Update.
46113         * doc/posix-functions/vsnprintf.texi: Update.
46114         * doc/posix-functions/vsprintf.texi: Update.
46115         * doc/glibc-functions/obstack_printf.texi: Update.
46116         * doc/glibc-functions/obstack_vprintf.texi: Update.
46117
46118 2009-02-26  Eric Blake  <ebb9@byu.net>
46119
46120         stdlib: favor compiler check of random.h
46121         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46122         to avoid an ObjC random.h installed by Swarm.
46123
46124 2009-02-26  Bruno Haible  <bruno@clisp.org>
46125
46126         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46127         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46128         Reported by Gary V. Vaughan <gary@gnu.org>.
46129
46130 2009-02-26  Bruno Haible  <bruno@clisp.org>
46131
46132         Fix *printf behaviour regarding the %ls directive.
46133         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46134         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46135         NEED_PRINTF_DIRECTIVE_LS.
46136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46137         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46139         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46140         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46141         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46142         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46147         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46151         * doc/posix-functions/fprintf.texi: Update.
46152         * doc/posix-functions/printf.texi: Update.
46153         * doc/posix-functions/snprintf.texi: Update.
46154         * doc/posix-functions/sprintf.texi: Update.
46155         * doc/posix-functions/vfprintf.texi: Update.
46156         * doc/posix-functions/vprintf.texi: Update.
46157         * doc/posix-functions/vsnprintf.texi: Update.
46158         * doc/posix-functions/vsprintf.texi: Update.
46159         * doc/glibc-functions/obstack_printf.texi: Update.
46160         * doc/glibc-functions/obstack_vprintf.texi: Update.
46161         Reported by Eric Blake.
46162
46163 2009-02-25  Bruno Haible  <bruno@clisp.org>
46164
46165         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46166         with known value.
46167         Reported by Gary V. Vaughan <gary@gnu.org>.
46168
46169 2009-02-25  Bruno Haible  <bruno@clisp.org>
46170
46171         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46172         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46173         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46174         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46175         Reported by Gary V. Vaughan <gary@gnu.org>.
46176
46177 2009-02-25  Bruno Haible  <bruno@clisp.org>
46178
46179         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46180         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46181         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46182         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46183         Reported by Gary V. Vaughan <gary@gnu.org>.
46184
46185 2009-02-25  Eric Blake  <ebb9@byu.net>
46186
46187         tests: skip fseek/ftell tests if ungetc is broken
46188         * m4/ungetc.m4: New file.
46189         * modules/fseek-tests: Split test, so ungetc dependency is
46190         separate from rest of test.
46191         * modules/fseeko-tests: Likewise.
46192         * modules/ftell-tests: Likewise.
46193         * modules/ftello-tests: Likewise.
46194         * tests/test-fseek.c (main): Isolate ungetc dependency.
46195         * tests/test-fseeko.c (main): Likewise.
46196         * tests/test-ftell.c (main): Likewise.
46197         * tests/test-ftello.c (main): Likewise.
46198         * tests/test-fseek2.sh: New file.
46199         * tests/test-fseeko2.sh: Likewise.
46200         * tests/test-ftell2.sh: Likewise.
46201         * tests/test-ftello2.sh: Likewise.
46202
46203 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46204
46205         test-getaddrinfo: fix usage of skip return code 77
46206         * tests/test-gettaddrinfo.c: Return skip code 77 only
46207         for first occurance of skip (4x77 is not 77)
46208
46209 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46210
46211         strtod: avoid C99 decl-after-statement
46212         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46213
46214 2009-02-24  Eric Blake  <ebb9@byu.net>
46215
46216         strtod: detect HP-UX 11.31 bug
46217         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46218         Reported by Gary V. Vaughan.
46219
46220 2009-02-23  Bruno Haible  <bruno@clisp.org>
46221
46222         Fix invalid read past end of memory block.
46223         * lib/vasnprintf.c (DCHAR_SET): Define.
46224         (local_wcslen): Define only when needed.
46225         (local_strnlen, local_wcsnlen): New functions.
46226         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46227         directives that involve a conversion ourselves.
46228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46229         wcsnlen, mbrtowc, wcrtomb.
46230         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46231         * tests/test-vasprintf-posix.c (test_function): Likewise.
46232         * tests/test-snprintf-posix.h (test_function): Likewise.
46233         * tests/test-sprintf-posix.h (test_function): Likewise.
46234         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46235
46236 2009-02-22  Bruno Haible  <bruno@clisp.org>
46237
46238         Implement new clarified decomposition of Hangul syllables.
46239         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46240         of type LTV, return only a pairwise decomposition.
46241         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46242         Likewise.
46243         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46244         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46245         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46246
46247 2009-02-22  Bruno Haible  <bruno@clisp.org>
46248
46249         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46250         zero-length results and shrink excess allocated memory.
46251         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46252         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46253         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46254         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46255         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46256         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46257         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46258         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46259         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46260         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46261         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46262         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46263
46264 2009-02-21  Bruno Haible  <bruno@clisp.org>
46265
46266         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46267         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46268         spaces after a period. Put a space between a macro name and its
46269         argument list. Trivial rewordings.
46270         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46271         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46272         (main): Return 0 explicitly.
46273
46274 2009-02-21  Bruno Haible  <bruno@clisp.org>
46275
46276         Tests for module 'uninorm/filter'.
46277         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46278         * modules/uninorm/filter-tests: New file.
46279
46280         New module 'uninorm/filter'.
46281         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46282         uninorm_filter_flush, uninorm_filter_free): New declarations.
46283         * lib/uninorm/uninorm-filter.c: New file.
46284         * modules/uninorm/filter: New file.
46285
46286 2009-02-21  Bruno Haible  <bruno@clisp.org>
46287
46288         Tests for module 'uninorm/nfkc'.
46289         * tests/uninorm/test-nfkc.c: New file.
46290         * tests/uninorm/test-u8-nfkc.c: New file.
46291         * tests/uninorm/test-u16-nfkc.c: New file.
46292         * tests/uninorm/test-u32-nfkc.c: New file.
46293         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46294         * tests/uninorm/test-u32-nfkc-big.c: New file.
46295         * modules/uninorm/nfkc-tests: New file.
46296
46297         New module 'uninorm/nfkc'.
46298         * lib/uninorm/nfkc.c: New file.
46299         * modules/uninorm/nfkc: New file.
46300
46301         Tests for module 'uninorm/nfkd'.
46302         * tests/uninorm/test-nfkd.c: New file.
46303         * tests/uninorm/test-u8-nfkd.c: New file.
46304         * tests/uninorm/test-u16-nfkd.c: New file.
46305         * tests/uninorm/test-u32-nfkd.c: New file.
46306         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46307         * tests/uninorm/test-u32-nfkd-big.c: New file.
46308         * modules/uninorm/nfkd-tests: New file.
46309
46310         New module 'uninorm/nfkd'.
46311         * lib/uninorm/nfkd.c: New file.
46312         * modules/uninorm/nfkd: New file.
46313
46314         Tests for module 'uninorm/nfc'.
46315         * tests/uninorm/test-nfc.c: New file.
46316         * tests/uninorm/test-u8-nfc.c: New file.
46317         * tests/uninorm/test-u16-nfc.c: New file.
46318         * tests/uninorm/test-u32-nfc.c: New file.
46319         * tests/uninorm/test-u32-nfc-big.sh: New file.
46320         * tests/uninorm/test-u32-nfc-big.c: New file.
46321         * modules/uninorm/nfc-tests: New file.
46322
46323         New module 'uninorm/nfc'.
46324         * lib/uninorm/nfc.c: New file.
46325         * modules/uninorm/nfc: New file.
46326
46327         Tests for module 'uninorm/nfd'.
46328         * tests/uninorm/test-nfd.c: New file.
46329         * tests/uninorm/test-u8-nfd.c: New file.
46330         * tests/uninorm/test-u16-nfd.c: New file.
46331         * tests/uninorm/test-u32-nfd.c: New file.
46332         * tests/uninorm/test-u32-nfd-big.sh: New file.
46333         * tests/uninorm/test-u32-nfd-big.c: New file.
46334         * tests/uninorm/test-u32-normalize-big.h: New file.
46335         * tests/uninorm/test-u32-normalize-big.c: New file.
46336         * tests/uninorm/NormalizationTest.txt: New file, created from
46337         Unicode 5.1.0 NormalizationTest.txt.
46338         * modules/uninorm/nfd-tests: New file.
46339
46340         New module 'uninorm/nfd'.
46341         * lib/uninorm/nfd.c: New file.
46342         * modules/uninorm/nfd: New file.
46343
46344         New module 'uninorm/u32-normalize'.
46345         * lib/uninorm/u32-normalize.c: New file.
46346         * modules/uninorm/u32-normalize: New file.
46347
46348         New module 'uninorm/u16-normalize'.
46349         * lib/uninorm/u16-normalize.c: New file.
46350         * modules/uninorm/u16-normalize: New file.
46351
46352         New module 'uninorm/u8-normalize'.
46353         * lib/uninorm/u8-normalize.c: New file.
46354         * lib/uninorm/normalize-internal.h: New file.
46355         * lib/uninorm/u-normalize-internal.h: New file.
46356         * modules/uninorm/u8-normalize: New file.
46357
46358         New module 'uninorm/decompose-internal'.
46359         * lib/uninorm/decompose-internal.c: New file.
46360         * modules/uninorm/decompose-internal: New file.
46361
46362         Tests for module 'uninorm/composition'.
46363         * tests/uninorm/test-composition.c: New file.
46364         * modules/uninorm/composition-tests: New file.
46365
46366         New module 'uninorm/composition'.
46367         * lib/uninorm/composition.c: New file.
46368         * lib/uninorm/composition-table.gperf: New file, generated by
46369         gen-uni-tables.
46370         * modules/uninorm/composition: New file.
46371
46372         Tests for module 'uninorm/compat-decomposition'.
46373         * tests/uninorm/test-compat-decomposition.c: New file.
46374         * modules/uninorm/compat-decomposition-tests: New file.
46375
46376         New module 'uninorm/compat-decomposition'.
46377         * lib/uninorm/decompose-internal.h: New file.
46378         * lib/uninorm/compat-decomposition.c: New file.
46379         * modules/uninorm/compat-decomposition: New file.
46380
46381         Tests for module 'uninorm/canonical-decomposition'.
46382         * tests/uninorm/test-canonical-decomposition.c: New file.
46383         * modules/uninorm/canonical-decomposition-tests: New file.
46384
46385         New module 'uninorm/canonical-decomposition'.
46386         * lib/uninorm/canonical-decomposition.c: New file.
46387         * modules/uninorm/canonical-decomposition: New file.
46388
46389         Tests for module 'uninorm/decomposition'.
46390         * tests/uninorm/test-decomposition.c: New file.
46391         * modules/uninorm/decomposition-tests: New file.
46392
46393         New module 'uninorm/decomposition'.
46394         * lib/uninorm/decomposition.c: New file.
46395         * modules/uninorm/decomposition: New file.
46396
46397         New module 'uninorm/decomposition-table'.
46398         * lib/uninorm/decomposition-table.h: New file.
46399         * lib/uninorm/decomposition-table.c: New file.
46400         * lib/uninorm/decomposition-table1.h: New file, generated by
46401         gen-uni-tables.
46402         * lib/uninorm/decomposition-table2.h: New file, generated by
46403         gen-uni-tables.
46404         * modules/uninorm/decomposition-table: New file.
46405
46406         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46407         (UC_DECOMP_*): New enumeration items.
46408         (get_decomposition): New function.
46409         (struct decomp_table): New type.
46410         (output_decomposition, output_decomposition_tables): New functions.
46411         (unicode_composition_exclusions): New variable.
46412         (fill_composition_exclusions, debug_output_composition_tables): New
46413         functions.
46414         (main): Accept one more argument. Invoke fill_composition_exclusions.
46415         Output decomposition and composition tables.
46416
46417         New module 'uninorm/base'.
46418         * lib/uninorm.h: New file.
46419         * lib/unictype.h: Update comment.
46420         * modules/uninorm/base: New file.
46421
46422 2009-02-21  David Lutterkort  <lutter@redhat.com>
46423
46424         Tests for module 'safe-alloc'.
46425         * tests/test-safe-alloc.c: New file.
46426         * modules/safe-alloc-tests: New file.
46427
46428         New module 'safe-alloc'.
46429         * lib/safe-alloc.h: New file.
46430         * lib/safe-alloc.c: New file.
46431         * m4/safe-alloc.m4: New file.
46432         * modules/safe-alloc: New file.
46433         * doc/safe-alloc.texi: New file.
46434         * doc/gnulib.texi: Include it.
46435         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46436         safe-alloc.
46437
46438 2009-02-18  Bruno Haible  <bruno@clisp.org>
46439
46440         Fix link error on non-glibc systems.
46441         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46442         variable.
46443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46444
46445 2009-02-18  Jim Meyering  <meyering@redhat.com>
46446
46447         fts: avoid used-uninitialized error due to recent change
46448         * lib/fts.c (fts_read): Guard uses of the new member,
46449         parent->fts_n_dirs_remaining, since it's not relevant for
46450         the parent of a directory specified on the command-line.
46451
46452 2009-02-17  James Youngman  <jay@gnu.org>
46453             Bruno Haible  <bruno@clisp.org>
46454
46455         * m4/include_next.m4: Reformulate comment.
46456
46457 2009-02-16  Jim Meyering  <meyering@redhat.com>
46458
46459         fts: add #if guards so that the fts_lgpl module still builds
46460         * lib/fts.c: Guard just-added hash-table-using parts with
46461         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46462         Reported by Simon Josefsson.
46463
46464 2009-02-15  Bruno Haible  <bruno@clisp.org>
46465
46466         * modules/array-mergesort-tests: New file.
46467         * tests/test-array-mergesort.c: New file.
46468
46469         New module 'array-mergesort'.
46470         * modules/array-mergesort: New file.
46471         * lib/array-mergesort.h: New file.
46472
46473 2009-02-15  Bruno Haible  <bruno@clisp.org>
46474
46475         Fix 2009-02-07 commit.
46476         * lib/gen-uni-tables.c (output_predicate, output_category,
46477         output_combclass, output_bidi_category, output_decimal_digit,
46478         output_digit, output_numeric, output_mirror, output_scripts,
46479         output_ident_category, output_simple_mapping): Fix format directives.
46480         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46481
46482 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46483
46484         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46485         fixes are available from IBM.
46486
46487 2009-02-13  Jim Meyering  <meyering@redhat.com>
46488
46489         fts: arrange not to stat non-directories in more cases
46490         This makes GNU find (when it doesn't need to stat each file)
46491         *much* more efficient at traversing reiserfs file systems.
46492         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46493         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46494         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46495         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46496         (leaf_optimization_applies): New function.
46497         (LCO_hash, LCO_compare): New helper functions.
46498         (link_count_optimize_ok): New function.
46499         (fts_stat): Initialize new member (if dir).
46500         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46501         we've just stat'ed a directory.  Skip the stat call when possible.
46502         ---
46503         Note this AFS-related exchange:
46504         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46505         and note find's pioctl call in find/fstype.c.
46506         But that is necessary only if you want to enable the
46507         optimization for AFS, and for now, I don't.
46508
46509         fts: move a function definition "up" (no semantic change)
46510         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46511         "up" to precede upcoming use of a related function.
46512
46513 2009-02-11  Jim Meyering  <meyering@redhat.com>
46514
46515         fts: correct internal computation of nlinks (optimization-related)
46516         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46517         whether the current entry is a directory, so don't test it.
46518
46519 2009-02-10  Bruno Haible  <bruno@clisp.org>
46520
46521         Tests for module 'uniwbrk/ulc-wordbreaks'.
46522         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46523         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46524         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46525
46526         Tests for module 'uniwbrk/u32-wordbreaks'.
46527         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46528         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46529
46530         Tests for module 'uniwbrk/u16-wordbreaks'.
46531         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46532         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46533
46534         Tests for module 'uniwbrk/u8-wordbreaks'.
46535         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46536         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46537
46538 2009-02-10  Bruno Haible  <bruno@clisp.org>
46539
46540         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46541         property.
46542         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46543         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46544         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46545
46546 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46547
46548         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46549         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46550
46551 2009-02-10  Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46554         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46555         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46556         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46557         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46558         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46559
46560 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46561
46562         * lib/sockets.h (gl_fd_to_handle): New function.
46563
46564         * tests/test-sockets.c: Call gl_fd_to_handle.
46565
46566 2009-02-09  Bruno Haible  <bruno@clisp.org>
46567
46568         * doc/havelib.texi: Document the conventions on bi-arch systems.
46569
46570 2009-02-08  Bruno Haible  <bruno@clisp.org>
46571
46572         Document the AC_LIB_LINKFLAGS macro.
46573         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46574         * doc/gnulib.texi: Include it.
46575
46576 2009-02-08  Bruno Haible  <bruno@clisp.org>
46577
46578         Fix wrong order of sections, compared to TOC.
46579         * doc/gnulib.texi: Include relocatable-maint.texi after the
46580         "Regular expressions" node, not before.
46581
46582 2009-02-08  Bruno Haible  <bruno@clisp.org>
46583
46584         Tests for module 'unicase/totitle'.
46585         * modules/unicase/totitle-tests: New file.
46586
46587         Tests for module 'unicase/tolower'.
46588         * modules/unicase/tolower-tests: New file.
46589
46590         Tests for module 'unicase/toupper'.
46591         * modules/unicase/toupper-tests: New file.
46592         * tests/unicase/test-mapping-part1.h: New file.
46593         * tests/unicase/test-mapping-part2.h: New file.
46594
46595         New module 'unicase/totitle'.
46596         * modules/unicase/totitle: New file.
46597         * lib/unicase/totitle.c: New file.
46598
46599         New module 'unicase/tolower'.
46600         * modules/unicase/tolower: New file.
46601         * lib/unicase/tolower.c: New file.
46602
46603         New module 'unicase/toupper'.
46604         * modules/unicase/toupper: New file.
46605         * lib/unicase/toupper.c: New file.
46606         * lib/unicase/simple-mapping.h: New file.
46607
46608         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46609         (mapping_table): New structure.
46610         (output_simple_mapping): New function.
46611         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46612         * modules/gen-uni-tables (Description): Update.
46613         * lib/unicase/toupper.h: New file, automatically generated by
46614         gen-uni-tables.
46615         * lib/unicase/tolower.h: New file, automatically generated by
46616         gen-uni-tables.
46617         * lib/unicase/totitle.h: New file, automatically generated by
46618         gen-uni-tables.
46619         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46620         gen-uni-tables.
46621         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46622         gen-uni-tables.
46623         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46624         gen-uni-tables.
46625
46626         New module 'unicase/base'.
46627         * modules/unicase/base: New file.
46628         * lib/unicase.h: New file.
46629
46630 2009-02-08  Bruno Haible  <bruno@clisp.org>
46631
46632         New module 'uniwbrk/ulc-wordbreaks'.
46633         * modules/uniwbrk/ulc-wordbreaks: New file.
46634         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46635
46636         New module 'uniwbrk/u32-wordbreaks'.
46637         * modules/uniwbrk/u32-wordbreaks: New file.
46638         * lib/uniwbrk/u32-wordbreaks.c: New file.
46639
46640         New module 'uniwbrk/u16-wordbreaks'.
46641         * modules/uniwbrk/u16-wordbreaks: New file.
46642         * lib/uniwbrk/u16-wordbreaks.c: New file.
46643
46644         New module 'uniwbrk/u8-wordbreaks'.
46645         * modules/uniwbrk/u8-wordbreaks: New file.
46646         * lib/uniwbrk/u8-wordbreaks.c: New file.
46647         * lib/uniwbrk/u-wordbreaks.h: New file.
46648
46649         New module 'uniwbrk/table'.
46650         * modules/uniwbrk/table: New file.
46651         * lib/uniwbrk/wbrktable.h: New file.
46652         * lib/uniwbrk/wbrktable.c: New file.
46653
46654         New module 'uniwbrk/wordbreak-property'.
46655         * modules/uniwbrk/wordbreak-property: New file.
46656         * lib/uniwbrk/wordbreak-property.c: New file.
46657
46658         * lib/gen-uni-tables.c (WBP_*): New enum items.
46659         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46660         (unicode_org_wbp): New variable.
46661         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46662         New functions.
46663         (wbp_table): New structure.
46664         (output_wbp, output_wbrk_tables): New functions.
46665         (main): Accept additional argument. Invoke fill_org_wbp,
46666         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46667         output_wbrk_tables.
46668         * modules/gen-uni-tables (Description): Update.
46669         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46670         gen-uni-tables.
46671
46672         New module 'uniwbrk/base'.
46673         * modules/uniwbrk/base: New file.
46674         * lib/uniwbrk.h: New file.
46675
46676 2009-02-08  Bruno Haible  <bruno@clisp.org>
46677
46678         Update to Unicode 5.1.0.
46679         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46680         U+2185..U+2188.
46681         (is_property_default_ignorable_code_point): Don't include characters
46682         of category Cc or Cs and not-a-characters.
46683         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46684         U+0D79, U+109E, U+109F, U+A60C.
46685         * lib/unictype/bidi_of.h: Regenerated.
46686         * lib/unictype/blocks.h: Regenerated.
46687         * lib/unictype/categ_C.h: Regenerated.
46688         * lib/unictype/categ_Cf.h: Regenerated.
46689         * lib/unictype/categ_Cn.h: Regenerated.
46690         * lib/unictype/categ_L.h: Regenerated.
46691         * lib/unictype/categ_Ll.h: Regenerated.
46692         * lib/unictype/categ_Lm.h: Regenerated.
46693         * lib/unictype/categ_Lo.h: Regenerated.
46694         * lib/unictype/categ_Lu.h: Regenerated.
46695         * lib/unictype/categ_M.h: Regenerated.
46696         * lib/unictype/categ_Mc.h: Regenerated.
46697         * lib/unictype/categ_Me.h: Regenerated.
46698         * lib/unictype/categ_Mn.h: Regenerated.
46699         * lib/unictype/categ_N.h: Regenerated.
46700         * lib/unictype/categ_Nd.h: Regenerated.
46701         * lib/unictype/categ_Nl.h: Regenerated.
46702         * lib/unictype/categ_No.h: Regenerated.
46703         * lib/unictype/categ_P.h: Regenerated.
46704         * lib/unictype/categ_Pd.h: Regenerated.
46705         * lib/unictype/categ_Pe.h: Regenerated.
46706         * lib/unictype/categ_Pf.h: Regenerated.
46707         * lib/unictype/categ_Pi.h: Regenerated.
46708         * lib/unictype/categ_Po.h: Regenerated.
46709         * lib/unictype/categ_Ps.h: Regenerated.
46710         * lib/unictype/categ_S.h: Regenerated.
46711         * lib/unictype/categ_Sk.h: Regenerated.
46712         * lib/unictype/categ_Sm.h: Regenerated.
46713         * lib/unictype/categ_So.h: Regenerated.
46714         * lib/unictype/categ_of.h: Regenerated.
46715         * lib/unictype/combining.h: Regenerated.
46716         * lib/unictype/ctype_alnum.h: Regenerated.
46717         * lib/unictype/ctype_alpha.h: Regenerated.
46718         * lib/unictype/ctype_graph.h: Regenerated.
46719         * lib/unictype/ctype_lower.h: Regenerated.
46720         * lib/unictype/ctype_print.h: Regenerated.
46721         * lib/unictype/ctype_punct.h: Regenerated.
46722         * lib/unictype/ctype_upper.h: Regenerated.
46723         * lib/unictype/decdigit.h: Regenerated.
46724         * lib/unictype/digit.h: Regenerated.
46725         * lib/unictype/mirror.h: Regenerated.
46726         * lib/unictype/numeric.h: Regenerated.
46727         * lib/unictype/pr_alphabetic.h: Regenerated.
46728         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46729         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46730         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46731         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46732         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46733         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46734         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46735         * lib/unictype/pr_combining.h: Regenerated.
46736         * lib/unictype/pr_dash.h: Regenerated.
46737         * lib/unictype/pr_decimal_digit.h: Regenerated.
46738         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46739         * lib/unictype/pr_deprecated.h: Regenerated.
46740         * lib/unictype/pr_diacritic.h: Regenerated.
46741         * lib/unictype/pr_extender.h: Regenerated.
46742         * lib/unictype/pr_format_control.h: Regenerated.
46743         * lib/unictype/pr_grapheme_base.h: Regenerated.
46744         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46745         * lib/unictype/pr_grapheme_link.h: Regenerated.
46746         * lib/unictype/pr_id_continue.h: Regenerated.
46747         * lib/unictype/pr_id_start.h: Regenerated.
46748         * lib/unictype/pr_ideographic.h: Regenerated.
46749         * lib/unictype/pr_ignorable_control.h: Regenerated.
46750         * lib/unictype/pr_lowercase.h: Regenerated.
46751         * lib/unictype/pr_math.h: Regenerated.
46752         * lib/unictype/pr_numeric.h: Regenerated.
46753         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46754         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46755         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46756         * lib/unictype/pr_other_id_continue.h: Regenerated.
46757         * lib/unictype/pr_other_lowercase.h: Regenerated.
46758         * lib/unictype/pr_other_math.h: Regenerated.
46759         * lib/unictype/pr_punctuation.h: Regenerated.
46760         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46761         * lib/unictype/pr_soft_dotted.h: Regenerated.
46762         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46763         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46764         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46765         * lib/unictype/pr_uppercase.h: Regenerated.
46766         * lib/unictype/pr_xid_continue.h: Regenerated.
46767         * lib/unictype/pr_xid_start.h: Regenerated.
46768         * lib/unictype/pr_zero_width.h: Regenerated.
46769         * lib/unictype/scripts.h: Regenerated.
46770         * lib/unictype/scripts_byname.gperf: Regenerated.
46771         * lib/unictype/sy_java_ident.h: Regenerated.
46772         * lib/unilbrk/lbrkprop1.h: Regenerated.
46773         * lib/unilbrk/lbrkprop2.h: Regenerated.
46774         * tests/unictype/test-categ_C.c: Regenerated.
46775         * tests/unictype/test-categ_Cf.c: Regenerated.
46776         * tests/unictype/test-categ_Cn.c: Regenerated.
46777         * tests/unictype/test-categ_L.c: Regenerated.
46778         * tests/unictype/test-categ_Ll.c: Regenerated.
46779         * tests/unictype/test-categ_Lm.c: Regenerated.
46780         * tests/unictype/test-categ_Lo.c: Regenerated.
46781         * tests/unictype/test-categ_Lu.c: Regenerated.
46782         * tests/unictype/test-categ_M.c: Regenerated.
46783         * tests/unictype/test-categ_Mc.c: Regenerated.
46784         * tests/unictype/test-categ_Me.c: Regenerated.
46785         * tests/unictype/test-categ_Mn.c: Regenerated.
46786         * tests/unictype/test-categ_N.c: Regenerated.
46787         * tests/unictype/test-categ_Nd.c: Regenerated.
46788         * tests/unictype/test-categ_Nl.c: Regenerated.
46789         * tests/unictype/test-categ_No.c: Regenerated.
46790         * tests/unictype/test-categ_P.c: Regenerated.
46791         * tests/unictype/test-categ_Pd.c: Regenerated.
46792         * tests/unictype/test-categ_Pe.c: Regenerated.
46793         * tests/unictype/test-categ_Pf.c: Regenerated.
46794         * tests/unictype/test-categ_Pi.c: Regenerated.
46795         * tests/unictype/test-categ_Po.c: Regenerated.
46796         * tests/unictype/test-categ_Ps.c: Regenerated.
46797         * tests/unictype/test-categ_S.c: Regenerated.
46798         * tests/unictype/test-categ_Sk.c: Regenerated.
46799         * tests/unictype/test-categ_Sm.c: Regenerated.
46800         * tests/unictype/test-categ_So.c: Regenerated.
46801         * tests/unictype/test-ctype_alnum.c: Regenerated.
46802         * tests/unictype/test-ctype_alpha.c: Regenerated.
46803         * tests/unictype/test-ctype_graph.c: Regenerated.
46804         * tests/unictype/test-ctype_lower.c: Regenerated.
46805         * tests/unictype/test-ctype_print.c: Regenerated.
46806         * tests/unictype/test-ctype_punct.c: Regenerated.
46807         * tests/unictype/test-ctype_upper.c: Regenerated.
46808         * tests/unictype/test-decdigit.h: Regenerated.
46809         * tests/unictype/test-digit.h: Regenerated.
46810         * tests/unictype/test-numeric.h: Regenerated.
46811         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46812         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46813         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46814         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46815         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46816         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46817         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46818         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46819         * tests/unictype/test-pr_combining.c: Regenerated.
46820         * tests/unictype/test-pr_dash.c: Regenerated.
46821         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46822         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46823         * tests/unictype/test-pr_deprecated.c: Regenerated.
46824         * tests/unictype/test-pr_diacritic.c: Regenerated.
46825         * tests/unictype/test-pr_extender.c: Regenerated.
46826         * tests/unictype/test-pr_format_control.c: Regenerated.
46827         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46828         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46829         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46830         * tests/unictype/test-pr_id_continue.c: Regenerated.
46831         * tests/unictype/test-pr_id_start.c: Regenerated.
46832         * tests/unictype/test-pr_ideographic.c: Regenerated.
46833         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46834         * tests/unictype/test-pr_lowercase.c: Regenerated.
46835         * tests/unictype/test-pr_math.c: Regenerated.
46836         * tests/unictype/test-pr_numeric.c: Regenerated.
46837         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46838         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46839         Regenerated.
46840         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46841         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46842         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46843         * tests/unictype/test-pr_other_math.c: Regenerated.
46844         * tests/unictype/test-pr_punctuation.c: Regenerated.
46845         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46846         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46847         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46848         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46849         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46850         * tests/unictype/test-pr_uppercase.c: Regenerated.
46851         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46852         * tests/unictype/test-pr_xid_start.c: Regenerated.
46853         * tests/unictype/test-pr_zero_width.c: Regenerated.
46854
46855         Update to Unicode 5.1.0.
46856         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46857         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46858         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46859         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46860         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46861         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46862         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46863         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46864         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46865         (nonspacing_table_ind): Update.
46866         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46867
46868         Update to Unicode 5.1.0.
46869         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46870         code transform.
46871         * lib/uniname/uniname.c (unicode_character_name,
46872         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46873         * lib/uniname/uninames.h: Regenerated.
46874         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46875
46876 2009-02-07  Bruno Haible  <bruno@clisp.org>
46877
46878         Merge gen-ctype and gen-lbrk into a single program.
46879         * lib/gen-uni-tables.c: New file, incorporating
46880         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46881         Add directory prefixes to the names of the generated files.
46882         * lib/unictype/gen-ctype.c: Remove file.
46883         * lib/unilbrk/gen-lbrk.c: Remove file.
46884         * modules/gen-uni-tables: New file.
46885         * modules/unictype/gen-ctype: Remove file.
46886         * modules/unilbrk/gen-lbrk: Remove file.
46887
46888 2009-02-07  Bruno Haible  <bruno@clisp.org>
46889
46890         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46891
46892         New module 'unistr/u32-strcoll'.
46893         * modules/unistr/u32-strcoll: New file.
46894         * lib/unistr/u32-strcoll.c: New file.
46895
46896         New module 'unistr/u16-strcoll'.
46897         * modules/unistr/u16-strcoll: New file.
46898         * lib/unistr/u16-strcoll.c: New file.
46899
46900         New module 'unistr/u8-strcoll'.
46901         * modules/unistr/u8-strcoll: New file.
46902         * lib/unistr/u8-strcoll.c: New file.
46903         * lib/unistr/u-strcoll.h: New file.
46904
46905 2009-02-07  Bruno Haible  <bruno@clisp.org>
46906
46907         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46908         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46909         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46910         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46911         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46912         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46913
46914 2009-02-07  Bruno Haible  <bruno@clisp.org>
46915
46916         Make 64-bit clean.
46917         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46918         output_combclass, output_bidi_category, output_decimal_digit,
46919         output_digit, output_numeric, output_mirror, output_scripts,
46920         output_ident_category): Use proper width specifier in format strings.
46921
46922 2009-02-07  Bruno Haible  <bruno@clisp.org>
46923
46924         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46925         failure behaviour.
46926
46927 2009-02-07  Jim Meyering  <meyering@redhat.com>
46928
46929         regex: avoid compilation failure with upcoming gcc-4.4
46930         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46931         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46932         "... error: integer overflow in preprocessor expression".
46933
46934 2009-02-05  Ben Pfaff  <blp@gnu.org>
46935
46936         Fix link errors on Windows when close module is used.
46937         * modules/close: Add $(LIB_CLOSE) to Link section.
46938         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46939         $(LIB_CLOSE) on Windows.
46940
46941 2009-02-05  Jim Meyering  <meyering@redhat.com>
46942
46943         still avoid unused-parameter warnings, but do it cleanly
46944         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46945         (get_fs_usage): Cast to void instead.
46946         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46947         (dev_from_mount_options, read_file_system_list): Cast to void.
46948         Prompted by Bruno Haible.
46949
46950 2009-02-04  Jim Meyering  <meyering@redhat.com>
46951
46952         fsusage.c: correct copyright year
46953         * lib/fsusage.c: Reflect year in which the change is pushed into
46954
46955         avoid misc. warnings
46956         * lib/fsusage.c (UNUSED_PARAM): Define.
46957         (get_fs_usage): Mark parameter "disk" as unused.
46958         * lib/getugroups.c (getgrent): Use "void" in prototype.
46959         * lib/mountlist.c: Mark unused parameters.
46960         (read_file_system_list): Declare a local with "const".
46961         * lib/nanosleep.c (getnow): Declare static.
46962         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46963
46964         dirfd: set errno upon failure
46965         * lib/dirfd.c: Include <errno.h>.
46966         Set errno to ENOTSUP when returning -1.
46967         * modules/dirfd (Depends-on): Add errno.
46968         Suggested by John Kodis <kodis@comcast.net>.
46969
46970 2009-02-01  Bruno Haible  <bruno@clisp.org>
46971
46972         Don't assume sizeof (long) >= sizeof (void *).
46973         * lib/memcmp.c: Include stdint.h.
46974         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46975         srcp2 to 'const byte *'.
46976         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46977         types to uintptr_t.
46978         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46979         * modules/memcmp (Depends-on): Add stdint.
46980         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46981
46982 2009-01-30  Eric Blake  <ebb9@byu.net>
46983
46984         fix more require-before-expand issues
46985         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46986         expand, AC_PROG_AWK.
46987         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46988
46989 2009-01-28  Eric Blake  <ebb9@byu.net>
46990
46991         version-etc: use consistent URL formatting
46992         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46993         Improve formatting.  Use fputs for string without %.
46994
46995 2009-01-28  Jim Meyering  <meyering@redhat.com>
46996
46997         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46998         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46999         "underquoted definition of NAME" from autoconf-2.59.
47000
47001 2009-01-28  Bruno Haible  <bruno@clisp.org>
47002
47003         * doc/gnulib.texi: Add "Obsolete modules" to index.
47004
47005 2009-01-28  Jim Meyering  <meyering@redhat.com>
47006
47007         useless-if-before-free: recognize more variants
47008         * build-aux/useless-if-before-free: Also recognize e.g.,
47009         if (NULL != p) free (p);
47010
47011 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47012
47013         test-getaddrinfo: skip (don't fail) this test when there's no network
47014         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47015         on the presumption that it means you lack network access.
47016
47017 2009-01-26  Jim Meyering  <meyering@redhat.com>
47018
47019         fflush: avoid warnings on modern systems
47020         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47021         pos and result, into scopes where they're used.
47022
47023 2009-01-26  Eric Blake  <ebb9@byu.net>
47024
47025         Silence warning reintroduced by recent extensions patch.
47026         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47027         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47028         autoconf.
47029
47030         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47031         * m4/00gnulib.m4: New file.
47032         * gnulib-tool (func_get_filelist): Always use it.
47033         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47034         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47035
47036 2009-01-25  Bruno Haible  <bruno@clisp.org>
47037
47038         Make test-quotearg work on MacOS X and AIX.
47039         * tests/test-quotearg.sh: New file.
47040         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47041         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47042         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47043         include <libintl.h>.
47044         (fake_locale): Remove variable.
47045         (gettext, dgettext, dcgettext): Remove functions.
47046         (main): Instead of setting a fake locale, set a real locale. Call
47047         textdomain and bindtextdomain.
47048         * modules/quotearg-tests (Files): Add the new files.
47049         (Depends-on): Add gettext, setenv, unsetenv.
47050         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47051         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47052         Augment TESTS_ENVIRONMENT.
47053
47054 2009-01-25  Bruno Haible  <bruno@clisp.org>
47055
47056         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47057         fr_FR.ISO8859-1 locale on MacOS X.
47058         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47059         ja_JP.eucJP locale on MacOS X.
47060         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47061         zh_CN.GB18030 locale on MacOS X.
47062
47063 2009-01-25  Bruno Haible  <bruno@clisp.org>
47064
47065         Avoid link errors on MacOS X 10.3.
47066         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47067         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47068
47069 2009-01-25  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47072         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47073         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47074         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47075         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47076         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47077         posix_spawnattr_init, posix_spawnattr_setsigmask,
47078         posix_spawnattr_setflags, posix_spawnattr_destroy.
47079
47080         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47081         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47082         * modules/execute (Files): Remove m4/posix_spawn.m4.
47083         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47084         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47085         posix_spawnattr_init, posix_spawnattr_setsigmask,
47086         posix_spawnattr_setflags, posix_spawnattr_destroy.
47087
47088 2009-01-25  Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/glthread/threadlib.c: Include <stdlib.h>.
47091
47092 2009-01-25  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/glthread/threadlib.c (dummy): New declaration.
47095
47096 2009-01-25  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47099         multibyte characters also for the GB18030 encoding. Don't crash when
47100         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47101
47102 2009-01-25  Bruno Haible  <bruno@clisp.org>
47103
47104         Avoid redefining 'struct random_data' on OSF/1 5.1.
47105         * lib/stdlib.in.h: Include <random.h> if it exists.
47106         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47107         HAVE_RANDOM_H. Include <random.h> when testing whether
47108         'struct random_data' exists.
47109         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47110
47111 2009-01-25  Bruno Haible  <bruno@clisp.org>
47112
47113         Don't install charset.alias on MacOS X >= 10.3.
47114         * lib/localcharset.c (DARWIN7): New macro.
47115         (get_charset_aliases): Hardcode the result for Darwin7.
47116         * modules/localcharset (install-exec-local): Don't install
47117         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47118
47119 2009-01-25  Bruno Haible  <bruno@clisp.org>
47120
47121         Don't install charset.alias on mingw and Cygwin.
47122         * modules/localcharset (install-exec-local): Don't install
47123         charset.alias on mingw and Cygwin, if the file does not yet exist.
47124         The result for these platforms is hardcoded in localcharset.c.
47125
47126 2009-01-25  Bruno Haible  <bruno@clisp.org>
47127
47128         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47130         before requiring AC_USE_SYSTEM_EXTENSIONS.
47131
47132 2009-01-25  Jim Meyering  <meyering@redhat.com>
47133
47134         c-strtod: avoid warnings
47135         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47136         "assignment discards qualifiers from pointer target type" warnings.
47137
47138 2009-01-24  Bruno Haible  <bruno@clisp.org>
47139
47140         Add support for non-UTF-8 locales on MacOS X.
47141         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47142         canonical encodings. For Darwin 7 and newer, don't map traditional
47143         encodings to UTF-8.
47144         Reported by Vincent Lefevre <vincent@vinc17.org>
47145         at <http://savannah.gnu.org/bugs/?25235>.
47146
47147 2009-01-24  Bruno Haible  <bruno@clisp.org>
47148
47149         * doc/gnulib.texi (Obsolete modules): New section.
47150         Reported by Mike Frysinger <vapier@gentoo.org>.
47151
47152 2009-01-24  Bruno Haible  <bruno@clisp.org>
47153
47154         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47155         (%.dvi): New rule.
47156
47157 2009-01-24  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47160         Reported by Eric Blake.
47161
47162 2009-01-24  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47165         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47166         Reported by Gary V. Vaughan <gary@gnu.org>.
47167
47168 2009-01-24  Bruno Haible  <bruno@clisp.org>
47169
47170         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47171
47172 2009-01-23  Bruno Haible  <bruno@clisp.org>
47173
47174         Make c-strtod, c-strtold usable in libraries.
47175         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47176         (C_STRTOD): Call strdup instead of xstrdup.
47177         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47178         * modules/c-strtold (Depends-on): Likewise.
47179         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47180         * NEWS: Mention the change.
47181         Reported by Michael Gold <mgold@ncf.ca>.
47182
47183 2009-01-23  Jim Meyering  <meyering@redhat.com>
47184
47185         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47186         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47187         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47188
47189 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47190
47191         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47192         GNU CoreUtils.
47193         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47194         * modules/version-etc (Description): Update.
47195
47196 2009-01-22  Bruno Haible  <bruno@clisp.org>
47197
47198         Cache the C locale object.
47199         * lib/c-strtod.c (c_locale_cache): New variable.
47200         (c_locale): New function.
47201         (C_STRTOD): Use it, and don't call freelocale.
47202         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47203         Suggested by Paolo Bonzini.
47204
47205 2009-01-21  Bruno Haible  <bruno@clisp.org>
47206
47207         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47208         conditions other than overflow.
47209
47210 2009-01-21  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/c-strtod.c: Include errno.h.
47213         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47214         value from STRTOD_L and STRTOD.
47215
47216 2009-01-21  Bruno Haible  <bruno@clisp.org>
47217         and Jim Meyering  <meyering@redhat.com>
47218
47219         nanosleep: skip configure test (fail it) for apple universal builds
47220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47221         universal builds, assume that nanosleep does not work.
47222         * modules/nanosleep (Depends-on): Add multiarch.
47223
47224         mktime: skip configure test (fail it) for apple universal builds
47225         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47226         universal builds, assume that mktime does not work.
47227         * modules/mktime (Depends-on): Add multiarch.
47228
47229 2009-01-21  Eric Blake  <ebb9@byu.net>
47230
47231         multiarch: avoid expand-before-require warning
47232         * modules/multiarch (configure.ac): Require, rather than expand,
47233         gl_MULTIARCH.
47234         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47235         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47236         enforce that all clients require it.  Partial reversion of
47237         2008-12-29 patch.
47238
47239         error: avoid expand-before-require warning
47240         * modules/errno (configure.ac): Require, rather than expand,
47241         gl_HEADER_ERRNO_H.
47242         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47243         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47244         enforce that all clients require it.
47245
47246         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47247         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47248         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47249         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47250
47251 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47252
47253         Revert:
47254         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47255
47256         regex: do not depend on obsolete modules.
47257         * modules/regex: Remove memcmp and memmove.
47258
47259 2009-01-20  Bruno Haible  <bruno@clisp.org>
47260
47261         Make the 'link' module link on Windows NT 4.
47262         * lib/link.c (_WIN32_WINNT): Don't define.
47263         (CreateHardLinkFuncType): New type.
47264         (CreateHardLinkFunc, initialized): New variables.
47265         (initialize): New function.
47266         (link): Invoke CreateHardLink indirectly through the function pointer.
47267
47268 2009-01-20  Bruno Haible  <bruno@clisp.org>
47269
47270         Fix compilation failure on mingw.
47271         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47272
47273 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47274
47275         * doc/c-strtod.texi: Mention a couple of restrictions.
47276
47277 2009-01-20  Jim Meyering  <meyering@redhat.com>
47278
47279         gettimeofday: move more declarations out of functions
47280         * lib/gettimeofday.c: Move extern declarations of tzset and
47281         gmtime out of containing functions.  Prompted by Bruno Haible.
47282
47283 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47284
47285         regex: do not depend on obsolete modules.
47286         * modules/regex: Remove memcmp and memmove.
47287
47288 2009-01-19  Bruno Haible  <bruno@clisp.org>
47289
47290         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47291         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47292         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47293         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47294         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47295
47296 2009-01-19  Bruno Haible  <bruno@clisp.org>
47297
47298         * tests/test-link.c: Include <errno.h>.
47299         (main): Exit with code 77 when a hard link cannot be created due to
47300         the file system.
47301         * tests/test-link.sh: Skip test when a hard link cannot be created due
47302         to the file system.
47303         Suggested by Eric Blake.
47304
47305 2009-01-19  Martin Lambers  <marlam@marlam.de>
47306
47307         * modules/link-tests: New file.
47308         * tests/test-link.sh: New file.
47309         * tests/test-link.c: New file.
47310
47311 2009-01-19  Eric Blake  <ebb9@byu.net>
47312
47313         doc: mention another function added in cygwin 1.7.0
47314         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47315         Another new function in cygwin 1.7.
47316
47317 2009-01-19  Bruno Haible  <bruno@clisp.org>
47318
47319         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47320         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47321         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47322         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47323         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47324         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47325         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47326         * m4/md4.m4 (gl_MD4): Likewise.
47327         * m4/md5.m4 (gl_MD5): Likewise.
47328         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47329         * m4/sha1.m4 (gl_SHA1): Likewise.
47330         * m4/sha256.m4 (gl_SHA256): Likewise.
47331         * m4/sha512.m4 (gl_SHA512): Likewise.
47332
47333 2009-01-19  Bruno Haible  <bruno@clisp.org>
47334
47335         * modules/uniname/uniname-tests (Depends-on): Add progname.
47336         * tests/uniname/test-uninames.c: Include progname.h.
47337         (main): Call set_program_name.
47338
47339         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47340         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47341         (main): Call set_program_name.
47342
47343         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47344         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47345         (main): Call set_program_name.
47346
47347         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47348         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47349         (main): Call set_program_name.
47350
47351         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47352         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47353         (main): Call set_program_name.
47354
47355         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47356         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47357         (main): Call set_program_name.
47358
47359         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47360         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47361         (main): Call set_program_name.
47362
47363         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47364         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47365         (main): Call set_program_name.
47366
47367         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47368         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47369         (main): Call set_program_name.
47370
47371 2009-01-19  Eric Blake  <ebb9@byu.net>
47372
47373         test-unistd: test previous patch
47374         * tests/test-unistd.c: Test *_FILENO macros.
47375
47376         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47377         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47378         Guarantee a definition.
47379         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47380         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47381         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47382         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47383         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47384         Likewise.
47385         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47386         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47387         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47388         Likewise.
47389         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47390         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47391         (STDERR_FILENO): Likewise.
47392         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47393         (STDERR_FILENO): Likewise.
47394         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47395         (STDERR_FILENO): Likewise.
47396         Reported by Elbert Pol.
47397
47398 2009-01-19  Eric Blake  <ebb9@byu.net>
47399
47400         doc: mention more functions added in cygwin 1.7.0
47401         * doc/posix-functions/abort.texi (abort): Update wording related
47402         to cygwin.
47403         * doc/posix-functions/daylight.texi (daylight): Likewise.
47404         * doc/posix-functions/optarg.texi (optarg): Likewise.
47405         * doc/posix-functions/optarg.texi (opterr): Likewise.
47406         * doc/posix-functions/optarg.texi (optind): Likewise.
47407         * doc/posix-functions/optarg.texi (optopt): Likewise.
47408         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47409         worked in 1.5.x, and was withdrawn in 1.7.
47410         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47411         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47412         cygwin versions.
47413         * doc/posix-functions/perror.texi (perror): Likewise.
47414         * doc/posix-functions/printf.texi (printf): Likewise.
47415         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47416         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47417         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47418         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47419         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47420         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47421         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47422         Likewise.
47423         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47424         Likewise.
47425         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47426         this function.
47427         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47428         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47429         Likewise.
47430         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47431         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47432         * doc/posix-functions/confstr.texi (confstr): Likewise.
47433         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47434         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47435         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47436         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47437         * doc/posix-functions/fputws.texi (fputws): Likewise.
47438         * doc/posix-functions/fwide.texi (fwide): Likewise.
47439         * doc/posix-functions/getwc.texi (getwc): Likewise.
47440         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47441         * doc/posix-functions/putwc.texi (putwc): Likewise.
47442         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47443         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47444         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47445         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47446         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47447         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47448         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47449         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47450         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47451         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47452         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47453
47454 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47455
47456         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47457         * lib/ioctl.c: Include <sys/ioctl.h>.
47458
47459 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47460
47461         * modules/getdate-tests (Depends-on): Add progname.
47462         * tests/test-getdate.c: Use progname module, to avoid link errors
47463         on non-glibc systems.
47464
47465 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47466
47467         * modules/filenamecat-tests (Depends-on): Add progname.
47468         * modules/fstrcmp-tests (Depends-on): Likewise.
47469
47470         * tests/test-filenamecat.c: Use progname module, to avoid link
47471         errors on non-glibc systems.
47472         * tests/test-fstrcmp.c: Likewise.
47473
47474 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47475
47476         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47477         * lib/gettimeofday.c: Move extern declaration out of function.
47478
47479 2009-01-18  Bruno Haible  <bruno@clisp.org>
47480
47481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47482         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47483         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47484
47485 2009-01-18  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/strftime.c (MEMPCPY): Remove unused macro.
47488         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47489
47490 2009-01-18  Martin Lambers  <marlam@marlam.de>
47491
47492         New module 'link'.
47493         * lib/unistd.in.h (link): New declaration.
47494         * lib/link.c: New file.
47495         * m4/link.m4: New file.
47496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47497         HAVE_LINK.
47498         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47499         * modules/link: New file.
47500         * doc/posix-functions/link.texi: Mention the new module.
47501
47502 2009-01-18  Bruno Haible  <bruno@clisp.org>
47503
47504         * tests/test-avltree_list.c (main): Call set_program_name.
47505         * tests/test-avltree_oset.c (main): Likewise.
47506         * tests/test-obstack-printf.c: Include progname.h.
47507         (main): Call set_program_name.
47508         * tests/test-quotearg.c: Include progname.h.
47509         (main): Call set_program_name.
47510         * tests/test-xmemdup0.c: Include progname.h.
47511         (main): Call set_program_name.
47512
47513 2009-01-18  Bruno Haible  <bruno@clisp.org>
47514
47515         New module 'alphasort'.
47516         * lib/dirent.in.h (alphasort): New declaration.
47517         * lib/alphasort.c: New file, from glibc with modifications.
47518         * m4/alphasort.m4: New file.
47519         * modules/alphasort: New file.
47520         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47521         HAVE_ALPHASORT.
47522         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47523         HAVE_ALPHASORT.
47524         * doc/posix-functions/alphasort.texi: Mention the new module and the
47525         portability problems.
47526
47527 2009-01-18  Bruno Haible  <bruno@clisp.org>
47528
47529         New module 'scandir'.
47530         * lib/dirent.in.h (scandir): New declaration.
47531         * lib/scandir.c: New file, from glibc with modifications.
47532         * m4/scandir.m4: New file.
47533         * modules/scandir: New file.
47534         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47535         HAVE_SCANDIR.
47536         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47537         HAVE_SCANDIR.
47538         * doc/posix-functions/scandir.texi: Mention the new module and the
47539         portability problems.
47540
47541 2009-01-17  Bruno Haible  <bruno@clisp.org>
47542
47543         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47544         Update documentation.
47545         (func_remove_suffix): Escape all dots in the suffix. Update
47546         documentation.
47547         (func_filter_filelist): Update documentation.
47548         Reported by Ralf Wildenhues.
47549
47550 2009-01-17  Bruno Haible  <bruno@clisp.org>
47551
47552         * modules/dprintf-posix-tests: New file.
47553         * tests/test-dprintf-posix.sh: New file.
47554         * tests/test-dprintf-posix.c: New file.
47555
47556         New modules 'dprintf', 'dprintf-posix'.
47557         * lib/stdio.in.h (dprintf): New declaration.
47558         * lib/dprintf.c: New file.
47559         * m4/dprintf.m4: New file.
47560         * m4/dprintf-posix.m4: New file.
47561         * modules/dprintf: New file.
47562         * modules/dprintf-posix: New file.
47563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47564         HAVE_DPRINTF, REPLACE_DPRINTF.
47565         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47566         HAVE_DPRINTF, REPLACE_DPRINTF.
47567         * doc/posix-functions/dprintf.texi: Mention the new modules.
47568
47569 2009-01-17  Bruno Haible  <bruno@clisp.org>
47570
47571         * modules/vdprintf-posix-tests: New file.
47572         * tests/test-vdprintf-posix.sh: New file.
47573         * tests/test-vdprintf-posix.c: New file.
47574
47575         New modules 'vdprintf', 'vdprintf-posix'.
47576         * lib/stdio.in.h (vdprintf): New declaration.
47577         * lib/vdprintf.c: New file.
47578         * m4/vdprintf.m4: New file.
47579         * m4/vdprintf-posix.m4: New file.
47580         * modules/vdprintf: New file.
47581         * modules/vdprintf-posix: New file.
47582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47583         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47584         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47585         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47586         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47587
47588 2009-01-17  Bruno Haible  <bruno@clisp.org>
47589
47590         Fix replacement of fopen on mingw.
47591         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47592         mingw.
47593
47594 2009-01-17  Bruno Haible  <bruno@clisp.org>
47595
47596         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47597         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47598
47599 2009-01-17  Bruno Haible  <bruno@clisp.org>
47600
47601         Avoid test-fflush2.sh failure on mingw.
47602         * tests/test-fflush2.c: Include binary-io.h.
47603         (main): Put standard input into binary mode.
47604         * modules/fflush-tests (Depends-on): Add binary-io.
47605
47606 2009-01-17  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/wchar.in.h: In another particular situation, include only the
47609         system's <wchar.h> file.
47610         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47611         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47612         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47613
47614 2009-01-17  Bruno Haible  <bruno@clisp.org>
47615
47616         Support for stripping executables in --enable-relocatable.
47617         * build-aux/install-reloc: Expect one more argument, or an environment
47618         variable RELOC_STRIP_PROG. If set, strip the destination program and
47619         its wrapper.
47620         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47621         RELOC_STRIP_PROG.
47622         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47623         to set RELOCATABLE_STRIP.
47624         * NEWS: Mention the new Makefile requirement.
47625
47626 2009-01-17  Bruno Haible  <bruno@clisp.org>
47627
47628         * build-aux/install-reloc: Remove debugging information left over by
47629         C compiler on MacOS X.
47630
47631 2009-01-17  Bruno Haible  <bruno@clisp.org>
47632
47633         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47634         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47635         _NSGetExecutablePath.
47636
47637 2009-01-16  Jim Meyering  <meyering@redhat.com>
47638
47639         strerror: avoid warnings about discarding "const"
47640         * lib/strerror.c (rpl_strerror): Instead of returning a const
47641         string from each and every "case", use a variable, and add a single
47642         cast after the switch.
47643
47644 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47645
47646         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47647
47648 2009-01-16  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47651         array initializer syntax that also works in C++ mode.
47652         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47653
47654 2009-01-16  Jim Meyering  <meyering@redhat.com>
47655
47656         poll: suppress a warning
47657         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47658         to ignore "...unsigned expression < 0 is always false" warnings.
47659
47660 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47661
47662         poll: remove declarations of unused variables
47663         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47664         sockbuf and optlen.
47665
47666 2009-01-15  Bruno Haible  <bruno@clisp.org>
47667
47668         Make fflush-after-ungetc POSIX compliant on BSD systems.
47669         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47670         (clear_ungetc_buffer): Implement also for other systems.
47671         (rpl_fflush): On glibc systems, invoke
47672         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47673         clear_ungetc_buffer after fetching the stream's position, not before.
47674
47675 2009-01-15  Bruno Haible  <bruno@clisp.org>
47676
47677         Make fflush-after-ungetc POSIX compliant on glibc systems.
47678         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47679         after ungetc.
47680         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47681         (rpl_fflush): On glibc systems, simply call the system's fflush
47682         function after clearing the ungetc buffer.
47683         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47684         Instead, lseek only to the end of file, then use the system's fseeko
47685         for the rest. On glibc systems, reset the EOF indicator bit.
47686
47687 2009-01-15  Jim Meyering  <meyering@redhat.com>
47688
47689         openmp.m4: revert quote-adding change, for portability to older autoconf
47690         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47691         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47692         Simon Josefsson noticed the problem when using autoconf-2.61.
47693
47694 2009-01-15  Bruno Haible  <bruno@clisp.org>
47695
47696         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47697         * tests/test-fflush2.c (ASSERT): Always fail.
47698         (main): Add two tests for fflush() after ungetc(), taking into account
47699         the Austin Group's clarification.
47700         Suggested by Eric Blake.
47701
47702 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47703
47704         mktime.m4: remove K&R-style function prototypes
47705         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47706         for the Sun C++ compiler.
47707
47708 2009-01-14  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47711         while including <wchar.h>.
47712         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47713         the system's <wchar.h> file.
47714         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47715
47716 2009-01-14  Bruno Haible  <bruno@clisp.org>
47717
47718         * m4/csharp.m4: Don't mention gettext on the serial number line.
47719         * m4/csharpexec.m4: Likewise.
47720         * m4/eaccess.m4: Likewise.
47721         * m4/javaexec.m4: Likewise.
47722         * m4/sig_atomic_t.m4: Likewise.
47723         * m4/tmpdir.m4: Likewise.
47724         * m4/intldir.m4: Bump gettext version.
47725         * m4/lib-ld.m4: Likewise.
47726
47727 2009-01-14  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/progname.c (set_program_name): Add more comments.
47730         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47731
47732 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47733
47734         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47735         were sys/stat.h does not define it.
47736
47737 2009-01-14  Jim Meyering  <meyering@redhat.com>
47738
47739         many *.m4 files: improve m4 quoting
47740         99% of this change was performed by running the following commands:
47741         git ls-files | grep '\.m4$' | xargs perl -pi \
47742           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47743           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47744           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47745           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47746         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47747         The remainder were to add Copyright dates, increment serial numbers,
47748         undo some changes in comments, exclude m4/intl.m4, and add quotes
47749         around the "1" in ",1" where the unusual spacing prohibited the
47750         above regexps from doing the job.  For more details, see
47751         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47752         * m4/acl.m4: Modified.
47753         * m4/afs.m4: Likewise.
47754         * m4/alloca.m4: Likewise.
47755         * m4/argp.m4: Likewise.
47756         * m4/argz.m4: Likewise.
47757         * m4/atexit.m4: Likewise.
47758         * m4/bison-i18n.m4: Likewise.
47759         * m4/bison.m4: Likewise.
47760         * m4/byteswap.m4: Likewise.
47761         * m4/c-stack.m4: Likewise.
47762         * m4/c-strtod.m4: Likewise.
47763         * m4/calloc.m4: Likewise.
47764         * m4/canonicalize-lgpl.m4: Likewise.
47765         * m4/chown.m4: Likewise.
47766         * m4/clock_time.m4: Likewise.
47767         * m4/codeset.m4: Likewise.
47768         * m4/copy-file.m4: Likewise.
47769         * m4/csharp.m4: Likewise.
47770         * m4/csharpcomp.m4: Likewise.
47771         * m4/csharpexec.m4: Likewise.
47772         * m4/d-ino.m4: Likewise.
47773         * m4/d-type.m4: Likewise.
47774         * m4/dirfd.m4: Likewise.
47775         * m4/double-slash-root.m4: Likewise.
47776         * m4/eaccess.m4: Likewise.
47777         * m4/eealloc.m4: Likewise.
47778         * m4/environ.m4: Likewise.
47779         * m4/errno_h.m4: Likewise.
47780         * m4/euidaccess.m4: Likewise.
47781         * m4/execute.m4: Likewise.
47782         * m4/fatal-signal.m4: Likewise.
47783         * m4/fchdir.m4: Likewise.
47784         * m4/fcntl_h.m4: Likewise.
47785         * m4/fileblocks.m4: Likewise.
47786         * m4/filenamecat.m4: Likewise.
47787         * m4/findprog.m4: Likewise.
47788         * m4/flexmember.m4: Likewise.
47789         * m4/fnmatch.m4: Likewise.
47790         * m4/fopen.m4: Likewise.
47791         * m4/fpending.m4: Likewise.
47792         * m4/fprintf-posix.m4: Likewise.
47793         * m4/free.m4: Likewise.
47794         * m4/frexp.m4: Likewise.
47795         * m4/frexpl.m4: Likewise.
47796         * m4/fsusage.m4: Likewise.
47797         * m4/ftruncate.m4: Likewise.
47798         * m4/gc-camellia.m4: Likewise.
47799         * m4/gc-random.m4: Likewise.
47800         * m4/gc.m4: Likewise.
47801         * m4/getaddrinfo.m4: Likewise.
47802         * m4/getcwd-abort-bug.m4: Likewise.
47803         * m4/getcwd-path-max.m4: Likewise.
47804         * m4/getdate.m4: Likewise.
47805         * m4/getdomainname.m4: Likewise.
47806         * m4/getgroups.m4: Likewise.
47807         * m4/gethostname.m4: Likewise.
47808         * m4/gethrxtime.m4: Likewise.
47809         * m4/getline.m4: Likewise.
47810         * m4/getloadavg.m4: Likewise.
47811         * m4/getndelim2.m4: Likewise.
47812         * m4/getpass.m4: Likewise.
47813         * m4/gettext.m4: Likewise.
47814         * m4/gettime.m4: Likewise.
47815         * m4/gettimeofday.m4: Likewise.
47816         * m4/gnulib-common.m4: Likewise.
47817         * m4/group-member.m4: Likewise.
47818         * m4/host-os.m4: Likewise.
47819         * m4/iconv.m4: Likewise.
47820         * m4/iconv_open.m4: Likewise.
47821         * m4/inet_ntop.m4: Likewise.
47822         * m4/inet_pton.m4: Likewise.
47823         * m4/inline.m4: Likewise.
47824         * m4/intldir.m4: Likewise.
47825         * m4/intlmacosx.m4: Likewise.
47826         * m4/intmax.m4: Likewise.
47827         * m4/intmax_t.m4: Likewise.
47828         * m4/inttypes.m4: Likewise.
47829         * m4/inttypes_h.m4: Likewise.
47830         * m4/inttypes-pri.m4: Likewise.
47831         * m4/isapipe.m4: Likewise.
47832         * m4/isnand.m4: Likewise.
47833         * m4/isnanf.m4: Likewise.
47834         * m4/isnanl.m4: Likewise.
47835         * m4/javacomp.m4: Likewise.
47836         * m4/javaexec.m4: Likewise.
47837         * m4/jm-winsz1.m4: Likewise.
47838         * m4/jm-winsz2.m4: Likewise.
47839         * m4/lchown.m4: Likewise.
47840         * m4/lcmessage.m4: Likewise.
47841         * m4/ldexpl.m4: Likewise.
47842         * m4/lib-ld.m4: Likewise.
47843         * m4/lib-link.m4: Likewise.
47844         * m4/libsigsegv.m4: Likewise.
47845         * m4/link-follow.m4: Likewise.
47846         * m4/localcharset.m4: Likewise.
47847         * m4/locale-fr.m4: Likewise.
47848         * m4/locale-ja.m4: Likewise.
47849         * m4/locale-tr.m4: Likewise.
47850         * m4/locale-zh.m4: Likewise.
47851         * m4/lock.m4: Likewise.
47852         * m4/longlong.m4: Likewise.
47853         * m4/ls-mntd-fs.m4: Likewise.
47854         * m4/lstat.m4: Likewise.
47855         * m4/malloc.m4: Likewise.
47856         * m4/mathl.m4: Likewise.
47857         * m4/mbrtowc.m4: Likewise.
47858         * m4/mbstate_t.m4: Likewise.
47859         * m4/mbswidth.m4: Likewise.
47860         * m4/memchr.m4: Likewise.
47861         * m4/memcmp.m4: Likewise.
47862         * m4/memcpy.m4: Likewise.
47863         * m4/memmem.m4: Likewise.
47864         * m4/memmove.m4: Likewise.
47865         * m4/mempcpy.m4: Likewise.
47866         * m4/memrchr.m4: Likewise.
47867         * m4/memset.m4: Likewise.
47868         * m4/minmax.m4: Likewise.
47869         * m4/mkdir-slash.m4: Likewise.
47870         * m4/mkdtemp.m4: Likewise.
47871         * m4/mktime.m4: Likewise.
47872         * m4/mmap-anon.m4: Likewise.
47873         * m4/mountlist.m4: Likewise.
47874         * m4/nanosleep.m4: Likewise.
47875         * m4/nls.m4: Likewise.
47876         * m4/nocrash.m4: Likewise.
47877         * m4/open.m4: Likewise.
47878         * m4/openat.m4: Likewise.
47879         * m4/openmp.m4: Likewise.
47880         * m4/pathmax.m4: Likewise.
47881         * m4/perl.m4: Likewise.
47882         * m4/physmem.m4: Likewise.
47883         * m4/pipe.m4: Likewise.
47884         * m4/po.m4: Likewise.
47885         * m4/poll.m4: Likewise.
47886         * m4/posixtm.m4: Likewise.
47887         * m4/posixver.m4: Likewise.
47888         * m4/printf-frexp.m4: Likewise.
47889         * m4/printf-frexpl.m4: Likewise.
47890         * m4/printf-posix.m4: Likewise.
47891         * m4/printf-posix-rpl.m4: Likewise.
47892         * m4/printf.m4: Likewise.
47893         * m4/progtest.m4: Likewise.
47894         * m4/putenv.m4: Likewise.
47895         * m4/readline.m4: Likewise.
47896         * m4/readlink.m4: Likewise.
47897         * m4/readutmp.m4: Likewise.
47898         * m4/realloc.m4: Likewise.
47899         * m4/regex.m4: Likewise.
47900         * m4/relocatable.m4: Likewise.
47901         * m4/relocatable-lib.m4: Likewise.
47902         * m4/rename-dest-slash.m4: Likewise.
47903         * m4/rename.m4: Likewise.
47904         * m4/rmdir-errno.m4: Likewise.
47905         * m4/rmdir.m4: Likewise.
47906         * m4/roundf.m4: Likewise.
47907         * m4/roundl.m4: Likewise.
47908         * m4/rpmatch.m4: Likewise.
47909         * m4/save-cwd.m4: Likewise.
47910         * m4/selinux-selinux-h.m4: Likewise.
47911         * m4/setenv.m4: Likewise.
47912         * m4/settime.m4: Likewise.
47913         * m4/sig2str.m4: Likewise.
47914         * m4/sig_atomic_t.m4: Likewise.
47915         * m4/signalblocking.m4: Likewise.
47916         * m4/signbit.m4: Likewise.
47917         * m4/sigpipe.m4: Likewise.
47918         * m4/sockets.m4: Likewise.
47919         * m4/sockpfaf.m4: Likewise.
47920         * m4/st_dm_mode.m4: Likewise.
47921         * m4/stat-time.m4: Likewise.
47922         * m4/stdbool.m4: Likewise.
47923         * m4/stdint.m4: Likewise.
47924         * m4/stdint_h.m4: Likewise.
47925         * m4/stpcpy.m4: Likewise.
47926         * m4/stpncpy.m4: Likewise.
47927         * m4/strcase.m4: Likewise.
47928         * m4/strchrnul.m4: Likewise.
47929         * m4/strcspn.m4: Likewise.
47930         * m4/strdup.m4: Likewise.
47931         * m4/strftime.m4: Likewise.
47932         * m4/strndup.m4: Likewise.
47933         * m4/strnlen.m4: Likewise.
47934         * m4/strpbrk.m4: Likewise.
47935         * m4/strptime.m4: Likewise.
47936         * m4/strsep.m4: Likewise.
47937         * m4/strtod.m4: Likewise.
47938         * m4/strtoimax.m4: Likewise.
47939         * m4/strtok_r.m4: Likewise.
47940         * m4/strtol.m4: Likewise.
47941         * m4/strtoll.m4: Likewise.
47942         * m4/strtoul.m4: Likewise.
47943         * m4/strtoull.m4: Likewise.
47944         * m4/strtoumax.m4: Likewise.
47945         * m4/strverscmp.m4: Likewise.
47946         * m4/threadlib.m4: Likewise.
47947         * m4/timegm.m4: Likewise.
47948         * m4/tm_gmtoff.m4: Likewise.
47949         * m4/tmpdir.m4: Likewise.
47950         * m4/tmpfile.m4: Likewise.
47951         * m4/tzset.m4: Likewise.
47952         * m4/uintmax_t.m4: Likewise.
47953         * m4/unlinkdir.m4: Likewise.
47954         * m4/unlocked-io.m4: Likewise.
47955         * m4/uptime.m4: Likewise.
47956         * m4/userspec.m4: Likewise.
47957         * m4/utimbuf.m4: Likewise.
47958         * m4/utime.m4: Likewise.
47959         * m4/utimes-null.m4: Likewise.
47960         * m4/utimes.m4: Likewise.
47961         * m4/vararrays.m4: Likewise.
47962         * m4/vasnprintf.m4: Likewise.
47963         * m4/vfprintf-posix.m4: Likewise.
47964         * m4/vprintf-posix.m4: Likewise.
47965         * m4/wait-process.m4: Likewise.
47966         * m4/wchar_t.m4: Likewise.
47967         * m4/wint_t.m4: Likewise.
47968         * m4/write-any-file.m4: Likewise.
47969         * m4/yield.m4: Likewise.
47970
47971 2009-01-13  Bruno Haible  <bruno@clisp.org>
47972
47973         Avoid test-copy-file.sh failures when ACL support insufficient.
47974         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47975         TESTS_ENVIRONMENT.
47976         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47977         Reported by Jim Meyering.
47978
47979 2009-01-13  Bruno Haible  <bruno@clisp.org>
47980
47981         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47982         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47983         * modules/unistdio/u8-printf-parse (Files): Likewise.
47984         * modules/unistdio/u32-printf-parse (Files): Likewise.
47985         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47986
47987 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47988
47989         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47990         and m4/inttypes_h.m4 too.
47991
47992 2009-01-12  Eric Blake  <ebb9@byu.net>
47993
47994         tests: IRIX 6.2 cc can't compile -0.0 into .data
47995         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47996         rather than at compile-time.
47997         * tests/test-floorl.c (minus_zero): Likewise.
47998         * tests/test-frexpl.c (minus_zero): Likewise.
47999         * tests/test-isnan.c (minus_zerol): Likewise.
48000         * tests/test-isnanl.h (minus_zero): Likewise.
48001         * tests/test-ldexpl.c (minus_zero): Likewise.
48002         * tests/test-roundl.c (minus_zero): Likewise.
48003         * tests/test-signbit.c (minus_zerol): Likewise.
48004         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48005         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48006         * tests/test-truncl.c (minus_zero): Likewise.
48007         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48008         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48009         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48010
48011 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48012
48013         regex: fix glibc bug 9697
48014         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48015         handling.
48016
48017 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48018
48019         regex: fix glibc bug 697
48020         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48021         being NULL also if there are no backreferences.
48022
48023 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48024
48025         regex: merge glibc changes
48026         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48027         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48028         re_string_skip_chars, re_string_reconstruct): Likewise.
48029         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48030
48031 2009-01-07  Jim Meyering  <meyering@redhat.com>
48032
48033         poll: filter through cppi
48034         * lib/poll.c: Indent cpp directives to reflect nesting.
48035
48036 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48037
48038         poll: don't return uninitialized
48039         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48040
48041 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48042
48043         avoid compile failure on AIX 6.1
48044         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48045         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48046
48047 2009-01-04  Jim Meyering  <meyering@redhat.com>
48048
48049         remove duplicate inclusion of <stdio.h>
48050         * tests/test-fprintf-posix.c: Likewise.
48051         * tests/test-printf-posix.c: Likewise.
48052         * tests/test-snprintf-posix.c: Likewise.
48053         * tests/test-sprintf-posix.c: Likewise.
48054         * tests/test-vasprintf-posix.c: Likewise.
48055         * tests/test-vfprintf-posix.c: Likewise.
48056         * tests/test-vprintf-posix.c: Likewise.
48057         * tests/test-vsnprintf-posix.c: Likewise.
48058         * tests/test-vsprintf-posix.c: Likewise.
48059
48060 2009-01-03  Jim Meyering  <meyering@redhat.com>
48061
48062         gnulib-tool: fix sed-based filtering
48063         * gnulib-tool (func_filter_filelist): Remove extra backslash
48064         in sed_fff_filter definition.
48065
48066 2009-01-02  Jim Meyering  <meyering@redhat.com>
48067
48068         strftime: avoid compilation failure on Solaris 2.6
48069         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48070         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48071         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48072         be available.  Reported by Tom G. Christensen.  Details in
48073         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48074
48075 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48076             Bruno Haible  <bruno@clisp.org>
48077
48078         Speed up gnulib-tool by doing more string processing through shell
48079         built-ins.
48080         * gnulib-tool (fast_func_append): New variable.
48081         (func_remove_prefix, func_remove_suffix): New functions.
48082         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48083         (func_filter_filelist): New function.
48084         (func_get_dependencies): Use func_remove_suffix instead of sed.
48085         (func_get_automake_snippet): Use func_filter_filelist instead of a
48086         subshell and sed invocation.
48087
48088 2009-01-01  Bruno Haible  <bruno@clisp.org>
48089
48090         Fix a security bug.
48091         * gnulib-tool (func_import, import, update): Don't allow the characters
48092         '"', '$', '`', '\' in macro arguments that become part of commands that
48093         are evaluated.
48094
48095 2009-01-01  Bruno Haible  <bruno@clisp.org>
48096
48097         * gnulib-tool (func_reset_sigpipe): Add more comments.
48098
48099 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48100
48101         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48102         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48103         already know the answer.
48104
48105 2009-01-01  Jim Meyering  <meyering@redhat.com>
48106
48107         * lib/version-etc.c (version_etc_va): Update copyright year.
48108
48109 2008-12-30  Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48112         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48113         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48114
48115 2008-12-29  Eric Blake  <ebb9@byu.net>
48116
48117         multiarch: avoid autoconf AC_REQUIRE bug
48118         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48119         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48120         2.63 and older.
48121         Reported by Bruno Haible, and analyzed in
48122         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48123
48124 2008-12-29  Bruno Haible  <bruno@clisp.org>
48125
48126         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48127         files in subdirectories correctly.
48128         Reported by Ralf Wildenhues.
48129
48130 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48131
48132         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48133         rather than 'join FILE -', for Solaris join.
48134
48135 2008-12-29  Bruno Haible  <bruno@clisp.org>
48136
48137         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48138         quoting.
48139         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48140         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48141         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48142         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48143         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48144         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48145         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48146         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48147         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48148         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48149         * m4/nls.m4 (AM_NLS): Likewise.
48150         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48151         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48152         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48153         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48154         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48155         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48156         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48157         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48158         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48159         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48160         * m4/xsize.m4 (gl_XSIZE): Likewise.
48161         Suggested by Jim Meyering.
48162
48163 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48164
48165         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48166         * lib/parse-duration.c: use a switch instead of cascading if's.
48167
48168 2008-12-29  Eric Blake  <ebb9@byu.net>
48169
48170         wchar.h: supply WEOF on Irix 5.3
48171         * lib/wchar.in.h (wint_t): Also supply WEOF.
48172         * lib/wctype.in.h (wint_t): Likewise.
48173         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48174         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48175         Reported by Tom G. Christensen.
48176
48177 2008-12-26  Bruno Haible  <bruno@clisp.org>
48178
48179         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48180         i486, i586, i686.
48181
48182 2008-12-26  Bruno Haible  <bruno@clisp.org>
48183
48184         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48185
48186 2008-12-26  Bruno Haible  <bruno@clisp.org>
48187
48188         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48189         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48190         not __STDC_CONSTANT_MACROS.
48191         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48192
48193 2008-12-25  Bruno Haible  <bruno@clisp.org>
48194
48195         Add support for universal builds to vasnprintf.
48196         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48197         universal builds, guess no.
48198         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48199         * modules/vasprintf-posix (Depends-on): Likewise.
48200         * modules/fprintf-posix (Depends-on): Likewise.
48201         * modules/vfprintf-posix (Depends-on): Likewise.
48202         * modules/snprintf-posix (Depends-on): Likewise.
48203         * modules/vsnprintf-posix (Depends-on): Likewise.
48204         * modules/sprintf-posix (Depends-on): Likewise.
48205         * modules/vsprintf-posix (Depends-on): Likewise.
48206         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48207         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48208         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48209         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48210         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48211         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48212         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48213
48214         Add support for universal builds to <inttypes.h>.
48215         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48216         _SCNu64_PREFIX): In Apple
48217         universal builds, define directly, using _LP64.
48218         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48219         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48220         * modules/inttypes (Depends-on): Add multiarch.
48221         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48222
48223         Add support for universal builds to <stdint.h>.
48224         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48225         universal builds, define directly, using _LP64.
48226         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48227         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48228         and size_t.
48229         * modules/stdint (Depends-on): Add multiarch.
48230         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48231
48232         New module 'multiarch'.
48233         * modules/multiarch: New file.
48234         * m4/multiarch.m4: New file.
48235
48236 2008-12-25  Bruno Haible  <bruno@clisp.org>
48237
48238         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48239
48240 2008-12-25  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/btowc (License): Relicense under LGPLv2+.
48243         * modules/mbsinit (License): Likewise.
48244         * modules/mbrtowc (License): Likewise.
48245         * modules/wcrtomb (License): Likewise.
48246         * modules/streq (License): Likewise.
48247         Reported by David Lutterkort <lutter@redhat.com>.
48248
48249 2008-12-23  Bruno Haible  <bruno@clisp.org>
48250
48251         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48252
48253 2008-12-23  Bruno Haible  <bruno@clisp.org>
48254
48255         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48257         GETADDRINFO_LIB, not in LIBS.
48258         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48259         * modules/canon-host (Link): Likewise.
48260         * NEWS: Mention the change.
48261         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48262         GETADDRINFO_LIB.
48263
48264 2008-12-22  Bruno Haible  <bruno@clisp.org>
48265
48266         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48267         * doc/posix-functions/iswalpha_l.texi: Likewise.
48268         * doc/posix-functions/iswblank_l.texi: Likewise.
48269         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48270         * doc/posix-functions/iswctype_l.texi: Likewise.
48271         * doc/posix-functions/iswdigit_l.texi: Likewise.
48272         * doc/posix-functions/iswgraph_l.texi: Likewise.
48273         * doc/posix-functions/iswlower_l.texi: Likewise.
48274         * doc/posix-functions/iswprint_l.texi: Likewise.
48275         * doc/posix-functions/iswpunct_l.texi: Likewise.
48276         * doc/posix-functions/iswspace_l.texi: Likewise.
48277         * doc/posix-functions/iswupper_l.texi: Likewise.
48278         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48279         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48280         * doc/posix-functions/open_wmemstream.texi: Likewise.
48281         * doc/posix-functions/swscanf.texi: Likewise.
48282         * doc/posix-functions/towctrans_l.texi: Likewise.
48283         * doc/posix-functions/towlower.texi: Likewise.
48284         * doc/posix-functions/towlower_l.texi: Likewise.
48285         * doc/posix-functions/towupper.texi: Likewise.
48286         * doc/posix-functions/towupper_l.texi: Likewise.
48287         * doc/posix-functions/vfwprintf.texi: Likewise.
48288         * doc/posix-functions/vfwscanf.texi: Likewise.
48289         * doc/posix-functions/vswscanf.texi: Likewise.
48290         * doc/posix-functions/vwprintf.texi: Likewise.
48291         * doc/posix-functions/vwscanf.texi: Likewise.
48292         * doc/posix-functions/wcpcpy.texi: Likewise.
48293         * doc/posix-functions/wcpncpy.texi: Likewise.
48294         * doc/posix-functions/wcscasecmp.texi: Likewise.
48295         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48296         * doc/posix-functions/wcscoll_l.texi: Likewise.
48297         * doc/posix-functions/wcsdup.texi: Likewise.
48298         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48299         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48300         * doc/posix-functions/wcsnlen.texi: Likewise.
48301         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48302         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48303         * doc/posix-functions/wctrans_l.texi: Likewise.
48304         * doc/posix-functions/wctype_l.texi: Likewise.
48305         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48306         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48307         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48308         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48309         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48310         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48311         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48312         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48313         * doc/glibc-functions/wcschrnul.texi: Likewise.
48314         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48315         * doc/glibc-functions/wcstod_l.texi: Likewise.
48316         * doc/glibc-functions/wcstof_l.texi: Likewise.
48317         * doc/glibc-functions/wcstol_l.texi: Likewise.
48318         * doc/glibc-functions/wcstold_l.texi: Likewise.
48319         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48320         * doc/glibc-functions/wcstoq.texi: Likewise.
48321         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48322         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48323         * doc/glibc-functions/wcstouq.texi: Likewise.
48324         * doc/glibc-functions/wmempcpy.texi: Likewise.
48325
48326 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48327             Eric Blake  <ebb9@byu.net>
48328             Paolo Bonzini  <bonzini@gnu.org>
48329             Bruno Haible  <bruno@clisp.org>
48330
48331         Make c-stack work on Haiku.
48332         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48333         (c_stack_action): Use SA_ONSTACK flag.
48334
48335 2008-12-22  Bruno Haible  <bruno@clisp.org>
48336
48337         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48338
48339 2008-12-22  Bruno Haible  <bruno@clisp.org>
48340
48341         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48342         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48343         being overridden.
48344         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48345         New macros.
48346         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48348         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48349         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48350
48351 2008-12-22  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48354         from test code.
48355
48356 2008-12-22  Eric Blake  <ebb9@byu.net>
48357
48358         Avoid gcc warnings on cygwin.
48359         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48360         Avoid unused variable.
48361         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48362         Likewise.
48363
48364 2008-12-22  Bruno Haible  <bruno@clisp.org>
48365
48366         Remove HAVE_MBRTOWC conditionals.
48367         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48368         (mbscasecmp): Assume mbrtowc function.
48369         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48370         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48371         * lib/mbschr.c: Include mbuiter.h unconditionally.
48372         (mbschr): Assume mbrtowc function.
48373         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48374         (mbscspn): Assume mbrtowc function.
48375         * lib/mbslen.c: Include mbuiter.h unconditionally.
48376         (mbslen): Assume mbrtowc function.
48377         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48378         (mbsncasecmp): Assume mbrtowc function.
48379         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48380         (mbsnlen): Assume mbrtowc function.
48381         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48382         (mbspbrk): Assume mbrtowc function.
48383         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48384         (mbspcasecmp): Assume mbrtowc function.
48385         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48386         (mbsrchr): Assume mbrtowc function.
48387         * lib/mbssep.c: Include mbuiter.h unconditionally.
48388         (mbssep): Assume mbrtowc function.
48389         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48390         (mbsspn): Assume mbrtowc function.
48391         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48392         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48393         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48394         (mbstok_r): Assume mbrtowc function.
48395         * lib/propername.c: Include mbuiter.h unconditionally.
48396         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48397         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48398         (trim2): Assume mbrtowc function.
48399         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48400         (mbsnwidth): Assume mbrtowc function.
48401         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48402         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48403         fallback definitions.
48404         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48405
48406 2008-12-22  Bruno Haible  <bruno@clisp.org>
48407
48408         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48409
48410 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48411
48412         * modules/regex: Request emulations for the mb*/wc* functions we need.
48413         * m4/regex.m4: Don't look for those functions here.
48414         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48415
48416 2008-12-22  Bruno Haible  <bruno@clisp.org>
48417
48418         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48419
48420 2008-12-21  Bruno Haible  <bruno@clisp.org>
48421
48422         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48423         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48424         (Include): Remove conditionalization.
48425         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48426         (Include): Remove conditionalization.
48427         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48428         (Include): Remove conditionalization.
48429         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48430         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48431         * NEWS: Mention the change.
48432         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48433         via Sergey Poznyakoff <gray@gnu.org.ua>.
48434
48435 2008-12-21  Bruno Haible  <bruno@clisp.org>
48436
48437         * MODULES.html.sh (Extended multibyte and wide character utilities
48438         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48439         wcrtomb, wcsrtombs.
48440         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48441         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48442         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48443         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48444
48445 2008-12-21  Bruno Haible  <bruno@clisp.org>
48446
48447         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48448
48449 2008-12-21  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/wcsnrtombs-tests: New file.
48452         * tests/test-wcsnrtombs1.sh: New file.
48453         * tests/test-wcsnrtombs2.sh: New file.
48454         * tests/test-wcsnrtombs3.sh: New file.
48455         * tests/test-wcsnrtombs4.sh: New file.
48456         * tests/test-wcsnrtombs.c: New file.
48457
48458         New module 'wcsnrtombs'.
48459         * lib/wchar.in.h (wcsnrtombs): New declaration.
48460         * lib/wcsnrtombs.c: New file.
48461         * lib/wcsrtombs-state.c: New file.
48462         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48463         (internal_state): Remove variable.
48464         * m4/wcsnrtombs.m4: New file.
48465         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48466         compilation units.
48467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48468         HAVE_WCSNRTOMBS.
48469         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48470         HAVE_WCSNRTOMBS.
48471         * modules/wcsnrtombs: New file.
48472         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48473         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48474
48475 2008-12-21  Bruno Haible  <bruno@clisp.org>
48476
48477         * modules/wcsrtombs-tests: New file.
48478         * tests/test-wcsrtombs1.sh: New file.
48479         * tests/test-wcsrtombs2.sh: New file.
48480         * tests/test-wcsrtombs3.sh: New file.
48481         * tests/test-wcsrtombs4.sh: New file.
48482         * tests/test-wcsrtombs.c: New file.
48483
48484         New module 'wcsrtombs'.
48485         * lib/wchar.in.h (wcsrtombs): New declaration.
48486         * lib/wcsrtombs.c: New file.
48487         * m4/wcsrtombs.m4: New file.
48488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48489         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48491         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48492         * modules/wcsrtombs: New file.
48493         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48494         bugs.
48495
48496 2008-12-21  Bruno Haible  <bruno@clisp.org>
48497
48498         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48499         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48500         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48501         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48502         if not correct.
48503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48504         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48505         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48506         m4/locale-zh.m4, m4/codeset.m4.
48507         * doc/posix-functions/wcrtomb.texi: Document the bug.
48508
48509 2008-12-21  Bruno Haible  <bruno@clisp.org>
48510
48511         Work around a btowc() bug on IRIX 6.5.
48512         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48513         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48514         REPLACE_WTOBC if not.
48515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48516         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48517         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48518
48519 2008-12-21  Bruno Haible  <bruno@clisp.org>
48520
48521         * modules/wcrtomb-tests: New file.
48522         * tests/test-wcrtomb.sh: New file.
48523         * tests/test-wcrtomb.c: New file.
48524
48525         New module 'wcrtomb'.
48526         * lib/wchar.in.h (wcrtomb): New declaration.
48527         * lib/wcrtomb.c: New file.
48528         * m4/wcrtomb.m4: New file.
48529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48530         HAVE_WCRTOMB.
48531         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48532         HAVE_WCRTOMB.
48533         * modules/wcrtomb: New file.
48534         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48535
48536 2008-12-21  Bruno Haible  <bruno@clisp.org>
48537
48538         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48539         * modules/mbsrtowcs (Files): Likewise.
48540         * modules/wctob (Files): Likewise.
48541         * modules/c-strcase-tests (Files): Likewise.
48542         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48543         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48544         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48545         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48546         * modules/vasnprintf-posix-tests (Files): Likewise.
48547
48548 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48549
48550         gitlog-to-changelog: pass all command-line arguments to git-log
48551         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48552         it is sometimes convenient to filter the commits in various ways.
48553         gitlog-to-changelog only allows --since to specify a start date,
48554         but git-log itself supports many other filtering mechanisms.
48555         At the moment, I want to filter by branch name.  Rather than
48556         adding a --branch option to gitlog-to-changelog, it seems more
48557         flexible to simply pass all options directly to git-log and let
48558         git do the work.  Notice that this effectively makes --since a
48559         redundant option for gitlog-to-changelog, but removing it would
48560         require current usage to change since calls would then require
48561         an additional '--'.
48562
48563 2008-12-21  Bruno Haible  <bruno@clisp.org>
48564
48565         * modules/mbsnrtowcs-tests: New file.
48566         * tests/test-mbsnrtowcs1.sh: New file.
48567         * tests/test-mbsnrtowcs2.sh: New file.
48568         * tests/test-mbsnrtowcs3.sh: New file.
48569         * tests/test-mbsnrtowcs4.sh: New file.
48570         * tests/test-mbsnrtowcs.c: New file.
48571
48572         New module 'mbsnrtowcs'.
48573         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48574         * lib/mbsnrtowcs.c: New file.
48575         * lib/mbsrtowcs-state.c: New file.
48576         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48577         (internal_state): Remove variable.
48578         * m4/mbsnrtowcs.m4: New file.
48579         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48580         compilation units.
48581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48582         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48583         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48584         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48585         * modules/mbsnrtowcs: New file.
48586         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48587         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48588         portability problem.
48589
48590 2008-12-21  Bruno Haible  <bruno@clisp.org>
48591
48592         Work around mbsrtowcs bug.
48593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48594         (gl_FUNC_MBSRTOWCS): Invoke it.
48595         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48596         m4/locale-zh.m4.
48597         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48598
48599 2008-12-21  Bruno Haible  <bruno@clisp.org>
48600
48601         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48602
48603 2008-12-21  Bruno Haible  <bruno@clisp.org>
48604
48605         Update doc for AIX.
48606         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48607         16-bit wchar_t type.
48608         * doc/posix-functions/btowc.texi: Likewise.
48609         * doc/posix-functions/fgetwc.texi: Likewise.
48610         * doc/posix-functions/fgetws.texi: Likewise.
48611         * doc/posix-functions/fputwc.texi: Likewise.
48612         * doc/posix-functions/fputws.texi: Likewise.
48613         * doc/posix-functions/fwide.texi: Likewise.
48614         * doc/posix-functions/fwprintf.texi: Likewise.
48615         * doc/posix-functions/fwscanf.texi: Likewise.
48616         * doc/posix-functions/getwchar.texi: Likewise.
48617         * doc/posix-functions/getwc.texi: Likewise.
48618         * doc/posix-functions/iswalnum.texi: Likewise.
48619         * doc/posix-functions/iswalpha.texi: Likewise.
48620         * doc/posix-functions/iswblank.texi: Likewise.
48621         * doc/posix-functions/iswcntrl.texi: Likewise.
48622         * doc/posix-functions/iswctype.texi: Likewise.
48623         * doc/posix-functions/iswdigit.texi: Likewise.
48624         * doc/posix-functions/iswgraph.texi: Likewise.
48625         * doc/posix-functions/iswlower.texi: Likewise.
48626         * doc/posix-functions/iswprint.texi: Likewise.
48627         * doc/posix-functions/iswpunct.texi: Likewise.
48628         * doc/posix-functions/iswspace.texi: Likewise.
48629         * doc/posix-functions/iswupper.texi: Likewise.
48630         * doc/posix-functions/iswxdigit.texi: Likewise.
48631         * doc/posix-functions/mbrtowc.texi: Likewise.
48632         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48633         * doc/posix-functions/mbstowcs.texi: Likewise.
48634         * doc/posix-functions/mbtowc.texi: Likewise.
48635         * doc/posix-functions/putwchar.texi: Likewise.
48636         * doc/posix-functions/putwc.texi: Likewise.
48637         * doc/posix-functions/swprintf.texi: Likewise.
48638         * doc/posix-functions/tolower.texi: Likewise.
48639         * doc/posix-functions/toupper.texi: Likewise.
48640         * doc/posix-functions/towctrans.texi: Likewise.
48641         * doc/posix-functions/ungetwc.texi: Likewise.
48642         * doc/posix-functions/vswprintf.texi: Likewise.
48643         * doc/posix-functions/wcrtomb.texi: Likewise.
48644         * doc/posix-functions/wcscat.texi: Likewise.
48645         * doc/posix-functions/wcschr.texi: Likewise.
48646         * doc/posix-functions/wcscmp.texi: Likewise.
48647         * doc/posix-functions/wcscoll.texi: Likewise.
48648         * doc/posix-functions/wcscpy.texi: Likewise.
48649         * doc/posix-functions/wcscspn.texi: Likewise.
48650         * doc/posix-functions/wcsftime.texi: Likewise.
48651         * doc/posix-functions/wcslen.texi: Likewise.
48652         * doc/posix-functions/wcsncat.texi: Likewise.
48653         * doc/posix-functions/wcsncmp.texi: Likewise.
48654         * doc/posix-functions/wcsncpy.texi: Likewise.
48655         * doc/posix-functions/wcspbrk.texi: Likewise.
48656         * doc/posix-functions/wcsrchr.texi: Likewise.
48657         * doc/posix-functions/wcsrtombs.texi: Likewise.
48658         * doc/posix-functions/wcsspn.texi: Likewise.
48659         * doc/posix-functions/wcsstr.texi: Likewise.
48660         * doc/posix-functions/wcstod.texi: Likewise.
48661         * doc/posix-functions/wcstof.texi: Likewise.
48662         * doc/posix-functions/wcstoimax.texi: Likewise.
48663         * doc/posix-functions/wcstok.texi: Likewise.
48664         * doc/posix-functions/wcstold.texi: Likewise.
48665         * doc/posix-functions/wcstoll.texi: Likewise.
48666         * doc/posix-functions/wcstol.texi: Likewise.
48667         * doc/posix-functions/wcstombs.texi: Likewise.
48668         * doc/posix-functions/wcstoull.texi: Likewise.
48669         * doc/posix-functions/wcstoul.texi: Likewise.
48670         * doc/posix-functions/wcstoumax.texi: Likewise.
48671         * doc/posix-functions/wcswidth.texi: Likewise.
48672         * doc/posix-functions/wcsxfrm.texi: Likewise.
48673         * doc/posix-functions/wctob.texi: Likewise.
48674         * doc/posix-functions/wctomb.texi: Likewise.
48675         * doc/posix-functions/wctrans.texi: Likewise.
48676         * doc/posix-functions/wctype.texi: Likewise.
48677         * doc/posix-functions/wcwidth.texi: Likewise.
48678         * doc/posix-functions/wmemchr.texi: Likewise.
48679         * doc/posix-functions/wmemcmp.texi: Likewise.
48680         * doc/posix-functions/wmemcpy.texi: Likewise.
48681         * doc/posix-functions/wmemmove.texi: Likewise.
48682         * doc/posix-functions/wmemset.texi: Likewise.
48683         * doc/posix-functions/wprintf.texi: Likewise.
48684         * doc/posix-functions/wscanf.texi: Likewise.
48685
48686 2008-12-21  Bruno Haible  <bruno@clisp.org>
48687
48688         Update doc for HP-UX 11.11.
48689         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48690         in HP-UX version 11.00, not in all versions of HP-UX 11.
48691         * doc/posix-functions/fwide.texi: Likewise.
48692         * doc/posix-functions/fwprintf.texi: Likewise.
48693         * doc/posix-functions/fwscanf.texi: Likewise.
48694         * doc/posix-functions/inet_ntop.texi: Likewise.
48695         * doc/posix-functions/inet_pton.texi: Likewise.
48696         * doc/posix-functions/mbrlen.texi: Likewise.
48697         * doc/posix-functions/mbrtowc.texi: Likewise.
48698         * doc/posix-functions/mbsinit.texi: Likewise.
48699         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48700         * doc/posix-functions/swprintf.texi: Likewise.
48701         * doc/posix-functions/swscanf.texi: Likewise.
48702         * doc/posix-functions/towctrans.texi: Likewise.
48703         * doc/posix-functions/vfwprintf.texi: Likewise.
48704         * doc/posix-functions/vswprintf.texi: Likewise.
48705         * doc/posix-functions/vwprintf.texi: Likewise.
48706         * doc/posix-functions/wcrtomb.texi: Likewise.
48707         * doc/posix-functions/wcsrtombs.texi: Likewise.
48708         * doc/posix-functions/wcsstr.texi: Likewise.
48709         * doc/posix-functions/wctob.texi: Likewise.
48710         * doc/posix-functions/wctrans.texi: Likewise.
48711         * doc/posix-functions/wmemchr.texi: Likewise.
48712         * doc/posix-functions/wmemcmp.texi: Likewise.
48713         * doc/posix-functions/wmemcpy.texi: Likewise.
48714         * doc/posix-functions/wmemmove.texi: Likewise.
48715         * doc/posix-functions/wmemset.texi: Likewise.
48716         * doc/posix-functions/wprintf.texi: Likewise.
48717         * doc/posix-functions/wscanf.texi: Likewise.
48718
48719 2008-12-21  Bruno Haible  <bruno@clisp.org>
48720
48721         Work around a portability problem.
48722         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48723         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48724
48725 2008-12-20  Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48728         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48729         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48731         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48732
48733         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48734         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48735         set.
48736         (GNULIB_defined_mbstate_t): New macro.
48737         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48738         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48739         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48740         reuses the system's mbrtowc function but works around the bugs.
48741         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48742         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48743         macros.
48744         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48745         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48746         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48747         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48748         REPLACE_MBSINIT if mbsinit needs to be overridden.
48749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48750         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48751         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48752         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48753         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48754         m4/locale-zh.m4.
48755         (Depends): Add mbsinit.
48756         * modules/mbsinit (Depends): Add mbrtowc.
48757         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48758
48759 2008-12-20  Bruno Haible  <bruno@clisp.org>
48760
48761         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48762         so that there are no conversion errors on AIX.
48763         * tests/test-mbsrtowcs.c (main): LIkewise.
48764
48765 2008-12-20  Bruno Haible  <bruno@clisp.org>
48766
48767         Work around wctob bug on Solaris <= 9.
48768         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48769         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48771         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48772         * modules/wctob (Files): Add m4/locale-fr.m4.
48773         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48774
48775 2008-12-20  Bruno Haible  <bruno@clisp.org>
48776
48777         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48778         /dev/null.
48779         * tests/test-select-in.sh: Likewise.
48780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48781
48782 2008-12-20  Bruno Haible  <bruno@clisp.org>
48783
48784         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48785         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48786         Cygwin 1.5.x.
48787
48788 2008-12-20  Bruno Haible  <bruno@clisp.org>
48789
48790         Ensure mbstate_t is defined on HP-UX 11.11.
48791         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48792         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48793         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48794         AC_USE_SYSTEM_EXTENSIONS.
48795         * modules/fnmatch (Depends-on): Add extensions.
48796         * modules/mbrlen (Depends-on): Likewise.
48797         * modules/mbrtowc (Depends-on): Likewise.
48798         * modules/mbsinit (Depends-on): Likewise.
48799         * modules/mbsrtowcs (Depends-on): Likewise.
48800         * modules/mbswidth (Depends-on): Likewise.
48801         * modules/quotearg (Depends-on): Likewise.
48802         * modules/strftime (Depends-on): Likewise.
48803
48804 2008-12-20  Bruno Haible  <bruno@clisp.org>
48805
48806         Ensure wctob is declared on IRIX 6.5.
48807         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48808         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48809         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48811         of HAVE_WCTOB.
48812         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48813         HAVE_WCTOB.
48814         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48815
48816 2008-12-19  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/mbsrtowcs-tests: New file.
48819         * tests/test-mbsrtowcs1.sh: New file.
48820         * tests/test-mbsrtowcs2.sh: New file.
48821         * tests/test-mbsrtowcs3.sh: New file.
48822         * tests/test-mbsrtowcs4.sh: New file.
48823         * tests/test-mbsrtowcs.c: New file.
48824
48825         New module 'mbsrtowcs'.
48826         * lib/wchar.in.h (mbsrtowcs): New declaration.
48827         * lib/mbsrtowcs.c: New file.
48828         * m4/mbsrtowcs.m4: New file.
48829         * modules/mbsrtowcs: New file.
48830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48831         HAVE_MBSRTOWCS.
48832         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48833         HAVE_MBSRTOWCS.
48834         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48835
48836 2008-12-19  Bruno Haible  <bruno@clisp.org>
48837
48838         New module 'mbrlen'.
48839         * lib/wchar.in.h (mbrlen): New declaration.
48840         * lib/mbrlen.c: New file.
48841         * m4/mbrlen.m4: New file.
48842         * modules/mbrlen: New file.
48843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48844         HAVE_MBRLEN.
48845         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48846         HAVE_MBRLEN.
48847         * doc/posix-functions/mbrlen.texi: Document the new module.
48848
48849 2008-12-19  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48852         * modules/mbrtowc (Depends-on): Add verify.
48853         Suggested by Paul Eggert.
48854
48855 2008-12-18  Bruno Haible  <bruno@clisp.org>
48856
48857         * modules/mbsinit-tests: New file.
48858         * tests/test-mbsinit.sh: New file.
48859         * tests/test-mbsinit.c: New file.
48860
48861 2008-12-18  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/mbrtowc-tests: New file.
48864         * tests/test-mbrtowc1.sh: New file.
48865         * tests/test-mbrtowc2.sh: New file.
48866         * tests/test-mbrtowc3.sh: New file.
48867         * tests/test-mbrtowc4.sh: New file.
48868         * tests/test-mbrtowc.c: New file.
48869
48870         New module 'mbrtowc'.
48871         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48872         mbsinit and mbrtowc.
48873         (mbrtowc): New declaration.
48874         * lib/mbrtowc.c: New file.
48875         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48876         * modules/mbrtowc: New file.
48877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48878         HAVE_MBRTOWC.
48879         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48880         HAVE_MBRTOWC.
48881         * doc/posix-functions/mbrtowc.texi: Document the new module.
48882
48883 2008-12-18  Bruno Haible  <bruno@clisp.org>
48884
48885         New module 'wctob'.
48886         * lib/wchar.in.h (wctob): New declaration.
48887         * lib/wctob.c: New file.
48888         * m4/wctob.m4: New file.
48889         * modules/wctob: New file.
48890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48891         HAVE_WCTOB.
48892         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48893         * doc/posix-functions/wctob.texi: Document the new module.
48894
48895 2008-12-18  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48898         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48899
48900 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48901
48902         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48903         G. Christensen" <tgc@jupiterrise.com>.
48904
48905         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48906         G. Christensen" <tgc@jupiterrise.com>.
48907
48908         * lib/flock.c: Need to include string.h.  Reported by "Tom
48909         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48910         <ebb9@byu.net>.
48911
48912 2008-12-18  Bruno Haible  <bruno@clisp.org>
48913
48914         * m4/locale-ja.m4: New file, from GNU gettext.
48915
48916 2008-12-17  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48919         Suggested by Eric Blake.
48920
48921 2008-12-17  Bruno Haible  <bruno@clisp.org>
48922
48923         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48924
48925 2008-12-17  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48928         * modules/mbsinit (Depends-on): Add verify.
48929         Suggested by Paul Eggert.
48930
48931 2008-12-17  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48934         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48935         gl_FUNC_MBRTOWC.
48936         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48937         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48938         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48939         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48940         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48941         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48942         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48943         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48944         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48945         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48946         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48947         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48948         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48949         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48950         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48951         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48952         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48953         * modules/trim (configure.ac): Likewise.
48954
48955 2008-12-17  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/btowc-tests: New file.
48958         * tests/test-btowc1.sh: New file.
48959         * tests/test-btowc2.sh: New file.
48960         * tests/test-btowc.c: New file.
48961
48962         New module 'btowc'.
48963         * lib/wchar.in.h (btowc): New declaration.
48964         * lib/btowc.c: New file.
48965         * m4/btowc.m4: New file.
48966         * modules/btowc: New file.
48967         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48968         HAVE_BTOWC.
48969         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48970         * doc/posix-functions/btowc.texi: Document the new module.
48971
48972 2008-12-17  Bruno Haible  <bruno@clisp.org>
48973
48974         New module 'mbsinit'.
48975         * lib/wchar.in.h (mbsinit): New declaration.
48976         * lib/mbsinit.c: New file.
48977         * m4/mbsinit.m4: New file.
48978         * modules/mbsinit: New file.
48979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48980         HAVE_MBSINIT.
48981         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48982         HAVE_MBSINIT.
48983         * doc/posix-functions/mbsinit.texi: Document the new module.
48984
48985 2008-12-16  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/unistd.in.h: Add comment.
48988         * tests/test-environ.c: Don't include <stdlib.h>.
48989
48990 2008-12-16  Bruno Haible  <bruno@clisp.org>
48991
48992         * lib/parse-duration.h (parse_duration): Document return value
48993         convention.
48994         * lib/parse-duration.c: Include specification header first. Add
48995         comments.
48996         (_): Remove macro.
48997         (parse_year_month_day, parse_hour_minute_second): Move side effects
48998         outside of strchr call.
48999         (parse_non_iso8601): Move side effects outside of isspace call.
49000         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49001         call.
49002
49003 2008-12-16  Bruno Haible  <bruno@clisp.org>
49004
49005         * tests/test-parse-duration.sh: Produce no output when the test
49006         succeeds.
49007
49008 2008-12-16  Bruno Haible  <bruno@clisp.org>
49009
49010         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49011         expressions.
49012
49013 2008-12-15  Bruno Haible  <bruno@clisp.org>
49014
49015         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49016         * doc/glibc-functions/flistxattr.texi: Likewise.
49017         * doc/glibc-functions/fopencookie.texi: Likewise.
49018         * doc/glibc-functions/fremovexattr.texi: Likewise.
49019         * doc/glibc-functions/fsetxattr.texi: Likewise.
49020         * doc/glibc-functions/getxattr.texi: Likewise.
49021         * doc/glibc-functions/lgetxattr.texi: Likewise.
49022         * doc/glibc-functions/listxattr.texi: Likewise.
49023         * doc/glibc-functions/llistxattr.texi: Likewise.
49024         * doc/glibc-functions/lremovexattr.texi: Likewise.
49025         * doc/glibc-functions/lsetxattr.texi: Likewise.
49026         * doc/glibc-functions/removexattr.texi: Likewise.
49027         * doc/glibc-functions/setxattr.texi: Likewise.
49028         * doc/posix-functions/open_memstream.texi: Likewise.
49029
49030 2008-12-15  Eric Blake  <ebb9@byu.net>
49031
49032         Update doc for cygwin 1.7.
49033         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49034         functions.
49035         * doc/posix-functions/fchmodat.texi: Likewise.
49036         * doc/posix-functions/fchownat.texi: Likewise.
49037         * doc/posix-functions/fdopendir.texi: Likewise.
49038         * doc/posix-functions/fmemopen.texi: Likewise.
49039         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49040         * doc/posix-functions/fstatat.texi: Likewise.
49041         * doc/posix-functions/futimens.texi: Likewise.
49042         * doc/posix-functions/gai_strerror.texi: Likewise.
49043         * doc/posix-functions/getaddrinfo.texi: Likewise.
49044         * doc/posix-functions/getnameinfo.texi: Likewise.
49045         * doc/posix-functions/if_freenameindex.texi: Likewise.
49046         * doc/posix-functions/if_indextoname.texi: Likewise.
49047         * doc/posix-functions/if_nameindex.texi: Likewise.
49048         * doc/posix-functions/if_nametoindex.texi: Likewise.
49049         * doc/posix-functions/insque.texi: Likewise.
49050         * doc/posix-functions/linkat.texi: Likewise.
49051         * doc/posix-functions/llrint.texi: Likewise.
49052         * doc/posix-functions/llrintf.texi: Likewise.
49053         * doc/posix-functions/llrintl.texi: Likewise.
49054         * doc/posix-functions/lockf.texi: Likewise.
49055         * doc/posix-functions/lrintl.texi: Likewise.
49056         * doc/posix-functions/mkdirat.texi: Likewise.
49057         * doc/posix-functions/mkfifoat.texi: Likewise.
49058         * doc/posix-functions/mknodat.texi: Likewise.
49059         * doc/posix-functions/mq_close.texi: Likewise.
49060         * doc/posix-functions/mq_getattr.texi: Likewise.
49061         * doc/posix-functions/mq_notify.texi: Likewise.
49062         * doc/posix-functions/mq_open.texi: Likewise.
49063         * doc/posix-functions/mq_receive.texi: Likewise.
49064         * doc/posix-functions/mq_send.texi: Likewise.
49065         * doc/posix-functions/mq_setattr.texi: Likewise.
49066         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49067         * doc/posix-functions/mq_timedsend.texi: Likewise.
49068         * doc/posix-functions/mq_unlink.texi: Likewise.
49069         * doc/posix-functions/open_memstream.texi: Likewise.
49070         * doc/posix-functions/openat.texi: Likewise.
49071         * doc/posix-functions/posix_fadvise.texi: Likewise.
49072         * doc/posix-functions/posix_fallocate.texi: Likewise.
49073         * doc/posix-functions/posix_madvise.texi: Likewise.
49074         * doc/posix-functions/posix_memalign.texi: Likewise.
49075         * doc/posix-functions/posix_openpt.texi: Likewise.
49076         * doc/posix-functions/readlinkat.texi: Likewise.
49077         * doc/posix-functions/remque.texi: Likewise.
49078         * doc/posix-functions/renameat.texi: Likewise.
49079         * doc/posix-functions/rintl.texi: Likewise.
49080         * doc/posix-functions/sem_unlink.texi: Likewise.
49081         * doc/posix-functions/shm_open.texi: Likewise.
49082         * doc/posix-functions/shm_unlink.texi: Likewise.
49083         * doc/posix-functions/signgam.texi: Likewise.
49084         * doc/posix-functions/sigset.texi: Likewise.
49085         * doc/posix-functions/stpcpy.texi: Likewise.
49086         * doc/posix-functions/stpncpy.texi: Likewise.
49087         * doc/posix-functions/strerror.texi: Likewise.
49088         * doc/posix-functions/strtod.texi: Likewise.
49089         * doc/posix-functions/symlinkat.texi: Likewise.
49090         * doc/posix-functions/unlinkat.texi: Likewise.
49091         * doc/posix-functions/utimensat.texi: Likewise.
49092         * doc/glibc-functions/bindresvport.texi: Likewise.
49093         * doc/glibc-functions/dn_expand.texi: Likewise.
49094         * doc/glibc-functions/exp10.texi: Likewise.
49095         * doc/glibc-functions/exp10f.texi: Likewise.
49096         * doc/glibc-functions/fgetxattr.texi: Likewise.
49097         * doc/glibc-functions/flistxattr.texi: Likewise.
49098         * doc/glibc-functions/fopencookie.texi: Likewise.
49099         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49100         * doc/glibc-functions/fremovexattr.texi: Likewise.
49101         * doc/glibc-functions/fsetxattr.texi: Likewise.
49102         * doc/glibc-functions/getifaddrs.texi: Likewise.
49103         * doc/glibc-functions/getxattr.texi: Likewise.
49104         * doc/glibc-functions/lgetxattr.texi: Likewise.
49105         * doc/glibc-functions/listxattr.texi: Likewise.
49106         * doc/glibc-functions/llistxattr.texi: Likewise.
49107         * doc/glibc-functions/lremovexattr.texi: Likewise.
49108         * doc/glibc-functions/lsetxattr.texi: Likewise.
49109         * doc/glibc-functions/pow10.texi: Likewise.
49110         * doc/glibc-functions/pow10f.texi: Likewise.
49111         * doc/glibc-functions/rcmd_af.texi: Likewise.
49112         * doc/glibc-functions/removexattr.texi: Likewise.
49113         * doc/glibc-functions/res_init.texi: Likewise.
49114         * doc/glibc-functions/res_mkquery.texi: Likewise.
49115         * doc/glibc-functions/res_query.texi: Likewise.
49116         * doc/glibc-functions/res_querydomain.texi: Likewise.
49117         * doc/glibc-functions/res_send.texi: Likewise.
49118         * doc/glibc-functions/rresvport_af.texi: Likewise.
49119         * doc/glibc-functions/setxattr.texi: Likewise.
49120         * doc/glibc-functions/strcasestr.texi: Likewise.
49121
49122 2008-12-15  Bruno Haible  <bruno@clisp.org>
49123
49124         Fix compilation error on OSF/1 4.0.
49125         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49126         <sys/time.h>, simply delegate to the system header.
49127         Reported by Daniel Richard G. <oss@teragram.com>.
49128
49129 2008-12-15  Bruno Haible  <bruno@clisp.org>
49130
49131         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49132         * doc/posix-functions/fchmodat.texi: Likewise.
49133         * doc/posix-functions/fchownat.texi: Likewise.
49134         * doc/posix-functions/fdopendir.texi: Likewise.
49135         * doc/posix-functions/fstatat.texi: Likewise.
49136         * doc/posix-functions/mkdirat.texi: Likewise.
49137         * doc/posix-functions/unlinkat.texi: Likewise.
49138
49139 2008-12-14  Bruno Haible  <bruno@clisp.org>
49140
49141         Update doc for POSIX:2008.
49142         * doc/posix-functions/faccessat.texi: New file.
49143         * doc/posix-functions/fchmodat.texi: New file.
49144         * doc/posix-functions/fchownat.texi: New file.
49145         * doc/posix-functions/fdopendir.texi: New file.
49146         * doc/posix-functions/fstatat.texi: New file.
49147         * doc/posix-functions/futimens.texi: New file.
49148         * doc/posix-functions/linkat.texi: New file.
49149         * doc/posix-functions/mkdirat.texi: New file.
49150         * doc/posix-functions/mkfifoat.texi: New file.
49151         * doc/posix-functions/mknodat.texi: New file.
49152         * doc/posix-functions/open_wmemstream.texi: New file.
49153         * doc/posix-functions/openat.texi: New file.
49154         * doc/posix-functions/psiginfo.texi: New file.
49155         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49156         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49157         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49158         * doc/posix-functions/readlinkat.texi: New file.
49159         * doc/posix-functions/renameat.texi: New file.
49160         * doc/posix-functions/strerror_l.texi: New file.
49161         * doc/posix-functions/symlinkat.texi: New file.
49162         * doc/posix-functions/unlinkat.texi: New file.
49163         * doc/posix-functions/utimensat.texi: New file.
49164         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49165
49166 2008-12-14  Bruno Haible  <bruno@clisp.org>
49167
49168         Update doc for POSIX:2008.
49169         * doc/posix-functions/alphasort.texi: Renamed from
49170         doc/glibc-functions/alphasort.texi.
49171         * doc/posix-functions/dirfd.texi: Renamed from
49172         doc/glibc-functions/dirfd.texi.
49173         * doc/posix-functions/dprintf.texi: Renamed from
49174         doc/glibc-functions/dprintf.texi.
49175         * doc/posix-functions/duplocale.texi: Renamed from
49176         doc/glibc-functions/duplocale.texi.
49177         * doc/posix-functions/fexecve.texi: Renamed from
49178         doc/glibc-functions/fexecve.texi.
49179         * doc/posix-functions/fmemopen.texi: Renamed from
49180         doc/glibc-functions/fmemopen.texi.
49181         * doc/posix-functions/freelocale.texi: Renamed from
49182         doc/glibc-functions/freelocale.texi.
49183         * doc/posix-functions/getdate_err.texi: Renamed from
49184         doc/glibc-functions/getdate_err.texi.
49185         * doc/posix-functions/isalnum_l.texi: Renamed from
49186         doc/glibc-functions/isalnum_l.texi.
49187         * doc/posix-functions/isalpha_l.texi: Renamed from
49188         doc/glibc-functions/isalpha_l.texi.
49189         * doc/posix-functions/isblank_l.texi: Renamed from
49190         doc/glibc-functions/isblank_l.texi.
49191         * doc/posix-functions/iscntrl_l.texi: Renamed from
49192         doc/glibc-functions/iscntrl_l.texi.
49193         * doc/posix-functions/isdigit_l.texi: Renamed from
49194         doc/glibc-functions/isdigit_l.texi.
49195         * doc/posix-functions/isgraph_l.texi: Renamed from
49196         doc/glibc-functions/isgraph_l.texi.
49197         * doc/posix-functions/islower_l.texi: Renamed from
49198         doc/glibc-functions/islower_l.texi.
49199         * doc/posix-functions/isprint_l.texi: Renamed from
49200         doc/glibc-functions/isprint_l.texi.
49201         * doc/posix-functions/ispunct_l.texi: Renamed from
49202         doc/glibc-functions/ispunct_l.texi.
49203         * doc/posix-functions/isspace_l.texi: Renamed from
49204         doc/glibc-functions/isspace_l.texi.
49205         * doc/posix-functions/isupper_l.texi: Renamed from
49206         doc/glibc-functions/isupper_l.texi.
49207         * doc/posix-functions/iswalnum_l.texi: Renamed from
49208         doc/glibc-functions/iswalnum_l.texi.
49209         * doc/posix-functions/iswalpha_l.texi: Renamed from
49210         doc/glibc-functions/iswalpha_l.texi.
49211         * doc/posix-functions/iswblank_l.texi: Renamed from
49212         doc/glibc-functions/iswblank_l.texi.
49213         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49214         doc/glibc-functions/iswcntrl_l.texi.
49215         * doc/posix-functions/iswctype_l.texi: Renamed from
49216         doc/glibc-functions/iswctype_l.texi.
49217         * doc/posix-functions/iswdigit_l.texi: Renamed from
49218         doc/glibc-functions/iswdigit_l.texi.
49219         * doc/posix-functions/iswgraph_l.texi: Renamed from
49220         doc/glibc-functions/iswgraph_l.texi.
49221         * doc/posix-functions/iswlower_l.texi: Renamed from
49222         doc/glibc-functions/iswlower_l.texi.
49223         * doc/posix-functions/iswprint_l.texi: Renamed from
49224         doc/glibc-functions/iswprint_l.texi.
49225         * doc/posix-functions/iswpunct_l.texi: Renamed from
49226         doc/glibc-functions/iswpunct_l.texi.
49227         * doc/posix-functions/iswspace_l.texi: Renamed from
49228         doc/glibc-functions/iswspace_l.texi.
49229         * doc/posix-functions/iswupper_l.texi: Renamed from
49230         doc/glibc-functions/iswupper_l.texi.
49231         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49232         doc/glibc-functions/iswxdigit_l.texi.
49233         * doc/posix-functions/isxdigit_l.texi: Renamed from
49234         doc/glibc-functions/isxdigit_l.texi.
49235         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49236         doc/glibc-functions/mbsnrtowcs.texi.
49237         * doc/posix-functions/mkdtemp.texi: Renamed from
49238         doc/glibc-functions/mkdtemp.texi.
49239         * doc/posix-functions/newlocale.texi: Renamed from
49240         doc/glibc-functions/newlocale.texi.
49241         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49242         doc/glibc-functions/nl_langinfo_l.texi.
49243         * doc/posix-functions/open_memstream.texi: Renamed from
49244         doc/glibc-functions/open_memstream.texi.
49245         * doc/posix-functions/opterr.texi: Renamed from
49246         doc/glibc-functions/opterr.texi.
49247         * doc/posix-functions/optind.texi: Renamed from
49248         doc/glibc-functions/optind.texi.
49249         * doc/posix-functions/optopt.texi: Renamed from
49250         doc/glibc-functions/optopt.texi.
49251         * doc/posix-functions/psignal.texi: Renamed from
49252         doc/glibc-functions/psignal.texi.
49253         * doc/posix-functions/scandir.texi: Renamed from
49254         doc/glibc-functions/scandir.texi.
49255         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49256         doc/glibc-functions/sched_get_priority_min.texi.
49257         * doc/posix-functions/signgam.texi: Renamed from
49258         doc/glibc-functions/signgam.texi.
49259         * doc/posix-functions/stpcpy.texi: Renamed from
49260         doc/glibc-functions/stpcpy.texi.
49261         * doc/posix-functions/stpncpy.texi: Renamed from
49262         doc/glibc-functions/stpncpy.texi.
49263         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49264         doc/glibc-functions/strcasecmp_l.texi.
49265         * doc/posix-functions/strcoll_l.texi: Renamed from
49266         doc/glibc-functions/strcoll_l.texi.
49267         * doc/posix-functions/strfmon_l.texi: Renamed from
49268         doc/glibc-functions/strfmon_l.texi.
49269         * doc/posix-functions/strftime_l.texi: Renamed from
49270         doc/glibc-functions/strftime_l.texi.
49271         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49272         doc/glibc-functions/strncasecmp_l.texi.
49273         * doc/posix-functions/strndup.texi: Renamed from
49274         doc/glibc-functions/strndup.texi.
49275         * doc/posix-functions/strnlen.texi: Renamed from
49276         doc/glibc-functions/strnlen.texi.
49277         * doc/posix-functions/strsignal.texi: Renamed from
49278         doc/glibc-functions/strsignal.texi.
49279         * doc/posix-functions/strxfrm_l.texi: Renamed from
49280         doc/glibc-functions/strxfrm_l.texi.
49281         * doc/posix-functions/timer_gettime.texi: Renamed from
49282         doc/glibc-functions/timer_gettime.texi.
49283         * doc/posix-functions/tolower_l.texi: Renamed from
49284         doc/glibc-functions/tolower_l.texi.
49285         * doc/posix-functions/toupper_l.texi: Renamed from
49286         doc/glibc-functions/toupper_l.texi.
49287         * doc/posix-functions/towctrans_l.texi: Renamed from
49288         doc/glibc-functions/towctrans_l.texi.
49289         * doc/posix-functions/towlower_l.texi: Renamed from
49290         doc/glibc-functions/towlower_l.texi.
49291         * doc/posix-functions/towupper_l.texi: Renamed from
49292         doc/glibc-functions/towupper_l.texi.
49293         * doc/posix-functions/uselocale.texi: Renamed from
49294         doc/glibc-functions/uselocale.texi.
49295         * doc/posix-functions/vdprintf.texi: Renamed from
49296         doc/glibc-functions/vdprintf.texi.
49297         * doc/posix-functions/wcpcpy.texi:
49298         Renamed from doc/glibc-functions/wcpcpy.texi.
49299         * doc/posix-functions/wcpncpy.texi: Renamed from
49300         doc/glibc-functions/wcpncpy.texi.
49301         * doc/posix-functions/wcscasecmp.texi: Renamed from
49302         doc/glibc-functions/wcscasecmp.texi.
49303         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49304         doc/glibc-functions/wcscasecmp_l.texi.
49305         * doc/posix-functions/wcscoll_l.texi: Renamed from
49306         doc/glibc-functions/wcscoll_l.texi.
49307         * doc/posix-functions/wcsdup.texi: Renamed from
49308         doc/glibc-functions/wcsdup.texi.
49309         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49310         doc/glibc-functions/wcsncasecmp.texi.
49311         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49312         doc/glibc-functions/wcsncasecmp_l.texi.
49313         * doc/posix-functions/wcsnlen.texi: Renamed from
49314         doc/glibc-functions/wcsnlen.texi.
49315         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49316         doc/glibc-functions/wcsnrtombs.texi.
49317         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49318         doc/glibc-functions/wcsxfrm_l.texi.
49319         * doc/posix-functions/wctrans_l.texi: Renamed from
49320         doc/glibc-functions/wctrans_l.texi.
49321         * doc/posix-functions/wctype_l.texi: Renamed from
49322         doc/glibc-functions/wctype_l.texi.
49323         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49324         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49325         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49326         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49327         these subsections.
49328         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49329         Remove sections.
49330
49331 2008-12-14  Bruno Haible  <bruno@clisp.org>
49332
49333         Update doc for POSIX:2008.
49334         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49335
49336 2008-12-14  Bruno Haible  <bruno@clisp.org>
49337
49338         Update doc for POSIX:2008.
49339         * doc/pastposix-functions/bcmp.texi: Renamed from
49340         doc/posix-functions/bcmp.texi.
49341         * doc/pastposix-functions/bcopy.texi: Renamed from
49342         doc/posix-functions/bcopy.texi.
49343         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49344         doc/posix-functions/bsd_signal.texi.
49345         * doc/pastposix-functions/bzero.texi: Renamed from
49346         doc/posix-functions/bzero.texi.
49347         * doc/pastposix-functions/ecvt.texi: Renamed from
49348         doc/posix-functions/ecvt.texi.
49349         * doc/pastposix-functions/fcvt.texi: Renamed from
49350         doc/posix-functions/fcvt.texi.
49351         * doc/pastposix-functions/ftime.texi: Renamed from
49352         doc/posix-functions/ftime.texi.
49353         * doc/pastposix-functions/gcvt.texi: Renamed from
49354         doc/posix-functions/gcvt.texi.
49355         * doc/pastposix-functions/getcontext.texi: Renamed from
49356         doc/posix-functions/getcontext.texi.
49357         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49358         doc/posix-functions/gethostbyaddr.texi.
49359         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49360         doc/posix-functions/gethostbyname.texi.
49361         * doc/pastposix-functions/getwd.texi: Renamed from
49362         doc/posix-functions/getwd.texi.
49363         * doc/pastposix-functions/h_errno.texi: Renamed from
49364         doc/posix-functions/h_errno.texi.
49365         * doc/pastposix-functions/index.texi: Renamed from
49366         doc/posix-functions/index.texi.
49367         * doc/pastposix-functions/makecontext.texi: Renamed from
49368         doc/posix-functions/makecontext.texi.
49369         * doc/pastposix-functions/mktemp.texi: Renamed from
49370         doc/posix-functions/mktemp.texi.
49371         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49372         doc/posix-functions/pthread_attr_getstackaddr.texi.
49373         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49374         doc/posix-functions/pthread_attr_setstackaddr.texi.
49375         * doc/pastposix-functions/rindex.texi: Renamed from
49376         doc/posix-functions/rindex.texi.
49377         * doc/pastposix-functions/scalb.texi: Renamed from
49378         doc/posix-functions/scalb.texi.
49379         * doc/pastposix-functions/setcontext.texi: Renamed from
49380         doc/posix-functions/setcontext.texi.
49381         * doc/pastposix-functions/swapcontext.texi: Renamed from
49382         doc/posix-functions/swapcontext.texi.
49383         * doc/pastposix-functions/ualarm.texi: Renamed from
49384         doc/posix-functions/ualarm.texi.
49385         * doc/pastposix-functions/usleep.texi: Renamed from
49386         doc/posix-functions/usleep.texi.
49387         * doc/pastposix-functions/vfork.texi: Renamed from
49388         doc/posix-functions/vfork.texi.
49389         * doc/pastposix-functions/wcswcs.texi: Renamed from
49390         doc/posix-functions/wcswcs.texi.
49391         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49392         (Function Substitutes): Update.
49393
49394 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49395
49396         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49397         m4/strerror.m4.
49398
49399 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49400             Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49403
49404 2008-12-13  Bruno Haible  <bruno@clisp.org>
49405
49406         * modules/strtoull (Depends-on): Remove unistd.
49407
49408 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49409
49410         * modules/strtoull (Depends-on): Add stdlib.
49411
49412 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49413
49414         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49415
49416 2008-12-10  Jim Meyering  <meyering@redhat.com>
49417
49418         gl_ASSERT: don't say assertions are disabled when they're not
49419         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49420         "checking whether to enable assertions... no", when they are in
49421         fact enabled.  This is solely a bug in the output of configure.
49422         In spite of saying "no", NDEBUG was not defined in that case.
49423         Also, as noted by Eric Blake, leave assertions enabled upon
49424         --enable-assert=INVALID.
49425
49426 2008-12-10  Bruno Haible  <bruno@clisp.org>
49427
49428         Change MODULES.html to refer to POSIX:2008 where possible.
49429         * MODULES.html.sh (POSIX2008_URL): New variable.
49430         (posix_headers): Remove sys/timeb, ucontext.
49431         (posix2001_headers): New variable.
49432         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49433         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49434         index, makecontext, mktemp, pthread_attr_getstackaddr,
49435         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49436         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49437         (posix2001_functions): New variable.
49438         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49439         otherwise.
49440
49441 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49442
49443         add missing include to parse-duration.c
49444         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49445         * modules/parse-duration (Depends-on): Add xalloc.
49446
49447         fix sed script reading maint.mk
49448         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49449         (syntax-check-rules): Use it.
49450
49451 2008-12-09  Bruno Haible  <bruno@clisp.org>
49452
49453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49454         MacOS X 10.4/PowerPC.
49455         Reported by Simon Josefsson.
49456
49457 2008-12-08  Jim Meyering  <meyering@redhat.com>
49458
49459         work around mingw's lack of some S_IF definitions
49460         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49461         Reported by Simon Josefsson.
49462
49463 2008-12-08  Bruno Haible  <bruno@clisp.org>
49464
49465         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49466         applied to variables. Needed on MacOS X 10.4/PowerPC.
49467         Reported by Simon Josefsson.
49468
49469 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49470         and Eric Blake  <ebb9@byu.net>
49471
49472         assert: honor --enable-assert
49473         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49474         order to honor --enable-assert, rather than treating it as a
49475         synonym for --disable-assert.
49476
49477 2008-12-08  Jim Meyering  <meyering@redhat.com>
49478
49479         * lib/posixtm.c: Remove now-useless declaration of mktime.
49480
49481         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49482
49483 2008-12-07  Bruno Haible  <bruno@clisp.org>
49484
49485         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49486         test_once): Mark functions as static.
49487         * tests/test-tls.c (test_tls): Likewise.
49488
49489 2008-12-07  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49492         iconv_register_autodetect.
49493
49494 2008-12-07  Jim Meyering  <meyering@redhat.com>
49495
49496         posixtm.c: avoid a warning
49497         * lib/posixtm.c (posixtime): Don't initialize tm0.
49498         It's no longer needed to placate gcc4's -Wuninitialized,
49499         and the attempt to placate would elicit a new warning.
49500
49501         unicodeio.c: mark unused parameters
49502         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49503         (fallback_failure_callback): Likewise.
49504
49505 2008-12-07  Bruno Haible  <bruno@clisp.org>
49506
49507         * gnulib-tool (func_create_testdir): When building the tests
49508         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49509         Reported by Simon Josefsson.
49510
49511 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49512
49513         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49514
49515 2008-12-06  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49518         Suggested by Eric Blake.
49519
49520 2008-12-06  Bruno Haible  <bruno@clisp.org>
49521
49522         Fix a c-stack test failure on MacOS X.
49523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49524         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49525         handler for SIGBUS as well.
49526         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49527         install a signal handler for SIGBUS as well.
49528         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49529
49530 2008-12-06  Bruno Haible  <bruno@clisp.org>
49531
49532         Advocacy documentation.
49533         * doc/gnulib-intro.texi (Benefits): New section.
49534         * doc/gnulib.texi: Update.
49535
49536 2008-12-06  Bruno Haible  <bruno@clisp.org>
49537
49538         Document the 'manywarnings' module.
49539         * doc/manywarnings.texi: New file.
49540         * doc/gnulib.texi: Include it.
49541
49542 2008-12-05  Eric Blake  <ebb9@byu.net>
49543
49544         tests: silence some gcc warnings
49545         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49546         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49547         type mismatches.
49548
49549 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49550             Bruno Haible  <bruno@clisp.org>
49551
49552         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49553
49554 2008-11-29  Jim Meyering  <meyering@redhat.com>
49555
49556         unicodeio.c: mark unused parameters
49557         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49558         (fallback_failure_callback): Likewise.
49559
49560         fts: fix a thinko
49561         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49562         (set_stat_type): Return S_IF*-valued "type" directly.
49563         Prompted by James Youngman's spotting a related bug.
49564         Confirmed by further testing through find.
49565
49566         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49567         * lib/fts.c (D_TYPE): Define.
49568         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49569         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49570         (s_ifmt_shift_bits): New function.
49571         (set_stat_type): New function.
49572         (fts_build): When not calling fts_stat, call set_stat_type
49573         to propagate dirent.d_type info to fts_read caller.
49574         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49575         fts_statp->st_mode type information may be valid.
49576
49577 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49578
49579         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49580         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49581         <sds@gnu.org>.
49582
49583 2008-11-20  Bruno Haible  <bruno@clisp.org>
49584
49585         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49586         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49587         INCLUDE_NEXT.
49588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49589         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49590         * modules/math (Makefile.am): Substitute
49591         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49592         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49593
49594 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49595             Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/stdint.in.h: Define all type macros so that their expansion is
49598         a single typedef'ed token. Fixes a compilation failure in Boost which
49599         does "using ::int8_t;".
49600
49601 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49602
49603         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49604         gl_MANYWARN_ALL_GCC.
49605         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49606         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49607         * modules/manywarnings: New file.
49608         * MODULES.html.sh: Mention manywarnings module.
49609
49610 2008-11-18  Bruno Haible  <bruno@clisp.org>
49611
49612         * doc/gnulib-tool.texi (Unit tests): New section.
49613
49614 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49615
49616         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49617         paths like 'lib/po/foo.po'.
49618
49619 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49620
49621         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49622         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49623
49624 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49625
49626         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49627         parameter works.
49628
49629 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49630
49631         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49632
49633 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49634
49635         * modules/parse-duration-tests: New file.
49636         * tests/test-parse-duration.sh: New file.
49637         * tests/test-parse-duration.c: New file.
49638
49639         New module 'parse-duration'.
49640         * lib/parse-duration.h: New file.
49641         * lib/parse-duration.c: New file.
49642         * modules/parse-duration: New file.
49643
49644 2008-11-17  Bruno Haible  <bruno@clisp.org>
49645
49646         * tests/test-select-out.sh: Comment out the first pipe test.
49647         Reported by Simon Josefsson.
49648
49649 2008-11-17  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49652         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49653         gl_HOSTENT.
49654
49655 2008-11-17  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49658         -lnetwork and -lnet. Needed for Haiku and BeOS.
49659
49660 2008-11-16  Bruno Haible  <bruno@clisp.org>
49661
49662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49663
49664 2008-11-16  Bruno Haible  <bruno@clisp.org>
49665
49666         Avoid test failure on Haiku.
49667         * tests/test-fsync.c: Include <errno.h>.
49668         (main): Don't require that fsync (0) fails.
49669
49670 2008-11-15  Bruno Haible  <bruno@clisp.org>
49671
49672         New module 'hostent'.
49673         * modules/hostent: New file.
49674         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49675
49676 2008-11-15  Bruno Haible  <bruno@clisp.org>
49677
49678         New module 'servent'.
49679         * modules/servent: New file.
49680         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49681
49682 2008-11-15  Bruno Haible  <bruno@clisp.org>
49683
49684         Avoid generating same test program with two different rules.
49685         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49686         test-frexp to test-frexp-nolibm.
49687         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49688         test-frexpl to test-frexpl-nolibm.
49689
49690 2008-11-15  Bruno Haible  <bruno@clisp.org>
49691
49692         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49693         $(FREXPL_LIBM).
49694
49695 2008-11-15  Bruno Haible  <bruno@clisp.org>
49696
49697         * lib/netdb.in.h: Activate the definitions also when the system's
49698         <netdb.h> has 'struct addrinfo'.
49699         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49700         EAI_OVERFLOW or AI_NUMERICSERV.
49701         * doc/posix-headers/netdb.texi: Document the problem.
49702
49703 2008-11-15  Bruno Haible  <bruno@clisp.org>
49704
49705         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49706
49707         Make the 'sched' module work on platforms where <sched.h> exists but
49708         is incomplete (such as Haiku).
49709         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49710         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49711         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49712         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49713         HAVE_STRUCT_SCHED_PARAM.
49714         * modules/sched (Depends-on): Add include_next.
49715         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49716         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49717         * doc/posix-headers/sched.texi: Document the issue.
49718
49719 2008-11-13  Jim Meyering  <meyering@redhat.com>
49720
49721         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49722         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49723         test would fail due to the difference in the Report bugs to ...
49724         line.  The expected address is empty, "<>", while the actual
49725         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49726
49727 2008-11-12  Bruno Haible  <bruno@clisp.org>
49728
49729         lstat: don't compile lstat.c on systems lacking lstat
49730         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49731         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49732         Reported by Daniel P. Berrange via Jim Meyering.
49733
49734 2008-11-12  Jim Meyering  <meyering@redhat.com>
49735
49736         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49737
49738 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49739
49740         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49741         instead.
49742
49743 2008-11-12  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/unicodeio.c: Include unistr.h.
49746         (utf8_wctomb): Remove function.
49747         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49748
49749 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49750
49751         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49752         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49753         <bruno@clisp.org>.
49754         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49755
49756 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49757
49758         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49759         * doc/gnulib.texi: Add section for warnings.
49760
49761 2008-11-11  Bruno Haible  <bruno@clisp.org>
49762
49763         * lib/sockets.h: Add a comment.
49764
49765 2008-11-11  Karl Berry  <karl@gnu.org>
49766
49767         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49768
49769 2008-11-11  Eric Blake  <ebb9@byu.net>
49770
49771         fdl.texi: avoid git symlinks
49772         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49773
49774 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49775
49776         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49777
49778 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49779
49780         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49781         (gl_WARN_ADD): Substitute $2 if literal.
49782
49783 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49784
49785         * m4/warning.m4: Remove.
49786
49787 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49788
49789         * m4/warnings.m4: Almost complete rewrite. :-)
49790
49791 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49792
49793         * modules/warnings: New module.
49794         * m4/warnings.m4: New file.
49795         * MODULES.html.sh: Mention warnings module.
49796         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49797         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49798
49799 2008-11-10  Eric Blake  <ebb9@byu.net>
49800
49801         fdl.texi: make a symlink to the latest version
49802         * doc/standards.texi: Revert today's earlier change.
49803         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49804         * doc/fdl.texi: ...and replace this with a symlink to the newer
49805         fdl-1.3.texi.
49806
49807 2008-11-10  Bruno Haible  <bruno@clisp.org>
49808
49809         * tests/test-select-fd.c (main): Accept the result file name as fourth
49810         argument.
49811         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49812         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49813
49814 2008-11-10  Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49817         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49818         as autoconf-substituted macros.
49819         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49821         gl_NETDB_H_DEFAULTS. Set these variables.
49822         * modules/netdb (Makefile.am): Substitute these variables.
49823
49824 2008-11-10  Eric Blake  <ebb9@byu.net>
49825
49826         standards.texi: include correct file for FDL 1.3
49827         * doc/standards.texi (GNU Free Documentation License): Change
49828         include file to pull in FDL 1.3, not 1.2.
49829
49830         fdl.texi: revert accidental change to license
49831         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49832
49833 2008-11-10  Bruno Haible  <bruno@clisp.org>
49834
49835         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49836         cross-compiling guesses also when the native compile gives no result.
49837
49838 2008-11-10  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/spawni.c (__spawni): Force variable into the stack.
49841
49842 2008-11-10  Bruno Haible  <bruno@clisp.org>
49843
49844         Add support for Haiku.
49845         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49846         glibc and BeOS, but also on Haiku.
49847         * lib/fpurge.c (fpurge): Likewise.
49848         * lib/freadable.c (freadable): Likewise.
49849         * lib/freadahead.c (freadahead): Likewise.
49850         * lib/freading.c (freading): Likewise.
49851         * lib/freadptr.c (freadptr): Likewise.
49852         * lib/freadseek.c (freadptrinc): Likewise.
49853         * lib/fseeko.c (rpl_fseeko): Likewise.
49854         * lib/fseterr.c (fseterr): Likewise.
49855         * lib/fwritable.c (fwritable): Likewise.
49856         * lib/fwriting.c (fwriting): Likewise.
49857         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49858
49859 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49860
49861         * lib/config.charset: Treat Haiku like BeOS.
49862
49863 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49864
49865         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49866         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49867
49868 2008-11-08  Bruno Haible  <bruno@clisp.org>
49869
49870         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49871         AC_CACHE_CHECK.
49872
49873 2008-11-08  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49876
49877 2008-11-08  Bruno Haible  <bruno@clisp.org>
49878
49879         * tests/test-select-fd.c: New file.
49880         * tests/test-select-in.sh: New file.
49881         * tests/test-select-out.sh: New file.
49882         * tests/test-select-stdin.c: New file.
49883         * modules/select-tests (Files): Add the new files.
49884         (Depends-on): Add gettimeofday.
49885         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49886         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49887         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49888
49889 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49890             Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49893
49894 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49895
49896         * build-aux/pmccabe2html: Added support for C++ source files.
49897
49898 2008-11-05  Ben Pfaff  <blp@gnu.org>
49899
49900         Fix lib/close.c build on Windows.
49901         * modules/close (Files): Add lib/w32sock.h.
49902
49903 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49904
49905         Accept Bison's NEWS format.
49906         * build-aux/announce-gen (print_news_deltas): Tweak
49907         $re_prefix.
49908
49909 2008-11-04  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/random_r (Maintainer): Add glibc.
49912
49913 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49914
49915         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49916         by karl@freefriends.org (Karl Berry).
49917         * doc/alloca.texi: Likewise.
49918         * doc/c-ctype.texi: Likewise.
49919         * doc/c-strcase.texi: Likewise.
49920         * doc/c-strcaseeq.texi: Likewise.
49921         * doc/c-strcasestr.texi: Likewise.
49922         * doc/c-strstr.texi: Likewise.
49923         * doc/c-strtod.texi: Likewise.
49924         * doc/c-strtold.texi: Likewise.
49925         * doc/ctime.texi: Likewise.
49926         * doc/error.texi: Likewise.
49927         * doc/fdl.texi: Likewise.
49928         * doc/gcd.texi: Likewise.
49929         * doc/getdate.texi: Likewise.
49930         * doc/gnulib-intro.texi: Likewise.
49931         * doc/gnulib-tool.texi: Likewise.
49932         * doc/gnulib.texi: Likewise.
49933         * doc/inet_ntoa.texi: Likewise.
49934         * doc/maintain.texi: Likewise.
49935         * doc/make-stds.texi: Likewise.
49936         * doc/quote.texi: Likewise.
49937         * doc/regexprops-generic.texi: Likewise.
49938         * doc/standards.texi: Likewise.
49939         * doc/verify.texi: Likewise.
49940         * doc/visibility.texi: Likewise.
49941         * doc/gnulib.texi (GNU Free Documentation License): Include
49942         fdl-1.3.texi instead of fdl.texi.
49943
49944 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49945
49946         * doc/fdl-1.3.texi: New file, from
49947         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49948         * modules/fdl-1.3: Add.
49949         * MODULES.html.sh: Add fdl-1.3.
49950
49951 2008-11-03  Bruno Haible  <bruno@clisp.org>
49952
49953         Make determination of absolute name of header file work with AIX xlc.
49954         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49955         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49956         preprocessing.
49957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49958         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49959
49960 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49961
49962         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49963         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49964         <ludo@gnu.org>.
49965
49966 2008-11-02  Bruno Haible  <bruno@clisp.org>
49967
49968         Mark 'strpbrk' obsolete.
49969         * modules/strpbrk (Status, Notice): New sections.
49970         * modules/strtok_r (Depends-on): Add strpbrk.
49971
49972 2008-11-02  Bruno Haible  <bruno@clisp.org>
49973
49974         Mark 'strdup' obsolete.
49975         * modules/strdup (Status, Notice): New sections.
49976         * modules/findprog (Depends-on): Add strdup.
49977         * modules/getaddrinfo (Depends-on): Likewise.
49978         * modules/localename (Depends-on): Likewise.
49979         * modules/relocatable-lib (Depends-on): Likewise.
49980         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49981         * modules/relocatable-prog (Depends-on): Likewise.
49982         * modules/trim (Depends-on): Likewise.
49983         * modules/unictype/gen-ctype (Depends-on): Likewise.
49984         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49985
49986 2008-11-02  Bruno Haible  <bruno@clisp.org>
49987
49988         Mark 'strcspn' obsolete.
49989         * modules/strcspn (Status, Notice): New sections.
49990
49991 2008-11-02  Bruno Haible  <bruno@clisp.org>
49992
49993         Mark 'rmdir' obsolete.
49994         * modules/rmdir (Status, Notice): New sections.
49995         * modules/clean-temp (Depends-on): Add rmdir.
49996         * modules/openat (Depends-on): Likewise.
49997
49998 2008-11-02  Bruno Haible  <bruno@clisp.org>
49999
50000         Mark 'raise' obsolete.
50001         * modules/raise (Status, Notice): New sections.
50002         (Include): Specify <signal.h>.
50003         * modules/stdio (Depends-on): Add raise.
50004         * modules/write (Depends-on): Likewise.
50005
50006 2008-11-02  Bruno Haible  <bruno@clisp.org>
50007
50008         Mark 'memset' obsolete.
50009         * modules/memset (Status, Notice): New sections.
50010
50011 2008-11-02  Bruno Haible  <bruno@clisp.org>
50012
50013         Mark 'memmove' obsolete.
50014         * modules/memmove (Status, Notice): New sections.
50015         * modules/argp (Depends-on): Add memmove.
50016         * modules/argz (Depends-on): Likewise.
50017         * modules/canonicalize (Depends-on): Likewise.
50018         * modules/canonicalize-lgpl (Depends-on): Likewise.
50019         * modules/fts (Depends-on): Likewise.
50020         * modules/getcwd (Depends-on): Likewise.
50021         * modules/human (Depends-on): Likewise.
50022         * modules/regex (Depends-on): Likewise.
50023         * modules/striconveh (Depends-on): Likewise.
50024         * modules/trim (Depends-on): Likewise.
50025         * modules/unistr/u8-move (Depends-on): Likewise.
50026         * modules/unistr/u16-move (Depends-on): Likewise.
50027         * modules/unistr/u32-move (Depends-on): Likewise.
50028
50029 2008-11-02  Bruno Haible  <bruno@clisp.org>
50030
50031         Mark 'memcpy' obsolete.
50032         * modules/memcpy (Status, Notice): New sections.
50033
50034 2008-11-02  Bruno Haible  <bruno@clisp.org>
50035
50036         Mark 'memcmp' obsolete.
50037         * modules/memcmp (Status, Notice): New sections.
50038         * modules/argmatch (Depends-on): Add memchr.
50039         * modules/backupfile (Depends-on): Likewise.
50040         * modules/c-strcasestr (Depends-on): Likewise.
50041         * modules/crypto/des (Depends-on): Likewise.
50042         * modules/csharpcomp (Depends-on): Likewise.
50043         * modules/fnmatch (Depends-on): Likewise.
50044         * modules/git-merge-changelog (Depends-on): Likewise.
50045         * modules/isnand (Depends-on): Likewise.
50046         * modules/isnand-nolibm (Depends-on): Likewise.
50047         * modules/isnanf (Depends-on): Likewise.
50048         * modules/isnanf-nolibm (Depends-on): Likewise.
50049         * modules/isnanl (Depends-on): Likewise.
50050         * modules/isnanl-nolibm (Depends-on): Likewise.
50051         * modules/mbchar (Depends-on): Likewise.
50052         * modules/memcoll (Depends-on): Likewise.
50053         * modules/quotearg (Depends-on): Likewise.
50054         * modules/regex (Depends-on): Likewise.
50055         * modules/relocatable-prog (Depends-on): Likewise.
50056         * modules/same (Depends-on): Likewise.
50057         * modules/signbit (Depends-on): Likewise.
50058         * modules/strcasestr-simple (Depends-on): Likewise.
50059         * modules/unictype/gen-ctype (Depends-on): Likewise.
50060         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50061         * modules/uniname/uniname (Depends-on): Likewise.
50062         * modules/unistr/u8-cmp (Depends-on): Likewise.
50063
50064 2008-11-02  Bruno Haible  <bruno@clisp.org>
50065
50066         Mark 'memchr' obsolete.
50067         * modules/memchr (Status, Notice): New sections.
50068         * modules/argp (Depends-on): Add memchr.
50069         * modules/base64 (Depends-on): Likewise.
50070         * modules/c-strcasestr (Depends-on): Likewise.
50071         * modules/chdir-long (Depends-on): Likewise.
50072         * modules/fnmatch (Depends-on): Likewise.
50073         * modules/getsubopt (Depends-on): Likewise.
50074         * modules/git-merge-changelog (Depends-on): Likewise.
50075         * modules/glob (Depends-on): Likewise.
50076         * modules/strcasestr-simple (Depends-on): Likewise.
50077         * modules/strnlen (Depends-on): Likewise.
50078
50079 2008-11-02  Bruno Haible  <bruno@clisp.org>
50080
50081         Mark 'atexit' obsolete.
50082         * modules/atexit (Status, Notice): New sections.
50083         * modules/chdir-long (Depends-on): Add atexit.
50084         * modules/wait-process (Depends-on): Likewise.
50085
50086 2008-11-02  Bruno Haible  <bruno@clisp.org>
50087
50088         * gnulib-tool: New option --with-obsolete.
50089         (func_usage): Document it.
50090         (func_modules_transitive_closure): Drop obsolete dependencies if
50091         incobsolete is not true.
50092         (func_import): Read and save the incobsolete variable to the cache.
50093
50094 2008-11-02  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50097         * gnulib-tool: New option --extract-status.
50098         (func_usage): Document it.
50099         (sed_extract_prog): Recognize it.
50100         (func_get_status): New function.
50101
50102 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50103
50104         * modules/sockets (License): Change from LGPL to LGPLv2+.
50105
50106 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50107
50108         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50109
50110 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50111
50112         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50113         Mention times and sys_times.
50114         * modules/sys_times, modules/sys_times-tests: New modules.
50115         * modules/times, modules/times-tests: Likewise
50116         * m4/sys_times_h.m4: New file.
50117         * lib/sys_times.in.h: Likewise
50118         * lib/times.c: Likewise.
50119         * tests/test-sys_times.c: Likewise.
50120         * tests/test-times.c: Likewise.
50121         * doc/posix-headers/sys_times.texi: Update.
50122         * doc/posix-functions/times.texi: Update.
50123
50124 2008-10-28  Jim Meyering  <meyering@redhat.com>
50125
50126         * modules/tempname (Depends-on): Add lstat.
50127
50128         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50129
50130 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50131
50132         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50133         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50134         using idiom used elsewhere in gnulib.
50135
50136 2008-10-27  Jim Meyering  <meyering@redhat.com>
50137
50138         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50139
50140 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50141
50142         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50143         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50144         programs.
50145         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50146
50147 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50148
50149         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50150
50151 2008-10-27  Bruno Haible  <bruno@clisp.org>
50152
50153         * tests/test-lstat.c: Include <stdio.h>.
50154
50155 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50156
50157         * modules/lstat-tests: New module.
50158         * tests/test-lstat.c: New file.
50159
50160 2008-10-26  Jim Meyering  <meyering@redhat.com>
50161
50162         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50163
50164 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50165             Bruno Haible  <bruno@clisp.org>
50166
50167         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50168         * modules/configmake (Include): Add a note that the include must come
50169         after all system headers.
50170         * lib/javaversion.c: Include configmake.h after all other includes.
50171
50172 2008-10-26  Bruno Haible  <bruno@clisp.org>
50173
50174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50175         HAVE_STRUCT_RANDOM_DATA to 1.
50176         (gl_STDLIB_H): Simplify.
50177
50178 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50179
50180         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50181         substitute HAVE_STRUCT_RANDOM_DATA.
50182         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50183         random_data.
50184         * modules/stdlib (Makefile.am): Substitute
50185         HAVE_STRUCT_RANDOM_DATA.
50186
50187 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50188
50189         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50190         * doc/gnulib-intro.texi (Copyright): Likewise.
50191
50192 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50193
50194         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50195         findings.
50196
50197 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50198             Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/unistd.in.h: Include <winsock2.h>.
50201         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50202         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50203         Provide dummy declarations.
50204         (gethostname): Override.
50205         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50206         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50207         gl_PREREQ_SYS_H_WINSOCK2.
50208         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50209         * doc/posix-functions/gethostname.texi: More details.
50210
50211 2008-10-25  Bruno Haible  <bruno@clisp.org>
50212
50213         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50214         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50215         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50216
50217         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50218         here ...
50219         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50220         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50221         gl_UNISTD_H_DEFAULTS.
50222
50223 2008-10-25  Eric Blake  <ebb9@byu.net>
50224
50225         signbit: avoid spurious compiler failure
50226         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50227         declarations inside function.
50228
50229 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50230             Bruno Haible  <bruno@clisp.org>
50231
50232         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50233         * modules/random_r (Depends-on): Add stdint.
50234
50235 2008-10-24  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50238         Eggert.
50239         * modules/strerror (License): Likewise.
50240
50241 2008-10-24  Jim Meyering  <meyering@redhat.com>
50242
50243         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50244         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50245
50246 2008-10-24  Eric Blake  <ebb9@byu.net>
50247
50248         getgroups: fix compilation when getgroups is available
50249         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50250         but with <config.h> override of getgroups disabled.
50251
50252 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50253
50254         * doc/gnulib.texi (Header files): Add note about C++ problems.
50255         Explained by Bruno Haible <bruno@clisp.org>.
50256
50257 2008-10-23  Bruno Haible  <bruno@clisp.org>
50258
50259         Define a dummy SA_NODEFER macro on Interix.
50260         * lib/signal.in.h (SA_NODEFER): Define fallback.
50261         Reported by Aleksey Cheusov <cheusov@tut.by> via
50262         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50263
50264 2008-10-23  Bruno Haible  <bruno@clisp.org>
50265
50266         * modules/freadahead (License): Change to LGPLv2+.
50267         Suggested by Simon Josefsson.
50268
50269 2008-10-23  Jim Meyering  <meyering@redhat.com>
50270
50271         random_r: new module
50272         * modules/random_r: New file.
50273         * m4/random_r.m4: New file.
50274         * lib/random_r.c: New file, from glibc.
50275         * modules/random_r-tests: New file.
50276         * tests/test-random_r.c: New file.
50277         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50278          Declare.
50279         (RAND_MAX): Define.
50280         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50281         * modules/stdlib: Substitute them, too.
50282         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50283         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50284         * doc/glibc-functions/random_r.texi: Likewise.
50285         * doc/glibc-functions/setstate_r.texi: Likewise.
50286         * doc/glibc-functions/srandom_r.texi: Likewise.
50287         * config/srclist.txt: Mention it.
50288
50289 2008-10-23  David Lutterkort  <lutter@redhat.com>
50290
50291         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50292         link requirement
50293
50294 2008-10-23  Jim Meyering  <meyering@redhat.com>
50295
50296         selinux-h: mark parameters of stub functions as intentionally unused
50297         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50298         * lib/se-context.in.h: Likewise.
50299
50300 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50301
50302         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50303
50304 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50305
50306         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50307
50308 2008-10-22  Eric Blake  <ebb9@byu.net>
50309
50310         glthread/thread: avoid compiler warning
50311         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50312         Add unreachable abort to silence compiler.
50313
50314 2008-10-22  Eric Blake  <ebb9@byu.net>
50315
50316         netdb: also supply struct addrinfo for cygwin 1.5.x
50317         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50318         older cygwin.
50319         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50320         cygwin.
50321         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50322
50323 2008-10-22  Bruno Haible  <bruno@clisp.org>
50324
50325         * users.txt: Update entry about pspp.
50326
50327 2008-10-21  Bruno Haible  <bruno@clisp.org>
50328
50329         Simplification.
50330         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50331         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50332
50333         Simplification.
50334         * lib/ioctl.c (ioctl): Don't undefine.
50335         * lib/socket.c (socket): Don't undefine.
50336
50337         Remove unused module indicator macros.
50338         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50339         GNULIB_$1 as a C macro.
50340
50341         * doc/posix-functions/close.texi: Undo last change.
50342         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50343         Windows platforms.
50344
50345 2008-10-21  Bruno Haible  <bruno@clisp.org>
50346
50347         Add gethostname() declaration to <unistd.h>.
50348         * lib/unistd.in.h (gethostname): New declaration.
50349         * lib/gethostname.c: Include <unistd.h>.
50350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50351         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50353         and HAVE_GETHOSTNAME.
50354         * modules/gethostname (Depends-on): Add unistd.
50355         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50356         (Include): Specify <unistd.h>.
50357         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50358         HAVE_GETHOSTNAME.
50359         * tests/test-gethostname.c: Include <unistd.h> first.
50360
50361 2008-10-21  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50364         * modules/select-tests (Depends-on): Likewise.
50365         Reported by Simon Josefsson.
50366
50367 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50368
50369         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50370         * lib/accept.c: New file, based on winsock.c.
50371         * lib/bind.c: New file, based on winsock.c.
50372         * lib/connect.c: New file, based on winsock.c.
50373         * lib/getpeername.c: New file, based on winsock.c.
50374         * lib/getsockname.c: New file, based on winsock.c.
50375         * lib/getsockopt.c: New file, based on winsock.c.
50376         * lib/ioctl.c: New file, based on winsock.c.
50377         * lib/listen.c: New file, based on winsock.c.
50378         * lib/recv.c: New file, based on winsock.c.
50379         * lib/recvfrom.c: New file, based on winsock.c.
50380         * lib/send.c: New file, based on winsock.c.
50381         * lib/sendto.c: New file, based on winsock.c.
50382         * lib/setsockopt.c: New file, based on winsock.c.
50383         * lib/shutdown.c: New file, based on winsock.c.
50384         * lib/socket.c: New file, based on winsock.c.
50385         * lib/w32sock.h: New file, based on winsock.c.
50386         * lib/winsock.c: Remove file.
50387         * modules/accept: Likewise.
50388         * modules/bind: Likewise.
50389         * modules/connect: Likewise.
50390         * modules/getpeername: Likewise.
50391         * modules/getsockname: Likewise.
50392         * modules/getsockopt: Likewise.
50393         * modules/ioctl: Likewise.
50394         * modules/listen: Likewise.
50395         * modules/recv: Likewise.
50396         * modules/recvfrom: Likewise.
50397         * modules/send: Likewise.
50398         * modules/sendto: Likewise.
50399         * modules/setsockopt: Likewise.
50400         * modules/shutdown: Likewise.
50401         * modules/socket: Use socket.c instead of winsock.c.
50402         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50403         * doc/posix-functions/accept.texi: Doc fix.
50404         * doc/posix-functions/bind.texi: Doc fix.
50405         * doc/posix-functions/close.texi: Doc fix.
50406         * doc/posix-functions/connect.texi: Doc fix.
50407         * doc/posix-functions/getpeername.texi: Doc fix.
50408         * doc/posix-functions/getsockname.texi: Doc fix.
50409         * doc/posix-functions/getsockopt.texi: Doc fix.
50410         * doc/posix-functions/ioctl.texi: Doc fix.
50411         * doc/posix-functions/listen.texi: Doc fix.
50412         * doc/posix-functions/recv.texi: Doc fix.
50413         * doc/posix-functions/recvfrom.texi: Doc fix.
50414         * doc/posix-functions/send.texi: Doc fix.
50415         * doc/posix-functions/sendto.texi: Doc fix.
50416         * doc/posix-functions/setsockopt.texi: Doc fix.
50417         * doc/posix-functions/shutdown.texi: Doc fix.
50418         * doc/posix-functions/socket.texi: Doc fix.
50419
50420 2008-10-20  Bruno Haible  <bruno@clisp.org>
50421
50422         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50423         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50424         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50425         as an alias for SIGABRT.
50426         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50427         (sigaction): Map it to SIGABRT.
50428         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50429
50430 2008-10-20  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/fts.c: Don't include lstat.h.
50433         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50434
50435         Move the lstat() declaration to <sys/stat.h>.
50436         * lib/lstat.h: Remove file.
50437         * lib/sys_stat.in.h: Add special invocation convention.
50438         (lstat): New declaration.
50439         * lib/lstat.c (orig_lstat): New function.
50440         (rpl_lstat): Use orig_lstat instead of lstat.
50441         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50442         AC_C_INLINE. Set REPLACE_LSTAT.
50443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50444         and REPLACE_LSTAT.
50445         * modules/lstat (Files): Remove lib/lstat.h.
50446         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50447         (Include): Specify <sys/stat.h> instead of lstat.h.
50448         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50449         REPLACE_LSTAT.
50450         * NEWS: Mention the change.
50451
50452 2008-10-20  Bruno Haible  <bruno@clisp.org>
50453
50454         * modules/posix_spawn-tests: New file.
50455         * tests/test-posix_spawn3.c: New file.
50456
50457 2008-10-20  Bruno Haible  <bruno@clisp.org>
50458
50459         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50460         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50461         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50462         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50463         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50464
50465 2008-10-20  Bruno Haible  <bruno@clisp.org>
50466
50467         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50468         of posix_spawn on AIX 5.3.
50469
50470 2008-10-20  Bruno Haible  <bruno@clisp.org>
50471
50472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50473
50474 2008-10-20  Bruno Haible  <bruno@clisp.org>
50475
50476         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50477         of AC_LANG_PROGRAM.
50478
50479 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50480
50481         * lib/netdb.in.h: Don't define GNU specific constants until they
50482         are supported or needed.  Reported by Bruno Haible
50483         <bruno@clisp.org>.
50484
50485 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50486
50487         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50488
50489 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50490
50491         * lib/getaddrinfo.h: Remove file.
50492         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50493         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50494         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50495         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50496         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50497         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50498         * tests/test-getaddrinfo.c: Likewise.
50499         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50500         * NEWS: Mention change.
50501
50502 2008-10-19  Bruno Haible  <bruno@clisp.org>
50503
50504         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50505
50506 2008-10-19  Bruno Haible  <bruno@clisp.org>
50507
50508         * lib/wait-process.c: Include simply <sys/wait.h>.
50509         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50510         WIFSTOPPED): Remove fallback definitions.
50511         * modules/wait-process (Depends-on): Add sys_wait.
50512
50513         New module 'sys_wait'.
50514         * modules/sys_wait: New file.
50515         * lib/sys_wait.in.h: New file, partially copied from
50516         lib/wait-process.c.
50517         * m4/sys_wait_h.m4: New file.
50518         * doc/posix-headers/sys_wait.texi: Mention the new module.
50519
50520 2008-10-19  Bruno Haible  <bruno@clisp.org>
50521
50522         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50523
50524 2008-10-19  Bruno Haible  <bruno@clisp.org>
50525
50526         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50527         * lib/wait-process.c (WAIT_T): Remove type.
50528         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50529         (wait_subprocess): Update.
50530
50531 2008-10-19  Bruno Haible  <bruno@clisp.org>
50532
50533         New module 'atoll'.
50534         * modules/atoll: New file.
50535         * lib/stdlib.in.h (atoll): New declaration.
50536         * lib/atoll.c: New file, from glibc with modifications.
50537         * m4/atoll.m4: New file.
50538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50539         HAVE_ATOLL.
50540         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50541         * doc/posix-functions/atoll.texi: Mention the new module.
50542
50543 2008-10-19  Bruno Haible  <bruno@clisp.org>
50544
50545         Add strtoull() declaration to <stdlib.h>.
50546         * lib/stdlib.in.h (strtoull): New declaration.
50547         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50548         Set HAVE_STRTOULL.
50549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50550         HAVE_STRTOULL.
50551         * modules/strtoull (Depends-on): Add stdlib.
50552         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50553         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50554         HAVE_STRTOULL.
50555
50556 2008-10-19  Bruno Haible  <bruno@clisp.org>
50557
50558         Add strtoll() declaration to <stdlib.h>.
50559         * lib/stdlib.in.h (strtoll): New declaration.
50560         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50561         Set HAVE_STRTOLL.
50562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50563         HAVE_STRTOLL.
50564         * modules/strtoll (Depends-on): Add stdlib.
50565         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50566         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50567
50568 2008-10-19  Bruno Haible  <bruno@clisp.org>
50569
50570         * modules/bcopy (Depends-on): Add strings.
50571         (Include): Specify <strings.h>.
50572
50573 2008-10-19  Bruno Haible  <bruno@clisp.org>
50574
50575         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50576
50577 2008-10-19  Bruno Haible  <bruno@clisp.org>
50578
50579         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50580         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50581         mingw.
50582
50583 2008-10-19  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/atanl.c: Don't include isnanl.h.
50586         * lib/cosl.c: Likewise.
50587         * lib/ldexpl.c: Likewise.
50588         * lib/logl.c: Likewise.
50589         * lib/sinl.c: Likewise.
50590         * lib/sqrtl.c: Likewise.
50591         * lib/tanl.c: Likewise.
50592
50593         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50594         * lib/isnanf.h: Remove file.
50595         * lib/isnand.h: Remove file.
50596         * lib/isnanl.h: Remove file.
50597         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50598         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50599         macros.
50600         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50601         HAVE_ISNANF, don't define it as a C macro.
50602         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50603         HAVE_ISNAND, don't define it as a C macro.
50604         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50605         HAVE_ISNANL, don't define it as a C macro.
50606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50607         HAVE_ISNAN[FDL].
50608         * modules/isnanf (Files): Remove lib/isnanf.h.
50609         (Depends-on): Add math.
50610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50611         (Include): Specify <math.h> instead of isnanf.h.
50612         * modules/isnand (Files): Remove lib/isnand.h.
50613         (Depends-on): Add math.
50614         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50615         (Include): Specify <math.h> instead of isnand.h.
50616         * modules/isnanl (Files): Remove lib/isnanl.h.
50617         (Depends-on): Add math.
50618         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50619         (Include): Specify <math.h> instead of isnanl.h.
50620         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50621         HAVE_ISNAN[FDL].
50622         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50623         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50624         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50625         * NEWS: Mention the change.
50626
50627 2008-10-18  Bruno Haible  <bruno@clisp.org>
50628
50629         Add getusershell(), setusershell(), endusershell() declarations to
50630         <unistd.h>.
50631         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50632         declarations.
50633         * lib/getusershell.c: Include unistd.h.
50634         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50635         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50636         HAVE_GETUSERSHELL.
50637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50638         and HAVE_GETUSERSHELL.
50639         * modules/getusershell (Depends-on): Add unistd, extensions.
50640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50641         (Include): Specify <unistd.h>.
50642         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50643         HAVE_GETUSERSHELL.
50644
50645 2008-10-18  Bruno Haible  <bruno@clisp.org>
50646
50647         Add a getloadavg() declaration to <stdlib.h>.
50648         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50649         getloadavg declaration.
50650         (getloadavg): New declaration.
50651         * lib/getloadavg.c: Include <stdlib.h> first.
50652         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50653         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50654         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50656         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50657         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50658         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50659         (Include): Specify <stdlib.h>.
50660         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50661         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50662
50663 2008-10-18  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/dirchownmod.c: Don't include lchmod.h.
50666
50667         Move the lchmod() declaration to <sys/stat.h>.
50668         * lib/lchmod.h: Remove file.
50669         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50670         (lchmod): New declaration, moved here from lib/lchown.h.
50671         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50672         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50673         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50674         and HAVE_LCHMOD.
50675         * modules/lchmod (Files): Remove lib/lchmod.h.
50676         (Depends-on): Add sys_stat, extensions.
50677         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50678         (Include): Specify <sys/stat.h> instead of lchmod.h.
50679         * modules/sys_stat (Depends-on): Add link-warning.
50680         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50681         definition of GL_LINK_WARNING.
50682         * NEWS: Mention the change.
50683
50684 2008-10-18  Bruno Haible  <bruno@clisp.org>
50685
50686         * lib/fchdir.c: Don't include dirfd.h.
50687         * lib/fts.c: Likewise.
50688         * lib/getcwd.c: Likewise.
50689         * lib/glob.c: Likewise.
50690
50691         Move the dirfd() declaration to <dirent.h>.
50692         * lib/dirfd.h: Remove file.
50693         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50694         (dirfd): New declaration.
50695         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50696         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50697         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50698         HAVE_DECL_DIRFD.
50699         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50700         HAVE_DECL_DIRFD.
50701         * modules/dirfd (Files): Remove lib/dirfd.h.
50702         (Depends-on): Add dirent, extensions.
50703         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50704         (Include): Specify <dirent.h> instead of dirfd.h.
50705         * modules/dirent (Depends-on): Add link-warning.
50706         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50707         definition of GL_LINK_WARNING.
50708         * NEWS: Mention the change.
50709
50710 2008-10-18  Bruno Haible  <bruno@clisp.org>
50711
50712         Move the euidaccess() declaration to <unistd.h>.
50713         * lib/euidaccess.h: Remove file.
50714         * lib/unistd.in.h (euidaccess): New declaration.
50715         * lib/euidaccess.c: Don't include euidaccess.h.
50716         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50717         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50719         and HAVE_EUIDACCESS.
50720         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50721         (Depends-on): Add unistd.
50722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50723         (Include): Specify <unistd.h> instead of euidaccess.h.
50724         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50725         HAVE_EUIDACCESS.
50726         * NEWS: Mention the change.
50727
50728 2008-10-18  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50731
50732         Move the getdomainname() declaration to <unistd.h>.
50733         * lib/getdomainname.h: Remove file.
50734         * lib/unistd.in.h (getdomainname): New declaration.
50735         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50736         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50737         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50738         HAVE_GETDOMAINNAME.
50739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50740         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50741         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50742         (Depends-on): Add unistd, extensions.
50743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50744         (Includes): Specify <unistd.h> instead of getdomainname.h.
50745         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50746         HAVE_GETDOMAINNAME.
50747         * NEWS: Mention the change.
50748
50749 2008-10-18  Bruno Haible  <bruno@clisp.org>
50750
50751         * modules/dirent: New file.
50752         * m4/dirent_h.m4: New file.
50753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50754         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50755         * modules/fchdir (Files): Remove lib/dirent.in.h.
50756         (Depends-on): Add dirent.
50757         (Makefile.am): Move rules to modules/dirent.
50758         * doc/posix-headers/dirent.texi: Mention the new module.
50759
50760 2008-10-18  Bruno Haible  <bruno@clisp.org>
50761
50762         Avoid -Wunused-parameter warnings in public gnulib header files.
50763         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50764         macro.
50765         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50766
50767 2008-10-18  Bruno Haible  <bruno@clisp.org>
50768
50769         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50770         * doc/glibc-functions/error.texi: Mention the module 'error'.
50771         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50772         * doc/glibc-functions/getdomainname.texi: Mention the module
50773         'getdomainname'.
50774         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50775         * doc/glibc-functions/getpagesize.texi: Mention the module
50776         'getpagesize'.
50777         * doc/glibc-functions/getusershell.texi: Mention the module
50778         'getusershell'.
50779         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50780         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50781         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50782         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50783         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50784         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50785         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50786         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50787         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50788         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50789         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50790         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50791         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50792         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50793
50794 2008-10-17  Bruno Haible  <bruno@clisp.org>
50795
50796         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50797         HP-UX and IRIX, use -0.0L.
50798         * tests/test-ceill.c (minus_zero): Likewise.
50799         * tests/test-floorl.c (minus_zero): Likewise.
50800         * tests/test-frexpl.c (minus_zero): Likewise.
50801         * tests/test-isnan.c (minus_zerol): Likewise.
50802         * tests/test-isnanl.h (minus_zero): Likewise.
50803         * tests/test-ldexpl.c (minus_zero): Likewise.
50804         * tests/test-roundl.c (minus_zero): Likewise.
50805         * tests/test-signbit.c (minus_zerol): Likewise.
50806         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50807         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50808         * tests/test-truncl.c (minus_zero): Likewise.
50809         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50810         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50811         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50812         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50813
50814 2008-10-17  Bruno Haible  <bruno@clisp.org>
50815
50816         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50817         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50818         that it gets activated only for gcc >= 3.0.
50819         * lib/dirent.in.h: Likewise.
50820         * lib/errno.in.h: Likewise.
50821         * lib/fcntl.in.h: Likewise.
50822         * lib/float.in.h: Likewise.
50823         * lib/iconv.in.h: Likewise.
50824         * lib/inttypes.in.h: Likewise.
50825         * lib/locale.in.h: Likewise.
50826         * lib/math.in.h: Likewise.
50827         * lib/netdb.in.h: Likewise.
50828         * lib/netinet_in.in.h: Likewise.
50829         * lib/search.in.h: Likewise.
50830         * lib/signal.in.h: Likewise.
50831         * lib/spawn.in.h: Likewise.
50832         * lib/stdarg.in.h: Likewise.
50833         * lib/stdint.in.h: Likewise.
50834         * lib/stdio.in.h: Likewise.
50835         * lib/stdlib.in.h: Likewise.
50836         * lib/string.in.h: Likewise.
50837         * lib/strings.in.h: Likewise.
50838         * lib/sys_file.in.h: Likewise.
50839         * lib/sys_ioctl.in.h: Likewise.
50840         * lib/sys_select.in.h: Likewise.
50841         * lib/sys_socket.in.h: Likewise.
50842         * lib/sys_stat.in.h: Likewise.
50843         * lib/sys_time.in.h: Likewise.
50844         * lib/sysexits.in.h: Likewise.
50845         * lib/time.in.h: Likewise.
50846         * lib/unistd.in.h: Likewise.
50847         * lib/wchar.in.h: Likewise.
50848         * lib/wctype.in.h: Likewise.
50849         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50850
50851 2008-10-17  Jim Meyering  <meyering@redhat.com>
50852
50853         ignore-value: don't depend on inline module
50854         * modules/ignore-value (Depends-on): Remove 'inline'.
50855         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50856         Suggestion from Bruno Haible.
50857
50858 2008-10-17  Bruno Haible  <bruno@clisp.org>
50859
50860         New implementation of condition variables for Win32.
50861         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50862         (gl_linked_waitqueue_t): New type.
50863         (gl_cond_t): Use it.
50864         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50865         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50866         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50867         (glthread_cond_init_func, glthread_cond_wait_func,
50868         glthread_cond_timedwait_func, glthread_cond_signal_func,
50869         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50870         Reimplemented on the basis of gl_linked_waitqueue_t.
50871         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50872         gl_waitqueue_t.
50873         (gl_rwlock_t): Update.
50874         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50875
50876 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50877
50878         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50879         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50880
50881 2008-10-17  Jim Meyering  <meyering@redhat.com>
50882
50883         ignore-value: new module
50884         * modules/ignore-value: New file.
50885         * lib/ignore-value.h: New file.
50886         * MODULES.html.sh (Compiler warning management): New section,
50887         just for this module.  More to come.
50888
50889 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50892         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50893         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50894
50895 2008-10-16  Jim Meyering  <meyering@redhat.com>
50896
50897         openat-die.c: avoid 'no previous prototype' warning
50898         * lib/openat-die.c: Include "openat.h".
50899         Reported by Reuben Thomas <rrt@sc3d.org>.
50900
50901 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50902
50903         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50904         * lib/netdb.in.h: Fix typo.
50905         Reported by Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/netdb.in.h: Include sys/socket.h for platforms without
50908         netdb.h, to get structures like hostent on MinGW.
50909         * modules/netdb (Depends-on): Add sys_socket.
50910
50911 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50912
50913         * modules/netdb, modules/netdb-tests: New file.
50914         * m4/netdb_h.m4: New file.
50915         * lib/netdb.in.h: Add, currently just an empty file pending
50916         definitions.
50917         * tests/test-netdb.c: New file.
50918         * doc/posix-headers/netdb.texi: Mention that we replace it if
50919         needed.
50920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50921         netdb.
50922
50923 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50924
50925         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50926         with code.
50927
50928 2008-10-13  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/glthread/cond.c (glthread_cond_wait_func,
50931         glthread_cond_timedwait_func): Add a comment.
50932
50933 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50934
50935         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50936         * tests/test-select.c: Likewise,
50937
50938 2008-10-13  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/glthread/cond.c (glthread_cond_wait_func,
50941         glthread_cond_timedwait_func): Fix variable name.
50942         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50943
50944 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50945
50946         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50948         struct sockaddr.sa_len.
50949         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50950
50951 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50952
50953         * build-aux/pmccabe2html: Add css and css_url parameters.
50954
50955 2008-10-12  Bruno Haible  <bruno@clisp.org>
50956
50957         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50958         calling aclx_get.
50959         Reported by Rainer Tammer <tammer@tammer.net>.
50960
50961 2008-10-12  Bruno Haible  <bruno@clisp.org>
50962
50963         Use msvcrt aware primitives for creation/termination of Win32 threads.
50964         * lib/glthread/thread.c: Include <process.h>.
50965         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50966         (wrapper_func): Update signature.
50967         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50968
50969 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50970             Bruno Haible  <bruno@clisp.org>
50971
50972         Provide a Win32 implementation of the 'cond' module.
50973         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50974         * lib/glthread/cond.c (glthread_cond_init_func,
50975         glthread_cond_wait_func, glthread_cond_timedwait_func,
50976         glthread_cond_signal_func, glthread_cond_broadcast_func,
50977         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50978         * modules/cond (Dependencies): Add gettimeofday.
50979
50980 2008-10-11  Bruno Haible  <bruno@clisp.org>
50981
50982         Make sleep work on older versions of mingw.
50983         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50984         only whether it exists.
50985         * doc/posix-functions/sleep.texi: Mention the problem with older
50986         versions of mingw.
50987
50988 2008-10-11  Bruno Haible  <bruno@clisp.org>
50989
50990         New module 'shutdown'.
50991         * modules/shutdown: New file.
50992         * lib/sys_socket.in.h (shutdown): New declaration.
50993         * lib/winsock.c (shutdown): New function.
50994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50995         GNULIB_SHUTDOWN.
50996         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50997         * doc/posix-functions/shutdown.texi: Document the new module.
50998
50999 2008-10-11  Jim Meyering  <meyering@redhat.com>
51000
51001         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51002
51003 2008-10-11  Bruno Haible  <bruno@clisp.org>
51004
51005         New module 'fclose'.
51006         * modules/fclose: New file.
51007         * lib/stdio.in.h (fclose): New declaration.
51008         * lib/fclose.c: New file.
51009         * m4/fclose.m4: New file.
51010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51011         REPLACE_FCLOSE.
51012         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51013         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51014         REPLACE_FCLOSE.
51015         * modules/close (Depends-on): fclose.
51016         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51017
51018 2008-10-11  Bruno Haible  <bruno@clisp.org>
51019
51020         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51021         set errno and don't call _close.
51022
51023 2008-10-10  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51026         ACL, not afterwards. Fixes test failure on Cygwin.
51027
51028 2008-10-09  Ben Pfaff  <blp@gnu.org>
51029
51030         * build-aux/announce-gen: Fix gnulib version related part of usage
51031         message.  Die with a useful error message if no tarballs are
51032         found.
51033
51034 2008-10-10  Jim Meyering  <meyering@redhat.com>
51035
51036         bootstrap: use git's --depth=N option only if it's supported
51037         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51038         recognize the --depth option.  Reported by Pádraig Brady.
51039
51040 2008-10-09  Bruno Haible  <bruno@clisp.org>
51041
51042         New module 'ioctl'.
51043         * modules/ioctl: New file.
51044         * lib/sys_socket.in.h (ioctl): Remove declaration.
51045         * lib/winsock.c: Include <sys/ioctl.h>.
51046         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51047         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51048         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51049         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51050         * doc/posix-functions/ioctl.texi: Mention the new module.
51051
51052 2008-10-09  Bruno Haible  <bruno@clisp.org>
51053
51054         New module 'sys_ioctl'.
51055         * lib/sys_ioctl.in.h: New file.
51056         * m4/sys_ioctl_h.m4: New file.
51057         * modules/sys_ioctl: New file.
51058         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51059
51060 2008-10-09  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51063         * lib/winsock.c: Include <stdarg.h>.
51064         (rpl_ioctl): Change to second argument 'int' and then varargs.
51065
51066 2008-10-09  Bruno Haible  <bruno@clisp.org>
51067
51068         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51069         when the sys_socket module is present and the system has <winsock2.h>.
51070
51071 2008-10-09  Bruno Haible  <bruno@clisp.org>
51072
51073         * doc/posix-functions/close.texi: Mention module 'close' instead of
51074         module 'sys_socket'.
51075
51076 2008-10-09  Bruno Haible  <bruno@clisp.org>
51077
51078         * doc/glibc-headers/sys_ioctl.texi: New file.
51079         * doc/gnulib.texi: Include it.
51080
51081 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51082             Bruno Haible  <bruno@clisp.org>
51083
51084         Combine the two replacements of 'close'.
51085         * lib/sys_socket.in.h (close): Define to a reminder to include
51086         <unistd.h>.
51087         (_gl_close_fd_maybe_socket): New declaration.
51088         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51089         * lib/winsock.c (close): Remove undefinition.
51090         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51091         needed for the gnulib module 'close'.
51092         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51093         define to an error symbol or to a warning, if suitable.
51094         * lib/close.c: Include <sys/socket.h>.
51095         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51097         UNISTD_H_HAVE_WINSOCK2_H.
51098         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51100         UNISTD_H_HAVE_WINSOCK2_H.
51101         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51102         (configure.ac): Set a module indicator.
51103         (Makefile.am): Substitute GNULIB_CLOSE.
51104         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51105         * modules/poll-tests (Depends-on): Add close.
51106         * modules/select-tests (Depends-on): Likewise.
51107
51108 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51109             Bruno Haible  <bruno@clisp.org>
51110
51111         New module 'close'.
51112         * modules/close: New file.
51113         * lib/unistd.in.h (close): Move declaration out of the
51114         FCHDIR_REPLACEMENT scope.
51115         (_gl_unregister_fd): New declaration.
51116         * lib/close.c: New file.
51117         * lib/fchdir.c (rpl_close): Remove function.
51118         * m4/close.m4: New file.
51119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51120         close.
51121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51122         REPLACE_CLOSE.
51123         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51124         REPLACE_CLOSE.
51125         * modules/fchdir (Depends-on): Add close.
51126
51127 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51128             Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/fcntl.in.h (open): Simplify conditionals.
51131         (_gl_register_fd): New declaration.
51132         * lib/fchdir.c (rpl_open): Remove function.
51133         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51134         also.
51135         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51137         open.
51138
51139 2008-10-09  Jim Meyering  <meyering@redhat.com>
51140
51141         GNUmakefile: use the more name-space-friendly "_version"
51142         * top/GNUmakefile (_dummy): Update.
51143         (_version): Rename from "version".
51144
51145 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51146             Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51149         rpl_close.
51150         (_gl_register_fd): New function, extracted from rpl_open.
51151         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51152         (rpl_open, rpl_opendir): Use _gl_register_fd.
51153
51154 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51155
51156         Fix organization of 'open' replacement.
51157         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51158         (gl_FUNC_OPEN): Use it.
51159         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51160
51161 2008-10-08  Bruno Haible  <bruno@clisp.org>
51162
51163         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51164
51165 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51166
51167         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51168         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51169         listen).
51170
51171 2008-10-08  Eric Blake  <ebb9@byu.net>
51172
51173         GNUmakefile: add 'make version' target
51174         * top/GNUmakefile (_curr-ver): Split version update rules...
51175         (version): ...into a target.
51176
51177 2008-10-07  Bruno Haible  <bruno@clisp.org>
51178
51179         Use a more portable replacement expression for -0.0L.
51180         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51181         instead of -0.0L. Fix m4 quotation.
51182
51183         * tests/test-signbit.c: Include <float.h>.
51184         (minus_zero): New variable.
51185         (test_signbitl): Use minus_zero instead of -zero.
51186         * modules/signbit-tests (Depends-on): Add float.
51187
51188         * tests/test-ceill.c: Include <float.h>.
51189         (zero): Remove variable.
51190         (minus_zero): New variable.
51191         (main): Use minus_zero instead of -zero.
51192         * modules/ceill-tests (Depends-on): Add float.
51193
51194         * tests/test-floorl.c: Include <float.h>.
51195         (zero): Remove variable.
51196         (minus_zero): New variable.
51197         (main): Use minus_zero instead of -zero.
51198         * modules/floorl-tests (Depends-on): Add float.
51199
51200         * tests/test-roundl.c: Include <float.h>.
51201         (zero): Remove variable.
51202         (minus_zero): New variable.
51203         (main): Use minus_zero instead of -zero.
51204         * modules/roundl-tests (Depends-on): Add float.
51205
51206         * tests/test-truncl.c: Include <float.h>.
51207         (zero): Remove variable.
51208         (minus_zero): New variable.
51209         (main): Use minus_zero instead of -zero.
51210         * modules/truncl-tests (Depends-on): Add float.
51211
51212         * tests/test-frexpl.c (zero): Remove variable.
51213         (minus_zero): New variable.
51214         (main): Use minus_zero instead of -zero.
51215         * modules/frexpl-tests (Depends-on): Add float.
51216
51217         * tests/test-isnan.c (zerol): Remove variable.
51218         (minus_zerol): New variable.
51219         (test_long_double): Use minus_zerol instead of -zerol.
51220         * modules/isnan-tests (Depends-on): Add float.
51221
51222         * tests/test-isnanl.h (zero): Remove variable.
51223         (minus_zero): New variable.
51224         (main): Use minus_zero instead of -zero.
51225         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51226         * modules/isnanl-tests (Depends-on): Add float.
51227
51228         * tests/test-ldexpl.c (zero): Remove variable.
51229         (minus_zero): New variable.
51230         (main): Use minus_zero instead of -zero.
51231         * modules/ldexpl-tests (Depends-on): Add float.
51232
51233         * tests/test-snprintf-posix.h (zerol): Remove variable.
51234         (minus_zerol): New variable.
51235         (test_function): Use minus_zerol instead of -zerol.
51236         * modules/snprintf-posix-tests (Depends-on): Add float.
51237         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51238
51239         * tests/test-sprintf-posix.h (zerol): Remove variable.
51240         (minus_zerol): New variable.
51241         (test_function): Use minus_zerol instead of -zerol.
51242         * modules/sprintf-posix-tests (Depends-on): Add float.
51243         * modules/vsprintf-posix-tests (Depends-on): Add float.
51244
51245         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51246         (minus_zerol): New variable.
51247         (test_function): Use minus_zerol instead of -zerol.
51248         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51249
51250         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51251         (minus_zerol): New variable.
51252         (test_function): Use minus_zerol instead of -zerol.
51253         * modules/vasprintf-posix-tests (Depends-on): Add float.
51254
51255 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51256
51257         * MODULES.html.sh (Support for building documentation): Mention
51258         pmccabe2html.  Sort entries.
51259
51260         Add pmccabe2html module, from gnupdf.
51261         * build-aux/pmccabe.css: New file.
51262         * build-aux/pmccabe2html: New file.
51263         * m4/pmccabe2html.m4: New file.
51264         * modules/pmccabe2html: New file.
51265
51266 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51267
51268         flock: new module
51269         * MODULES.html.sh: Add to list of modules.
51270         * lib/flock.c: flock implementation for Windows and Unix systems
51271         which have fcntl.
51272         * doc/glibc-functions/flock.texi: Update documentation.
51273         * lib/sys_file.in.h: <sys/file.h> header file.
51274         * m4/flock.m4: M4 macros.
51275         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51276         * modules/flock: flock module.
51277         * modules/flock-tests: flock tests module.
51278         * modules/sys_file: sys/file.h module.
51279         * tests/test-flock.c: test suite for flock.
51280
51281 2008-10-06  Jim Meyering  <meyering@redhat.com>
51282
51283         bootstrap: check for LT_INIT more portably still ;-)
51284         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51285         Spotted by Bruno Haible.
51286
51287 2008-10-06  Eric Blake  <ebb9@byu.net>
51288
51289         test-signbit: avoid tripping Irix cc bug on -0.0L
51290         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51291         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51292         entire testsuite consistent and avoids an Irix 6.2 bug.
51293
51294 2008-10-05  Bruno Haible  <bruno@clisp.org>
51295             Jim Meyering  <jim@meyering.net>
51296
51297         Add an option for ignoring EPIPE during close_stdout.
51298         * lib/closeout.h: Include <stdbool.h>.
51299         (close_stdout_set_ignore_EPIPE): New declaration.
51300         * lib/closeout.c: Include <stdbool.h>.
51301         (ignore_EPIPE): New variable.
51302         (close_stdout_set_ignore_EPIPE): New function.
51303         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51304         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51305         failure.
51306         * modules/closeout (Depends-on): Add stdbool.
51307
51308 2008-10-05  Bruno Haible  <bruno@clisp.org>
51309
51310         * modules/accept: New file.
51311         * modules/bind: New file.
51312         * modules/connect: New file.
51313         * modules/getpeername: New file.
51314         * modules/getsockname: New file.
51315         * modules/getsockopt: New file.
51316         * modules/listen: New file.
51317         * modules/recv: New file.
51318         * modules/recvfrom: New file.
51319         * modules/send: New file.
51320         * modules/sendto: New file.
51321         * modules/setsockopt: New file.
51322         * modules/socket: New file.
51323         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51324         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51325         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51326         the particular module is requested. Add a link warning when the
51327         particular module is not requested.
51328         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51329         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51330         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51331         the particular module is requested.
51332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51333         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51334         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51335         * modules/sys_socket (Depends-on): Add link-warning.
51336         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51337         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51338         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51339         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51340         GL_LINK_WARNING.
51341         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51342         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51343         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51344         * doc/posix-functions/getpeername.texi: Mention the new module
51345         'getpeername'.
51346         * doc/posix-functions/getsockname.texi: Mention the new module
51347         'getsockname'.
51348         * doc/posix-functions/getsockopt.texi: Mention the new module
51349         'getsockopt'.
51350         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51351         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51352         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51353         * doc/posix-functions/send.texi: Mention the new module 'send'.
51354         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51355         * doc/posix-functions/setsockopt.texi: Mention the new module
51356         'setsockopt'.
51357         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51358         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51359         listen, connect, accept.
51360         * modules/select-tests (Depends-on): Likewise.
51361
51362 2008-10-05  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/winsock.c (strerror): Remove unused #undef.
51365         (rpl_close): Remove unused local variable.
51366
51367         * modules/sys_socket (Depends-on); Add errno.
51368
51369 2008-10-05  Bruno Haible  <bruno@clisp.org>
51370
51371         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51372         (select): Add a link warning when the 'select' module is not used.
51373         * modules/sys_select (Depends-on): Add link-warning.
51374         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51375         Suggested by Paolo Bonzini.
51376
51377 2008-10-05  Jim Meyering  <meyering@redhat.com>
51378
51379         bootstrap: check for LT_INIT more portably
51380         * build-aux/bootstrap: Avoid using grep -E, since it's not
51381         portable enough.  Suggestion from Bruno Haible.
51382
51383 2008-10-05  Bruno Haible  <bruno@clisp.org>
51384
51385         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51386         as being fixed by gnulib.
51387
51388 2008-10-05  Bruno Haible  <bruno@clisp.org>
51389
51390         * modules/select-tests: New file, mostly copied from
51391         modules/sys_select-tests.
51392         * tests/test-select.c: New file, mostly copied from
51393         tests/test-sys_select.c.
51394         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51395         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51396         (Makefile.am): Remove test_sys_select_LDADD.
51397
51398         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51399         to an undefined symbol, for an error message.
51400         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51401         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51402         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51403         winsock-select.c here.
51404         * modules/sys_select (Files): Remove lib/winsock-select.c.
51405         (Depends-on): Remove alloca.
51406         (Makefile.am): Substitute GNULIB_SELECT.
51407         * modules/select: New file.
51408         * doc/posix-functions/select.texi: Update.
51409
51410 2008-10-05  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51413         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51414         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51415         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51416         getdtablesize.
51417         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51418         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51419
51420 2008-10-05  Bruno Haible  <bruno@clisp.org>
51421
51422         * modules/getdtablesize-tests: New file.
51423         * tests/test-getdtablesize.c: New file.
51424
51425         New module 'getdtablesize'.
51426         * lib/unistd.in.h (getdtablesize): New declaration.
51427         * lib/getdtablesize.c: New file.
51428         * m4/getdtablesize.m4: New file.
51429         * modules/getdtablesize: New file.
51430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51431         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51432         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51433         HAVE_GETDTABLESIZE.
51434         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51435
51436 2008-10-05  Bruno Haible  <bruno@clisp.org>
51437
51438         * modules/sched (Makefile.am): Fix typo.
51439         Reported by Simon Josefsson.
51440
51441 2008-10-05  Jim Meyering  <meyering@redhat.com>
51442
51443         bootstrap: check for LT_INIT, too
51444         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51445         are deprecated.  Suggestion from Ralf Wildenhues.
51446
51447 2008-10-05  Bruno Haible  <bruno@clisp.org>
51448
51449         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51450         overriding them by ours.
51451         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51452
51453 2008-10-05  Jim Meyering  <meyering@redhat.com>
51454
51455         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51456         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51457         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51458
51459 2008-10-04  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/dup2 (License): Change to LGPLv2+.
51462         * modules/sleep (License): Likewise.
51463         * modules/perror (License): Likewise.
51464         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51465         Blake.
51466         * modules/signal (License): Likewise.
51467         * modules/sigprocmask (License): Likewise.
51468         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51469         Meyering.
51470
51471 2008-10-04  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51474         Reported by Rainer Tammer <tammer@tammer.net>.
51475
51476 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51477             Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51480         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51481         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51482
51483 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51484
51485         filevercmp: new module
51486         * lib/filevercmp.h: New function filevercmp comparing version strings.
51487         * lib/filevercmp.c: Implementation of filevercmp function.
51488         * modules/filevercmp: Module metadata.
51489         * tests/test-filevercmp.c: Unit test for new module.
51490         * modules/filevercmp-tests: Unit test metadata.
51491         * MODULES.html.sh: Add filevercmp module.
51492
51493 2008-10-03  Bruno Haible  <bruno@clisp.org>
51494
51495         * lib/c-ctype.h: Add comment.
51496         Reported by Jim Meyering.
51497
51498 2008-10-02  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51501
51502 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51503
51504         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51505         name of bootstrap.conf accordingly.
51506
51507 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51508
51509         * build-aux/bootstrap: Install git-merge-changelog configuration
51510         items into .gitconfig if needed.
51511
51512 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51513
51514         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51515         git repository, and initialize/update it accordingly.
51516
51517 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51518
51519         * modules/fsync-tests: New file.
51520         * tests/test-fsync.c: New file.
51521
51522         New module 'fsync'.
51523         * lib/fsync.c: New file.
51524         * m4/fsync.m4: New file.
51525         * modules/fsync: New file.
51526         * lib/unistd.in.h (fsync): New declaration.
51527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51528         GNULIB_FSYNC and HAVE_FSYNC.
51529         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51530         * MODULES.html.sh (posix_functions): Add fsync.
51531         * doc/posix-functions/fsync.texi: Mention the new module.
51532
51533 2008-10-02  Jim Meyering  <meyering@redhat.com>
51534
51535         fts.c: sync with similar code from coreutils' remove.c
51536         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51537         Guard also with "#if defined __linux__", since for now at least,
51538         this code is Linux-kernel-specific.
51539
51540 2008-10-02  Jim Meyering  <meyering@redhat.com>
51541
51542         fts: bug fixes
51543         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51544         Include <sys/vfs.h>, not <sys/statfs.h>.
51545
51546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51547         Include <sys/vfs.h>, not <sys/statfs.h>.
51548
51549 2008-10-01  Bruno Haible  <bruno@clisp.org>
51550
51551         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51552         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51553         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51554         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51555         * doc/posix-functions/posix_spawnp.texi: Likewise.
51556         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51557         whether posix_spawn actually works.
51558         * m4/pipe.m4 (gl_PIPE): Likewise.
51559         * modules/execute (Files): Add m4/posix_spawn.m4.
51560         * modules/pipe (Files): Add m4/posix_spawn.m4.
51561         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51562
51563 2008-10-01  Jim Meyering  <meyering@redhat.com>
51564
51565         remove trailing spaces
51566         * NEWS: Likewise.
51567         * lib/poll.c (poll): Likewise.
51568         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51569         * lib/winsock.c (rpl_close): Likewise.
51570         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51571         * modules/yield: Likewise.
51572         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51573         * tests/test-sys_select.c (connect_to_socket): Likewise.
51574
51575         fts.c: adjust a new interface to be more generally useful
51576         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51577         (fts_build): Adjust caller.
51578
51579 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51580
51581         * modules/cond-tests: New file.
51582         * tests/test-cond.c: New file.
51583
51584 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51585             Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/cond (Dependencies): Add errno, time.
51588         * lib/glthread/cond.h: Include <time.h>.
51589         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51590         across platforms.
51591
51592 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51593             Bruno Haible  <bruno@clisp.org>
51594
51595         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51596
51597 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51598             Bruno Haible  <bruno@clisp.org>
51599
51600         * modules/tls-tests (Depends-on): Add thread, yield.
51601         (configure.ac): Remove all checks.
51602         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51603         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51604         gl_thread_self): Remove definitions. Include glthread/thread.h and
51605         glthread/yield.h instead.
51606         (test_tls): Pass an additional NULL argument to gl_thread_join.
51607
51608 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51609             Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/lock-tests (Depends-on): Add thread, yield.
51612         (configure.ac): Remove all checks.
51613         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51614         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51615         gl_thread_self): Remove definitions. Include glthread/thread.h and
51616         glthread/yield.h instead.
51617         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51618         additional NULL argument to gl_thread_join.
51619
51620 2008-09-30  Bruno Haible  <bruno@clisp.org>
51621
51622         Fix the Win32 implementation of the 'thread' module.
51623         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51624         pointer type.
51625         (gl_thread_self): Invoke gl_thread_self_func.
51626         (gl_thread_self_func): New declaration.
51627         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51628         (do_init_self_key, init_self_key): New functions.
51629         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51630         Remove some fields.
51631         (running_threads, running_lock): Remove variables.
51632         (get_current_thread_handle): New function.
51633         (gl_thread_self_func, wrapper_func, glthread_create_func,
51634         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51635         simplified.
51636
51637 2008-09-30  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51640         files.
51641
51642 2008-09-30  Jim Meyering  <meyering@redhat.com>
51643
51644         fts.m4: correct the test for statfs.f_type
51645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51646         when checking for statfs.f_type.
51647
51648 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51649
51650         tests: avoid some compiler warnings
51651         * tests/test-memchr.c (main): Pass NULL indirectly.
51652         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51653
51654 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51655
51656         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51657         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51658         exactly specified dayshifts.
51659         (dayshift): New rule.
51660         (rel): Add dayshift.
51661         (relative_time_table) [tomorrow, yesterday, today, now]:
51662         Use tDAY_SHIFT in place of tDAY_UNIT.
51663         * tests/test-getdate.c: Add tests for now-disallowed countable
51664         dayshifts, e.g., "4 yesterday ago".
51665
51666 2008-09-29  Bruno Haible  <bruno@clisp.org>
51667
51668         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51669         * tests/test-posix_spawn1.in.sh: Renamed from
51670         tests/test-posix_spawn.in.sh.
51671         * tests/test-posix_spawn2.c: New file.
51672         * tests/test-posix_spawn2.in.sh: New file.
51673         * modules/posix_spawnp-tests (Files): Update.
51674         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51675
51676 2008-09-29  Bruno Haible  <bruno@clisp.org>
51677
51678         Propagate effects of putenv/setenv/unsetenv to child processes.
51679         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51680         * lib/pipe.c (create_pipe): Likewise.
51681
51682 2008-09-29  Bruno Haible  <bruno@clisp.org>
51683
51684         Enable use of shell scripts as executables in mingw.
51685         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51686         run the program as a shell script.
51687         * lib/pipe.c (create_pipe): Likewise.
51688         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51689         resulting array.
51690
51691 2008-09-29  Eric Blake  <ebb9@byu.net>
51692
51693         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51694
51695 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51696
51697         * doc/posix-functions/accept.texi: Update mingw problems.
51698         * doc/posix-functions/bind.texi: Update mingw problems.
51699         * doc/posix-functions/close.texi: Update mingw problems.
51700         * doc/posix-functions/connect.texi: Update mingw problems.
51701         * doc/posix-functions/getpeername.texi: Update mingw problems.
51702         * doc/posix-functions/getsockname.texi: Update mingw problems.
51703         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51704         * doc/posix-functions/ioctl.texi: Update mingw problems.
51705         * doc/posix-functions/listen.texi: Update mingw problems.
51706         * doc/posix-functions/recv.texi: Update mingw problems.
51707         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51708         * doc/posix-functions/select.texi: Update mingw problems.
51709         * doc/posix-functions/send.texi: Update mingw problems.
51710         * doc/posix-functions/sendto.texi: Update mingw problems.
51711         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51712         * doc/posix-functions/socket.texi: Update mingw problems.
51713
51714 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51715             Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/sys_select.in.h: Include sys/time.h.
51718         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51719         * modules/sys_select: Depend on sys_time.
51720         * tests/test-sys_select.c: Test that sys/select.h defines struct
51721         timeval fully.
51722
51723 2008-09-29  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51726         * lib/sys_select.in.h: Likewise.
51727
51728 2008-09-29  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51731
51732 2008-09-29  Bruno Haible  <bruno@clisp.org>
51733
51734         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51735         Set LIBSOCKET instead of augmenting LIBS.
51736         * modules/sockets (Link): New section.
51737         * modules/sockets-tests (test_sockets_LDADD): New variable.
51738         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51739         * modules/poll-tests (test_poll_LDADD): New variable.
51740         * NEWS: Document the change.
51741
51742 2008-09-29  Bruno Haible  <bruno@clisp.org>
51743
51744         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51745         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51746         ARPA_INET_H directly.
51747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51748
51749 2008-09-28  Bruno Haible  <bruno@clisp.org>
51750
51751         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51752         from gl_HEADER_SYS_SOCKET.
51753         (gl_HEADER_SYS_SOCKET): Invoke it.
51754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51755
51756 2008-09-28  Bruno Haible  <bruno@clisp.org>
51757
51758         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51759         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51760         Needed on OSF/1 4.0.
51761
51762 2008-09-28  Bruno Haible  <bruno@clisp.org>
51763
51764         Override open more carefully.
51765         * lib/open.c (orig_open): New function.
51766         (rpl_open): Use orig_open instead of open.
51767         * lib/fcntl.in.h: Add special invocation convention.
51768         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51769         (gl_FUNC_OPEN): Invoke it.
51770
51771         Override freopen more carefully.
51772         * lib/freopen.c (orig_freopen): New function.
51773         (rpl_freopen): Use orig_freopen instead of freopen.
51774         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51775         (gl_FUNC_FREOPEN): Invoke it.
51776
51777         Override fopen more carefully.
51778         * lib/fopen.c (orig_fopen): New function.
51779         (rpl_fopen): Use orig_fopen instead of fopen.
51780         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51781         (gl_FUNC_FOPEN): Invoke it.
51782         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51783
51784 2008-09-28  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51787         SIGPIPE.
51788
51789 2008-09-28  Bruno Haible  <bruno@clisp.org>
51790
51791         * tests/test-sigaction.c (handler, main): Disable the check whether
51792         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51793         glibc systems with LinuxThreads.
51794
51795 2008-09-28  Bruno Haible  <bruno@clisp.org>
51796
51797         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51798
51799         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51800         with AIX xlc.
51801         * lib/fcntl.in.h (open): Likewise.
51802         Reported by Rainer Tammer <tammer@tammer.net>.
51803
51804 2008-09-28  Bruno Haible  <bruno@clisp.org>
51805
51806         * modules/posix_spawnp-tests: New file.
51807         * tests/test-posix_spawn.c: New file.
51808         * tests/test-posix_spawn.in.sh: New file.
51809
51810         New module 'posix_spawnp'.
51811         * modules/posix_spawnp: New file.
51812         * lib/spawnp.c: New file, from GNU libc with modifications.
51813         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51814
51815         New module 'posix_spawn'.
51816         * modules/posix_spawn: New file.
51817         * lib/spawn.c: New file, from GNU libc with modifications.
51818         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51819
51820         New module 'posix_spawnattr_destroy'.
51821         * modules/posix_spawnattr_destroy: New file.
51822         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51823         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51824         module.
51825
51826         New module 'posix_spawnattr_setsigmask'.
51827         * modules/posix_spawnattr_setsigmask: New file.
51828         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51829         modifications.
51830         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51831         new module.
51832
51833         New module 'posix_spawnattr_getsigmask'.
51834         * modules/posix_spawnattr_getsigmask: New file.
51835         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51836         modifications.
51837         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51838         new module.
51839
51840         New module 'posix_spawnattr_setsigdefault'.
51841         * modules/posix_spawnattr_setsigdefault: New file.
51842         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51843         modifications.
51844         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51845         new module.
51846
51847         New module 'posix_spawnattr_getsigdefault'.
51848         * modules/posix_spawnattr_getsigdefault: New file.
51849         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51850         modifications.
51851         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51852         new module.
51853
51854         New module 'posix_spawnattr_setschedpolicy'.
51855         * modules/posix_spawnattr_setschedpolicy: New file.
51856         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51857         modifications.
51858         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51859         new module.
51860
51861         New module 'posix_spawnattr_getschedpolicy'.
51862         * modules/posix_spawnattr_getschedpolicy: New file.
51863         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51864         modifications.
51865         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51866         new module.
51867
51868         New module 'posix_spawnattr_setschedparam'.
51869         * modules/posix_spawnattr_setschedparam: New file.
51870         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51871         modifications.
51872         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51873         new module.
51874
51875         New module 'posix_spawnattr_getschedparam'.
51876         * modules/posix_spawnattr_getschedparam: New file.
51877         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51878         modifications.
51879         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51880         new module.
51881
51882         New module 'posix_spawnattr_setpgroup'.
51883         * modules/posix_spawnattr_setpgroup: New file.
51884         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51885         modifications.
51886         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51887         module.
51888
51889         New module 'posix_spawnattr_getpgroup'.
51890         * modules/posix_spawnattr_getpgroup: New file.
51891         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51892         modifications.
51893         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51894         module.
51895
51896         New module 'posix_spawnattr_setflags'.
51897         * modules/posix_spawnattr_setflags: New file.
51898         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51899         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51900         module.
51901
51902         New module 'posix_spawnattr_getflags'.
51903         * modules/posix_spawnattr_getflags: New file.
51904         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51905         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51906         module.
51907
51908         New module 'posix_spawnattr_init'.
51909         * modules/posix_spawnattr_init: New file.
51910         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51911         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51912         module.
51913
51914         New module 'posix_spawn_file_actions_destroy'.
51915         * modules/posix_spawn_file_actions_destroy: New file.
51916         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51917         modifications.
51918         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51919         the new module.
51920
51921         New module 'posix_spawn_file_actions_addopen'.
51922         * modules/posix_spawn_file_actions_addopen: New file.
51923         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51924         modifications.
51925         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51926         the new module.
51927
51928         New module 'posix_spawn_file_actions_adddup2'.
51929         * modules/posix_spawn_file_actions_adddup2: New file.
51930         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51931         modifications.
51932         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51933         the new module.
51934
51935         New module 'posix_spawn_file_actions_addclose'.
51936         * modules/posix_spawn_file_actions_addclose: New file.
51937         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51938         modifications.
51939         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51940         the new module.
51941
51942         New module 'posix_spawn_file_actions_init'.
51943         * modules/posix_spawn_file_actions_init: New file.
51944         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51945         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51946         new module.
51947
51948         New module 'posix_spawn-internal'.
51949         * modules/posix_spawn-internal: New file.
51950         * lib/spawn_int.h: New file, from GNU libc with modifications.
51951         * lib/spawni.c: New file, from GNU libc with modifications.
51952         * m4/posix_spawn.m4: New file.
51953
51954         New module 'spawn'.
51955         * modules/spawn: New file.
51956         * lib/spawn.in.h: New file, from GNU libc with modifications.
51957         * m4/spawn_h.m4: New file.
51958         * doc/posix-headers/spawn.texi: Mention the new module.
51959
51960 2008-09-28  Bruno Haible  <bruno@clisp.org>
51961
51962         * modules/sched-tests: New file.
51963         * tests/test-sched.c: New file.
51964
51965         New module 'sched'.
51966         * modules/sched: New file.
51967         * lib/sched.in.h: New file.
51968         * m4/sched_h.m4: New file.
51969         * doc/posix-headers/sched.texi: Mention the new module.
51970
51971 2008-09-27  Eric Blake  <ebb9@byu.net>
51972
51973         Fix previous patch, and tweak references to $0.
51974         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51975         (func_version, func_gnulib_dir): Don't call this program
51976         gnulib-tool.
51977         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51978         with using $0 in function.
51979         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51980         (func_fatal_error): Reuse the name the user invoked us with.
51981
51982 2008-09-27  Bruno Haible  <bruno@clisp.org>
51983
51984         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51985         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51986         (gl_ICONV_H): Not here.
51987         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51988         instead of assigning ICONV_H directly.
51989
51990         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51992         WCHAR_H directly.
51993
51994 2008-09-27  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51997         * modules/arpa_inet (Depends-on): Add link-warning.
51998         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51999         * modules/unistd (Makefile.am): Likewise.
52000
52001 2008-09-26  Bruno Haible  <bruno@clisp.org>
52002
52003         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52004         variables.
52005         (func_version): Essentially copied from gnulib-tool.
52006         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52007         func_readlink): Copied from gnulib-tool.
52008
52009 2008-09-26  Bruno Haible  <bruno@clisp.org>
52010
52011         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52012         invoking git-version-gen.
52013
52014 2008-09-26  Bruno Haible  <bruno@clisp.org>
52015
52016         * posix-modules: Update to directory names changed on 2008-01-19.
52017         Remove commas in output before splitting into words. No more need to
52018         avoid 'ftruncate' since 2007-02-19.
52019
52020 2008-09-26  Bruno Haible  <bruno@clisp.org>
52021
52022         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52023
52024 2008-09-26  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52027         * modules/fwriteerror (Depends-on): Add errno.
52028
52029 2008-09-26  Bruno Haible  <bruno@clisp.org>
52030
52031         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52032         * tests/test-vc-list-files-cvs.sh: Likewise.
52033
52034 2008-09-26  Bruno Haible  <bruno@clisp.org>
52035
52036         * doc/posix-headers/sys_resource.texi: Reorder items.
52037
52038 2008-09-26  Jim Meyering  <meyering@redhat.com>
52039
52040         fts: tweak inode comparison function
52041         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52042         inode numbers, as documented.
52043
52044         fts: sort dirent entries on inode number before traversing
52045         This avoids a quadratic, seek-related performance penalty when
52046         operating on a directory containing many entries (measurable at 10k;
52047         3.5 hours at 2 million entries with a cold cache) on certain types
52048         of file systems, including ext3 and ext4, but not tmpfs.
52049         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52050         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52051         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52052         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52053         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52054         (fts_build): Set the stat.st_ino member from D_INO.
52055         If it is likely to be useful, sort dirent entries on inode number.
52056
52057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52058         and the struct statfs.f_type member.
52059         * modules/fts (Depends-on): Add d-ino.
52060
52061 2008-09-26  Bruno Haible  <bruno@clisp.org>
52062
52063         * modules/sigpipe-die (Depends-on): Add sigpipe.
52064
52065         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52066         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52067         and GNULIB_STDIO_H_SIGPIPE are set.
52068         * lib/stdio-write.c: New file.
52069         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52070         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52071         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52072         REPLACE_STDIO_WRITE_FUNCS.
52073         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52074         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52075         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52076         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52077         * modules/stdio (Files): Add lib/stdio-write.c.
52078         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52079         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52080         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52081         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52082         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52083         REPLACE_FPRINTF_POSIX.
52084         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52085         REPLACE_PRINTF_POSIX.
52086         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52087         REPLACE_VFPRINTF_POSIX.
52088         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52089         REPLACE_VPRINTF_POSIX.
52090         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52091         SIGPIPE issue.
52092         * doc/posix-functions/fputc.texi: Likewise.
52093         * doc/posix-functions/fputs.texi: Likewise.
52094         * doc/posix-functions/fwrite.texi: Likewise.
52095         * doc/posix-functions/printf.texi: Likewise.
52096         * doc/posix-functions/putc.texi: Likewise.
52097         * doc/posix-functions/putchar.texi: Likewise.
52098         * doc/posix-functions/puts.texi: Likewise.
52099         * doc/posix-functions/vfprintf.texi: Likewise.
52100         * doc/posix-functions/vprintf.texi: Likewise.
52101
52102         * modules/safe-write (Depends-on): Add write.
52103
52104         * modules/sigpipe-tests: New file.
52105         * tests/test-sigpipe.c: New file.
52106         * tests/test-sigpipe.sh: New file.
52107
52108         * modules/write: New file.
52109         * lib/unistd.in.h: Include <sys/types.h>.
52110         (write): New declaration.
52111         * lib/write.c: New file.
52112         * m4/write.m4: New file.
52113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52114         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52115         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52116         GNULIB_WRITE, REPLACE_WRITE.
52117         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52118         and the SIGPIPE issue.
52119
52120         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52121         (raise): New declaration.
52122         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52123         (ext_signal): New function.
52124         (rpl_raise): New function.
52125         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52126         GNULIB_SIGNAL_H_SIGPIPE.
52127         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52128         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52129
52130         * modules/sigpipe: New file.
52131         * m4/sigpipe.m4: New file.
52132
52133 2008-09-25  Derek Price  <derek@ximbiot.com>
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * gnulib-tool (func_import): Report all license incompatibilities, not
52137         just the first one.
52138
52139 2008-09-25  Bruno Haible  <bruno@clisp.org>
52140
52141         * gnulib-tool (func_import): When computing the edits, consider not
52142         only the Makefile.ams that exist but also those that will be generated.
52143
52144 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52145
52146         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52147         fixes gnulib-tool --test warning about duplicate dependency.
52148
52149 2008-09-25  Bruno Haible  <bruno@clisp.org>
52150
52151         * gnulib-tool: Don't ask the user to perform edits in the generated
52152         Makefile.ams.
52153         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52154         apply to the Makefile.am being generated.
52155         (func_emit_tests_Makefile_am): Execute edits that apply to the
52156         Makefile.am being generated.
52157         (func_import): Setup list of Makefile.am edits before emitting the
52158         Makefile.ams, not at the end.
52159         (func_create_testdir): Update.
52160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52161
52162 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52163
52164         * gnulib-tool (func_import): Store the --tests-base option in the
52165         comment in gnulib-cache.m4.
52166
52167 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52168
52169         * NEWS: Document increased portability that sys_select now provides.
52170
52171         * lib/sys_select.in.h: Install select wrapper.
52172         * lib/sys_socket.in.h: Use more descriptive name when there is no
52173         select wrapper.
52174         * lib/winsock-select.c: New.
52175         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52176         Require gl_HEADER_SYS_SOCKET.
52177         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52178         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52179         * tests/test-sys_select.c: Add functional tests.
52180
52181 2008-09-24  Eric Blake  <ebb9@byu.net>
52182
52183         open, fopen: close fd leak in last patch
52184         * lib/open.c (rpl_open): Close fd before returning error.
52185         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52186         * doc/posix-functions/open.texi (open): Document that Irix also
52187         has the bug.
52188         * doc/posix-functions/fopen.texi (fopen): Likewise.
52189         Reported by Paolo Bonzini.
52190
52191 2008-09-24  Bruno Haible  <bruno@clisp.org>
52192
52193         Ensure that a filename ending in a slash cannot be used to access a
52194         non-directory.
52195         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52196         to check whether it's really a directory.
52197         * lib/fopen.c: Include fcntl.h, unistd.h.
52198         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52199         and fdopen().
52200         * modules/fopen (Depends-on): Add unistd.
52201         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52202         * tests/test-fopen.c (main): Likewise.
52203         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52204         * doc/posix-functions/fopen.texi: Likewise.
52205         Reported by Eric Blake.
52206
52207 2008-09-23  Eric Blake  <ebb9@byu.net>
52208
52209         c-stack: avoid compiler optimizations when provoking overflow
52210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52211         recursion harder to optimize, to ensure a stack overflow occurs.
52212         * tests/test-c-stack.c (recurse): Likewise.
52213         Borrowed from libsigsegv.
52214
52215         c-stack: work around Irix sigaltstack bug
52216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52217         whether sigaltstack uses wrong end of stack_t (copied in part from
52218         libsigsegv).
52219         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52220         Irix bug, without requiring an over-allocation.
52221         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52222         bug.
52223
52224         fopen: document mingw bug on directories
52225         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52226         not allowing a stream visiting a directory, even though reading
52227         from such a stream is not portable.
52228
52229 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52230
52231         * lib/poll.c: Rewrite.
52232         * modules/poll: Depend on alloca.
52233
52234 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52235
52236         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52237         instead define prototypes for a full set of wrappers.  Ensure
52238         that Cygwin does not use the compatibility code, which is only
52239         for MinGW.
52240         * lib/winsock.c: New.
52241         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52242         * modules/sys_socket: Add lib/winsock.c.
52243
52244         * modules/poll-tests: Add errno and perror.
52245         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52246
52247 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52248
52249         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52250
52251 2008-09-23  Bruno Haible  <bruno@clisp.org>
52252
52253         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52254         * doc/glibc-functions/*: Likewise.
52255
52256 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52257
52258         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52259         success.
52260
52261 2008-09-22  Eric Blake  <ebb9@byu.net>
52262             Bruno Haible  <bruno@clisp.org>
52263
52264         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52265         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52266         supply %A but mishandle pseudo-NaN.
52267         Reported by Simon Josefsson.
52268
52269 2008-09-21  Bruno Haible  <bruno@clisp.org>
52270
52271         * tests/test-lock.c (main): Tweak skip message.
52272         * tests/test-tls.c (main): Likewise.
52273
52274 2008-09-21  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52277         whether 'struct sigaction' has sa_sigaction here...
52278         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52279         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52280
52281 2008-09-21  Bruno Haible  <bruno@clisp.org>
52282
52283         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52284         section.
52285         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52286         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52287         the new section.
52288         (Support for obsolete systems lacking POSIX:2001): New section.
52289         (String handling <string.h>): Move strdup to the new section.
52290         Suggested by Simon Josefsson and Paolo Bonzini.
52291
52292 2008-09-21  Bruno Haible  <bruno@clisp.org>
52293
52294         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52295         exponents in %e and %g results on 'long double'. Needed for mingw's
52296         improved *printf functions.
52297         * tests/test-vasprintf-posix.c (test_function): Likewise.
52298         * tests/test-snprintf-posix.h (test_function): Likewise.
52299         * tests/test-sprintf-posix.h (test_function): Likewise.
52300         Reported by Eric Blake.
52301
52302 2008-09-21  Bruno Haible  <bruno@clisp.org>
52303
52304         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52305         * tests/test-sprintf-posix.h (test_function): Likewise.
52306
52307 2008-09-21  Bruno Haible  <bruno@clisp.org>
52308
52309         * modules/getpass (Depends-on): Add strdup-posix.
52310
52311         New module 'strdup-posix'.
52312         * modules/strdup-posix: New file.
52313         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52314         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52316         REPLACE_STRDUP.
52317         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52318         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52320         strdup-posix.
52321
52322         * modules/strdup (Depends-on): Remove malloc-posix.
52323
52324 2008-09-20  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52327         Wildenhues.
52328
52329 2008-09-20  Bruno Haible  <bruno@clisp.org>
52330
52331         Ensure that wint_t gets defined on IRIX 5.3.
52332         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52333         * lib/wctype.in.h (wint_t): Likewise.
52334         (__wctype_wint_t): Remove type.
52335         (isw*): Use wint_t instead of __wctype_wint_t.
52336         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52337         * modules/wchar (Files): Add m4/wint_t.m4.
52338         (Makefile.am): Substitute HAVE_WINT_T.
52339         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52340         * tests/test-wctype.c: Check that wint_t is defined.
52341         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52342         * doc/posix-headers/wctype.texi: Likewise.
52343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52344
52345 2008-09-18  Bruno Haible  <bruno@clisp.org>
52346
52347         * gnulib-tool (func_exit): Update comment.
52348
52349 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52350
52351         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52352         assumes strdup exists and does not depend on strdup to return
52353         ENOMEM on out of memory conditions.
52354
52355 2008-09-18  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52358         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52359         digits for the exponent.
52360
52361 2008-09-18  Jim Meyering  <meyering@redhat.com>
52362             Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/vasnprintf.c (decimal_point_char): Define also if
52365         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52366
52367 2008-09-16  Bruno Haible  <bruno@clisp.org>
52368         and Eric Blake  <ebb9@byu.net>
52369
52370         vasnprintf: support Irix 5.3
52371         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52372         that mishandle long double infinity.
52373         Reported by Tom G. Christensen.
52374
52375 2008-09-16  Bruno Haible  <bruno@clisp.org>
52376
52377         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52378         Solaris 9.
52379         * doc/glibc-functions/alphasort.texi: Likewise.
52380         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52381
52382 2008-09-16  Jim Meyering  <meyering@redhat.com>
52383
52384         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52385         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52386         a umask modification leak out of a subshell.  Otherwise, the
52387         opensolaris /bin/sh would be accepted and thus cause unwarranted
52388         failures in the coreutils test suite.
52389
52390 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52391
52392         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52393         to succeed.
52394
52395 2008-09-16  Jim Meyering  <meyering@redhat.com>
52396
52397         avoid spurious test failure when library is built without ACL support
52398         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52399         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52400         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52401         * tests/test-copy-acl.sh: Likewise.
52402
52403 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52404
52405         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52406         based on character occurrence counts.
52407
52408 2008-09-15  Eric Blake  <ebb9@byu.net>
52409
52410         tests: avoid some compiler warnings
52411         * tests/test-memchr.c (main): Pass NULL indirectly.
52412         * tests/test-closein.c (main): Avoid unused variable.
52413
52414 2008-09-15  Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52417         are missing on OpenBSD 4.0 individually.
52418         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52419
52420 2008-09-15  Bruno Haible  <bruno@clisp.org>
52421
52422         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52423         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52424         * doc/posix-functions/perror.texi: Likewise.
52425         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52426         is missing.
52427         Reported by Eric Blake.
52428
52429         * lib/errno.in.h: Use replacement values >= 2000.
52430         Reported by Eric Blake.
52431
52432 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52433
52434         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52435         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52436         limit.
52437         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52438         compareseq was aborted.
52439
52440 2008-09-14  Bruno Haible  <bruno@clisp.org>
52441
52442         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52443         yvec_edit_count.
52444         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52445         (fstrcmp_bounded): Simplify result computation accordingly.
52446
52447 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52448
52449         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52450         (fstrcmp): Define in terms of fstrcmp_bounded.
52451         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52452         lower_bound argument.
52453         Return quickly if the result is certainly < lower_bound.
52454         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52455
52456 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52457
52458         * lib/diffseq.h (EARLY_ABORT): New macro.
52459         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52460         evaluates to true.
52461
52462 2008-09-14  Bruno Haible  <bruno@clisp.org>
52463
52464         * modules/perror-tests: New file.
52465         * tests/test-perror.sh: New file.
52466         * tests/test-perror.c: New file.
52467
52468         New module 'perror'.
52469         * lib/stdio.in.h (perror): New declaration.
52470         * lib/perror.c: New file.
52471         * m4/perror.m4: New file.
52472         * modules/perror: New file.
52473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52474         * doc/posix-functions/perror.texi: Mention the perror module.
52475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52476         REPLACE_PERROR.
52477         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52478         REPLACE_PERROR.
52479
52480 2008-09-14  Bruno Haible  <bruno@clisp.org>
52481
52482         * modules/stdio (Makefile.am): Reorder to match the order in
52483         lib/stdio.in.h.
52484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52485
52486 2008-09-13  Bruno Haible  <bruno@clisp.org>
52487
52488         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52489
52490 2008-09-13  Bruno Haible  <bruno@clisp.org>
52491
52492         Extend strerror to cover the added errno values.
52493         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52494         (rpl_strerror): Provide error messages for the added errno values and
52495         for the WSA* values.
52496         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52497         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52498         strerror.
52499         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52500         * modules/strerror (Depends-on): Add errno.
52501         * doc/posix-functions/strerror.texi: Document the change.
52502         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52503         and EOVERFLOW.
52504
52505 2008-09-13  Bruno Haible  <bruno@clisp.org>
52506
52507         * modules/EOVERFLOW: Remove file.
52508         * m4/eoverflow.m4: Remove file.
52509         * modules/EOVERFLOW-tests: Remove file.
52510         * tests/test-EOVERFLOW.c: Remove file.
52511         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52512         * modules/ftell (Depends-on): Likewise.
52513         * modules/getdelim (Depends-on): Likewise.
52514         * modules/getugroups (Depends-on): Likewise.
52515         * modules/poll (Depends-on): Likewise.
52516         * modules/snprintf (Depends-on): Likewise.
52517         * modules/sprintf-posix (Depends-on): Likewise.
52518         * modules/vasnprintf (Depends-on): Likewise.
52519         * modules/vasprintf (Depends-on): Likewise.
52520         * modules/vfprintf-posix (Depends-on): Likewise.
52521         * modules/vsnprintf (Depends-on): Likewise.
52522         * modules/vsprintf-posix (Depends-on): Likewise.
52523         * modules/xvasprintf (Depends-on): Likewise.
52524         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52525         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52526         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52527         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52528         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52529         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52530         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52531         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52532         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52533         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52534         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52535         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52536         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52537         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52538         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52539         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52540         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52541         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52542         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52543         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52544         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52545         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52546         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52547         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52548         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52550         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52551         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52552         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52553         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52554         * MODULES.html.sh: Remove EOVERFLOW.
52555         * NEWS: Mention the change.
52556
52557 2008-09-13  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/errno-tests: New file.
52560         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52561
52562         * lib/errno.in.h: New file.
52563         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52564         * modules/errno: New file.
52565         * doc/posix-headers/errno.texi: Update documentation.
52566         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52567
52568 2008-09-13  Bruno Haible  <bruno@clisp.org>
52569
52570         * tests/test-poll.c: Use #if for native Windows, rather than testing
52571         __MSVCRT__.
52572
52573 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52574             Bruno Haible  <bruno@clisp.org>
52575
52576         * lib/glob.c: Don't include <pwd.h> on native Windows.
52577         (WINDOWS32): New macro.
52578         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52579
52580 2008-09-13  Bruno Haible  <bruno@clisp.org>
52581
52582         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52583         (ETIMEDOUT): Remove macro.
52584         (glthread_cond_timedwait_multithreaded): New declaration.
52585         (glthread_cond_timedwait): Use it.
52586         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52587         (glthread_cond_timedwait_multithreaded): New function.
52588
52589 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52590
52591         * modules/poll-tests: Do not check for io.h.
52592         * tests/test-poll.c: Check for __MSVCRT__ instead.
52593
52594 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52595
52596         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52597         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52598         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52599
52600 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52601
52602         * modules/poll-tests: New.
52603         * tests/test-poll.c: New.
52604
52605 2008-09-12  Eric Blake  <ebb9@byu.net>
52606
52607         frexp: test for NetBSD failure on -0.0
52608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52609         not all, bugs from NetBSD 3.0 have been fixed.
52610         * doc/posix-functions/frexp.texi (frexp): Document bug.
52611         Reported by Thomas Klausner.
52612
52613         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52614         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52615         literal -0.0.
52616         Reported by Jonathan C. Patschke <jp@centtech.com>.
52617
52618 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52619
52620         * lib/glthread/cond.h: Use dummy implementation also if
52621         USE_WIN32_THREADS.
52622
52623 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52624
52625         * modules/fnmatch-posix (License): Change to LGPLv2+.
52626         * modules/fnmatch-gnu (License): Likewise.
52627
52628 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52629
52630         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52631
52632 2008-09-11  Jim Meyering  <meyering@redhat.com>
52633
52634         * users.txt: Add gtk-vnc.
52635
52636 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52637
52638         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52639         rotate amounts.
52640
52641         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52642         required for 16-bit and 8-bit rotates.
52643         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52644         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52645         UINT8_MAX instead of hard-coded constants.
52646         Suggested by Paul Eggert.
52647
52648 2008-09-07  Bruno Haible  <bruno@clisp.org>
52649
52650         * tests/test-striconveh.c (main): Check behaviour when converting from
52651         UTF-7.
52652
52653         Make striconveh work better with stateful encodings.
52654         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52655         that iconv does not increment the inptr when returning -1/EINVAL.
52656
52657 2008-09-07  Bruno Haible  <bruno@clisp.org>
52658
52659         * build-aux/config.rpath: Update according to libtool-2.2.6.
52660         * build-aux/config.libpath: Likewise.
52661
52662 2008-09-06  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52665         * lib/freadptr.c (freadptr): Likewise.
52666         * lib/freadseek.c (freadptrinc): Likewise.
52667         Reported by Simon Josefsson.
52668
52669 2008-09-06  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/freadptr (License): Change to LGPLv2+.
52672         * modules/freadseek (License): Likewise.
52673         Suggested by Eric Blake.
52674
52675         * modules/memchr2 (License): Change to LGPLv2+.
52676         Approved by Eric Blake.
52677
52678 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52679             Bruno Haible  <bruno@clisp.org>
52680
52681         Make gnulib-tool work with native 'sed' on AIX.
52682         * gnulib-tool (sed_noop): New variable.
52683         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52684         func_add_or_update, func_create_testdir): Use it to initialize sed
52685         script variables.
52686         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52687
52688 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52689             Bruno Haible  <bruno@clisp.org>
52690
52691         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52692         also works after #include directives.
52693
52694 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52695
52696         getdate.y: reject an out-of-range timezone value
52697         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52698         the range [-24...+24].  When specified with only one or two digits,
52699         * tests/test-getdate.c: Tests for the fix.
52700         * doc/getdate.texi: Document this change.
52701
52702 2008-09-03  Bruno Haible  <bruno@clisp.org>
52703
52704         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52705
52706 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52707
52708         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52709         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52710         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52711         Blake <ebb9@byu.net>.
52712
52713         * tests/test-bitrotate.c: Add more test vectors.
52714
52715 2008-09-02  Eric Blake  <ebb9@byu.net>
52716
52717         vasnprintf-posix: handle large precision via %.*d
52718         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52719         when handling it ourselves.
52720         * tests/test-vasnprintf-posix.c (test_function): Add test.
52721         * tests/test-snprintf-posix.h (test_function): Likewise.
52722         * tests/test-sprintf-posix.h (test_function): Likewise.
52723         * tests/test-vasprintf-posix.c (test_function): Likewise.
52724         Reported by Alain Guibert.
52725
52726 2008-09-01  Eric Blake  <ebb9@byu.net>
52727
52728         c-stack: make configure-time check more robust
52729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52730         successful sigaction call.
52731         Reported by Tom G. Christensen.
52732
52733 2008-09-01  Bruno Haible  <bruno@clisp.org>
52734
52735         New module 'findprog-lgpl'.
52736         * modules/findprog-lgpl: New file.
52737         * lib/findprog-lgpl.c: New file.
52738         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52739         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52740         to decide whether to use strdup or xstrdup, concatenated_filename or
52741         xconcatenated_filename.
52742
52743 2008-09-01  Bruno Haible  <bruno@clisp.org>
52744
52745         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52746         'xconcat-filename' (GPL).
52747         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52748         (License): Change to LGPLv2+.
52749         * modules/xconcat-filename: New file.
52750         * lib/concat-filename.h (concatenated_filename): Change specification.
52751         (xconcatenated_filename): New declaration.
52752         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52753         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52754         memory situations.
52755         * lib/xconcat-filename.c: New file.
52756         * NEWS: Mention the change.
52757         * lib/findprog.c: Include concat-filename.h, not filename.h.
52758         (find_in_path): Use xconcatenated_filename instead of
52759         concatenated_filename.
52760         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52761         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52762         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52763         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52764         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52765         instead of concatenated_filename.
52766         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52767         (execute_java_class): Use xconcatenated_filename instead of
52768         concatenated_filename.
52769         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52770         * modules/javacomp (Depends-on): Likewise.
52771         * modules/javaexec (Depends-on): Likewise.
52772
52773 2008-09-01  Bruno Haible  <bruno@clisp.org>
52774
52775         Split module 'filename' into 'filename' and 'concat-filename'.
52776         * modules/filename: Keep only lib/filename.h.
52777         (License): Change to LGPLv2+.
52778         * modules/concat-filename: New file, extracted from modules/filename.
52779         * lib/filename.h (concatenated_filename): Remove declaration.
52780         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52781         * lib/concat-filename.c: Include concat-filename.h.
52782         * NEWS: Mention the change.
52783
52784 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52785
52786         * lib/bitrotate.h (rotl8, rotr8): Add.
52787
52788         * modules/bitrotate (configure.ac): Need
52789         AC_REQUIRE([AC_C_INLINE]).
52790         (Description): Mention stdint.h.  Reported by Bruno Haible
52791         <bruno@clisp.org>.
52792
52793         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52794         Paolo Bonzini <bonzini@gnu.org>.
52795
52796 2008-08-31  Bruno Haible  <bruno@clisp.org>
52797
52798         Assume Solaris specific bi-arch conventions on Solaris systems.
52799         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52800         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52802         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52803         like acl_libdirstem.
52804         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52805         acl_libdirstem.
52806         * NEWS: Mention the change.
52807         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52808
52809 2008-08-31  Jim Meyering  <meyering@redhat.com>
52810
52811         * lib/strftime.h: Add comments describing the two added arguments.
52812
52813         remove duplicate #include directives
52814         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52815         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52816
52817 2008-08-31  Bruno Haible  <bruno@clisp.org>
52818
52819         New module 'sigpipe-die'.
52820         * modules/sigpipe-die: New file.
52821         * lib/sigpipe-die.h: New file.
52822         * lib/sigpipe-die.c: New file.
52823         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52824
52825 2008-08-31  Bruno Haible  <bruno@clisp.org>
52826
52827         Don't override previously installed signal handlers.
52828         * lib/fatal-signal.c (saved_sigactions): New variable.
52829         (uninstall_handlers): Reset the signal to the saved handler, not
52830         to SIG_DFL (except when ignored).
52831         (install_handlers): Save the previous handlers.
52832
52833 2008-08-30  Bruno Haible  <bruno@clisp.org>
52834
52835         * gnulib-tool (func_reset_sigpipe): New function.
52836         (func_get_automake_snippet, func_modules_transitive_closure,
52837         func_import): Invoke it before a join command that reads from stdin,
52838         to avoid "echo: write error: Broken pipe" error messages on stderr.
52839         Reported by Sam Steingold <sds@gnu.org>.
52840
52841 2008-08-30  Bruno Haible  <bruno@clisp.org>
52842
52843         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52844         Code copied from m4/open.m4.
52845         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52846         access and the filename ends in a slash. Code copied from lib/open.c.
52847         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52848         * tests/test-fopen.c (main): Check against bug with trailing slash.
52849
52850 2008-08-29  Bruno Haible  <bruno@clisp.org>
52851
52852         Avoid some "gcc -pedantic" warnings.
52853         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52854         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52855         * lib/dirent.in.h: Likewise.
52856         * lib/fcntl.in.h: Likewise.
52857         * lib/float.in.h: Likewise.
52858         * lib/iconv.in.h: Likewise.
52859         * lib/inttypes.in.h: Likewise.
52860         * lib/locale.in.h: Likewise.
52861         * lib/math.in.h: Likewise.
52862         * lib/netinet_in.in.h: Likewise.
52863         * lib/search.in.h: Likewise.
52864         * lib/signal.in.h: Likewise.
52865         * lib/stdarg.in.h: Likewise.
52866         * lib/stdint.in.h: Likewise.
52867         * lib/stdio.in.h: Likewise.
52868         * lib/stdlib.in.h: Likewise.
52869         * lib/string.in.h: Likewise.
52870         * lib/strings.in.h: Likewise.
52871         * lib/sys_select.in.h: Likewise.
52872         * lib/sys_socket.in.h: Likewise.
52873         * lib/sys_stat.in.h: Likewise.
52874         * lib/sys_time.in.h: Likewise.
52875         * lib/sysexits.in.h: Likewise.
52876         * lib/time.in.h: Likewise.
52877         * lib/unistd.in.h: Likewise.
52878         * lib/wchar.in.h: Likewise.
52879         * lib/wctype.in.h: Likewise.
52880         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52881         * modules/fchdir (Makefile.am): Likewise.
52882         * modules/fcntl (Makefile.am): Likewise.
52883         * modules/float (Makefile.am): Likewise.
52884         * modules/iconv_open (Makefile.am): Likewise.
52885         * modules/inttypes (Makefile.am): Likewise.
52886         * modules/locale (Makefile.am): Likewise.
52887         * modules/math (Makefile.am): Likewise.
52888         * modules/netinet_in (Makefile.am): Likewise.
52889         * modules/search (Makefile.am): Likewise.
52890         * modules/signal (Makefile.am): Likewise.
52891         * modules/stdarg (Makefile.am): Likewise.
52892         * modules/stdint (Makefile.am): Likewise.
52893         * modules/stdio (Makefile.am): Likewise.
52894         * modules/stdlib (Makefile.am): Likewise.
52895         * modules/string (Makefile.am): Likewise.
52896         * modules/strings (Makefile.am): Likewise.
52897         * modules/sys_select (Makefile.am): Likewise.
52898         * modules/sys_socket (Makefile.am): Likewise.
52899         * modules/sys_stat (Makefile.am): Likewise.
52900         * modules/sys_time (Makefile.am): Likewise.
52901         * modules/sysexits (Makefile.am): Likewise.
52902         * modules/time (Makefile.am): Likewise.
52903         * modules/unistd (Makefile.am): Likewise.
52904         * modules/wchar (Makefile.am): Likewise.
52905         * modules/wctype (Makefile.am): Likewise.
52906         Reported by Reuben Thomas <rrt@sc3d.org>.
52907
52908 2008-08-29  Bruno Haible  <bruno@clisp.org>
52909
52910         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52911         any more.
52912
52913 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52914
52915         * MODULES.html.sh (Misc): Add bitrotate.
52916
52917         * modules/bitrotate: New file.
52918
52919         * lib/bitrotate.h: New file.
52920
52921         * modules/bitrotate-tests: New file.
52922
52923         * tests/test-bitrotate.c: New file.
52924
52925         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52926         on the bitrotate module.
52927
52928         * lib/arctwo.c: Use new bitrotate module.
52929
52930 2008-08-29  Jim Meyering  <meyering@redhat.com>
52931
52932         bootstrap: merge changes from coreutils
52933         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52934         of copied files.  Remove a kludge, now that this is fixed.
52935         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52936         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52937         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52938
52939 2008-08-29  Bruno Haible  <bruno@clisp.org>
52940
52941         * MODULES.html.sh: Remove --cvs-urls option.
52942
52943 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52944
52945         maint.mk: adjust to file name change
52946         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52947
52948 2008-08-28  Jim Meyering  <meyering@redhat.com>
52949
52950         * modules/getndelim2 (License): Relicense to LGPLv2+.
52951         Approved by Richard Stallman for the version of 1995, and by
52952         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52953
52954 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52955
52956         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52957         dummy if one is not available.  Do not touch them if
52958         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52959         (getc_maybe_unlocked): New.
52960         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52961
52962 2008-08-26  Eric Blake  <ebb9@byu.net>
52963
52964         doc/INSTALL: resync from autoconf
52965         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52966         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52967         moving...
52968         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52969         * INSTALL: Regenerate.
52970         * INSTALL.ISO: New file.
52971         * INSTALL.UTF-8: Likewise.
52972
52973 2008-08-26  Jim Meyering  <meyering@redhat.com>
52974
52975         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52976         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52977         these definitions conditional, so that they may be overridden, too.
52978
52979 2008-08-26  Bruno Haible  <bruno@clisp.org>
52980
52981         Generate INSTALL file variants with prettier quotes.
52982         * doc/Makefile (INSTALL_PRELUDE): New macro.
52983         (INSTALL): Use it.
52984         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52985
52986 2008-08-26  Bruno Haible  <bruno@clisp.org>
52987
52988         Run makeinfo in an English locale.
52989         * doc/Makefile (MAKEINFO): New variable.
52990
52991 2008-08-26  Bruno Haible  <bruno@clisp.org>
52992
52993         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52994         Suggested by Eric Blake.
52995
52996 2008-08-25  Bruno Haible  <bruno@clisp.org>
52997
52998         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52999
53000 2008-08-25  Eric Blake  <ebb9@byu.net>
53001
53002         c-stack: test that stack overflow can be caught
53003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53004         that platform allows handling stack overflow; at least OS/2 EMX
53005         has sigaltstack, but crashes before transferring control to
53006         handler on stack overflow.
53007         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53008         check for HAVE_STACK_OVERFLOW_HANDLING.
53009         Reported by Elbert Pol.
53010
53011 2008-08-25  Bruno Haible  <bruno@clisp.org>
53012
53013         * doc/posix-functions/strftime.texi: Fix description of strftime
53014         module.
53015
53016 2008-08-24  Bruno Haible  <bruno@clisp.org>
53017
53018         * tests/uniwidth/test-uc_width2.c: New file.
53019         * tests/uniwidth/test-uc_width2.sh: New file.
53020         * modules/uniwidth/width-tests (Files): Add the new files.
53021         (TESTS): Add uniwidth/test-uc_width2.sh.
53022         (TESTS_ENVIRONMENT): New variable.
53023         (check_PROGRAMS): Add test-uc_width2.
53024         (test_uc_width2_SOURCES): New variable.
53025
53026         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53027         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53028         not 0x00AB.
53029         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53030
53031 2008-08-22  Eric Blake  <ebb9@byu.net>
53032
53033         test-lock, test-tls: mention why a test is skipped
53034         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53035         skipped.
53036         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53037
53038         count-one-bits: relax license
53039         * modules/count-one-bits (License): Relicense to LGPLv2+.
53040         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53041
53042 2008-08-22  Andreas Schwab  <schwab@suse.de>
53043
53044         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53045         Remove spurious space in assignment.
53046
53047 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53048
53049         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53050         Paul Eggert <eggert@CS.UCLA.EDU>.
53051
53052 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53053
53054         * modules/gettext: Add m4/threadlib.m4.
53055
53056 2008-08-19  Eric Blake  <ebb9@byu.net>
53057
53058         test-c-stack: fix compilation failure on FreeBSD 5.0
53059         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53060         headers before <sys/resource.h>.
53061         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53062         the bug.
53063         Reported by Nelson H. F. Beebe.
53064
53065         strverscmp: migrate from "strverscmp.h" to <string.h>
53066         * modules/string (Makefile.am): Add new hooks.
53067         * modules/strverscmp (Files): Remove strverscmp.h.
53068         (Depends-on): Add string.
53069         (configure.ac): Add indicator.
53070         (Include): Mention new header.
53071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53072         defaults.
53073         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53074         results.
53075         * lib/strverscmp.h: Delete.
53076         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53077         * tests/test-strverscmp.c (includes): Adjust client.
53078         * lib/check-version.c (includes): Likewise.
53079         * NEWS: Document the change.
53080
53081         strverscmp: add unit test
53082         * modules/strverscmp-tests: New file.
53083         * tests/test-strverscmp.c: Likewise.
53084
53085 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53086
53087         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53088         regarding Windows crypto stuff, from Mono.
53089
53090 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53091
53092         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53093         if present, for intel RND.  Return error on failures.
53094
53095 2008-08-18  Ben Pfaff  <blp@gnu.org>
53096
53097         gitlog-to-changelog: give better diagnostic for failed pipe-open
53098         * build-aux/gitlog-to-changelog: Improve error message: suggest
53099         that the version of Git may be too old.
53100
53101 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53102
53103         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53104         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53105
53106 2008-08-18  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53109         pthread_in_use().
53110
53111 2008-08-18  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/glthread/threadlib.c: Include <pthread.h>.
53114
53115 2008-08-18  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53118         glthread_recursive_lock_* macros.
53119         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53120         Fix syntax error.
53121
53122 2008-08-18  Bruno Haible  <bruno@clisp.org>
53123
53124         * lib/glthread/thread.c: Avoid forcing a context switch right after
53125         thread creation.
53126
53127 2008-08-17  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53130         * lib/glthread/thread.h: Provide Win32 specific implementation.
53131         * modules/thread (Files): Add lib/glthread/thread.c.
53132         (Depends-on): Add lock.
53133         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53134
53135 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53136
53137         New module 'yield'.
53138         * modules/yield: New file.
53139         * lib/glthread/yield.h: New file.
53140         * m4/yield.m4: New file.
53141         * MODULES.html.sh (Multithreading): Add yield.
53142
53143 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53144
53145         New module 'thread'.
53146         * modules/thread: New file.
53147         * lib/glthread/thread.h: New file.
53148         * m4/thread.m4: New file.
53149         * MODULES.html.sh (Multithreading): Add thread.
53150
53151 2008-08-17  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/glthread/lock.h: Include <stdlib.h> always.
53154         * lib/glthread/tls.h: Likewise.
53155         * lib/glthread/cond.h: Likewise.
53156
53157 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53158
53159         New module 'cond'.
53160         * modules/cond: New file.
53161         * lib/glthread/cond.h: New file.
53162         * lib/glthread/cond.c: New file.
53163         * m4/cond.m4: New file.
53164         * MODULES.html.sh (Multithreading): Add cond.
53165
53166 2008-08-16  Eric Blake  <ebb9@byu.net>
53167
53168         c-stack: fix regression on Irix 5.3 from 2008-06-21
53169         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53170         sa_sigaction...
53171         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53172         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53173         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53174         * modules/signal (Makefile.am): Use the value.
53175         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53176         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53177         * doc/posix-headers/signal.texi (signal.h): Document this
53178         portability issue.
53179         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53180         Reported by Tom G. Christensen.
53181
53182 2008-08-17  Bruno Haible  <bruno@clisp.org>
53183
53184         New module 'threadlib'.
53185         * modules/threadlib: New file.
53186         * lib/glthread/threadlib.c: New file, extracted from
53187         lib/glthread/lock.c.
53188         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53189         functions.
53190         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53191         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53192         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53193         macros.
53194         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53195         (gl_DISABLE_THREADS): Remove macro.
53196         * modules/lock (Files): Remove build-aux/config.rpath.
53197         (Depends-on): Remove havelib. Add threadlib.
53198         (configure.ac-early): Remove section.
53199         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53200         * modules/tls (Depends-on): Remove lock. Add threadlib.
53201         (Link): New section, copied from threadlib.
53202         * MODULES.html.sh (Multithreading): Add threadlib.
53203
53204 2008-08-14  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53207         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53208         glthread_rwlock_unlock, glthread_rwlock_destroy,
53209         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53210         glthread_recursive_lock_destroy): Define as macros always.
53211         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53212         glthread_lock_lock.
53213         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53214         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53215         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53216         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53217         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53218         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53219         (glthread_recursive_lock_lock_func): Renamed from
53220         glthread_recursive_lock_lock.
53221         (glthread_recursive_lock_unlock_func): Renamed from
53222         glthread_recursive_lock_unlock.
53223         (glthread_recursive_lock_destroy_func): Renamed from
53224         glthread_recursive_lock_destroy.
53225
53226 2008-08-14  Bruno Haible  <bruno@clisp.org>
53227
53228         * lib/glthread/lock.h: Renamed from lib/lock.h.
53229         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53230         * lib/glthread/tls.h: Renamed from lib/tls.h.
53231         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53232         * lib/fstrcmp.c: Update includes.
53233         * lib/strsignal.c: Update includes.
53234         * modules/lock (Files, Makefile.am): Update.
53235         (Include): Change to "glthread/lock.h".
53236         * modules/tls (Files, Makefile.am): Update.
53237         (Include): Change to "glthread/tls.h".
53238         * tests/test-lock.c: Update includes.
53239         * tests/test-tls.c: Update includes.
53240         * NEWS: Mention the renamed header files.
53241
53242 2008-08-11  Jim Meyering  <meyering@redhat.com>
53243
53244         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53245
53246 2008-08-11  Eric Blake  <ebb9@byu.net>
53247
53248         test-c-stack: avoid C99-ism
53249         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53250         before statement.
53251         Reported by Alain Guibert.
53252
53253 2008-08-10  Jim Meyering  <meyering@redhat.com>
53254
53255         ensure that return value of uinttostr et al are not ignored
53256         * lib/inttostr.h (__GNUC_PREREQ): Define.
53257         (__attribute_warn_unused_result__): Define.
53258         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53259
53260 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53261
53262         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53263         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53264
53265 2008-08-07  Jim Meyering  <meyering@redhat.com>
53266
53267         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53268
53269         * modules/mkstemp (License): Relicense under LGPLv2+.
53270         * modules/tempname (License): Likewise.
53271
53272 2008-08-06  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/poll.c (poll): Further micro-optimization.
53275
53276 2008-08-06  Jim Meyering  <meyering@redhat.com>
53277
53278         inet_pton.c: use locale-independent tolower
53279         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53280         (inet_pton6): Use c_tolower rather than tolower.
53281         * modules/inet_pton (Depends-on): Add c-ctype.
53282
53283 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53284
53285         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53286         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53287
53288 2008-08-06  Jim Meyering  <meyering@redhat.com>
53289
53290         * modules/inet_pton (License): Relicense under LGPLv2+.
53291
53292 2008-08-03  Bruno Haible  <bruno@clisp.org>
53293
53294         Additional non-aborting API for lock and tls.
53295         * lib/lock.h: Include <errno.h>.
53296         (glthread_lock_init): New macro/function.
53297         (gl_lock_init): Define as wrapper around glthread_lock_init.
53298         (glthread_lock_lock): New macro/function.
53299         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53300         (glthread_lock_unlock): New macro/function.
53301         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53302         (glthread_lock_destroy): New macro/function.
53303         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53304         (glthread_rwlock_init): New macro/function.
53305         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53306         (glthread_rwlock_rdlock): New macro/function.
53307         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53308         (glthread_rwlock_wrlock): New macro/function.
53309         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53310         (glthread_rwlock_unlock): New macro/function.
53311         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53312         (glthread_rwlock_destroy): New macro/function.
53313         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53314         (glthread_recursive_lock_init): New macro/function.
53315         (gl_recursive_lock_init): Define as wrapper around
53316         glthread_recursive_lock_init.
53317         (glthread_recursive_lock_lock): New macro/function.
53318         (gl_recursive_lock_lock): Define as wrapper around
53319         glthread_recursive_lock_lock.
53320         (glthread_recursive_lock_unlock): New macro/function.
53321         (gl_recursive_lock_unlock): Define as wrapper around
53322         glthread_recursive_lock_unlock.
53323         (glthread_recursive_lock_destroy): New macro/function.
53324         (gl_recursive_lock_destroy): Define as wrapper around
53325         glthread_recursive_lock_destroy.
53326         (glthread_once): New macro/function.
53327         (gl_once): Define as wrapper around glthread_once.
53328         Update function declarations.
53329         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53330         glthread_rwlock_init. Return error code.
53331         (glthread_rwlock_rdlock_multithreaded): Renamed from
53332         glthread_rwlock_rdlock. Return error code.
53333         (glthread_rwlock_wrlock_multithreaded): Renamed from
53334         glthread_rwlock_wrlock. Return error code.
53335         (glthread_rwlock_unlock_multithreaded): Renamed from
53336         glthread_rwlock_unlock. Return error code.
53337         (glthread_rwlock_destroy_multithreaded): Renamed from
53338         glthread_rwlock_destroy. Return error code.
53339         (glthread_recursive_lock_init_multithreaded): Renamed from
53340         glthread_recursive_lock_init. Return error code.
53341         (glthread_recursive_lock_lock_multithreaded): Renamed from
53342         glthread_recursive_lock_lock. Return error code.
53343         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53344         glthread_recursive_lock_unlock. Return error code.
53345         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53346         glthread_recursive_lock_destroy. Return error code.
53347         (glthread_once_call): Make static.
53348         (glthread_once_multithreaded): Renamed from glthread_once.
53349         * lib/tls.h: Include <errno.h>.
53350         (glthread_tls_key_init): New macro/function.
53351         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53352         (glthread_tls_set): New macro/function.
53353         (gl_tls_set): Define as wrapper around glthread_tls_set.
53354         (glthread_tls_key_destroy): New macro/function.
53355         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53356         Update function declarations.
53357         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53358         glthread_tls_get.
53359         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53360
53361 2008-08-04  Eric Blake  <ebb9@byu.net>
53362
53363         gnumakefile: use space, not TAB, outside of targets
53364         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53365
53366 2008-08-02  Jim Meyering  <meyering@redhat.com>
53367
53368         getdate.y: avoid locale-dependent date parsing failure
53369         In Turkish locales, getdate would fail to recognize keywords
53370         containing a lowercase "i".  The solution is not to rely on
53371         locale-sensitive case-conversion.
53372         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53373         (lookup_word): Use c_toupper in place of toupper.
53374         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53375         Reported by Vefa Bicakci <bicave@superonline.com> in
53376         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53377         * modules/getdate (Depends-on): Add c-ctype.
53378
53379 2008-08-02  Bruno Haible  <bruno@clisp.org>
53380
53381         * gnulib-tool (func_import): When updating or creating a .gitignore
53382         file, prepend each added line with a slash, and ignore leading slashes
53383         from the existing lines.
53384         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53385
53386 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53387
53388         Portability fix for GNU make 3.79.1.
53389         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53390         versions do not understand.
53391
53392 2008-08-01  Bruno Haible  <bruno@clisp.org>
53393
53394         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53395         * tests/test-isnanf.h (zero): New variable.
53396         (main): Avoid literal -0.0f.
53397         * tests/test-isnand.h (zero): New variable.
53398         (main): Avoid literal -0.0.
53399         * tests/test-isnanl.h (zero): New variable.
53400         (main): Avoid literal -0.0L.
53401         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53402         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53403         -0.0, -0.0L.
53404         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53405         (test_signbitd): Avoid literal -0.0.
53406         (test_signbitl): Avoid literal -0.0L.
53407         * tests/test-ceilf1.c (zero): New variable.
53408         (main): Avoid literal -0.0f.
53409         * tests/test-ceill.c (zero): New variable.
53410         (main): Avoid literal -0.0L.
53411         * tests/test-floorf1.c (zero): New variable.
53412         (main): Avoid literal -0.0f.
53413         * tests/test-floorl.c (zero): New variable.
53414         (main): Avoid literal -0.0L.
53415         * tests/test-roundf1.c (zero): New variable.
53416         (main): Avoid literal -0.0f.
53417         * tests/test-round1.c (zero): New variable.
53418         (main): Avoid literal -0.0.
53419         * tests/test-roundl.c (zero): New variable.
53420         (main): Avoid literal -0.0L.
53421         * tests/test-truncf1.c (zero): New variable.
53422         (main): Avoid literal -0.0f.
53423         * tests/test-trunc1.c (zero): New variable.
53424         (main): Avoid literal -0.0.
53425         * tests/test-truncl.c (zero): New variable.
53426         (main): Avoid literal -0.0L.
53427         * tests/test-frexp.c (zero): New variable.
53428         (main): Avoid literal -0.0.
53429         * tests/test-frexpl.c (zero): New variable.
53430         (main): Avoid literal -0.0L.
53431         * tests/test-ldexpl.c (zero): New variable.
53432         (main): Avoid literal -0.0L.
53433         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53434         (zerod, zerol): New variables.
53435         (test_function): Avoid literals -0.0, -0.0L.
53436         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53437         (zerod, zerol): New variables.
53438         (test_function): Avoid literals -0.0, -0.0L.
53439         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53440         (zerod, zerol): New variables.
53441         (test_function): Avoid literals -0.0, -0.0L.
53442         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53443         (zerod, zerol): New variables.
53444         (test_function): Avoid literals -0.0, -0.0L.
53445         * tests/test-strtod.c (zero): New variable.
53446         (main): Avoid literal -0.0.
53447         Reported by Jonathan C. Patschke <jp@centtech.com>.
53448
53449 2008-07-31  Jim Meyering  <meyering@redhat.com>
53450
53451         sha256.h: correct definition of SHA224_DIGEST_SIZE
53452         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53453         Reported by Paulie Pena IV <paulie4@gmail.com>.
53454         Define as 224 / 8, rather than as a literal.
53455         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53456         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53457         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53458
53459 2008-07-31  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53462         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53463         Reported by Jonathan Patschke <jp@centtech.com>.
53464
53465 2008-07-31  Bruno Haible  <bruno@clisp.org>
53466
53467         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53468         Reported by Paolo Bonzini <bonzini@gnu.org>.
53469
53470 2008-07-30  Eric Blake  <ebb9@byu.net>
53471
53472         test-strtod: allow compilation without -lm
53473         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53474         Reported by Dennis Clarke <blastwave@gmail.com>.
53475
53476 2008-07-28  Jim Meyering  <meyering@redhat.com>
53477
53478         bootstrap: work also when there are no .po files in po/
53479         * build-aux/bootstrap (update_po_files): Complete the change
53480         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53481
53482 2008-07-27  Jim Meyering  <meyering@redhat.com>
53483
53484         * users.txt: Add zile.
53485
53486 2008-07-26  Ben Pfaff  <blp@gnu.org>
53487
53488         Add missing dependencies on new m4/exponent[fdl].m4 files.
53489         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53490         * modules/isnand-nolibm: Add m4/exponentd.m4.
53491         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53492         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53493         m4/isnan[fdl].m4, because the macros actually used moved.
53494         Reported by Jim Meyering.
53495
53496 2008-07-14  Ben Pfaff  <blp@gnu.org>
53497
53498         Add isinf module.
53499         * lib/isinf.c: New file.
53500         * lib/math.in.h: Define isinf macro if we have decided to replace
53501         it.
53502         * m4/isinf.m4: New file.
53503         * m4/math_h.m4: Initialize and substitute variables for isinf
53504         module.
53505         * modules/isinf: New file.
53506         * modules/isinf-tests: New file.
53507         * modules/math: Add substitutions for new module.
53508         * tests/test-isinf.c: New file.
53509         * doc/posix-functions/isinf.texi: Mention new module.
53510         * MODULES.html.sh: Mention new module.
53511
53512 2008-07-14  Ben Pfaff  <blp@gnu.org>
53513
53514         Factor out some macros for use by additional modules.
53515         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53516         exponentf.m4.
53517         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53518         exponentd.m4.
53519         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53520         file exponentl.m4.
53521         * m4/exponentf.m4: New file.
53522         * m4/exponentd.m4: New file.
53523         * m4/exponentl.m4: New file.
53524         * modules/isnanf: Use new file m4/exponentf.m4.
53525         * modules/isnand: Use new file m4/exponentd.m4.
53526         * modules/isnanl: Use new file m4/exponentl.m4.
53527
53528 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53529
53530         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53531         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53532         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53533         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53534
53535         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53536         readlink on platforms without PATH_MAX.
53537
53538 2008-07-21  Eric Blake  <ebb9@byu.net>
53539
53540         Warn, not fail, on stale version.
53541         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53542
53543         Don't allow installation with stale devel version number.
53544         * top/GNUmakefile (_is-install-target): New macro.
53545         (_curr-ver): Forbid installation with stale version number.
53546
53547 2008-07-20  Bruno Haible  <bruno@clisp.org>
53548
53549         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53550         TESTS_ENVIRONMENT.
53551         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53552
53553 2008-07-20  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/c-stack.h (c_stack_action): Add documentation.
53556         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53557
53558 2008-07-20  Bruno Haible  <bruno@clisp.org>
53559
53560         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53561         * modules/readlink (License): Likewise.
53562
53563 2008-07-17  Eric Blake  <ebb9@byu.net>
53564
53565         * modules/c-stack (Link): Fix typo.
53566
53567         Make c-stack use libsigsegv, when available.
53568         * modules/c-stack (Depends-on): Add libsigsegv.
53569         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53570         needed.
53571         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53572         (segv_handler, overflow_handler, c_stack_action)
53573         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53574         implementation when libsigsegv is available, but only when using
53575         the library is necessary.
53576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53577         comment, explaining why XSI check fails on Linux.
53578         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53579         * tests/test-c-stack2.sh: Tweak skip message.
53580         * NEWS: Document new link-time requirements.
53581
53582 2008-07-16  Eric Blake  <ebb9@byu.net>
53583
53584         c-stack: Expose false positives when not using libsigsegv.
53585         * modules/c-stack-tests (Files): Expand test.
53586         * tests/test-c-stack.c (main): Add means to conditionally trigger
53587         non-overflow SIGSEGV.
53588         * tests/test-c-stack2.sh: New file.
53589
53590 2008-07-14  Bruno Haible  <bruno@clisp.org>
53591
53592         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53593         Reported by Eric Blake.
53594
53595 2008-07-14  Sam Steingold  <sds@gnu.org>
53596             Bruno Haible  <bruno@clisp.org>
53597
53598         New module libsigsegv.
53599         * modules/libsigsegv: New file.
53600         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53601         modifications.
53602         * MODULES.html.sh (Signal handling): New section.
53603
53604 2008-07-14  Bruno Haible  <bruno@clisp.org>
53605
53606         * modules/unictype/ctype-* (Description): Add the word "function".
53607         Improves the resulting doc in MODULES.html.
53608
53609 2008-07-12  Ben Pfaff  <blp@gnu.org>
53610
53611         Add longlong module.
53612         * modules/longlong: New file.
53613
53614 2008-07-12  Bruno Haible  <bruno@clisp.org>
53615
53616         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53617         to empty.
53618
53619 2008-07-10  Ben Pfaff  <blp@gnu.org>
53620
53621         Add isnan module.
53622         * doc/posix-functions/isnan.texi: Mention new module.
53623         * lib/math.in.h: Define isnan macro if we have decided to replace
53624         it.
53625         * m4/isnan.m4: New file.
53626         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53627         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53628         also.
53629         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53630         redundancy.
53631         * m4/math_h.m4: Initialize and substitute variables for isnan
53632         module.
53633         * modules/isnan: New file.
53634         * modules/isnan-tests: New file.
53635         * modules/math: Add substitutions for new module.
53636         * tests/test-isnan.c: New file.
53637         * MODULES.html.sh: Mention new module.
53638
53639 2008-07-10  Ben Pfaff  <blp@gnu.org>
53640
53641         Add isnanf module.
53642         * lib/isnanf.m4: New file.
53643         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53644         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53645         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53646         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53647         * modules/isnanf: New file.
53648         * modules/isnanf-tests: New file.
53649         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53650         files.
53651         * tests/test-isnanf-nolibm.c: factored most of its contents into
53652         new file tests/test-isnanf.h.
53653         * tests/test-isnanf.h: New file.
53654         * tests/test-isnanf.c: New file.
53655         * MODULES.html.sh: Mention new module.
53656         * doc/glibc-functions/isnanf.texi: Mention new module.
53657
53658 2008-07-10  Ben Pfaff  <blp@gnu.org>
53659
53660         Add isnand module.
53661         * lib/isnand.h: New file.
53662         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53663         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53664         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53665         functionality also.
53666         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53667         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53668         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53669         * modules/isnand: New file.
53670         * modules/isnand-tests: New file.
53671         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53672         files.
53673         * tests/test-isnand-nolibm.c: factored most of its contents into
53674         new file tests/test-isnand.h.
53675         * tests/test-isnand.h: New file.
53676         * tests/test-isnand.c: New file.
53677         * MODULES.html.sh: Mention new module.
53678
53679 2008-07-10  Ben Pfaff  <blp@gnu.org>
53680
53681         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53682         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53683         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53684         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53685         * modules/isnanf-nolibm: Update references to renamed files.
53686         * modules/isnand-nolibm: Likewise.
53687         * modules/isnanf-nolibm-tests: Likewise.
53688         * modules/isnand-nolibm-tests: Likewise.
53689         * lib/frexp.c: Likewise.
53690         * lib/isfinite.c: Likewise.
53691         * lib/signbitd.c: Likewise.
53692         * lib/signbitf.c: Likewise.
53693         * lib/vasnprintf.c: Likewise.
53694         * tests/test-ceilf1.c: Likewise.
53695         * tests/test-ceilf2.c: Likewise.
53696         * tests/test-floorf1.c: Likewise.
53697         * tests/test-floorf2.c: Likewise.
53698         * tests/test-frexp.c: Likewise.
53699         * tests/test-round1.c: Likewise.
53700         * tests/test-round2.c: Likewise.
53701         * tests/test-roundf1.c: Likewise.
53702         * tests/test-strtod.c: Likewise.
53703         * tests/test-trunc1.c: Likewise.
53704         * tests/test-trunc2.c: Likewise.
53705         * tests/test-truncf1.c: Likewise.
53706         * tests/test-truncf2.c: Likewise.
53707         * NEWS: Mention the renamed header files.
53708
53709 2008-07-11  Jim Meyering  <meyering@redhat.com>
53710
53711         vc-list-files: make the last-resort awk code more portable
53712         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53713         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53714         does not support it.
53715
53716 2008-07-10  Eric Blake  <ebb9@byu.net>
53717
53718         Work with tar's bootstrap.
53719         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53720         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53721         an m4 comment.
53722
53723 2008-07-09  Jim Meyering  <meyering@redhat.com>
53724
53725         posix-shell.m4: fix typo that made this test malfunction
53726         * m4/posix-shell.m4: Remove capitalization in variable name.
53727
53728 2008-07-08  Bruno Haible  <bruno@clisp.org>
53729
53730         * m4/onceonly.m4: Update comments.
53731         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53732
53733 2008-07-04  Jim Meyering  <meyering@redhat.com>
53734
53735         * users.txt: Add vc-dwim.
53736         (bison, coreutils): Use the gitweb URL.
53737
53738 2008-07-03  Jim Meyering  <meyering@redhat.com>
53739
53740         * users.txt: Add libffcall.  From Sam Steingold.
53741
53742 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53743
53744         getdate.y: do not ignore TZ with relative day, month or year offset
53745         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53746         relative-date-handling, since otherwise, the latter would clobber the
53747         sole output (an updated Start value) of the tz-handling block.
53748         * tests/test-getdate.c: Tests for the fix
53749
53750 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53751
53752         Recognize 'foo_LIBRARIES += libgnu.a'.
53753         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53754         makefile snippet has already specified an installation location,
53755         also using '+='.
53756
53757 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53758
53759         getdate.y: factor out common actions
53760         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53761         Use them in place of open-coded actions.
53762
53763 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53764
53765         Add self-test for getdate module.
53766         * modules/getdate-tests: New file.
53767         * tests/test-getdate.c: New file.
53768
53769 2008-06-29  Bruno Haible  <bruno@clisp.org>
53770
53771         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53772         .gitignore.
53773         Reported by Sylvain Beucler <beuc@beuc.net>.
53774
53775 2008-06-29  Bruno Haible  <bruno@clisp.org>
53776
53777         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53778         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53779
53780 2008-06-29  Bruno Haible  <bruno@clisp.org>
53781
53782         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53783         EXTRA_DIST.
53784         Reported by Sylvain Beucler <beuc@beuc.net>.
53785
53786 2008-06-26  Jim Meyering  <meyering@redhat.com>
53787
53788         make several modules depend on the "open" module
53789         This provides slightly increased consistency when opening-for-write
53790         the name of a non-directory spelled with a trailing slash.
53791         * modules/chdir-safer: Likewise.
53792         * modules/chown: Likewise.
53793         * modules/clean-temp: Likewise.
53794         * modules/copy-file: Likewise.
53795         * modules/fchdir: Likewise.
53796         * modules/fcntl-safer: Likewise.
53797         * modules/pipe: Likewise.
53798         * modules/utime: Likewise.
53799         Prompted by Eric Blake and Bruno Haible.
53800
53801 2008-06-24  Andreas Schwab  <schwab@suse.de>
53802
53803         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53804         literals can be used as initializers for global variables.
53805
53806 2008-06-23  Eric Blake  <ebb9@byu.net>
53807
53808         Make gnulib-cache.m4 easier to diff.
53809         * gnulib-tool (func_import): Allow newlines when reading cached
53810         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53811
53812 2008-06-23  Bruno Haible  <bruno@clisp.org>
53813
53814         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53815         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53816         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53817         m4/signalblocking.m4.
53818         (gl_PREREQ_SIGACTION): Don't invoke it.
53819         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53820         gl_PREREQ_SIG_HANDLER_H.
53821         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53822         Don't check for sigaction here.
53823
53824 2008-06-23  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53827         (install_handlers): Don't set the SA_RESETHAND flag.
53828
53829 2008-06-23  Bruno Haible  <bruno@clisp.org>
53830
53831         * m4/sigaction.m4: Comment fixes.
53832         * lib/signal.in.h: Likewise.
53833
53834 2008-06-23  Eric Blake  <ebb9@byu.net>
53835
53836         Fix typo.
53837         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53838
53839         Avoid SA_ namespace.
53840         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53841         Reported by Ralf Wildenhues.
53842
53843         Avoid test failure due to SA_RESTORER.
53844         * tests/test-sigaction.c (SA_MASK): New macro.
53845         (main): Avoid failing due to extension flags being set.
53846         Reported by Jim Meyering.
53847
53848         Revert use of sig-handler.h in sigprocmask.c.
53849         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53850         it requires the existence of struct sigaction.
53851         * lib/sigprocmask.c (handler_t): Restore typedef.
53852         (rpl_signal, old_handlers): Use local type.
53853
53854 2008-06-22  Bruno Haible  <bruno@clisp.org>
53855
53856         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53857         conditionally.
53858         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53859
53860 2008-06-22  Bruno Haible  <bruno@clisp.org>
53861
53862         * doc/posix-functions/siginterrupt.texi: Move note.
53863
53864         * lib/signal.in.h (SA_RESTART): New macro.
53865         * lib/sigaction.c: Update comment.
53866
53867         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53868
53869         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53870         (gl_PREREQ_SIGPROCMASK): Invoke it.
53871         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53872
53873         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53874
53875         * lib/sigprocmask.c: Update a comment.
53876
53877 2008-06-21  Eric Blake  <ebb9@byu.net>
53878
53879         Use sigaction module rather than signal().
53880         * modules/c-stack (Depends-on): Add sigaction.
53881         * modules/fatal-signal (Depends-on): Likewise.
53882         * modules/nanosleep (Depends-on): Likewise.
53883         * modules/sigprocmask (Files): Add sig-handler.h.
53884         * modules/sigaction (Files): Likewise.
53885         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53886         Eggert.
53887         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53888         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53889         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53890         (init_fatal_signals): Likewise.
53891         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53892         (siginterrupt): Delete fallback.
53893         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53894         instead.
53895         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53896         siginterrupt.
53897
53898         New module sigaction, for mingw.
53899         * modules/sigaction: New module...
53900         * modules/sigaction-tests: ...and its test.
53901         * m4/sigaction.m4: New file.
53902         * lib/sigaction.c: Likewise.
53903         * tests/test-sigaction.c: Likewise.
53904         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53905         * modules/signal (Makefile.am): Likewise.
53906         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53907         needed.
53908         * doc/posix-headers/signal.texi (signal.h): Mention provided
53909         types.
53910         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53911         that sigaction is preferable.
53912         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53913         module.
53914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53915         sigaction.
53916
53917         Improve robustness of sigprocmask by overriding signal.
53918         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53919         is in use.
53920         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53921         (SIGKILL, SIGSTOP): Provide fallbacks.
53922         (rpl_signal): Implement.
53923         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53924         signal can be called inside handlers.
53925
53926         Fix nanosleep module on mingw.
53927         * modules/nanosleep (Depends-on): Add sys_select.
53928         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53929
53930         Fix licensing of sigprocmask.
53931         * modules/raise (License): Relicense as LGPL.
53932
53933 2008-06-21  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53936         result if it contains question marks.
53937         Reported by Michael Geng <linux@michaelgeng.de>.
53938
53939 2008-06-19  Bruno Haible  <bruno@clisp.org>
53940
53941         Fix CVS-ism.
53942         * doc/gnulib.texi: Include updated-stamp.texi.
53943         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53944         (updated-stamp.texi): New rule.
53945         (gnulib.info): Depend on it.
53946         * doc/.gitignore: Add updated-stamp.texi.
53947         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53948
53949 2008-06-19  Bruno Haible  <bruno@clisp.org>
53950
53951         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53952         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53953
53954 2008-06-19  Eric Blake  <ebb9@byu.net>
53955
53956         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53957         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53958         Reported by Stepan Kasal.
53959
53960 2008-06-18  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53963         Reported by Eric Blake.
53964
53965 2008-06-18  Eric Blake  <ebb9@byu.net>
53966
53967         Work around cygwin 1.5.25 strsignal bug.
53968         * tests/test-strsignal.c: Allow for const char *.
53969         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53970
53971 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53972
53973         * users.txt: Update URL to article and add author/date
53974         information.
53975
53976 2008-06-17  Bruno Haible  <bruno@clisp.org>
53977
53978         New macro gl_DISABLE_THREADS.
53979         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53980         if the user did not pass --enable-threads or --disable-threads option.
53981         (gl_DISABLE_THREADS): New macro.
53982         Reported by Eric Blake <ebb9@byu.net>.
53983
53984 2008-06-17  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53987         when the macro ignores it.
53988         Based on a patch by Eric Blake <ebb9@byu.net>.
53989
53990 2008-06-17  Bruno Haible  <bruno@clisp.org>
53991
53992         * modules/tls (License): Change to LGPLv2+.
53993         Reported by Eric Blake.
53994
53995 2008-06-17  Eric Blake  <ebb9@byu.net>
53996
53997         Simplify c-stack prerequisites.
53998         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54000         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54001         check.
54002         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54003         <sys/resource.h>.
54004
54005         Move c-stack test into testsuite.
54006         * modules/c-stack-tests: New file.
54007         * lib/c-stack.c [DEBUG]: Move test program...
54008         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54009         fail test if sigaltstack is lacking.
54010         * tests/test-c-stack.sh: New driver file.
54011
54012 2008-06-16  Eric Blake  <ebb9@byu.net>
54013
54014         Use raise module consistently.
54015         * modules/fatal-signal (Depends-on): Add raise.
54016         * modules/sigprocmask (Depends-on): Likewise.
54017         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54018         * lib/sigprocmask.c (sigprocmask): Likewise.
54019         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54020         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54021
54022         Fix compliance bug in sigpending.
54023         * lib/sigprocmask.c (sigpending): Return pending array via
54024         parameter, not return value.
54025
54026 2008-06-14  Eric Blake  <ebb9@byu.net>
54027
54028         Improve obstack-printf test code.
54029         * tests/test-obstack-printf.c (test_function): Fix comment, and
54030         simplify usage of obstack_* in macros.  Add a test for coverage.
54031         Reported by Bruno Haible.
54032
54033 2008-06-14  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54036         array size as a constant, not as a const variable.
54037         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54038         AC_USE_SYSTEM_EXTENSIONS.
54039         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54040         Test whether the obstack_printf function actually exists.
54041         * modules/obstack-printf (Depends-on): Add extensions.
54042         (Include): Remove obstack.h.
54043         * modules/obstack-printf-posix (Depends-on): Add extensions.
54044         (Include): Remove obstack.h.
54045
54046 2008-06-13  Eric Blake  <ebb9@byu.net>
54047
54048         Add obstack-printf and obstack-printf-posix modules.
54049         * modules/obstack-printf: New file.
54050         * modules/obstack-printf-posix: Likewise.
54051         * MODULES.html.sh (Misc): Mention them.
54052         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54053         Likewise.
54054         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54055         Likewise.
54056         * modules/stdio (Makefile.am): Accomodate new modules.
54057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54058         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54059         Declare.
54060         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54061         functions.
54062         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54063         (gl_REPLACE_OBSTACK_PRINTF): New macros
54064         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54065         * tests/test-obstack-printf.c: New file.
54066         * modules/obstack-printf-tests: Likewise.
54067         * modules/obstack-printf-posix-tests: Likewise.
54068
54069 2008-06-11  Bruno Haible  <bruno@clisp.org>
54070
54071         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54072         * lib/open.c: Include errno.h.
54073         (open): Fail when attempting to write to a file that has a trailing
54074         slash.
54075         * tests/test-open.c (main): Test against trailing slash bug.
54076         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54077
54078 2008-06-10  Bruno Haible  <bruno@clisp.org>
54079
54080         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54081         for $? to work inside the trap command, with various /bin/sh-s.
54082         * tests/test-vc-list-files-cvs.sh: Likewise.
54083
54084 2008-06-10  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/acl-internal.h: Don't include gettext.h here.
54087         * lib/set-mode-acl.c: Include gettext.h here.
54088         * lib/copy-acl.c: Likewise.
54089
54090 2008-06-10  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54093         * lib/wait-process.c (wait_subprocess): Likewise.
54094         * lib/execute.h (execute): Add termsigp argument.
54095         * lib/execute.c (execute): Likewise.
54096         * lib/csharpcomp.c (compile_csharp_using_pnet,
54097         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54098         * lib/csharpexec.c (execute_csharp_using_pnet,
54099         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54100         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54101         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54102         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54103         is_jikes_present): Update.
54104         * lib/javaexec.c (execute_java_class): Update.
54105         * lib/javaversion.c (execute_and_read_line): Update.
54106         * NEWS: Document the changes.
54107         Reported by Eric Blake.
54108
54109 2008-06-10  Eric Blake  <ebb9@byu.net>
54110
54111         Add missing include.
54112         * tests/test-strstr.c (includes): Add <signal.h>.
54113         * tests/test-strcasestr.c (includes): Likewise.
54114         * tests/test-memmem.c (includes): Likewise.
54115
54116 2008-06-10  Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/wait-process.c (wait_subprocess): Add an assertion.
54119
54120 2008-06-10  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54123
54124 2008-06-10  Bruno Haible  <bruno@clisp.org>
54125
54126         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54127         using alarm().
54128         * tests/test-strcasestr.c (main): Likewise.
54129         * tests/test-strstr.c (main): Likewise.
54130
54131 2008-06-09  Bruno Haible  <bruno@clisp.org>
54132
54133         Work around the Solaris 10 ACE ACLs ABI change.
54134         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54135         declare if ACL_NO_TRIVIAL is present.
54136         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54137         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54138         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54139         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54140         define if ACL_NO_TRIVIAL is present.
54141         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54142         and use the current ABI.
54143         (file_has_acl): Use same #if condition as elsewhere.
54144         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54145         in use, and use the current ABI.
54146         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54147         Reported by Jim Meyering.
54148
54149 2008-06-09  Eric Blake  <ebb9@byu.net>
54150
54151         Work around environments that (stupidly) ignore SIGALRM.
54152         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54153         before using alarm().
54154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54156         Reported by Ian Beckwith <ianb@erislabs.net>.
54157
54158         Produce autobuild blurb earlier in log.
54159         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54160
54161 2008-06-09  Jim Meyering  <meyering@redhat.com>
54162         and OndÅ™ej Vašík  <ovasik@redhat.com>
54163
54164         utimens.c: correct kernel bug work-around
54165         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54166         failure, not success, and the kernel bug we're trying to work
54167         around affects not just the utimensat call, but also the fallback
54168         futimens call.
54169         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54170         not success.
54171         [HAVE_FUTIMENS]: Use the same work-around, here.
54172
54173 2008-06-09  Jim Meyering  <meyering@redhat.com>
54174
54175         add more guards around definition of ACE_-related code
54176         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54177         ALLOW and ACE_OWNER are also defined.
54178
54179 2008-06-08  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/acl-internal.h: Add me as co-author.
54182         * lib/file-has-acl.c: Likewise.
54183         * lib/set-mode-acl.c: Likewise.
54184         * lib/copy-acl.c: Likewise.
54185
54186 2008-06-08  Bruno Haible  <bruno@clisp.org>
54187
54188         Add support for AIX ACLs.
54189         * lib/acl-internal.h (acl_nontrivial): New declaration.
54190         * lib/file-has-acl.c (acl_nontrivial): New function.
54191         (file_has_acl): Add implementation using AIX 4 ACL API.
54192         * lib/set-mode-acl.c (qset_acl): Likewise.
54193         * lib/copy-acl.c (qcopy_acl): Likewise.
54194
54195 2008-06-08  Bruno Haible  <bruno@clisp.org>
54196
54197         Add support for HP-UX ACLs.
54198         * lib/acl-internal.h (acl_nontrivial): New declaration.
54199         * lib/file-has-acl.c (acl_nontrivial): New function.
54200         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54201         * lib/set-mode-acl.c (qset_acl): Likewise.
54202         * lib/copy-acl.c (qcopy_acl): Likewise.
54203
54204 2008-06-08  Bruno Haible  <bruno@clisp.org>
54205
54206         Add support for Cygwin ACLs.
54207         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54208         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54209         the chmod_or_fchmod call.
54210         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54211
54212 2008-06-08  Bruno Haible  <bruno@clisp.org>
54213
54214         Fix bug with setuid modes in Solaris 10+ code.
54215         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54216         succeeded, when the mode contains some special bits.
54217
54218 2008-06-08  Bruno Haible  <bruno@clisp.org>
54219
54220         Add support for Solaris 7..10 ACLs.
54221         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54222         declarations.
54223         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54224         functions.
54225         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54226         * lib/set-mode-acl.c (qset_acl): Likewise.
54227         * lib/copy-acl.c (qcopy_acl): Likewise.
54228
54229 2008-06-08  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54232         declaration.
54233         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54234         (acl_access_nontrivial): Remove MacOS X case.
54235         (file_has_acl): Use acl_extended_nontrivial.
54236         * lib/copy-acl.c (qcopy_acl): Likewise.
54237
54238 2008-06-08  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54241
54242 2008-06-08  Jim Meyering  <meyering@redhat.com>
54243
54244         * modules/acl (Maintainer): Add Bruno Haible.
54245
54246 2008-06-07  Bruno Haible  <bruno@clisp.org>
54247
54248         Improve support for Tru64 ACLs.
54249         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54250         ACL on OSF/1.
54251
54252 2008-06-07  Bruno Haible  <bruno@clisp.org>
54253
54254         Add support for MacOS X ACLs.
54255         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54256         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54257         * lib/set-mode-acl.c (qset_acl): Likewise.
54258         * lib/copy-acl.c (qcopy_acl): Likewise.
54259
54260 2008-06-07  Bruno Haible  <bruno@clisp.org>
54261
54262         Fix memory leak introduced on 2008-05-22.
54263         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54264         use.
54265
54266 2008-06-07  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54269         to construct an empty ACL.
54270
54271 2008-06-07  Bruno Haible  <bruno@clisp.org>
54272
54273         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54274         precisely.
54275         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54276
54277 2008-06-07  Bruno Haible  <bruno@clisp.org>
54278
54279         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54280         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54281
54282 2008-06-07  Bruno Haible  <bruno@clisp.org>
54283
54284         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54285         regardless of POSIX.
54286         * doc/posix-functions/_longjmp.texi: Likewise.
54287         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54288         SystemV platform in this case.
54289
54290 2008-06-06  Eric Blake  <ebb9@byu.net>
54291
54292         Document abort() bugs.
54293         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54294
54295         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54296         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54297         sigsetjmp.
54298         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54299         siglongjmp, but only as a macro.
54300         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54301         is obsolete.
54302         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54303
54304         Tweak documentation to cover cygwin argz bugs.
54305         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54306         argz bug fix; no code change needed since no cygwin releases
54307         occurred between the last fix and the bug being tested.
54308         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54309         module and recently fixed cygwin bugs.
54310         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54311         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54312         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54313         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54314         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54315         Likewise.
54316         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54317         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54318         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54319         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54320         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54321         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54322         Likewise.
54323
54324         Avoid gcc warning on cygwin.
54325         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54326         !ACL_NO_TRIVIAL]: Avoid unused variable.
54327
54328 2008-06-05  Eric Blake  <ebb9@byu.net>
54329
54330         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54331         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54332         git-version-gen fails to come up with a version.
54333         Reported by Simon Josefsson.
54334
54335 2008-06-05  Jim Meyering  <meyering@redhat.com>
54336             Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         utimens.c: work around a probable Linux kernel bug
54339         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54340         appears to be a kernel bug that causes utimensat to return 280
54341         instead of 0, indicating success.
54342
54343 2008-06-04  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54346         2008-06-01 commit.
54347
54348 2008-06-04  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54351         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54352         (file_has_acl): Use it. Save errno afterwards.
54353         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54354
54355 2008-06-03  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54358         draft code. Simplify #ifs.
54359         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54360         Put Solaris code after POSIX-draft code. Fix comments regarding
54361         Solaris 10, HP-UX. Mention Cygwin.
54362         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54363
54364 2008-06-03  Eric Blake  <ebb9@byu.net>
54365
54366         Provide fallback for older kernels.
54367         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54368         Provide runtime fallback if kernel lacks support.
54369         Reported by Mike Frysinger.
54370
54371 2008-06-02  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54374         it exists.
54375
54376 2008-06-02  Bruno Haible  <bruno@clisp.org>
54377
54378         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54379         * lib/copy-acl.c (qcopy_acl): Update comment.
54380
54381 2008-06-02  Bruno Haible  <bruno@clisp.org>
54382
54383         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54384         like ACL APIs.
54385
54386 2008-06-02  Bruno Haible  <bruno@clisp.org>
54387
54388         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54389         * tests/test-set-mode-acl.sh: Likewise.
54390         * tests/test-copy-acl.sh: Likewise.
54391         * tests/test-copy-file.sh: Likewise.
54392
54393 2008-06-02  Bruno Haible  <bruno@clisp.org>
54394
54395         * tests/test-file-has-acl.sh: Remove unused code.
54396
54397 2008-06-01  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54400         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54401         messages.
54402         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54403
54404 2008-06-01  Bruno Haible  <bruno@clisp.org>
54405
54406         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54407         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54408         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54409         APIs.
54410         * modules/acl-tests (configure.ac): Remove tests now contained in
54411         m4/acl.m4.
54412
54413 2008-06-02  Jim Meyering  <meyering@redhat.com>
54414
54415         announce-gen: use a better key-server host name
54416         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54417         it may be more consistently reliable.  Suggested by Werner Koch
54418         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54419
54420 2008-06-01  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54423         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54424
54425 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54426
54427         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54428
54429 2008-06-01  Bruno Haible  <bruno@clisp.org>
54430
54431         New ACL tests.
54432         * tests/test-file-has-acl.sh: New file.
54433         * tests/test-file-has-acl.c: New file.
54434         * tests/test-set-mode-acl.sh: New file.
54435         * tests/test-set-mode-acl.c: New file.
54436         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54437         * tests/test-copy-acl.c: New file.
54438         * modules/acl-tests: New file, based on modules/copy-file-tests.
54439         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54440         (Depends-on): Add acl-tests.
54441         (configure.ac): Remove checks.
54442         (Makefile.am): Don't create test-sameacls program here any more.
54443
54444 2008-06-01  Bruno Haible  <bruno@clisp.org>
54445
54446         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54447         * tests/test-sameacls.c: Include progname.h.
54448         (main): Invoke set_program_name. Portability fixes for MacOS X,
54449         Solaris, HP-UX.
54450
54451 2008-06-01  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54454         function.
54455         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54456
54457 2008-06-01  Bruno Haible  <bruno@clisp.org>
54458
54459         * modules/rpmatch (Depends-on): Add strdup.
54460
54461 2008-06-01  Bruno Haible  <bruno@clisp.org>
54462
54463         * lib/pipe.c: Include unistd-safer.h.
54464         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54465         * modules/pipe (Depends-on): Add unistd-safer.
54466
54467 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54468
54469         * modules/autobuild (configure.ac): Call AB_INIT.
54470
54471 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54472
54473         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54474         Suggested by Bruno Haible <bruno@clisp.org>.
54475
54476 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54477
54478         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54479         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54480         <bruno@clisp.org>.
54481
54482 2008-05-29  Eric Blake  <ebb9@byu.net>
54483
54484         Prefer new POSIX 200x interfaces over futimesat.
54485         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54486         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54487         when available.
54488         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54489
54490 2008-05-28  Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/stpcpy (License): Change to LGPLv2+.
54493         Requested by David Lutterkort <dlutter@redhat.com>.
54494
54495 2008-05-27  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54498         current mingw.
54499         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54500
54501 2008-05-27  Bruno Haible  <bruno@clisp.org>
54502
54503         * modules/iconv_open (Link): New section, from module 'iconv'.
54504         * modules/striconv (Link): Likewise.
54505         * modules/striconveh (Link): Likewise.
54506         * modules/xstriconv (Link): Likewise.
54507         * modules/unicodeio (Link): Likewise.
54508         * modules/propername (Link): Likewise.
54509         Reported by Jim Meyering.
54510
54511 2008-05-26  Jim Meyering  <meyering@redhat.com>
54512
54513         sha256: do not artificially restrict buffer length to be < 2^32
54514         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54515         uint32_t to size_t.
54516         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54517         to match.
54518
54519         avoid unaligned access errors, e.g., on sparc
54520         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54521         direct access through a possibly-unaligned uint64* pointer.
54522         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54523         direct access through a possibly-unaligned uint32* pointer.
54524         Prompted by this patch from Tom "spot" Callaway:
54525         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54526
54527         sha512.c: fix typo in comment
54528         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54529
54530 2008-05-25  Bruno Haible  <bruno@clisp.org>
54531
54532         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54533         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54534         (Makefile.am): Update lib_SOURCES.
54535
54536 2008-05-25  Bruno Haible  <bruno@clisp.org>
54537
54538         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54539
54540 2008-05-25  Jim Meyering  <meyering@redhat.com>
54541
54542         useless-if-before-free: freed expr may have white-space differences
54543         * build-aux/useless-if-before-free: Recognize cases in which the
54544         freed expression differs from the tested one in embedded white
54545         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54546         $1 was used, so we can't make any regexp shy.  Improved tests now
54547         detect this.
54548
54549         useless-if-before-free: accept white space in the expression.
54550         * build-aux/useless-if-before-free: For now, any white space
54551         in the expression must be identical in the free argument.
54552
54553         useless-if-before-free: efficiency tweak
54554         * build-aux/useless-if-before-free: Make the expression-matching
54555         regexp "shy".
54556         Make the *outer* regexp shy, not the expr-matching one.
54557
54558         update code-in-comment to accept cast of free arg
54559         * build-aux/useless-if-before-free: Update regexp.
54560
54561 2008-05-25  Bruno Haible  <bruno@clisp.org>
54562
54563         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54564         * modules/copy-file-tests (Files, Makefile.am): Update.
54565         * tests/test-copy-file.c (func_test_copy): Update.
54566
54567 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54568
54569         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54570
54571 2008-05-23  Bruno Haible  <bruno@clisp.org>
54572
54573         Improve support for ACLs on OSF/1.
54574         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54575         Remove fallback for unknown flavors of ACLs.
54576
54577 2008-05-22  Bruno Haible  <bruno@clisp.org>
54578
54579         Add support for ACLs on OSF/1.
54580         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54581         replacements.
54582         (acl_free_text): New macro fallback.
54583         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54584         acl_free.
54585         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54586         acl_free_text function. Require AC_C_INLINE.
54587
54588 2008-05-22  Bruno Haible  <bruno@clisp.org>
54589
54590         Make copy_acl work on MacOS X 10.5.
54591         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54592         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54593         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54594         If MODE_INSIDE_ACL, don't assume that every system has the same text
54595         representation for ACLs as FreeBSD.
54596         * lib/copy-acl.c (copy_acl): Add support for platforms with
54597         !MODE_INSIDE_ACL.
54598         * lib/file-has-acl.c (file_has_acl): Likewise.
54599         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54600         FreeBSD, MacOS X, or IRIX, respectively.
54601
54602 2008-05-22  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/acl.h: Don't include <sys/acl.h>.
54605         (GETACLCNT): Move fallback to lib/acl-internal.h.
54606         * lib/acl-internal.h: Include <sys/acl.h> here.
54607         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54608
54609 2008-05-22  Bruno Haible  <bruno@clisp.org>
54610
54611         Split off copy_acl function to separate file.
54612         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54613         * lib/acl.c (copy_acl): Moved function to separate file.
54614         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54615         * modules/acl (Files): Add lib/copy-acl.c.
54616         (Makefiles.am): Augment lib_SOURCES.
54617
54618 2008-05-22  Bruno Haible  <bruno@clisp.org>
54619
54620         * modules/copy-file-tests: New file.
54621         * tests/test-copy-file.sh: New file.
54622         * tests/test-copy-file.c: New file.
54623         * tests/test-copy-file-sameacls.c: New file.
54624
54625 2008-05-22  Eric Blake  <ebb9@byu.net>
54626
54627         Avoid gcc warning.
54628         * tests/test-memcmp.c (main): Pass NULL indirectly.
54629
54630 2008-05-21  Bruno Haible  <bruno@clisp.org>
54631
54632         Add reference doc about ACLs.
54633         * doc/acl-resources.txt: New file.
54634         * doc/acl-cygwin.txt: New file.
54635
54636 2008-05-21  Bruno Haible  <bruno@clisp.org>
54637
54638         Avoid one more warning from gcc.
54639         * lib/vasnprintf.c (IF_LINT): Update comments.
54640         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54641
54642 2008-05-21  Jim Meyering  <meyering@redhat.com>
54643
54644         avoid a warning from gcc
54645         * lib/vasnprintf.c (IF_LINT): Define.
54646         (scale10_round_decimal_long_double):
54647         Use it to avoid a "may be used uninitialized" warning.
54648         (scale10_round_decimal_double): Likewise.
54649
54650 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54651
54652         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54653         declared.
54654
54655 2008-05-20  Bruno Haible  <bruno@clisp.org>
54656
54657         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54658         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54659
54660 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54661
54662         * modules/memcmp-tests: New file.
54663         * tests/test-memcmp.c: New file.
54664
54665 2008-05-19  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/propername (Notice, configure.ac): Put quoted "..." into
54668         --keyword option.
54669         * lib/propername.h: Update comments accordingly.
54670         Reported by Eric Blake.
54671
54672 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54673
54674         * modules/getpass-gnu (Depends-on): Add fseeko.
54675
54676 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54677
54678         * modules/base64-tests: New file.
54679
54680 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54681
54682         * lib/base64.c (base64_decode_ctx): If a decode context structure
54683         was passed in use it to ignore newlines.  If a context structure
54684         was _not_ passed in, continue to treat newlines as garbage (this
54685         is the historical behavior).  Formerly base64_decode.
54686         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54687         takes a decode context structure.
54688         * lib/base64.h (base64_decode): Macro for four-argument calls.
54689         (base64_decode_alloc): Likewise.
54690         * lib/base64.c (base64_decode_ctx): If a decode context structure
54691         was passed in use it to ignore newlines.  If a context structure
54692         was _not_ passed in, continue to treat newlines as garbage (this
54693         is the historical behavior).  Formerly base64_decode.
54694         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54695         takes a decode context structure.
54696         * lib/base64.h (base64_decode): Macro for four-argument calls.
54697         (base64_decode_alloc): Likewise.
54698
54699 2008-05-19  Jim Meyering  <meyering@redhat.com>
54700
54701         avoid a warning from gcc
54702         * lib/trim.c (IF_LINT): Define.
54703         (trim2): Use it to avoid a "may be used uninitialized" warning.
54704
54705         Fix doc typo.
54706         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54707
54708 2008-05-19  Bruno Haible  <bruno@clisp.org>
54709
54710         * doc/glibc-functions/getpass.texi: Document limits of other
54711         implementations.
54712
54713 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54714             Bruno Haible <bruno@clisp.org>
54715
54716         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54717
54718 2008-05-18  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/propername: New file, from GNU gettext.
54721         * lib/propername.h: New file, from GNU gettext.
54722         * lib/propername.c: New file, from GNU gettext.
54723         * MODULES.html.sh (Internationalization functions): Add propername.
54724
54725 2008-05-16  Jim Meyering  <meyering@redhat.com>
54726             Bruno Haible  <bruno@clisp.org>
54727
54728         Avoid some warnings from "gcc -Wshadow".
54729         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54730
54731 2008-05-15  Eric Blake  <ebb9@byu.net>
54732
54733         Extend previous patch to cygwin 1.7.0.
54734         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54735         fast implementation in cygwin >= 1.7.0.
54736         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54738
54739 2008-05-15  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54742         implementation in glibc >= 2.9.
54743         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54745
54746 2008-05-15  Bruno Haible  <bruno@clisp.org>
54747
54748         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54749         (Unicode string functions): Add unilbrk/*.
54750         Reported by Karl Berry.
54751
54752 2008-05-15  Eric Blake  <ebb9@byu.net>
54753
54754         Fix violation of <stdbool.h> replacement in regex.
54755         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54756         * lib/regexec.c (re_search_internal): Likewise.
54757         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54758
54759 2008-05-15  Jim Meyering  <meyering@redhat.com>
54760
54761         avoid distracting test output when git or cvs is not found
54762         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54763         * tests/test-vc-list-files-git.sh: Likewise.
54764
54765 2008-05-15  Eric Blake  <ebb9@byu.net>
54766
54767         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54768         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54769         glibc version.
54770         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54771         * doc/posix-functions/strstr.texi (strstr): Likewise.
54772         * lib/str-two-way.h (MAX): Sychronize with glibc.
54773
54774 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54775
54776         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54777         opr.ctx_type.
54778         (calc_first): Initialize constraint field.
54779         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54780         Fix grammar.
54781         (duplicate_node): Merge constraint field for all node types.
54782         (calc_eclosure_iter): Look at constraint field for all node types.
54783         * lib/regex_internal.c (create_cd_newstate): Don't look at
54784         opr.ctx_type.
54785
54786 2008-05-14  Bruno Haible  <bruno@clisp.org>
54787
54788         Help GCC to do better code generation.
54789         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54790         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54791         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54792         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54793         Declare with attribute 'malloc' if supported.
54794
54795 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54796
54797         use "echo STR|wc -c" rather than unportable "expr length STR"
54798         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54799         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54800
54801 2008-05-14  Jim Meyering  <meyering@redhat.com>
54802
54803         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54804         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54805         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54806         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54807         via Collin Lasse.
54808
54809 2008-05-14  Eric Blake  <ebb9@byu.net>
54810
54811         Avoid quadratic growth in gl_LIBSOURCES.
54812         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54813         Suggested by Bruno Haible.
54814
54815         Test xmemdup0.
54816         * modules/xmemdup0-tests: New file.
54817         * tests/test-xmemdup0.c: Likewise.
54818
54819 2008-05-13  Eric Blake  <ebb9@byu.net>
54820
54821         Split xmemdup0 into its own module.
54822         * modules/xmemdup0: New file.
54823         * lib/xmemdup0.h: Likewise.
54824         * lib/xmemdup0.c: Likewise.
54825         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54826         * lib/xalloc.h (xmemdup0): Remove.
54827         * lib/xmalloc.c (xmemdup0): Likewise.
54828
54829 2008-05-13  Eric Blake  <ebb9@byu.net>
54830             Bruno Haible  <bruno@clisp.org>
54831
54832         Reduce number of forks required during autoconf.
54833         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54834         and gl_LIBSOURCES_DIR.
54835         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54836         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54837         m4_syscmd per file.
54838         <m4_foreach_w>: Move...
54839         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54840
54841 2008-05-13  Eric Blake  <ebb9@byu.net>
54842
54843         * gnulib-tool: Fix various comment typos.
54844
54845 2008-05-12  Bruno Haible  <bruno@clisp.org>
54846
54847         Tailor the linebreaking algorithm.
54848         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54849
54850 2008-05-12  Bruno Haible  <bruno@clisp.org>
54851
54852         Update to Unicode 5.0.0.
54853         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54854         LBP_JV, LBP_JT. Redistribute values.
54855         (unilbrk_table): Change size.
54856         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54857         Unicode TR#14 rev. 22.
54858         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54859         LBP_JV, LBP_JT. Redistribute values.
54860         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54861         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54862         Update.
54863         * lib/unilbrk/lbrkprop1.h: Regenerated.
54864         * lib/unilbrk/lbrkprop2.h: Regenerated.
54865         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54866         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54867         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54868         Likewise.
54869         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54870         Likewise.
54871         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54872         result.
54873         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54874         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54875         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54876         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54877         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54878         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54879
54880 2008-05-11  Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54883
54884 2008-05-11  Bruno Haible  <bruno@clisp.org>
54885
54886         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54887         * modules/unilbrk/gen-lbrk: New file.
54888
54889 2008-05-11  Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54892         * m4/sha512.m4 (gl_SHA512): Likewise.
54893
54894 2008-05-11  Jim Meyering  <meyering@redhat.com>
54895
54896         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54897         * modules/crypto/sha256: New file.
54898         * modules/crypto/sha512: Likewise.
54899         * lib/sha256.c: Likewise.
54900         * lib/sha256.h: Likewise.
54901         * lib/sha512.c: Likewise.
54902         * lib/sha512.h: Likewise.
54903         * lib/u64.h: Likewise.
54904         * m4/sha256.m4: Likewise.
54905         * m4/sha512.m4: Likewise.
54906         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54907
54908 2008-05-10  Bruno Haible  <bruno@clisp.org>
54909
54910         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54911         (Input/Output <stdio.h>): Add xprintf.
54912         (Signal handling <signal.h>): Add strsignal.
54913         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54914         (Core language properties): Add func.
54915         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54916         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54917         strings.
54918         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54919         (Input/output): New section.
54920         (File system functions): Add openat-die, stat-macros.
54921         (Networking functions): Add sockets.
54922         (Unicode string functions): Add unictype/*.
54923         (Support for building libraries and executables): Add gperf.
54924         (Support for building documentation): Add agpl-3.0.
54925         (Misc): Add nocrash.
54926
54927 2008-05-10  Bruno Haible  <bruno@clisp.org>
54928
54929         * modules/unictype/gen-ctype: New file.
54930
54931 2008-05-10  Jim Meyering  <meyering@redhat.com>
54932
54933         Make chdir-safer.c more efficient on a system with no symlinks.
54934         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54935         also if ELOOP is zero.  Suggested by Bruno Haible.
54936
54937         Make chdir-safer.c slightly safer.
54938         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54939         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54940
54941         Avoid compile failure on systems without ELOOP (like mingw).
54942         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54943         Reported by Bruno Haible.
54944
54945 2008-05-10  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54948         (is_utf8_encoding): Use a case-insensitive comparison.
54949         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54950         streq.
54951
54952 2008-05-10  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54955         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54956         * lib/unilbrk/ulc-common.h (iconv_string_length,
54957         iconv_string_keeping_offsets): Remove declarations.
54958         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54959         Don't include <iconv.h>, streq.h, xsize.h.
54960         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54961         conversion.
54962         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54963         <iconv.h>, streq.h, xsize.h.
54964         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54965         conversion.
54966         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54967         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54968         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54969         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54970
54971 2008-05-10  Bruno Haible  <bruno@clisp.org>
54972
54973         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54974         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54975
54976         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54977         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54978
54979         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54980         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54981
54982         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54983         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54984
54985         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54986         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54987
54988         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54989         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54990
54991         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54992         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54993
54994         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54995         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54996
54997 2008-05-10  Bruno Haible  <bruno@clisp.org>
54998
54999         Split up 'linebreak' module.
55000         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55001         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55002         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55003         modifications.
55004         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55005         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55006         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55007         lib/linebreak.c.
55008         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55009         lib/linebreak.c.
55010         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55011         lib/linebreak.c.
55012         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55013         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55014         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55015         lib/linebreak.c.
55016         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55017         lib/linebreak.c.
55018         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55019         lib/linebreak.c.
55020         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55021         lib/linebreak.c.
55022         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55023         lib/linebreak.c.
55024         * modules/unilbrk/base: New file.
55025         * modules/unilbrk/tables: New file.
55026         * modules/unilbrk/u8-possible-linebreaks: New file.
55027         * modules/unilbrk/u16-possible-linebreaks: New file.
55028         * modules/unilbrk/u32-possible-linebreaks: New file.
55029         * modules/unilbrk/ulc-common: New file.
55030         * modules/unilbrk/ulc-possible-linebreaks: New file.
55031         * modules/unilbrk/u8-width-linebreaks: New file.
55032         * modules/unilbrk/u16-width-linebreaks: New file.
55033         * modules/unilbrk/u32-width-linebreaks: New file.
55034         * modules/unilbrk/ulc-width-linebreaks: New file.
55035         * lib/linebreak.h: Remove file.
55036         * lib/linebreak.c: Remove file.
55037         * m4/linebreak.m4: Remove file.
55038         * modules/linebreak: Remove file.
55039         * NEWS: Mention the changes.
55040
55041 2008-05-09  Eric Blake  <ebb9@byu.net>
55042
55043         Add xmemdup0.
55044         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55045         implementation.
55046         * lib/xmalloc.c (xmemdup0): New C implementation.
55047
55048 2008-05-08  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55051
55052 2008-05-07  Eric Blake  <ebb9@byu.net>
55053
55054         Support cross-compilation of <wctype.h>.
55055         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55056         AC_CACHE_CHECK.
55057
55058 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55059
55060         * build-aux/vc-list-files: Add support for bzr.
55061
55062 2008-05-03  Jim Meyering  <meyering@redhat.com>
55063
55064         avoid failed assertion with tight malloc
55065         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55066
55067 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55068
55069         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55070         are needed from arpa/inet.h.
55071         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55072         Reported by Bruno Haible.
55073
55074 2008-05-02  Jim Meyering  <meyering@redhat.com>
55075
55076         avoid compilation error on FreeBSD 6
55077         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55078
55079 2008-05-01  Jim Meyering  <meyering@redhat.com>
55080
55081         useless-if-before-free: correct --help's exit status description
55082         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55083         for one or more matches, etc.  Reported by Bruno Haible.
55084
55085         vc-list-files: make the stand-alone gnulib test work
55086         * modules/vc-list-files-tests (configure.ac):
55087         Define and AC_SUBST abs_aux_dir.
55088         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55089         $(abs_top_srcdir) to each script and having each of them
55090         duplicate the work of setting PATH, set PATH here, using
55091         the new variable, abs_aux_dir instead.
55092         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55093         * tests/test-vc-list-files-git.sh: Likewise.
55094         Reported by Bruno Haible.
55095
55096 2008-05-01  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55099         reallocation. Rename 'done' to 'found_delimiter'.
55100
55101 2008-05-01  Jim Meyering  <meyering@redhat.com>
55102
55103         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55104         * build-aux/vc-list-files: Use `...`, not $(...).
55105
55106 2008-04-30  Jim Meyering  <meyering@redhat.com>
55107
55108         add tests for vc-list-files
55109         * modules/vc-list-files-tests: New module.
55110         * tests/test-vc-list-files-cvs.sh: New file.
55111         * tests/test-vc-list-files-git.sh: New file.
55112
55113         avoid a warning from gcc
55114         * lib/getndelim2.c (IF_LINT): Define.
55115         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55116
55117         vc-list-files: work properly with build-aux/cvsu, too
55118         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55119         to all cvs-based clauses.
55120
55121         vc-list-files: work properly in the CVS+awk case, too
55122         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55123
55124         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55125         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55126         take more than one file argument, so .  Add quotes, just in case $dir
55127         ever contains a shell meta-character.  Prompted by Soren Hansen in
55128         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55129
55130 2008-04-29  Eric Blake  <ebb9@byu.net>
55131
55132         Optimize getndelim2 to use block operations when possible.
55133         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55134         freadseek, and memchr2.
55135         * lib/getndelim2.c (getndelim2): Use them for block reads.
55136
55137 2008-04-29  Bruno Haible  <bruno@clisp.org>
55138
55139         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55140         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55141         * modules/inet_ntop (Depends-on): Add extensions.
55142         * modules/inet_pton (Depends-on): Likewise.
55143         Reported by Simon Josefsson.
55144
55145 2008-04-29  Jim Meyering  <meyering@redhat.com>
55146
55147         When the is more than one match in a block, match all of them.
55148         * build-aux/useless-if-before-free: Iterate through each block
55149         until there are no more matches.
55150
55151         Fix broken useless-if-before-free script.
55152         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55153         the expression to match cast of argument to free-like function.
55154
55155 2008-04-29  Eric Blake  <ebb9@byu.net>
55156
55157         Use new header.
55158         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55159
55160 2008-04-29  Jim Meyering  <meyering@redhat.com>
55161
55162         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55163         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55164         by gnulib to exist and to declare e.g., inet_ntop.
55165         Don't include "inet_ntop.h", now removed.
55166
55167         * m4/arpa_inet_h.m4: Remove trailing blanks.
55168
55169 2008-04-29  Eric Blake  <ebb9@byu.net>
55170
55171         Silence valgrind on safe reads beyond potential array bounds.
55172         * lib/rawmemchr.valgrind: New file.
55173         * lib/strchrnul.valgrind: Likewise.
55174         * modules/rawmemchr (Files): Distribute new file.
55175         * modules/strchrnul (Files): Likewise.
55176         Suggested by Bruno Haible.
55177
55178 2008-04-29  Bruno Haible  <bruno@clisp.org>
55179
55180         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55181         (inet_ntop, inet_pton): Change portability warning's wording.
55182         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55183         Invoke gl_CHECK_NEXT_HEADERS.
55184         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55185         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55186         set ARPA_INET_H.
55187         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55188         * modules/arpa_inet (Description): No longer only for systems that
55189         lack it.
55190         (Depends-on): Add include_next.
55191         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55192         HAVE_ARPA_INET_H.
55193
55194 2008-04-29  Jim Meyering  <meyering@redhat.com>
55195
55196         * modules/mkdir (License): Re-license as LGPLv2+.
55197
55198 2008-04-29  Bruno Haible  <bruno@clisp.org>
55199
55200         * modules/rawmemchr (Maintainer): Set to Eric.
55201         * modules/strchrnul (Maintainer): Likewise.
55202
55203 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55204
55205         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55206         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55207
55208         * modules/arpa_inet (arpa/inet.h): Use them.
55209
55210 2008-04-28  Eric Blake  <ebb9@byu.net>
55211
55212         Test getndelim2.
55213         * modules/getndelim2-tests: New file.
55214         * tests/test-getndelim2.c: Likewise.
55215         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55216         stream.
55217         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55218
55219         * MODULES.html.sh: Document new module.
55220
55221 2008-04-20  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/c-stack.c (die): Use raise.
55224         * modules/c-stack (Depends-on): Add raise.
55225
55226 2008-04-28  Bruno Haible  <bruno@clisp.org>
55227
55228         Expect rpmatch to be declared.
55229         * lib/yesno.c (rpmatch): Remove declaration.
55230
55231         Declare rpmatch.
55232         * lib/stdlib.in.h (rpmatch): New declaration.
55233         * lib/rpmatch.c: Include <stdlib.h> first.
55234         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55235         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55237         HAVE_RPMATCH.
55238         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55239         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55240         (Include): Set to <stdlib.h>.
55241         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55242         HAVE_RPMATCH.
55243         * NEWS: Document the change.
55244
55245 2008-04-28  Bruno Haible  <bruno@clisp.org>
55246
55247         Change rpmatch to use nl_langinfo when appropriate.
55248         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55249         (N_): New macro.
55250         (localized_pattern): New function/macro.
55251         (try): Remove match, nomatch arguments. Copy the pattern into safe
55252         memory before caching it.
55253         (rpmatch): Use localized_pattern. Add translator comments.
55254         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55255         Suggested by Eric Blake.
55256         * modules/rpmatch (Depends-on): Add stdbool.
55257
55258 2008-04-28  Eric Blake  <ebb9@byu.net>
55259
55260         Add rawmemchr module, matching glibc.
55261         * modules/string (Makefile.am): New indicator.
55262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55263         * lib/string.in.h (rawmemchr): Declare when appropriate.
55264         * modules/rawmemchr: New file.
55265         * m4/rawmemchr.m4: Likewise.
55266         * lib/rawmemchr.c: Likewise.
55267         * modules/rawmemchr-tests: Likewise.
55268         * tests/test-rawmemchr.c: Likewise.
55269         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55270         module.
55271         * modules/strchrnul (Depends-on): Add rawmemchr.
55272         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55273
55274         Whitespace cleanup.
55275         * tests/test-strchrnul.c: Reindent.
55276         * lib/strchrnul.c: Likewise.
55277
55278         Optimize and test strchrnul.
55279         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55280         * modules/strchrnul-tests: New file.
55281         * tests/test-strchrnul.c: Likewise.
55282
55283         Remove intprops dependency.
55284         * modules/memchr (Depends-on): Remove intprops.
55285         * modules/memrchr (Depends-on): Likewise.
55286         * modules/memchr2 (Depends-on): Likewise.
55287         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55288         * lib/memrchr.c (__memrchr): Likewise.
55289         * lib/memrchr2.c (memchr2): Likewise.
55290         Reported by Simon Josefsson.
55291
55292 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55293
55294         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55295         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55296
55297 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55298
55299         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55300
55301         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55302
55303         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55304
55305         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55306         declarations.
55307         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55308
55309         * m4/inet_pton.m4: Don't check for header files.
55310
55311         * m4/inet_ntop.m4: Don't check for header files.
55312
55313 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55314
55315         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55316         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55317         trigger for cygwin).
55318         Reported by Bruno Haible  <bruno@clisp.org>.
55319
55320 2008-04-28  Bruno Haible  <bruno@clisp.org>
55321
55322         * doc/posix-functions/strdup.texi: Mention mingw problem.
55323
55324 2008-04-27  Bruno Haible  <bruno@clisp.org>
55325
55326         * modules/stat-time-tests (Depends-on): Add sleep.
55327         * tests/test-stat-time.c (force_unlink): New function.
55328         (cleanup): Use it.
55329         (test_mtime): Remove the ctime related tests.
55330         (test_ctime): New function, containing the ctime related tests.
55331         (main): Call test_ctime, except on native Windows platforms.
55332
55333 2008-04-27  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/rpmatch.c (rpmatch): Add some comments.
55336         Reported by James Youngman <jay@gnu.org>.
55337
55338 2008-04-27  Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55341         quiet NaNs.
55342
55343 2008-04-27  Bruno Haible  <bruno@clisp.org>
55344
55345         Make test-yesno.sh work on mingw.
55346         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55347         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55348         (main): Set stdin to binary mode.
55349         * modules/yesno-tests (Depends-on): Add binary-io.
55350
55351 2008-04-27  Bruno Haible  <bruno@clisp.org>
55352
55353         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55354         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55355         argument that lie outside the IEEE 854 domain.
55356         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55357         (gl_ISFINITE): Use it.
55358         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55359
55360 2008-04-27  Bruno Haible  <bruno@clisp.org>
55361
55362         Allow local renaming in config.h.
55363         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55364
55365 2008-04-27  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/memchr.c (__memchr): Change type of 'i'.
55368         * lib/memchr2.c (memchr2): Likewise.
55369
55370 2008-04-26  Eric Blake  <ebb9@byu.net>
55371         and Bruno Haible  <bruno@clisp.org>
55372
55373         Optimize and test memrchr.
55374         * modules/memrchr (Depends-on): Add intprops.
55375         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55376         * modules/memrchr-tests: New file.
55377         * tests/test-memrchr.c: New file.
55378
55379 2008-04-26  Bruno Haible  <bruno@clisp.org>
55380
55381         Add tentative support for DragonFly BSD.
55382         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55383         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55384         fp.
55385         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55386         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55387         * lib/fpurge.c (fpurge): Likewise.
55388         * lib/freadable.c (freaadable): Likewise.
55389         * lib/freadahead.c (freadahead): Likewise.
55390         * lib/freading.c (freading): Likewise.
55391         * lib/freadptr.c (freadptr): Likewise.
55392         * lib/freadseek.c (freadptrinc): Likewise.
55393         * lib/fseeko.c (fseeko): Likewise.
55394         * lib/fseterr.c (fseterr): Likewise.
55395         * lib/fwritable.c (fwritable): Likewise.
55396         * lib/fwriting.c (fwriting): Likewise.
55397
55398 2008-04-26  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/stdio-impl.h: New file.
55401         * lib/fbufmode.c: Include stdio-impl.h.
55402         (fbufmode): Use fp_, remove redundant #defines.
55403         * lib/fflush.c: Include stdio-impl.h.
55404         (clear_ungetc_buffer): Remove redundant #defines.
55405         * lib/fpurge.c: Include stdio-impl.h.
55406         (fpurge): Remove redundant #defines.
55407         * lib/freadable.c: Include stdio-impl.h.
55408         (freadable): Remove redundant #defines.
55409         * lib/freadahead.c: Include stdio-impl.h.
55410         (freadahead): Remove redundant #defines.
55411         * lib/freading.c: Include stdio-impl.h.
55412         (freading): Remove redundant #defines.
55413         * lib/freadptr.c: Include stdio-impl.h.
55414         (freadptr): Remove redundant #defines.
55415         * lib/freadseek.c: Include stdio-impl.h.
55416         (freadptrinc): Remove redundant #defines.
55417         * lib/fseeko.c: Include stdio-impl.h.
55418         (rpl_fseeko): Remove redundant #defines.
55419         * lib/fseterr.c: Include stdio-impl.h.
55420         (fseterr): Remove redundant #defines.
55421         * lib/fwritable.c: Include stdio-impl.h.
55422         (fwritable: Remove redundant #defines.
55423         * lib/fwriting.c: Include stdio-impl.h.
55424         (fwriting): Remove redundant #defines.
55425         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55426         * modules/fflush (Files): Likewise.
55427         * modules/fpurge (Files): Likewise.
55428         * modules/freadable (Files): Likewise.
55429         * modules/freadahead (Files): Likewise.
55430         * modules/freading (Files): Likewise.
55431         * modules/freadptr (Files): Likewise.
55432         * modules/freadseek (Files): Likewise.
55433         * modules/fseeko (Files): Likewise.
55434         * modules/fseterr (Files): Likewise.
55435         * modules/fwritable (Files): Likewise.
55436         * modules/fwriting (Files): Likewise.
55437
55438 2008-04-26  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55441         restore_seek_optimization, update_fpos_cache): New functions, extracted
55442         from rpl_fflush.
55443         (rpl_fflush): Use them.
55444         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55445         (gl_REPLACE_FFLUSH): Use it.
55446
55447 2008-04-26  Bruno Haible  <bruno@clisp.org>
55448
55449         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55450         on Solaris.
55451         * tests/test-xstrtoimax.sh: Likewise.
55452         * tests/test-xstrtoumax.sh: Likewise.
55453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55454
55455 2008-04-26  Bruno Haible  <bruno@clisp.org>
55456
55457         * modules/memchr-tests: New file.
55458         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55459
55460 2008-04-26  Eric Blake  <ebb9@byu.net>
55461             Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/memchr.c: Include intprops.h.
55464         (__memchr): Optimize parallel detection of matching bytes. Rename local
55465         variables. Add explanatory comments.
55466
55467 2008-04-26  Bruno Haible  <bruno@clisp.org>
55468
55469         Fix module 'memchr', broken since 2000-10-28.
55470         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55471
55472 2008-04-26  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55475         comments.
55476
55477 2008-04-25  Eric Blake  <ebb9@byu.net>
55478
55479         Use native fstatat on cygwin 1.7.0.
55480         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55481         first.
55482
55483 2008-04-23  Eric Blake  <ebb9@byu.net>
55484
55485         Improve memchr2 performance.
55486         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55487         NUL bytes.
55488         * modules/memchr2 (Depends-on): Use intprops.h.
55489
55490 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55491
55492         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55493         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55494         <blp@cs.stanford.edu>.
55495
55496 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55497
55498         * lib/arpa_inet.in.h: New file.
55499
55500         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55501         (Makefile.am): Sed in substitute header file.
55502
55503         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55504         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55505
55506         * modules/inet_ntop (configure.ac): Use
55507         gl_ARPA_INET_MODULE_INDICATOR.
55508
55509         * modules/inet_pton (configure.ac): Use
55510         gl_ARPA_INET_MODULE_INDICATOR.
55511
55512 2008-04-22  Jim Meyering  <meyering@redhat.com>
55513
55514         * modules/verify (License): Re-license as LGPLv2+.
55515
55516 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55517
55518         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55519         parameter to void* as per POSIX standard (MinGW uses char*).
55520
55521 2008-04-21  Bruno Haible  <bruno@clisp.org>
55522
55523         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55524         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55525         Define to replacements if REPLACE_ISWCNTRL is 1.
55526         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55527         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55528         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55529         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55530         what it fixes.
55531         * doc/posix-functions/iswalpha.texi: Likewise.
55532         * doc/posix-functions/iswblank.texi: Likewise.
55533         * doc/posix-functions/iswcntrl.texi: Likewise.
55534         * doc/posix-functions/iswdigit.texi: Likewise.
55535         * doc/posix-functions/iswgraph.texi: Likewise.
55536         * doc/posix-functions/iswlower.texi: Likewise.
55537         * doc/posix-functions/iswprint.texi: Likewise.
55538         * doc/posix-functions/iswpunct.texi: Likewise.
55539         * doc/posix-functions/iswspace.texi: Likewise.
55540         * doc/posix-functions/iswupper.texi: Likewise.
55541         * doc/posix-functions/iswxdigit.texi: Likewise.
55542         Reported by Alain Guibert.
55543
55544 2008-04-21  Bruno Haible  <bruno@clisp.org>
55545
55546         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55547         Patch by Alain Guibert.
55548
55549 2008-04-21  Bruno Haible  <bruno@clisp.org>
55550
55551         Fix test failures on mingw.
55552         * tests/test-xstrtol.c (print_no_progname): New function.
55553         (main): Install it in error_print_progname hook.
55554         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55555         * tests/test-xstrtoimax.sh: Likewise.
55556         * tests/test-xstrtoumax.sh: Likewise.
55557
55558 2008-04-21  Bruno Haible  <bruno@clisp.org>
55559
55560         Fix test failure on mingw.
55561         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55562
55563 2008-04-21  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55566         Actually assign a value.
55567
55568 2008-04-20  Bruno Haible  <bruno@clisp.org>
55569
55570         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55571         take 2.
55572         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55573         'canonicalize-lgpl' module is also used.
55574         * lib/canonicalize-lgpl.c: Undo last change.
55575         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55576
55577 2008-04-20  Bruno Haible  <bruno@clisp.org>
55578
55579         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55580         config.h. Provide _mkdir based fallback for mingw.
55581         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55582         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55583         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55584         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55585         rather than defining mkdir in config.h.
55586         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55587         (gl_SYS_STAT_H_DEFAULTS): New macro.
55588         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55589         HAVE_IO_H any more.
55590         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55591         HAVE_DECL_MKDIR and HAVE_IO_H.
55592
55593 2008-04-20  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/isapipe.c: Port to native Windows platforms.
55596
55597 2008-04-20  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55600
55601 2008-04-21  Eric Blake  <ebb9@byu.net>
55602
55603         Work around preprocessors that don't handle UINTMAX_MAX.
55604         * lib/memchr2.c (memchr2): Avoid embedded #if.
55605         Reported by Alain Guibert, fix suggested by Bruno Haible.
55606
55607 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55608
55609         * doc/posix-functions/strftime.texi (strftime): Explain better
55610         Windows incompatibility.  Suggested by Micah Cowan
55611         <micah@cowan.name>.
55612
55613 2008-04-20  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55616         unistr/u8-mblen.
55617
55618 2008-04-20  Bruno Haible  <bruno@clisp.org>
55619
55620         Fix test failure on platforms with non-GNU iconv.
55621         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55622         (U_TO_U8): Use it, rather than u16_to_u8.
55623         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55624         units at the end of the input string.
55625         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55626
55627 2008-04-20  Bruno Haible  <bruno@clisp.org>
55628
55629         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55630         when the resulting length is 0.
55631         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55632
55633 2008-04-20  Bruno Haible  <bruno@clisp.org>
55634
55635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55636         works.
55637         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55638
55639 2008-04-20  Bruno Haible  <bruno@clisp.org>
55640
55641         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55642         * modules/tsearch-tests (configure.ac): Test for initstate function.
55643
55644 2008-04-20  Bruno Haible  <bruno@clisp.org>
55645
55646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55647         for nlink_t if missing.
55648         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55649
55650 2008-04-19  Bruno Haible  <bruno@clisp.org>
55651
55652         Work around snprintf bug on Linux libc5.
55653         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55655         gl_SNPRINTF_SIZE1.
55656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55657         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55658         that test failed.
55659         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55660         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55661         * modules/snprintf (Files): Add m4/printf.m4.
55662         * modules/vsnprintf (Files): Likewise.
55663         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55664         * doc/posix-functions/vsnprintf.texi: Likewise.
55665
55666 2008-04-19  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55669         from 0.0058 to less than 10^-7.
55670
55671 2008-04-19  Bruno Haible  <bruno@clisp.org>
55672
55673         Fix rounding when a precision is given.
55674         * lib/vasnprintf.c (is_borderline): New function.
55675         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55676         9...9x.
55677         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55678         %e, %g.
55679         * tests/test-vasprintf-posix.c (test_function): Likewise.
55680         * tests/test-snprintf-posix.h (test_function): Likewise.
55681         * tests/test-sprintf-posix.h (test_function): Likewise.
55682         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55683         * tests/test-printf-posix.h (test_function): Likewise.
55684         * tests/test-printf-posix.output: Update.
55685         Reported by John Darrington <john@darrington.wattle.id.au> via
55686         Ben Pfaff <blp@cs.stanford.edu>.
55687
55688 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55689
55690         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55691         Suggested by Bruno Haible <bruno@clisp.org>.
55692
55693 2008-04-17  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55696         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55697         implementation.
55698         Patch by Bruce Merry <bmerry@gmail.com>.
55699
55700 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55701
55702         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55703         doesn't work under Windows.
55704
55705 2008-04-16  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55708         New macros.
55709         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55710         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55711         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55712         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55713         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55714         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55715         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55716         macros.
55717         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55718         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55719         Northern Sotho, Uighur.
55720
55721 2008-04-16  Bruno Haible  <bruno@clisp.org>
55722
55723         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55724         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55725         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55726         Reported by Daniel Bergström <daniel@octocode.com>.
55727
55728 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55729             Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55732         function.
55733         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55734         New functions, mostly extracted from gl_locale_name_default.
55735         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55736
55737 2008-04-16  Eric Blake  <ebb9@byu.net>
55738
55739         Adjust strtod detection to catch glibc 2.7 bug.
55740         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55741         Reported by John Gatewood Ham.
55742
55743 2008-04-16  Bruno Haible  <bruno@clisp.org>
55744
55745         Add tentative support for Linux libc5.
55746         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55747         * lib/fpurge.c (fpurge): Likewise.
55748         * lib/freadable.c (freadable): Likewise.
55749         * lib/freadahead.c (freadahead): Likewise.
55750         * lib/freading.c (freading): Likewise.
55751         * lib/freadptr.c (freadptr): Likewise.
55752         * lib/freadseek.c (freadptrinc): Likewise.
55753         * lib/fseeko.c (rpl_fseeko): Likewise.
55754         * lib/fseterr.c (fseterr): Likewise.
55755         * lib/fwritable.c (fwritable): Likewise.
55756         * lib/fwriting.c (fwriting): Likewise.
55757         Reported by Alain Guibert <alguibert+bts@free.fr>.
55758
55759 2008-04-15  Bruno Haible  <bruno@clisp.org>
55760
55761         * modules/mathl (configure.ac): Define module indicator.
55762
55763 2008-04-15  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/logl.c (logl): Remove unused variables.
55766
55767 2008-04-15  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55770         fails.
55771
55772 2008-04-15  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/trim.c (trim2): Fix argument of isspace() macro.
55775
55776 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55777
55778         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55779         to 0.
55780         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55781
55782 2008-04-14  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55785         AC_LANG_PROGRAM argument.
55786         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55787         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55789         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55790         * m4/math_h.m4 (gl_MATH_H): Likewise.
55791         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55792         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55793         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55794         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55795         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55796         * m4/regex.m4 (gl_REGEX): Likewise.
55797         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55798         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55800         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55802         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55803         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55804         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55805
55806 2008-04-14  Jim Meyering  <meyering@redhat.com>
55807
55808         test-strtod: fix typos: s/abs/fabs/
55809         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55810
55811 2008-04-13  Bruno Haible  <bruno@clisp.org>
55812
55813         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55814         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55815         module is also used and while not building the reloc-wrapper.
55816
55817 2008-04-13  Bruno Haible  <bruno@clisp.org>
55818
55819         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55820
55821 2008-04-13  Bruno Haible  <bruno@clisp.org>
55822
55823         Fix AIX compilation failure introduced on 2008-04-02.
55824         * tests/test-frexp.c (exp): Undefine before redefining.
55825         * tests/test-frexpl.c (exp): Likewise.
55826
55827 2008-04-13  Bruno Haible  <bruno@clisp.org>
55828
55829         Work around a HP-UX stdio bug.
55830         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55831         * tests/test-ftello.c (main): Likewise.
55832         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55833         * doc/posix-functions/ftello.texi: Likewise.
55834
55835 2008-04-13  Bruno Haible  <bruno@clisp.org>
55836
55837         Make test-signbit pass on HP-UX/hppa.
55838         * tests/test-signbit.c (minus_zerol): New variable.
55839         (test_signbitl): Use it.
55840
55841 2008-04-13  Bruno Haible  <bruno@clisp.org>
55842
55843         Make truncl work on OSF/1 4.0.
55844         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55845         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55846         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55848         HAVE_DECL_TRUNCL.
55849         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55850         HAVE_DECL_TRUNCL.
55851         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55852
55853 2008-04-13  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55856
55857 2008-04-13  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55860         expression, so as to avoid HP-UX 11 cc compiler bug.
55861
55862 2008-04-13  Bruno Haible  <bruno@clisp.org>
55863
55864         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55865
55866 2008-04-13  Bruno Haible  <bruno@clisp.org>
55867
55868         * lib/git-merge-changelog.c: Remove empty declaration outside of
55869         functions.
55870
55871 2008-04-13  Bruno Haible  <bruno@clisp.org>
55872
55873         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55874
55875 2008-04-13  Bruno Haible  <bruno@clisp.org>
55876
55877         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55878         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55880         also if it exists but lacks definitions of the SHUT_* macros.
55881         * modules/sys_socket (Description): Update.
55882         Reported by Elbert Pol <e.pol@chello.nl>.
55883
55884 2008-04-13  Bruno Haible  <bruno@clisp.org>
55885
55886         * lib/localcharset.c (OS2): Don't redefine if already defined.
55887         Reported by Elbert Pol <e.pol@chello.nl>.
55888
55889 2008-04-13  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/binary-io.h [__EMX__]: Include <io.h>.
55892         Reported by Elbert Pol <e.pol@chello.nl>.
55893
55894 2008-04-12  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/fpucw.h: Enable the definitions also for x86_64.
55897         Needed for NetBSD/x86_64.
55898         Reported by Thomas Klausner <tk@giga.or.at>.
55899
55900 2008-04-12  Bruno Haible  <bruno@clisp.org>
55901
55902         * tests/test-strtod.c: Include isnand.h.
55903         (main): Use isnand instead of isnan.
55904         Reported by Jim Meyering.
55905
55906 2008-04-12  Bruno Haible  <bruno@clisp.org>
55907
55908         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55910
55911 2008-04-12  Jim Meyering  <meyering@redhat.com>
55912
55913         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55914
55915 2008-04-12  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55918         Reported by Elbert Pol <e.pol@chello.nl>.
55919
55920 2008-04-12  Eric Blake  <ebb9@byu.net>
55921
55922         Work around Solaris 10 math.h bug.
55923         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55924         (gl_MATH_H_DEFAULTS): Set up default.
55925         * modules/math (Makefile.am): Replace new indicators.
55926         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55927         * tests/test-math.c (main): Test this.
55928         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55929         * doc/posix-headers/math.texi (math.h): Mention bug.
55930         Reported by Nelson H. F. Beebe and Jim Meyering.
55931
55932 2008-04-11  Bruno Haible  <bruno@clisp.org>
55933
55934         Adapt to future versions of Apple GCC.
55935         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55936         Reported by Peter O'Gorman <peter@pogma.com>.
55937
55938 2008-04-11  Bruno Haible  <bruno@clisp.org>
55939
55940         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55941
55942 2008-04-11  Bruno Haible  <bruno@clisp.org>
55943
55944         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55945
55946         * modules/getaddrinfo-tests (Makefile.am): Define
55947         test_getaddrinfo_LDADD.
55948
55949 2008-04-11  Bruno Haible  <bruno@clisp.org>
55950
55951         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55952         (init): Fix syntax error.
55953         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55954         is declared.
55955
55956 2008-04-11  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55959         * modules/glob (Depends-on): Add stdbool.
55960
55961 2008-04-11  Bruno Haible  <bruno@clisp.org>
55962
55963         * lib/trim.c: Include <string.h>.
55964
55965 2008-04-11  Eric Blake  <ebb9@byu.net>
55966
55967         Avoid compile failure on OS/2.
55968         * lib/regex_internal.h (internal_function): Disable optimization
55969         on OS/2 (__EMX__), where it caused compiler error.
55970         Reported by Elbert Pol.
55971
55972 2008-04-11  Bruno Haible  <bruno@clisp.org>
55973
55974         Flush the standard error stream before aborting. Needed on mingw.
55975         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55976         * tests/test-array_list.c (ASSERT): Likewise.
55977         * tests/test-array_oset.c (ASSERT): Likewise.
55978         * tests/test-avltree_list.c (ASSERT): Likewise.
55979         * tests/test-avltree_oset.c (ASSERT): Likewise.
55980         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55981         * tests/test-binary-io.c (ASSERT): Likewise.
55982         * tests/test-byteswap.c (ASSERT): Likewise.
55983         * tests/test-c-ctype.c (ASSERT): Likewise.
55984         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55985         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55986         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55987         * tests/test-c-strstr.c (ASSERT): Likewise.
55988         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55989         * tests/test-canonicalize.c (ASSERT): Likewise.
55990         * tests/test-carray_list.c (ASSERT): Likewise.
55991         * tests/test-ceilf1.c (ASSERT): Likewise.
55992         * tests/test-ceilf2.c (ASSERT): Likewise.
55993         * tests/test-ceill.c (ASSERT): Likewise.
55994         * tests/test-count-one-bits.c (ASSERT): Likewise.
55995         * tests/test-fbufmode.c (ASSERT): Likewise.
55996         * tests/test-fflush2.c (ASSERT): Likewise.
55997         * tests/test-floorf1.c (ASSERT): Likewise.
55998         * tests/test-floorf2.c (ASSERT): Likewise.
55999         * tests/test-floorl.c (ASSERT): Likewise.
56000         * tests/test-fopen.c (ASSERT): Likewise.
56001         * tests/test-fpending.c (ASSERT): Likewise.
56002         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56003         * tests/test-fpurge.c (ASSERT): Likewise.
56004         * tests/test-freadable.c (ASSERT): Likewise.
56005         * tests/test-freadahead.c (ASSERT): Likewise.
56006         * tests/test-freading.c (ASSERT): Likewise.
56007         * tests/test-freadptr.c (ASSERT): Likewise.
56008         * tests/test-freadptr2.c (ASSERT): Likewise.
56009         * tests/test-freadseek.c (ASSERT): Likewise.
56010         * tests/test-freopen.c (ASSERT): Likewise.
56011         * tests/test-frexp.c (ASSERT): Likewise.
56012         * tests/test-frexpl.c (ASSERT): Likewise.
56013         * tests/test-fseek.c (ASSERT): Likewise.
56014         * tests/test-fseeko.c (ASSERT): Likewise.
56015         * tests/test-fstrcmp.c (ASSERT): Likewise.
56016         * tests/test-ftell.c (ASSERT): Likewise.
56017         * tests/test-ftello.c (ASSERT): Likewise.
56018         * tests/test-func.c (ASSERT): Likewise.
56019         * tests/test-fwritable.c (ASSERT): Likewise.
56020         * tests/test-fwriting.c (ASSERT): Likewise.
56021         * tests/test-getdelim.c (ASSERT): Likewise.
56022         * tests/test-getline.c (ASSERT): Likewise.
56023         * tests/test-i-ring.c (ASSERT): Likewise.
56024         * tests/test-iconv-utf.c (ASSERT): Likewise.
56025         * tests/test-iconv.c (ASSERT): Likewise.
56026         * tests/test-isfinite.c (ASSERT): Likewise.
56027         * tests/test-isnand.c (ASSERT): Likewise.
56028         * tests/test-isnanf.c (ASSERT): Likewise.
56029         * tests/test-isnanl.h (ASSERT): Likewise.
56030         * tests/test-ldexpl.c (ASSERT): Likewise.
56031         * tests/test-linked_list.c (ASSERT): Likewise.
56032         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56033         * tests/test-localename.c (ASSERT): Likewise.
56034         * tests/test-lseek.c (ASSERT): Likewise.
56035         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56036         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56037         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56038         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56039         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56040         * tests/test-mbschr.c (ASSERT): Likewise.
56041         * tests/test-mbscspn.c (ASSERT): Likewise.
56042         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56043         * tests/test-mbspbrk.c (ASSERT): Likewise.
56044         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56045         * tests/test-mbsrchr.c (ASSERT): Likewise.
56046         * tests/test-mbsspn.c (ASSERT): Likewise.
56047         * tests/test-mbsstr1.c (ASSERT): Likewise.
56048         * tests/test-mbsstr2.c (ASSERT): Likewise.
56049         * tests/test-mbsstr3.c (ASSERT): Likewise.
56050         * tests/test-memchr2.c (ASSERT): Likewise.
56051         * tests/test-memmem.c (ASSERT): Likewise.
56052         * tests/test-open.c (ASSERT): Likewise.
56053         * tests/test-printf-frexp.c (ASSERT): Likewise.
56054         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56055         * tests/test-printf-posix.c (ASSERT): Likewise.
56056         * tests/test-quotearg.c (ASSERT): Likewise.
56057         * tests/test-rbtree_list.c (ASSERT): Likewise.
56058         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56059         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56060         * tests/test-round1.c (ASSERT): Likewise.
56061         * tests/test-roundf1.c (ASSERT): Likewise.
56062         * tests/test-roundl.c (ASSERT): Likewise.
56063         * tests/test-signbit.c (ASSERT): Likewise.
56064         * tests/test-sleep.c (ASSERT): Likewise.
56065         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56066         * tests/test-snprintf.c (ASSERT): Likewise.
56067         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56068         * tests/test-stat-time.c (ASSERT): Likewise.
56069         * tests/test-strcasestr.c (ASSERT): Likewise.
56070         * tests/test-strerror.c (ASSERT): Likewise.
56071         * tests/test-striconv.c (ASSERT): Likewise.
56072         * tests/test-striconveh.c (ASSERT): Likewise.
56073         * tests/test-striconveha.c (ASSERT): Likewise.
56074         * tests/test-strsignal.c (ASSERT): Likewise.
56075         * tests/test-strstr.c (ASSERT): Likewise.
56076         * tests/test-strtod.c (ASSERT): Likewise.
56077         * tests/test-trunc1.c (ASSERT): Likewise.
56078         * tests/test-trunc2.c (ASSERT): Likewise.
56079         * tests/test-truncf1.c (ASSERT): Likewise.
56080         * tests/test-truncf2.c (ASSERT): Likewise.
56081         * tests/test-truncl.c (ASSERT): Likewise.
56082         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56083         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56084         * tests/test-vasnprintf.c (ASSERT): Likewise.
56085         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56086         * tests/test-vasprintf.c (ASSERT): Likewise.
56087         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56088         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56089         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56090         * tests/test-vsnprintf.c (ASSERT): Likewise.
56091         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56092         * tests/test-wcwidth.c (ASSERT): Likewise.
56093         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56094         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56095         * tests/test-xvasprintf.c (ASSERT): Likewise.
56096         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56097         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56098         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56099         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56100         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56101         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56102         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56103         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56104         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56105         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56106         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56107         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56108         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56109         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56110         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56111         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56112         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56113         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56114         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56115         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56116         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56117         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56118         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56119         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56120         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56121         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56122         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56123         * tests/unictype/test-combining.c (ASSERT): Likewise.
56124         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56125         * tests/unictype/test-digit.c (ASSERT): Likewise.
56126         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56127         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56128         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56129         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56130         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56131         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56132         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56133         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56134         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56135         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56136         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56137         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56138         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56139         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56140         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56141         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56142         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56143         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56144         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56145         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56146         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56147         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56148         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56149         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56150         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56151         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56152         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56153         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56154         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56155         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56156         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56157         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56158         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56159         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56160         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56161         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56162         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56163         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56164         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56165         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56166         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56167         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56168         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56169         Reported by Eric Blake.
56170
56171 2008-04-11  Bruno Haible  <bruno@clisp.org>
56172
56173         * lib/wchar.in.h: Tweak comment.
56174
56175 2008-04-11  Bruno Haible  <bruno@clisp.org>
56176
56177         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56178         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56179         gl_COMMON.
56180         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56181
56182 2008-04-11  Bruno Haible  <bruno@clisp.org>
56183
56184         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56185
56186 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56187
56188         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56189         of attempting to use non-existing /dev/*random.  Based on patch
56190         from Adam Strzelecki <ono@java.pl> in
56191         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56192
56193 2008-04-08  Bruno Haible  <bruno@clisp.org>
56194
56195         Add tentative support for emx+gcc.
56196         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56197         * lib/fpurge.c (fpurge): Likewise.
56198         * lib/freadable.c (freadable): Likewise.
56199         * lib/freadahead.c (freadahead): Likewise.
56200         * lib/freading.c (freading): Likewise.
56201         * lib/freadptr.c (freadptr): Likewise.
56202         * lib/freadseek.c (freadptrinc): Likewise.
56203         * lib/fseeko.c (rpl_fseeko): Likewise.
56204         * lib/fseterr.c (fseterr): Likewise.
56205         * lib/fwritable.c (fwritable): Likewise.
56206         * lib/fwriting.c (fwriting): Likewise.
56207         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56208
56209 2008-04-09  Eric Blake  <ebb9@byu.net>
56210
56211         Avoid some autoconf warnings.
56212         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56213         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56214         * m4/afs.m4 (gl_AFS): Likewise.
56215         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56216         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56217         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56218         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56219         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56220         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56221         (AC_CHECK_DECLS_ONCE): Likewise.
56222         Rename file...
56223         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56224         gnulib-tool requires autoconf 2.59 or better.
56225         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56226
56227 2008-04-08  Eric Blake  <ebb9@byu.net>
56228
56229         Use 'git describe --match' if present (added in git 1.5.5).
56230         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56231         if possible.
56232
56233 2008-04-08  Bruno Haible  <bruno@clisp.org>
56234
56235         Add tentative support for OpenServer.
56236         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56237         _ptr, _cnt.
56238         * lib/fpurge.c (fpurge): Likewise.
56239         * lib/freadable.c (freadable): Likewise.
56240         * lib/freadahead.c (freadahead): Likewise.
56241         * lib/freading.c (freading): Likewise.
56242         * lib/freadptr.c (freadptr): Likewise.
56243         * lib/freadseek.c (freadptrinc): Likewise.
56244         * lib/fseeko.c (rpl_fseeko): Likewise.
56245         * lib/fseterr.c (fseterr): Likewise.
56246         * lib/fwritable.c (fwritable): Likewise.
56247         * lib/fwriting.c (fwriting): Likewise.
56248         Reported by Roger Cornelius <rac@tenzing.org> and
56249         Brian K. White <brian@aljex.com>.
56250
56251 2008-04-06  Jim Meyering  <meyering@redhat.com>
56252
56253         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56254
56255 2008-04-06  Bruno Haible  <bruno@clisp.org>
56256
56257         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56258         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56259         * tests/test-printf-posix.sh: Likewise.
56260         * tests/test-vfprintf-posix.sh: Likewise.
56261         * tests/test-vprintf-posix.sh: Likewise.
56262         * tests/test-xprintf-posix.sh: Likewise.
56263
56264 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56265
56266         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56267         hide error from 'ls', needed on OS/2.
56268         Report by Elbert Pol <elbert.pol@gmail.com>.
56269
56270 2008-04-04  Eric Blake  <ebb9@byu.net>
56271
56272         Make test-fseeko.c failures meaningful.
56273         * tests/test-fseeko.c: Print line number on failure.
56274         * tests/test-fseek.c: Likewise.
56275         Reported by Nelson H. F. Beebe.
56276
56277         Improve strtod bug detection check.
56278         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56279         required for Solaris 10.
56280         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56281
56282 2008-04-04  Bruno Haible  <bruno@clisp.org>
56283
56284         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56285         by m4/setenv.m4.
56286
56287 2008-04-03  Eric Blake  <ebb9@byu.net>
56288
56289         Ensure sane .version contents.
56290         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56291         version string.
56292         * build-aux/git-version-gen: Improve documentation.
56293
56294         Make GNU make output nicer.
56295         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56296         MAKECMDGOALS to enforce message for all command line targets.  Set
56297         srcdir for use in maint.mk.
56298
56299         Another maintainer tweak.
56300         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56301         a target that regenerates version.
56302
56303 2008-04-03  Jim Meyering  <meyering@redhat.com>
56304
56305         vc-list-files: don't cause coreutils "make po-check" failure
56306         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56307
56308 2008-04-03  Eric Blake  <ebb9@byu.net>
56309
56310         Allow VPATH usage of vc-list-files.
56311         * build-aux/vc-list-files (scriptversion): Add timestamp.
56312         (options): Add --help, --version, -C.
56313         (CVS): Support installed cvsu.
56314
56315 2008-04-02  Bruno Haible  <bruno@clisp.org>
56316
56317         Avoid some "statement with no effect" warnings from gcc.
56318         * tests/test-wctype.c (main): Explicitly ignore unused values.
56319         Reported by Jim Meyering.
56320
56321 2008-04-02  Jim Meyering  <meyering@redhat.com>
56322
56323         Avoid some warnings from "gcc -Wshadow".
56324         * tests/test-frexp.c (exp): Define to a different identifier.
56325         * tests/test-frexpl.c (exp): Likewise.
56326
56327 2008-04-03  Jim Meyering  <meyering@redhat.com>
56328
56329         bootstrap: remove dangling *.[ch] symlinks from lib
56330         * build-aux/bootstrap [dangling symlink removal]: Move find's
56331         -depth option to precede all others, to avoid a warning.
56332         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56333
56334 2008-04-02  Bruno Haible  <bruno@clisp.org>
56335
56336         Avoid some warnings from "gcc -Wshadow".
56337         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56338         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56339         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56340         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56341         Reported by Jim Meyering.
56342
56343 2008-04-01  Bruno Haible  <bruno@clisp.org>
56344
56345         Fix test to work on IRIX 6.5 with cc.
56346         * tests/test-math.c (numeric_equal): New function.
56347         (main): Use it.
56348
56349 2008-04-01  Bruno Haible  <bruno@clisp.org>
56350
56351         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56352
56353 2008-04-01  Bruno Haible  <bruno@clisp.org>
56354
56355         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56356         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56357         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56358         (Depends-on): Remove math.
56359
56360         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56361         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56362         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56363         (Depends-on): Remove math.
56364
56365         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56366         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56367         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56368         (Depends-on): Remove math.
56369         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56370         (Depends-on): Remove math.
56371
56372         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56373         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56374         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56375         (Depends-on): Remove math.
56376         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56377         (Depends-on): Remove math.
56378
56379         * tests/test-round1.c: Include nan.h.
56380         (main): Use NaNd instead of NAN.
56381         * modules/round-tests (Files): Add tests/nan.h.
56382
56383         * tests/test-trunc1.c: Include nan.h.
56384         (main): Use NaNd instead of NAN.
56385         * modules/trunc-tests (Files): Add tests/nan.h.
56386
56387         * tests/test-roundf1.c: Include nan.h.
56388         (main): Use NaNf instead of NAN.
56389         * modules/roundf-tests (Files): Add tests/nan.h.
56390
56391         * tests/test-truncf1.c: Include nan.h.
56392         (main): Use NaNf instead of NAN.
56393         * modules/truncf-tests (Files): Add tests/nan.h.
56394
56395         * tests/test-ceilf1.c: Include nan.h.
56396         (main): Use NaNf instead of NAN.
56397         * modules/ceilf-tests (Files): Add tests/nan.h.
56398
56399         * tests/test-floorf1.c: Include nan.h.
56400         (main): Use NaNf instead of NAN.
56401         * modules/floorf-tests (Files): Add tests/nan.h.
56402
56403         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56404         (main): Use NaNf instead of NAN.
56405         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56406
56407         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56408         (main): Use NaNd instead of NAN.
56409         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56410
56411         * tests/test-frexp.c: Include nan.h.
56412         (main): Use NaNd instead of NAN.
56413         * modules/frexp-tests (Files): Add tests/nan.h.
56414
56415         * lib/isnan.c: Don't include <math.h>.
56416         (FUNC): Don't use NAN macro.
56417         * modules/isnand-nolibm (Depends-on): Remove math.
56418         * modules/isnanf-nolibm (Depends-on): Remove math.
56419         * modules/isnanl (Depends-on): Remove math.
56420         * modules/isnanl-nolibm (Depends-on): Remove math.
56421
56422         * tests/nan.h: New file.
56423
56424 2008-04-01  Eric Blake  <ebb9@byu.net>
56425
56426         Fix typos.
56427         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56428         values to be the right type.
56429
56430         For now, cater to gnulib strtod inaccuracies.
56431         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56432         fractional results.  While not as nice from a QoI perspective, it
56433         is a quicker patch than correctly implementing decimal to binary
56434         rounding.
56435
56436 2008-03-31  Eric Blake  <ebb9@byu.net>
56437
56438         Guarantee a definition of NAN.
56439         * lib/math.in.h (NAN): Define if missing.
56440         * tests/test-math.c (main): Test it.
56441         * doc/posix-headers/math.texi (math.h): Document this.
56442         * lib/isnan.c (rpl_isnand): Use it.
56443         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56444         * tests/test-floorf1.c (NaN): Likewise.
56445         * tests/test-frexp.c (NaN): Likewise.
56446         * tests/test-isnand.c (NaN): Likewise.
56447         * tests/test-isnanf.c (NaN): Likewise.
56448         * tests/test-round1.c (NaN): Likewise.
56449         * tests/test-roundf1.c (NaN): Likewise.
56450         * tests/test-snprintf-posix.h (NaN): Likewise.
56451         * tests/test-sprintf-posix.h (NaN): Likewise.
56452         * tests/test-trunc1.c (NaN): Likewise.
56453         * tests/test-truncf1.c (NaN): Likewise.
56454         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56455         * tests/test-vasprintf-posix.c (NaN): Likewise.
56456         * modules/isnand-nolibm (Depends-on): Add math.
56457         * modules/isnanf-nolibm (Depends-on): Likewise.
56458         * modules/isnanl (Depends-on): Likewise.
56459         * modules/isnanl-nolibm (Depends-on): Likewise.
56460         * modules/snprintf-posix-tests (Depends-on): Likewise.
56461         * modules/sprintf-posix-tests (Depends-on): Likewise.
56462         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56463         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56464         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56465         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56466
56467 2008-03-31  Bruno Haible  <bruno@clisp.org>
56468
56469         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56470         * doc/posix-functions/strtod.texi: Likewise.
56471
56472 2008-03-31  Bruno Haible  <bruno@clisp.org>
56473
56474         * tests/test-strtod.c (main): Don't use C99 syntax.
56475
56476 2008-03-31  Bruno Haible  <bruno@clisp.org>
56477
56478         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56479         Reported by Eric Blake.
56480
56481 2008-03-31  Jim Meyering  <meyering@redhat.com>
56482
56483         Don't compare actual signbit return values.
56484         * tests/test-strtod.c (main): Rather, compare only their
56485         zero/non-zero nature.
56486
56487 2008-03-31  Eric Blake  <ebb9@byu.net>
56488
56489         More strtod documentation.
56490         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56491         failures as distinct bugs.
56492
56493 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56494
56495         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56496         Problem reported by Erik Benada in
56497         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56498
56499 2008-03-30  Bruno Haible  <bruno@clisp.org>
56500
56501         * tests/test-strtod.c: Add comments about which assertion fails on which
56502         platform.
56503         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56504
56505 2008-03-30  Eric Blake  <ebb9@byu.net>
56506
56507         Test signbit behavior on zeros.
56508         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56509         (test_signbitd, test_signbitl): Likewise.
56510
56511         More strtod touchups.
56512         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56513         sign of negative underflow, for now.  Use .5, not .1.
56514         * doc/posix-functions/strtod.texi (strtod): Mention these
56515         limitations.
56516         Reported by Jim Meyering.
56517
56518 2008-03-30  Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56521         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56522
56523 2008-03-30  Bruno Haible  <bruno@clisp.org>
56524
56525         Avoid failure when attempting to return empty iconv results on some
56526         platforms.
56527         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56528         allocation, don't report ENOMEM when the resulting string is empty.
56529
56530 2008-03-30  Bruno Haible  <bruno@clisp.org>
56531
56532         Fix buffer overrun.
56533         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56534         Don't consider the width for tmp_length. Check count against tmp_length
56535         before doing the padding. Ensure enough allocation during padding.
56536
56537 2008-03-30  Eric Blake  <ebb9@byu.net>
56538
56539         strtod touchups.
56540         * lib/strtod.c (strtod): Avoid compiler warnings.
56541         Reported by Jim Meyering.
56542
56543 2008-03-30  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56546         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56547         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56548         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56549         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56550         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56551         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56552         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56553
56554         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56555         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56556         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56557         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56558         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56559         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56560         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56561         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56562
56563         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56564         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56565         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56566         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56567         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56568         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56569         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56570         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56571
56572         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56573         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56574
56575         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56576         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56577
56578         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56579         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56580
56581         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56583         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56584
56585         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56587         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56588
56589         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56591         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56592
56593         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56595         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56596
56597         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56598         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56600         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56601         (Depends-on): Add EOVERFLOW.
56602         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56603         (Depends-on): Add EOVERFLOW.
56604         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56605         (Depends-on): Add EOVERFLOW.
56606         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56607         (Depends-on): Add EOVERFLOW.
56608         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56609         (Depends-on): Add EOVERFLOW.
56610         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56611         (Depends-on): Add EOVERFLOW.
56612         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56613         (Depends-on): Add EOVERFLOW.
56614         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56615         (Depends-on): Add EOVERFLOW.
56616
56617         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56619         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56620
56621         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56622         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56623         * modules/snprintf (Depends-on): Add EOVERFLOW.
56624
56625         * lib/poll.c (EOVERFLOW): Remove fallback.
56626         * modules/poll (Depends-on): Add EOVERFLOW.
56627
56628         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56629         * modules/getugroups (Depends-on): Add EOVERFLOW.
56630
56631         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56632         * modules/getdelim (Depends-on): Add EOVERFLOW.
56633
56634         * lib/ftell.c (EOVERFLOW): Remove fallback.
56635         * modules/ftell (Depends-on): Add EOVERFLOW.
56636
56637         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56639         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56640
56641         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56642
56643         * modules/EOVERFLOW-tests: New file.
56644         * tests/test-EOVERFLOW.c: New file.
56645
56646         * modules/EOVERFLOW: New file.
56647         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56648
56649 2008-03-30  Bruno Haible  <bruno@clisp.org>
56650
56651         Fix bug introduced on 2007-06-10.
56652         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56653         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56654
56655 2008-03-30  Bruno Haible  <bruno@clisp.org>
56656
56657         Improve freadseek's efficiency after ungetc.
56658         * lib/freadseek.c: Include freadahead.h.
56659         (freadptrinc): New function, extracted from freadseek.
56660         (freadseek): Use it in a loop. Use freadahead to determine the number
56661         of loop iterations.
56662         * modules/freadseek (Depends-on): Add freadahead.
56663         (configure.ac): Require AC_C_INLINE.
56664
56665 2008-03-30  Bruno Haible  <bruno@clisp.org>
56666
56667         * lib/freadseek.c (freadseek): Don't ignore the return value of
56668         freadptr.
56669
56670 2008-03-29  Eric Blake  <ebb9@byu.net>
56671
56672         Add hex float support.
56673         * modules/strtod (Depends-on): Add c-ctype.
56674         (Link): Mention POW_LIB.
56675         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56676         whitespace between 'e' and exponent.
56677         * tests/test-strtod.c (main): Enable hex float tests.
56678         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56679         now provides.
56680
56681         Document various strtod bugs, with some fixes.
56682         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56683         "-0x", "inf", "nan", and hex constants.
56684         * doc/posix-functions/atof.texi (atof): Likewise.
56685         * modules/stdlib (Makefile.am): Support strtod.
56686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56687         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56688         detect additional strtod bugs.
56689         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56690         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56691         bool where appropriate.  Parse 'inf' and 'nan'.
56692         * tests/test-strtod.c: New file.
56693         * modules/strtod (Depends-on): Add stdbool, stdlib.
56694         (configure.ac): Turn on module indicator.
56695         * modules/strtod-tests: New module.
56696
56697 2008-03-29  Eric Blake  <ebb9@byu.net>
56698
56699         Fix ftell on mingw.
56700         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56701         * modules/ftell-tests (Depends-on): Add binary-io.
56702         * modules/ftello-tests (Depends-on): Likewise.
56703         * tests/test-ftell.c (main): Enhance test to cover behavior after
56704         ungetc.  Enforce binary mode.
56705         * tests/test-ftello.c (main): Likewise.
56706
56707         Pass test-freadseek on cygwin.
56708         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56709         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56710         ungetc buffer.
56711
56712         * tests/test-fflush2.c (main): Fix typo.
56713
56714 2008-03-29  Bruno Haible  <bruno@clisp.org>
56715
56716         * tests/test-fflush2.c (main): Temporarily disable the contents of
56717         this test.
56718         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56719         Reported by Eric Blake.
56720
56721 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56722
56723         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56724         (GC_SHA224_DIGEST_SIZE): Add.
56725
56726         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56727         (gc_hash_digest_length): Likewise.
56728         (gc_hash_buffer): Likewise.
56729
56730 2008-03-25  Bruno Haible  <bruno@clisp.org>
56731
56732         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56733         detail which gettext release to use.
56734         Reported by Simon Josefsson.
56735
56736 2008-03-26  Jim Meyering  <meyering@redhat.com>
56737
56738         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56739         * modules/gnumakefile (clean-GNUmakefile): Also, use
56740         test ... && ... || : syntax rather than if-then ... fi.
56741
56742         gnumakefile: Don't double-quote-expand $(VPATH) value.
56743         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56744
56745 2008-03-24  Eric Blake  <ebb9@byu.net>
56746
56747         Alter GNUmakefile to install into top directory.
56748         * modules/maintainer-makefile: Split, and add dependency...
56749         * modules/gnumakefile: to this new module.
56750         * build-aux/GNUmakefile: Move...
56751         * top/GNUmakefile: ...here.
56752         * build-aux/maint.mk: Move...
56753         * top/maint.mk: ...here.
56754         * MODULES.html.sh (Support for maintaining...): Document new
56755         module.
56756
56757 2008-03-23  Bruno Haible  <bruno@clisp.org>
56758
56759         * gnulib-tool: New options --vc-files, --no-vc-files.
56760         (func_usage): Document them.
56761         (vc_files): New variable.
56762         (func_import): Consider vc_files.
56763         (func_create_testdir): Set vc_files to empty.
56764         Suggested by Jim Meyering and Karl Berry.
56765
56766 2008-03-23  Bruno Haible  <bruno@clisp.org>
56767
56768         Fix regex compilation error on HP-UX 11.
56769         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56770         * modules/regex (Files): Add m4/mbstate_t.m4.
56771         Reported by Ton Voon <ton.voon@altinity.com>.
56772
56773 2008-03-23  Bruno Haible  <bruno@clisp.org>
56774
56775         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56776
56777 2008-03-23  Eric Blake  <ebb9@byu.net>
56778             Bruno Haible  <bruno@clisp.org>
56779
56780         Install files from top/ in the destination directory.
56781         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56782         augmentation also for the files from top/.
56783         (func_import, func_create_testdir): Rewrite file names:
56784         top/filename -> filename.
56785
56786 2008-03-23  Bruno Haible  <bruno@clisp.org>
56787
56788         Tweak "gnulib --version" output.
56789         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56790
56791 2008-03-23  Bruno Haible  <bruno@clisp.org>
56792
56793         Tweak "gnulib --version" output.
56794         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56795         rather than contents of ChangeLog, when possible.
56796
56797 2008-03-21  Eric Blake  <ebb9@byu.net>
56798
56799         More --version tweaks.
56800         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56801         date of last ChangeLog entry.
56802
56803 2008-03-21  Jim Meyering  <meyering@redhat.com>
56804
56805         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56806
56807 2008-03-20  Eric Blake  <ebb9@byu.net>
56808
56809         VPATH fix.
56810         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56811
56812 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56813
56814         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56815         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56816
56817 2008-03-20  Eric Blake  <ebb9@byu.net>
56818
56819         Sync GNUmakefile with coreutils.
56820         * build-aux/GNUmakefile (have-Makefile): Rename...
56821         (_have-Makefile): ...to this, for namespace consideration.
56822         (GNUmakefile.cfg): Include, if present.
56823         (_autoreconf): Define a default.
56824         (_is-dist-target): New rule for rebuilds to pick up intra-release
56825         version.
56826         (maint-cfg.mk): Rename...
56827         (cfg.mk): ...to this.
56828
56829 2008-03-18  Jim Meyering  <meyering@redhat.com>
56830
56831         New script and module: mktempd
56832         * MODULES.html.sh (maint+release support): Add mktempd.
56833         * build-aux/mktempd: New file.
56834         * modules/mktempd: New file.
56835
56836 2008-03-15  Jim Meyering  <meyering@redhat.com>
56837
56838         Undo last change.
56839         * lib/sha1.c, lib/md5.c: 63 != ~63.
56840         Reported by Andreas Schwab.
56841
56842         sha1.c, md5.c: Hoist a redundant expression.
56843         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56844         "ctx->buflen" only once, before calling *_process_block.
56845         * lib/md5.c (md5_process_bytes): Likewise.
56846
56847 2008-03-14  Eric Blake  <ebb9@byu.net>
56848
56849         Bump copyright year in files generated by gnulib-tool.
56850         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56851         gnulib-tool, rather than hard-coding it.
56852
56853         Fix 'gnulib-tool --version' output to work with git.
56854         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56855         (startup): ...here.
56856         (func_version): Use it to invoke git-version-gen, rather than
56857         relying on CVS keyword expansion.  Modernize wording.
56858         (cvsdatestamp, last_checkin_date, version): Kill unused
56859         variables.
56860
56861 2008-03-12  Jim Meyering  <meyering@redhat.com>
56862
56863         Recognize optional cast of the argument to free.
56864         * build-aux/useless-if-before-free: Update regexps.
56865
56866         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56867
56868 2008-03-11  Bruno Haible  <bruno@clisp.org>
56869
56870         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56871         by a single package.
56872         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56873         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56874         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56875         Reported by Sam Steingold <sds@gnu.org>.
56876
56877 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56878
56879         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56880         repositories.
56881
56882 2008-03-11  Bruno Haible  <bruno@clisp.org>
56883
56884         Avoid conflicts between local macro definitions.
56885         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56886         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56887
56888 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56889             Bruno Haible  <bruno@clisp.org>
56890
56891         Make va_copy work with some version of xlc on AIX 5.1.
56892         * lib/stdarg.in.h: New file.
56893         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56894         On AIX, use a <stdarg.h> file substitute.
56895         * modules/stdarg (Files): Add lib/stdarg.in.h.
56896         (Depends-on): Add include_next.
56897         (Makefile.am): Build a stdarg.h substitute if requested.
56898         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56899
56900 2008-03-10  Bruno Haible  <bruno@clisp.org>
56901
56902         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56904         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56905
56906 2008-03-10  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/stdlib (Depends-on): Add include_next, remove
56909         absolute-header.
56910
56911 2008-03-09  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/freadahead.h (freadahead): Document more precisely.
56914         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56915         the sum of both buffer sizes.
56916         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56917         * NEWS: Document the change.
56918
56919 2008-03-09  Bruno Haible  <bruno@clisp.org>
56920
56921         Extend freadptr to return also the buffer size.
56922         * lib/freadptr.h (freadptr): Add sizep argument.
56923         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56924         (freadptr): Add sizep argument. Determine buffer size like freadahead
56925         does.
56926         * tests/test-freadptr.c: Don't include freadahead.h.
56927         (main): Adapt for new calling convention of freadptr.
56928         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56929         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56930         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56931         tests/test-freadptr2.sh.
56932         (Depends): Remove freadahead.
56933         (TESTS): Add test-freadptr2.sh.
56934         (check_PROGRAMS): Add test-freadptr2.
56935
56936 2008-03-09  Bruno Haible  <bruno@clisp.org>
56937
56938         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56939         Report and solution by Simon Josefsson.
56940
56941 2008-03-06  Bruno Haible  <bruno@clisp.org>
56942
56943         Make fflush after ungetc work on BSD platforms.
56944         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56945         * tests/test-fflush2.c: New file.
56946         * tests/test-fflush2.sh: New file.
56947         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56948         tests/test-fflush2.c.
56949         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56950         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56951
56952 2008-03-06  Eric Blake  <ebb9@byu.net>
56953
56954         Likewise for ftello.
56955         * modules/ftello (Dependencies): Add extensions.
56956         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56957
56958 2008-03-06  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/fseeko (Dependencies): Add extensions.
56961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56962         Needed on glibc systems.
56963
56964 2008-03-06  Bruno Haible  <bruno@clisp.org>
56965
56966         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56967         email address.
56968         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56969
56970 2008-03-06  Bruno Haible  <bruno@clisp.org>
56971
56972         * users.txt: Add libgnupdf.
56973
56974 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56975
56976         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56977         (Header File Substitutes, Function Substitutes,
56978         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56979         (Build robot for gnulib): Fix typo.
56980
56981 2008-03-06  Bruno Haible  <bruno@clisp.org>
56982
56983         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56984         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56985
56986 2008-03-06  Bruno Haible  <bruno@clisp.org>
56987
56988         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56989         * doc/gnulib.texi: Include it.
56990
56991 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56992
56993         * modules/func (License): Change license to unlimited; there was
56994         no LGPL parts in the module anyway.
56995
56996 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56997
56998         * modules/__func__: Renamed to modules/func.
56999         * modules/__func__-tests: Renamed to modules/func-tests.
57000         * tests/test-__func__.c: Renamed to tests/test-func.c.
57001         * m4/__func__.m4: Renamed to m4/func.m4.
57002         * doc/gnulib.texi (__func__): Section renamed to func.
57003         Suggested by Eric Blake <ebb9@byu.net>.
57004
57005 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57006
57007         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57008         about __func__.  Make example self-contained.  Suggested by Eric
57009         Blake <ebb9@byu.net>.
57010
57011         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57012         Suggested by Eric Blake <ebb9@byu.net>.
57013
57014 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57015
57016         * modules/__func__: New file.
57017         * modules/__func__-tests: New file.
57018         * tests/test-__func__.c: New file.
57019         * m4/__func__.m4: New file.
57020         * doc/gnulib.texi (__func__): Document __func__ module.
57021
57022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57023
57024         * modules/byteswap (License): Re-license as LGPLv2+.
57025
57026 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57027
57028         * doc/Makefile: Add pdf target.
57029
57030 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57031
57032         * modules/inline (License): Use 'unlimited', since there are only
57033         *.m4 files in this module.
57034
57035 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57036             Bruno Haible  <bruno@clisp.org>
57037
57038         Add support for HP C 7.1 on OpenVMS 8.3.
57039         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57040
57041 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57042
57043         Update VMS specifics.
57044         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57045
57046 2008-03-02  Jim Meyering  <meyering@redhat.com>
57047
57048         Remove the last dependency on the "free" module.
57049         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57050         Reported by Bob Proulx.
57051
57052         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57053
57054         Remove useless "if" tests before free.  Deprecate "free" module.
57055         * doc/posix-functions/free.texi: Mention that this
57056         module is no longer useful.
57057         * modules/free (Notice): Say this module is obsolete.
57058         * modules/readutmp (Depends-on): Remove free.
57059         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57060         * lib/putenv.c (putenv): Likewise.
57061         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57062         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57063         * tests/test-c-strcasestr.c (main): Likewise.
57064         * tests/test-c-strstr.c (main): Likewise.
57065         * tests/test-mbscasestr1.c (main): Likewise.
57066         * tests/test-mbscasestr2.c (main): Likewise.
57067         * tests/test-mbsstr1.c (main): Likewise.
57068         * tests/test-mbsstr2.c (main): Likewise.
57069         * tests/test-memmem.c (main): Likewise.
57070         * tests/test-strcasestr.c (main): Likewise.
57071         * tests/test-striconv.c (main): Likewise.
57072         * tests/test-striconveh.c (main): Likewise.
57073         * tests/test-striconveha.c (main): Likewise.
57074         * tests/test-strstr.c (main): Likewise.
57075
57076         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57077
57078         bootstrap: sync from coreutils again
57079         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57080
57081 2008-03-01  Jim Meyering  <meyering@redhat.com>
57082
57083         bootstrap: sync from coreutils
57084         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57085         also when the target doesn't exist.
57086
57087 2008-03-01  Eric Blake  <ebb9@byu.net>
57088
57089         Fix bugs in last patch.
57090         * lib/memchr2.c (memchr2): Fix typo.
57091         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57092         extension.
57093         Reported by Bruce Korb.
57094
57095         New module 'memchr2'.
57096         * modules/memchr2: New file.
57097         * modules/memchr2-tests: Likewise.
57098         * lib/memchr2.h: Likewise.
57099         * lib/memchr2.c: Likewise, based on memchr.c.
57100         * tests/test-memchr2.c: New test.
57101         * MODULES.html.sh (String handling): Add memchr2.
57102
57103 2008-02-29  Bruno Haible  <bruno@clisp.org>
57104
57105         * modules/freadseek-tests: New file.
57106         * tests/test-freadseek.sh: New file.
57107         * tests/test-freadseek.c: New file.
57108
57109         New module 'freadseek'.
57110         * modules/freadseek: New file.
57111         * lib/freadseek.h: New file.
57112         * lib/freadseek.c: New file.
57113         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57114
57115 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57116
57117         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57118         wydawca.
57119
57120         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57121         program_invocation_name and program_invocation_short_name are
57122         present.
57123
57124 2008-02-28  Bruno Haible  <bruno@clisp.org>
57125
57126         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57127         * tests/test-freadptr.sh: Also test non-seekable stdin.
57128
57129 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57130
57131         * build-aux/bootstrap (source_base, m4_base)
57132         (doc_base, tests_base): New variables.
57133         (gnulib_tool_options): Do not hardcode base directories, use
57134         the above variables instead.
57135
57136 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57137
57138         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57139
57140 2008-02-28  Bruno Haible  <bruno@clisp.org>
57141
57142         * modules/freadptr-tests: New file.
57143         * tests/test-freadptr.sh: New file.
57144         * tests/test-freadptr.c: New file.
57145
57146         New module 'freadptr'.
57147         * modules/freadptr: New file.
57148         * lib/freadptr.h: New file.
57149         * lib/freadptr.c: New file.
57150         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57151
57152 2008-02-26  Karl Berry  <karl@freefriends.org>
57153
57154         Sync from Libtool:
57155         * libltdl/argz.c (argz_add, argz_count): New functions.
57156         * libltdl/argz.in.h: Declare them.
57157         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57158
57159 2008-02-22  Bruno Haible  <bruno@clisp.org>
57160
57161         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57162         is a pointer type.  Needed for HP-UX 10.
57163         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57164         * doc/posix-functions/gmtime_r.texi: Likewise.
57165         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57166
57167 2008-02-24  Bruno Haible  <bruno@clisp.org>
57168
57169         * modules/environ-tests: New file.
57170         * tests/test-environ.c: New file.
57171
57172         New module 'environ'.
57173         * modules/environ: New file.
57174         * lib/unistd.in.h (environ): New declaration.
57175         * m4/environ.m4: New file.
57176         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57177         after use.
57178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57179         HAVE_DECL_ENVIRON.
57180         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57181         HAVE_DECL_ENVIRON.
57182         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57183         wrong claim that 'environ' is missing on some systems.
57184         * modules/execute (Depends-on): Add environ.
57185         * lib/execute.c (environ): Remove fallback declaration.
57186         * modules/pipe (Depends-on): Add environ.
57187         * lib/pipe.c (environ): Remove fallback declaration.
57188         * modules/setenv (Depends-on): Add environ.
57189         * lib/setenv.c (environ): Remove fallback declaration.
57190         * modules/unsetenv (Depends-on): Add environ.
57191         * lib/unsetenv.c (environ): Remove fallback declaration.
57192         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57193         m4/environ.m4.
57194         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57195         (gl_PREREQ_UNSETENV): Likewise.
57196
57197 2008-02-24  Bruno Haible  <bruno@clisp.org>
57198
57199         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57200
57201 2008-02-20  Bob Proulx  <bob@proulx.com>
57202
57203         Enable use of older two part flavor 'git describe'.
57204         * build-aux/git-version-gen: If using the older two part flavor of
57205         git version then recreate the third part now present in the
57206         newer three part flavor of git describe.
57207
57208 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57209
57210         * lib/fts.c (fts_build): Typo correction to comment.
57211
57212 2008-02-17  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57215         generating no-op conflicts.
57216
57217 2008-02-17  Bruno Haible  <bruno@clisp.org>
57218
57219         Speed up by 10%.
57220         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57221         result_entries, rather than an index-based loop.
57222
57223 2008-02-17  Bruno Haible  <bruno@clisp.org>
57224
57225         Speed up by 25%.
57226         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57227         'hashcode_cached'.
57228         (entry_create): New function.
57229         (entry_hashcode): Use the cached hashcode if possible.
57230         (read_changelog_file, try_split_merged_entry): Use entry_create.
57231
57232 2008-02-17  Bruno Haible  <bruno@clisp.org>
57233
57234         Speed up from O(n^2) to O(n) for long ChangeLog files.
57235         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57236         (read_changelog_file): Change implementation of entries_reversed list
57237         to rbtreehash.
57238         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57239
57240 2008-02-17  Bruno Haible  <bruno@clisp.org>
57241
57242         New option --split-merged-entry.
57243         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57244         (find_paragraph_end, try_split_merged_entry): New functions.
57245         (long_options): Add option --split-merged-entry.
57246         (usage): Document option --split-merged-entry.
57247         (main): Implement option --split-merged-entry.
57248         Reported by Eric Blake.
57249
57250 2008-02-17  Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/git-merge-changelog.c: Include c-strstr.h.
57253         (main): Support the "git pull --rebase" situation.
57254         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57255         Reported by Eric Blake.
57256
57257 2008-02-16  Eric Blake  <ebb9@byu.net>
57258
57259         Avoid doubling \ in common case of "c-maybe" quoting style.
57260         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57261         eliding outer quotes.
57262         * lib/quotearg.h: Document this.
57263         * tests/test-quotearg.c (result_strings, inputs, results_g)
57264         (flag_results, locale_results): Test it by adding a new string to
57265         each test group.
57266         (compare_strings): Test new string.
57267
57268 2008-02-13  Eric Blake  <ebb9@byu.net>
57269
57270         Avoid trigraph quoting in default output.
57271         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57272         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57273         unless explicitly requested.
57274         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57275
57276 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57277
57278         Don't rely on signed integer overflowing to negative value.
57279         * lib/getugroups.c (getugroups): Include <limits.h>.
57280         Instead, compare against INT_MAX, and increment only if the test passes.
57281
57282 2008-02-13  Jim Meyering  <meyering@redhat.com>
57283         and Eric Blake  <ebb9@byu.net>
57284
57285         Avoid shadowing warning and compile errors on Linux.
57286         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57287         forwarding macros on Linux.
57288         (dcgettext): Define a stub, for Linux.
57289         (results_g, main): Avoid warnings.
57290
57291 2008-02-12  Eric Blake  <ebb9@byu.net>
57292
57293         Silence warning in last patch.
57294         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57295
57296         Quotearg part 4: add tests, fix c-maybe colon quoting.
57297         * lib/quotearg.h: Improve documentation.
57298         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57299         escapes when adding outer quotes.  When quoting trigraphs, use
57300         valid C notation.  When quoting NUL, omit extra characters if next
57301         character is not digit.  Alter prototype.
57302         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57303         callers.
57304         * modules/quotearg-tests: New module.
57305         * tests/test-quotearg.c: New test.
57306
57307 2008-02-07  Eric Blake  <ebb9@byu.net>
57308
57309         Quotearg part 3: add flag to control outer quote elision.
57310         * lib/quotearg.h (c_maybe_quoting_style): New style.
57311         (enum quoting_flags): Better documentation of flags.
57312         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57313         c-maybe style.
57314         (quotearg_buffer_restyled): Handle new flag to elide outer
57315         quotes.
57316
57317         Quotearg part 2: add flag that can control NUL elision.
57318         * lib/quotearg.h (set_quoting_flags): New prototype.
57319         * lib/quotearg.c (struct quoting_options): Add flag field.
57320         (set_quoting_flags): New function.
57321         (quotearg_buffer_restyled): Add flags parameter.
57322         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57323         (quotearg_n_options): Set the flag, since length cannot be
57324         returned.
57325         (quoting_options_from_style): Default flags correctly.
57326
57327         Quotearg part 1: more wrappers, restore quotearg_char state.
57328         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57329         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57330         (quotearg_colon_mem): New wrappers.
57331         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57332         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57333         functions.
57334         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57335         (quotearg_colon_mem): New functions.
57336
57337 2008-02-11  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57340         library in the current directory: it does not work with parallel make.
57341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57342
57343 2008-02-11  Bruno Haible  <bruno@clisp.org>
57344
57345         * .gitattributes: New file.
57346
57347 2008-02-11  Jim Meyering  <meyering@redhat.com>
57348
57349         useless-if-before-free: Fix reversed exit values.
57350         * build-aux/useless-if-before-free: Use correct values
57351         for EXIT_MATCH and EXIT_NO_MATCH.
57352
57353         * build-aux/useless-if-before-free: Close stdout carefully.
57354
57355 2008-02-10  Bruno Haible  <bruno@clisp.org>
57356
57357         New module 'git-merge-changelog'.
57358         * modules/git-merge-changelog: New file.
57359         * lib/git-merge-changelog.c: New file.
57360
57361 2008-02-10  Jim Meyering  <meyering@redhat.com>
57362
57363         useless-if-before-free: New option: --list (-l).
57364
57365         useless-if-before-free: Don't exit immediately upon open failure.
57366         * build-aux/useless-if-before-free: Exit 2 for errors.
57367         Upon failure to open a file, don't exit immediately.
57368         Rather, just warn and continue with any remaining files.
57369
57370 2008-02-10  Bruno Haible  <bruno@clisp.org>
57371
57372         New abstract list operation 'node_set_value'.
57373         * lib/gl_list.h (gl_list_node_set_value): New function.
57374         (struct gl_list_implementation): New field node_set_value.
57375         * lib/gl_list.c (gl_list_node_set_value): New function.
57376         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57377         (gl_array_list_implementation): Update.
57378         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57379         (gl_carray_list_implementation): Update.
57380         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57381         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57382         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57383         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57384         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57385         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57386         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57387         Update.
57388         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57389         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57390         (gl_sublist_list_implementation): Update.
57391
57392 2008-02-10  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57395         Needed when ELEMENT is #defined to 'some_type *'.
57396
57397 2008-02-10  Jim Meyering  <meyering@redhat.com>
57398
57399         New script and module: useless-if-before-free
57400         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57401         * build-aux/useless-if-before-free: New file.
57402         * modules/useless-if-before-free: New file.
57403
57404         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57405
57406         xstrtol_error: Fix typo.
57407         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57408         s/exit_failure/exit_status/.
57409
57410 2008-02-09  Jim Meyering  <meyering@redhat.com>
57411
57412         New script and module: gitlog-to-changelog
57413         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57414         * modules/gitlog-to-changelog: New file.
57415         * build-aux/gitlog-to-changelog: New file.
57416
57417 2008-02-08  Jim Meyering  <meyering@redhat.com>
57418
57419         Avoid two "parameter unused" warnings.
57420         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57421         Mark "st" as used.
57422
57423         Use "git COMMAND", not "git-COMMAND".
57424         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57425         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57426         * build-aux/git-version-gen: Use "git status", not "git-status".
57427
57428 2008-02-07  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57431         Avoids a crash on Windows Vista.
57432         Reported by Adam Strzelecki <ono@java.pl> via
57433         Simon Josefsson <simon@josefsson.org>.
57434
57435 2008-02-06  Bruno Haible  <bruno@clisp.org>
57436
57437         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57438         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57439         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57441         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57443         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57444         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57452         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57453         left-adjust flag.
57454         * tests/test-snprintf-posix.h (test_function): Likewise.
57455         * tests/test-sprintf-posix.h (test_function): Likewise.
57456         * tests/test-vasprintf-posix.c (test_function): Likewise.
57457         * doc/posix-functions/fprintf.texi: Update.
57458         * doc/posix-functions/printf.texi: Update.
57459         * doc/posix-functions/snprintf.texi: Update.
57460         * doc/posix-functions/sprintf.texi: Update.
57461         * doc/posix-functions/vfprintf.texi: Update.
57462         * doc/posix-functions/vprintf.texi: Update.
57463         * doc/posix-functions/vsnprintf.texi: Update.
57464         * doc/posix-functions/vsprintf.texi: Update.
57465         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57466
57467 2008-02-06  Bruno Haible  <bruno@clisp.org>
57468
57469         Fix bug introduced on 2008-01-26.
57470         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57471
57472 2008-02-06  Bruno Haible  <bruno@clisp.org>
57473
57474         Fix bug introduced on 2007-06-10.
57475         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57476         !NEED_PRINTF_FLAG_ZERO.
57477
57478 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57479
57480         getloadavg: use libperfstat on AIX5
57481         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57482
57483 2008-02-03  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/diffseq.h: Add comments about required #includes.
57486         Reported by Michael Biggs <gnulib@doubleplum.net>.
57487
57488 2008-02-01  Bruno Haible  <bruno@clisp.org>
57489
57490         * users.txt: Add gnuit.
57491
57492 2008-01-31  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/md4.c (set_uint32): Mark as inline.
57495         * lib/md5.c (set_uint32): Likewise.
57496         * lib/sha1.c (set_uint32): Likewise.
57497         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57498         * m4/md5.m4 (gl_MD5): Likewise.
57499         * m4/sha1.m4 (gl_SHA1): Likewise.
57500
57501 2008-01-31  Jim Meyering  <meyering@redhat.com>
57502
57503         Use "sizeof VAR", rather than a literal "4".
57504         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57505         * lib/md4.c (md4_read_ctx): Likewise.
57506         * lib/sha1.c (sha1_read_ctx): Likewise.
57507
57508 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57509
57510         * tests/test-sha1.c: New file, based on test-md5.c.
57511
57512         * modules/crypto/sha1-tests: New file.
57513
57514 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57515
57516         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57517
57518 2008-01-31  Jim Meyering  <meyering@redhat.com>
57519
57520         Prefer "sizeof v" over the equivalent "4".
57521         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57522         * lib/md5.c (set_uint32): Likewise.
57523         * lib/sha1.c (set_uint32): Likewise.
57524
57525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57526
57527         * lib/sha1.c (set_uint32): Mark function as static.
57528
57529 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57530
57531         md2: clarify comments to say that alignment is not required.
57532         * lib/md2.h: Remove warning about alignment in comment.
57533         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57534         never been required.
57535
57536 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57537
57538         md4: adapt alignment constraint fix from sha1.
57539         * lib/md4.c (set_uint32): New function, from sha1.c
57540         (md4_read_ctx): Use it.
57541         (md4_finish_ctx): Doc fix.
57542         * lib/md4.h: Doc fix.
57543
57544 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57545
57546         md5: adapt alignment constraint fix from sha1.
57547         * lib/md5.c (set_uint32): New function, from sha1.c
57548         (md5_read_ctx): Use it.
57549         (md5_finish_ctx): Doc fix.
57550         * lib/md5.h: Doc fix.
57551
57552 2008-01-30  Peter Palfrader  <weasel@debian.org>
57553
57554         sha1: remove the result buffer alignment constraint
57555         * lib/sha1.c (set_uint32): New function.
57556         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57557         constraint.
57558         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57559         * lib/sha1.h: Likewise.
57560
57561 2008-01-30  Andreas Schwab  <schwab@suse.de>
57562             Bruno Haible  <bruno@clisp.org>
57563
57564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57565         correct definition of LDBL_MIN_EXP.
57566
57567 2008-01-30  Karl Berry  <karl@gnu.org>
57568
57569         * config/srclist-update: try to preserve x bit on updates.
57570         * config/srclistvars.sh: update for karl.
57571
57572 2008-01-29  Jim Meyering  <meyering@redhat.com>
57573
57574         vasnprintf.c: Avoid warning about unused label
57575         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57576         "overflow" label definition and associated code with the
57577         same cpp condition that guards the sole use of that label.
57578
57579 2008-01-26  Bruno Haible  <bruno@clisp.org>
57580
57581         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57582         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57583         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57584         * lib/isnanl-nolibm.h (isnanl): Likewise.
57585         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57586
57587 2008-01-26  Bruno Haible  <bruno@clisp.org>
57588
57589         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57590         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57591
57592 2008-01-26  Bruno Haible  <bruno@clisp.org>
57593
57594         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57595         GCC >= 4.0 built-in.
57596         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57597
57598 2008-01-26  Bruno Haible  <bruno@clisp.org>
57599
57600         Rename isnan, applicable to 'double' only, to isnand.
57601         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57602         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57603         (configure.ac): Update.
57604         (Include): Replace "isnan.h" with "isnand.h".
57605         * m4/isnand.m4: Renamed from m4/isnan.m4.
57606         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57607         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57608         instead of isnan.c.
57609         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57610         instead of HAVE_ISNAN_IN_LIBC.
57611         (isnand): Renamed from isnan.
57612         * lib/isnand.c: New file.
57613         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57614         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57615         (Makefile.am): Update.
57616         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57617         Include isnand.h instead of isnan.h.
57618         (main): Test isnand instead of isnan.
57619         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57620         isnan-nolibm.
57621         * modules/frexp (Depends-on): Likewise.
57622         * modules/frexp-tests (Depends-on): Likewise.
57623         * modules/frexp-nolibm (Depends-on): Likewise.
57624         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57625         * modules/isfinite (Depends-on): Likewise.
57626         * modules/round-tests (Depends-on): Likewise.
57627         * modules/signbit (Depends-on): Likewise.
57628         * modules/signbit-tests (Depends-on): Likewise.
57629         * modules/snprintf-posix (Depends-on): Likewise.
57630         * modules/sprintf-posix (Depends-on): Likewise.
57631         * modules/trunc-tests (Depends-on): Likewise.
57632         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57639         * modules/vasnprintf-posix (Depends-on): Likewise.
57640         * modules/vasprintf-posix (Depends-on): Likewise.
57641         * modules/vfprintf-posix (Depends-on): Likewise.
57642         * modules/vsnprintf-posix (Depends-on): Likewise.
57643         * modules/vsprintf-posix (Depends-on): Likewise.
57644         * lib/frexp.c: Include isnand.h instead of isnan.h.
57645         (ISNAN): Set to isnand instead of isnan.
57646         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57647         (gl_isfinited): Use isnand instead of isnan.
57648         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57649         (gl_signbitd): Use isnand instead of isnan.
57650         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57651         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57652         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57653         (main): Use isnand instead of isnan.
57654         * tests/test-round1.c: Include isnand.h.
57655         (main): Use isnand instead of isnan.
57656         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57657         (ISNAN): Set to isnand instead of isnan.
57658         * tests/test-trunc1.c: Include isnand.h.
57659         (main): Use isnand instead of isnan.
57660         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57661         (equal): Use isnand instead of isnan.
57662         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57663         isnand-nolibm.
57664         * NEWS: Mention the change.
57665
57666 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57667             Bruno Haible  <bruno@clisp.org>
57668
57669         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57670         the GCC builtins for signbits are present and set
57671         REPLACE_SIGNBIT_USING_GCC if so.
57672         * lib/math.in.h (signbit): Define using GCC builtins if
57673         REPLACE_SIGNBIT_USING_GCC is set.
57674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57675         REPLACE_SIGNBIT_USING_GCC.
57676         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57677
57678 2008-01-25  Jim Meyering  <meyering@redhat.com>
57679
57680         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57681         * lib/poll.c: Include <config.h>, not "config.h".
57682         * tests/test-getaddrinfo.c: Likewise.
57683
57684 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57685
57686         * modules/sockets-tests: New file.
57687
57688 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57689
57690         * modules/sockets: New module, can be used to call WSA_Startup and
57691         WSA_Cleanup when needed.
57692
57693         * lib/sockets.h, lib/sockets.c: New files.
57694
57695         * m4/sockets.m4: New file.
57696
57697         * tests/test-sockets.c: New file.
57698
57699 2008-01-19  Bruno Haible  <bruno@clisp.org>
57700
57701         * doc/posix-headers: Renamed from doc/headers.
57702         * doc/posix-functions: Renamed from doc/functions.
57703         * doc/gnulib.texi: Update.
57704
57705 2008-01-19  Bruno Haible  <bruno@clisp.org>
57706
57707         * doc/glibc-functions/strcasestr.texi: Include contents of
57708         doc/functions/strcasestr.texi, fixing the list of platforms.
57709         * doc/functions/strcasestr.texi: Remove file.
57710
57711 2008-01-19  Bruno Haible  <bruno@clisp.org>
57712
57713         * doc/glibc-functions/memmem.texi: Include contents of
57714         doc/functions/memmem.texi.
57715         * doc/functions/memmem.texi: Remove file.
57716
57717 2008-01-18  Bruno Haible  <bruno@clisp.org>
57718
57719         * doc/glibc-functions/*.texi: New files.
57720         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57721         to use the new files.
57722
57723 2008-01-17  Bruno Haible  <bruno@clisp.org>
57724
57725         * tests/test-gethostname.c (main): Fix printf statement.
57726
57727 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57728
57729         * modules/gethostname-tests: New file.
57730
57731         * tests/test-gethostname.c: New file.
57732
57733 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57734
57735         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57736         used by the UNAME case.  Reported by Bruno Haible
57737         <bruno@clisp.org>.
57738
57739 2008-01-17  Eric Blake  <ebb9@byu.net>
57740
57741         Convert c-strcasestr to be more efficient.
57742         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57743         (Depends-on): Add c-strcase, remove malloca, strnlen.
57744         * tests/test-c-strcasestr.c (main): Enhance test.
57745         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57746
57747 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57748
57749         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57750         Use it in creating po/Makevars.
57751
57752 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57753
57754         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57755         Applications that requires it should initialize libgcrypt
57756         manually.
57757
57758 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57759
57760         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57761
57762 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         Fix problem with getdate on mingw32 reported by Simon Josefsson
57765         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57766         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57767         tzname", when deciding whether to declare tzname.
57768         * lib/strftime.c (tzname): Likewise.
57769
57770 2008-01-15  Bruno Haible  <bruno@clisp.org>
57771
57772         Work around a MacOS X 10.5 bug in frexpl().
57773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57774         * doc/functions/frexpl.texi: Document the bug.
57775         Reported by Elias Pipping <pipping@gentoo.org>.
57776
57777 2008-01-14  Eric Blake  <ebb9@byu.net>
57778
57779         Touch up previous patch.
57780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57781         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57782
57783         Convert strcasestr module to use Two-Way algorithm.
57784         * modules/strcasestr-simple: New module, based on the old
57785         strcasestr, but with Two-Way rather than KMP.
57786         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57787         * lib/string.in.h (rpl_strcasestr): Declare.
57788         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57789         performance.
57790         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57791         * modules/string (Makefile.am): Support strcasestr.
57792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57793         * modules/strcasestr-tests (Depends-on): Check for alarm.
57794         * tests/test-strcasestr.c: Augment test.
57795         * lib/str-two-way.h: Clean up stray macro.
57796         * NEWS: Document new module.
57797         * MODULES.html.sh (string handling): Likewise.
57798         * doc/functions/strcasestr.texi: New file.
57799         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57800         here, since it is not a POSIX function.
57801
57802 2008-01-14  Colin Watson  <cjwatson@debian.org>
57803             Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57806         works fine; if not, set REPLACE_STRSIGNAL.
57807         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57809         REPLACE_STRSIGNAL.
57810         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57811         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57812         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57813
57814 2008-01-14  Bruno Haible  <bruno@clisp.org>
57815
57816         * modules/strsignal (Include): Change to <string.h>.
57817
57818 2008-01-14  Colin Watson  <cjwatson@debian.org>
57819
57820         * modules/argp (Notice): Add a notice recommending to change
57821         XGETTEXT_OPTIONS.
57822         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57823
57824 2008-01-13  Colin Watson  <cjwatson@debian.org>
57825
57826         * modules/strsignal-tests: New file.
57827         * tests/test-strsignal.c: New file.
57828
57829         * lib/strsignal.c: New file, from glibc with modifications.
57830         * lib/siglist.h: New file, from glibc with modifications.
57831         * lib/string.in.h (strsignal): New declaration.
57832         * m4/strsignal.m4: New file.
57833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57834         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57835         * modules/strsignal: New file.
57836         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57837         HAVE_DECL_STRSIGNAL.
57838
57839 2008-01-13  Bruno Haible  <bruno@clisp.org>
57840
57841         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57842         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57843         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57844         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57845
57846 2008-01-13  Bruno Haible  <bruno@clisp.org>
57847
57848         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57849         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57850         * lib/argp.h (__attribute__): Likewise.
57851         * lib/c-stack.c (__attribute__): Likewise.
57852         * lib/error.h (__attribute__): Likewise.
57853         * lib/fts.c (__attribute__): Likewise.
57854         * lib/openat.h (__attribute__): Likewise.
57855         * lib/stdio.in.h (__attribute__): Likewise.
57856         * lib/string.in.h (__attribute__): Likewise.
57857         * lib/utimens.c (__attribute__): Likewise.
57858         * lib/vasnprintf.h (__attribute__): Likewise.
57859         * lib/xalloc.h (__attribute__): Likewise.
57860         * lib/xprintf.h (__attribute__): Likewise.
57861         * lib/xstrtol.h (__attribute__): Likewise.
57862         * lib/xvasprintf.h (__attribute__): Likewise.
57863
57864 2008-01-12  Bruno Haible  <bruno@clisp.org>
57865
57866         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57867         * doc/glibc-headers/a.out.texi: New file.
57868         * doc/glibc-headers/aliases.texi: New file.
57869         * doc/glibc-headers/alloca.texi: New file.
57870         * doc/glibc-headers/ar.texi: New file.
57871         * doc/glibc-headers/argp.texi: New file.
57872         * doc/glibc-headers/argz.texi: New file.
57873         * doc/glibc-headers/byteswap.texi: New file.
57874         * doc/glibc-headers/crypt.texi: New file.
57875         * doc/glibc-headers/endian.texi: New file.
57876         * doc/glibc-headers/envz.texi: New file.
57877         * doc/glibc-headers/err.texi: New file.
57878         * doc/glibc-headers/error.texi: New file.
57879         * doc/glibc-headers/execinfo.texi: New file.
57880         * doc/glibc-headers/fpu_control.texi: New file.
57881         * doc/glibc-headers/fstab.texi: New file.
57882         * doc/glibc-headers/fts.texi: New file.
57883         * doc/glibc-headers/getopt.texi: New file.
57884         * doc/glibc-headers/ieee754.texi: New file.
57885         * doc/glibc-headers/ifaddrs.texi: New file.
57886         * doc/glibc-headers/libintl.texi: New file.
57887         * doc/glibc-headers/mcheck.texi: New file.
57888         * doc/glibc-headers/mntent.texi: New file.
57889         * doc/glibc-headers/obstack.texi: New file.
57890         * doc/glibc-headers/paths.texi: New file.
57891         * doc/glibc-headers/printf.texi: New file.
57892         * doc/glibc-headers/pty.texi: New file.
57893         * doc/glibc-headers/resolv.texi: New file.
57894         * doc/glibc-headers/shadow.texi: New file.
57895         * doc/glibc-headers/sysexits.texi: New file.
57896         * doc/glibc-headers/ttyent.texi: New file.
57897
57898 2008-01-12  Jim Meyering  <meyering@redhat.com>
57899
57900         announce-gen: emit Gnulib's git-based version string.
57901         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57902         New option --gnulib-version=V, where V is expected to be
57903         the output of running git describe in the gnulib directory.
57904         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57905         not useful, and plan to stop publishing an xdelta file with each
57906         coreutils release.
57907
57908         * build-aux/announce-gen: Also check for lzma-compressed files.
57909
57910 2008-01-11  Bruno Haible  <bruno@clisp.org>
57911
57912         * tests/test-memmem.c (main): Increase maximum allowed time.
57913         * tests/test-strstr.c (main): Likewise.
57914
57915 2008-01-11  Bruno Haible  <bruno@clisp.org>
57916
57917         * doc/functions/memmem.texi: Add more precisions about platforms.
57918         * doc/functions/strstr.texi: Likewise.
57919
57920 2008-01-10  Eric Blake  <ebb9@byu.net>
57921
57922         * m4/strstr.m4: Delete cruft from copy-n-paste.
57923         Reported by Bruno Haible.
57924
57925 2008-01-10  Bruno Haible  <bruno@clisp.org>
57926
57927         Make c-strstr rely on strstr.
57928         * lib/c-strstr.c: Don't include str-kmp.h.
57929         (c_strstr): Define in terms of strstr.
57930         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57931         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57932
57933 2008-01-10  Bruno Haible  <bruno@clisp.org>
57934
57935         * doc/gnulib.texi (String Functions in C Locale): New section.
57936         * doc/c-ctype.texi: New file.
57937         * doc/c-strcase.texi: New file.
57938         * doc/c-strcaseeq.texi: New file.
57939         * doc/c-strcasestr.texi: New file.
57940         * doc/c-strstr.texi: New file.
57941         * doc/c-strtod.texi: New file.
57942         * doc/c-strtold.texi: New file.
57943
57944 2008-01-10  Eric Blake  <ebb9@byu.net>
57945
57946         * lib/relocatable.h: Fix a comment.
57947
57948 2008-01-10  Eric Blake  <ebb9@byu.net>
57949
57950         Share two-way algorithm.
57951         * lib/str-two-way.h: New file, merged from...
57952         * lib/memmem.c: ...here...
57953         * lib/strstr.c: ...and here.
57954         * modules/memmem (Files): Use it.
57955         * modules/strstr (Files): Likewise.
57956
57957         Avoid quadratic strstr implementations.
57958         * lib/strstr.c: New file.
57959         * m4/strstr.m4: Likewise.
57960         * modules/strstr: Likewise.
57961         * modules/strstr-tests: Likewise.
57962         * tests/test-strstr.c: Likewise.
57963         * lib/string.in.h (rpl_strstr): Declare.
57964         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57966         * modules/string (Makefile.am): Likewise.
57967         * MODULES.html.sh (string handling): Mention new module.
57968         * doc/functions/strstr.texi (strstr): Document the bug.
57969
57970 2008-01-10  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/relocatable.h (relocate): State whether result is freshly
57973         allocated or not.
57974         * lib/relocatable.c (relocate): Return a freshly allocated string
57975         instead of a pointer to a privately held string.
57976         Reported by Sylvain Beucler <beuc@gnu.org>.
57977
57978 2008-01-10  Colin Watson  <cjwatson@debian.org>
57979
57980         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57981         s/S_ISNLK/S_ISLNK/.
57982
57983 2008-01-09  Bruno Haible  <bruno@clisp.org>
57984
57985         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57986         and other files.
57987         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57988         if it's only a guess.
57989         * modules/memmem: Simplify by depending on memmem-simple.
57990
57991 2008-01-09  Bruno Haible  <bruno@clisp.org>
57992
57993         Work around OpenBSD 4.0 tdelete() bug.
57994         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57995         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57996         macros and don't redefine the enum values.
57997         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57998         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57999         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58000
58001 2008-01-09  Bruno Haible  <bruno@clisp.org>
58002
58003         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58004         (main): Don't perform the tests if setlocale did not install a UTF-8
58005         locale. Needed on OpenBSD 4.0.
58006         * modules/wcwidth-tests (Depends-on): Add localcharset.
58007
58008 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58009
58010         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58011         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58012         * NEWS: announce this.
58013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58014
58015 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58016         and Eric Blake  <ebb9@byu.net>
58017
58018         Add memmem-simple module.
58019         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58020         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58021         * modules/memmem-simple: New file.
58022         * modules/memmem (Description): Tweak.
58023         * MODULES.html.sh (string handling): Mention new module.
58024         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58025         addressed by memmem-simple.
58026         * NEWS: Document the difference.
58027
58028 2008-01-09  Eric Blake  <ebb9@byu.net>
58029
58030         Give gcc some memmem optimization hints.
58031         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58032         (strcasestr): Declare as pure.
58033         * modules/memmem (Maintainer): Claim my implementation.
58034
58035 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58036
58037         Support AIX 6.1 and higher.
58038         * build-aux/config.libpath: Likewise.
58039         * build-aux/config.rpath: Likewise.
58040
58041 2008-01-08  Jim Meyering  <meyering@redhat.com>
58042             Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58045         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58046         Reported by Peter Fales in
58047         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58048
58049 2008-01-08  Bruno Haible  <bruno@clisp.org>
58050
58051         * modules/unictype/category-of (Depends-on): Add
58052         unictype/category-none.
58053         * modules/unictype/category-and-tests (Depends-on): Add
58054         unictype/category-{L,N,Lu,Nd}.
58055         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58056         * modules/unictype/category-or-tests (Depends-on): Add
58057         unictype/category-{L,N}.
58058         * modules/unictype/category-name-tests (Depends-on): Add
58059         unictype/category-{Z,Nl}.
58060         Reported by Simon Josefsson.
58061
58062 2008-01-08  Bruno Haible  <bruno@clisp.org>
58063
58064         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58065         convention better.
58066         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58067         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58068         Reported by Peter Miller <millerp@canb.auug.org.au>.
58069
58070 2008-01-08  Eric Blake  <ebb9@byu.net>
58071
58072         Rewrite memmem to guarantee linear complexity without malloc.
58073         * lib/memmem.c (memmem): Use Two-Way rather than
58074         Knuth-Morris-Pratt, to allow O(1) space usage.
58075         (critical_factorization, two_way_short_needle)
58076         (two_way_long_needle): New functions.
58077         (knuth_morris_pratt): Delete.
58078         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58079         Add stdint.
58080         * tests/test-memmem.c (main): Add tests for periodic needle and
58081         sublinear performance.
58082         * doc/functions/memmem.texi (memmem): Document other deficiencies
58083         in cygwin and older glibc.
58084
58085 2008-01-08  Bruno Haible  <bruno@clisp.org>
58086
58087         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58088         augmentation.
58089
58090 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58091
58092         Add a configure time option: --disable-acl.
58093         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58094         AC_ARG_ENABLE(acl).
58095
58096 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58097
58098         * tests/test-localename.c: Don't include obsolete "setenv.h".
58099
58100         * modules/localename-tests (Depends-on): Need unsetenv.
58101
58102 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58103
58104         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58105
58106 2008-01-06  Colin Watson  <cjwatson@debian.org>
58107
58108         * users.txt: Add man-db.
58109
58110 2008-01-07  Bruno Haible  <bruno@clisp.org>
58111
58112         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58113         previous section name.
58114
58115 2008-01-07  Bruno Haible  <bruno@clisp.org>
58116
58117         * lib/progname.c (set_program_name): Don't strip off a leading
58118         "lt-" prefix outside a .libs directory.
58119         Suggested by Paul Eggert.
58120
58121 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58122             Bruno Haible  <bruno@clisp.org>
58123
58124         Improve memory cleanup in 'relocatable' module.
58125         * lib/relocatable.h (compute_curr_prefix): Change return type to
58126         'char *'.
58127         * lib/relocatable.c (compute_curr_prefix): Change return type to
58128         'char *'. Free curr_installdir after use.
58129         (relocate): Free curr_prefix_better after use.
58130         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58131
58132 2008-01-01  Bruno Haible  <bruno@clisp.org>
58133
58134         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58135         failure on older glibc systems.
58136         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58137
58138 2008-01-05  Eric Blake  <ebb9@byu.net>
58139
58140         Avoid quadratic system memmem.
58141         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58142         Reported by Ralf Wildenhues.
58143
58144         Fix memmem test for mingw.
58145         * modules/memmem-tests (configure.ac): Check for alarm.
58146         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58147         it.
58148         * doc/functions/memmem.texi: New file.
58149         * doc/gnulib.texi (Function Substitutes): Add memmem.
58150         Reported by Bruno Haible.
58151
58152 2008-01-04  Bruno Haible  <bruno@clisp.org>
58153
58154         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58155         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58156         gl_HEADER_STRING_H_DEFAULTS.
58157
58158 2008-01-04  Eric Blake  <ebb9@byu.net>
58159
58160         Shorten duration of memmem test.
58161         * tests/test-memmem.c (main): Use alarm to declare failure if test
58162         is taking too long.
58163         Reported by Ralf Wildenhues.
58164
58165 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58166
58167         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58168         string, needed by strerror.
58169
58170 2008-01-03  Colin Watson  <cjwatson@debian.org>
58171             Bruno Haible  <bruno@clisp.org>
58172
58173         * doc/gnulib-tool.texi (Localization): New section.
58174
58175 2008-01-02  Bruno Haible  <bruno@clisp.org>
58176
58177         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58178         variables to 'unsigned char *' type.
58179         Reported by Paul Eggert.
58180
58181 2008-01-02  Jim Meyering  <jim@meyering.net>
58182
58183         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58184
58185 2007-12-31  Jim Meyering  <jim@meyering.net>
58186
58187         Avoid use of private FTS type name.
58188         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58189
58190 2007-12-30  Karl Berry  <karl@gnu.org>
58191
58192         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58193         work around defect in Texinfo and/or the standalone Info browser.
58194
58195 2007-12-30  Bruno Haible  <bruno@clisp.org>
58196
58197         Unify 5 copies of the KMP code.
58198         * lib/str-kmp.h: New file.
58199         * lib/c-strcasestr.c: Include str-kmp.h.
58200         (knuth_morris_pratt): Remove function.
58201         (c_strcasestr): Update.
58202         * lib/c-strstr.c: Include str-kmp.h.
58203         (knuth_morris_pratt): Remove function.
58204         (c_strcasestr): Update.
58205         * lib/mbscasestr.c: Include str-kmp.h.
58206         (knuth_morris_pratt_unibyte): Remove function.
58207         * lib/mbsstr.c: Include str-kmp.h.
58208         (knuth_morris_pratt_unibyte): Remove function.
58209         * lib/strcasestr.c: Include str-kmp.h.
58210         (knuth_morris_pratt): Remove function.
58211         (strcasestr): Update.
58212         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58213         * modules/c-strstr (Files): Likewise.
58214         * modules/mbscasestr (Files): Likewise.
58215         * modules/mbsstr (Files): Likewise.
58216         * modules/strcasestr (Files): Likewise.
58217         Suggested by Paul Eggert.
58218
58219 2007-12-30  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58222         defined.
58223
58224 2007-12-30  Bruno Haible  <bruno@clisp.org>
58225
58226         * lib/xmalloca.h: Include xalloc.h.
58227         (xnmalloca): New macro.
58228
58229 2007-12-30  Bruno Haible  <bruno@clisp.org>
58230
58231         * lib/malloca.h (nmalloca): New macro.
58232         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58233         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58234         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58235         knuth_morris_pratt_multibyte): Likewise.
58236         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58237         knuth_morris_pratt_multibyte): Likewise.
58238         * lib/memmem.c (knuth_morris_pratt): Likewise.
58239         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58240
58241 2007-12-25  Bruno Haible  <bruno@clisp.org>
58242
58243         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58244         * lib/glob.c: Don't include openat.h.
58245         (link_exists2_p): Add back the code that deals with the
58246         !GLOB_ALTDIRFUNC case.
58247         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58248         let it do the filename concatenation.
58249         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58250         * modules/glob (Depends-on): Remove openat.
58251
58252 2007-12-31  Bruno Haible  <bruno@clisp.org>
58253
58254         * modules/dirfd (License): Change to LGPLv2+.
58255         Approved by Jim Meyering.
58256
58257 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58258
58259         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58260         when multiplying M by sizeof (size_t).
58261
58262 2007-12-10  Martin Lambers  <marlam@marlam.de>
58263
58264         Override getpagesize on mingw.
58265         * lib/getpagesize.c: New file.
58266         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58267         * modules/getpagesize (Files): Add lib/getpagesize.c.
58268         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58270         REPLACE_GETPAGESIZE.
58271         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58272
58273 2007-12-25  Bruno Haible  <bruno@clisp.org>
58274
58275         * modules/localcharset (Notice): New field.
58276         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58277         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58278
58279 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58280             Bruno Haible  <bruno@clisp.org>
58281
58282         Avoid using the syntax symbol() in formatted documentation.
58283         * MODULES.html.sh (func_module): When replacing symbol() with a
58284         hyperlink, remove the parentheses. Show an error if some remain.
58285         Recognize and render the '...' syntax.
58286         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58287         Rework. Add paragraph about GCC's inlining.
58288         * doc/alloca.texi: Likewise.
58289         * doc/error.texi: Remove parentheses from symbol reference.
58290         * doc/gnulib-intro.texi: Likewise.
58291         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58292         * modules/fnmatch (Description): Reword to say "the ... function".
58293         * modules/full-read (Description): Likewise.
58294         * modules/full-write (Description): Likewise.
58295         * modules/safe-read (Description): Likewise.
58296         * modules/safe-write (Description): Likewise.
58297         * modules/strchrnul (Description): Likewise.
58298         * modules/trim (Description): Likewise.
58299         * modules/error (Description): Remove parentheses from symbol
58300         references.
58301         * modules/verror (Description): Likewise.
58302         Reported by Karl Berry.
58303
58304 2007-12-25  Bruno Haible  <bruno@clisp.org>
58305
58306         Fixup after 2007-10-16 commit.
58307         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58308
58309 2007-12-24  Bruno Haible  <bruno@clisp.org>
58310
58311         Make --enable-relocatable work with DESTDIR.
58312         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58313         to compute installdir from destprog.
58314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58315         also set the RELOC_DESTDIR variable.
58316         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58317
58318 2007-12-24  Bruno Haible  <bruno@clisp.org>
58319
58320         Fix link error due to xalloc_die().
58321         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58322         of xreadlink.
58323         * lib/relocwrapper.c: Update comments.
58324         * build-aux/install-reloc: Remove xreadlink.c from file list.
58325         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58326         xreadlink.c.
58327         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58328
58329 2007-12-24  Bruno Haible  <bruno@clisp.org>
58330
58331         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58332         * lib/setenv.h: Remove file.
58333         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58334         lib/setenv.h.
58335         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58336         (Depends-on): Add stdlib.
58337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58338         gl_FUNC_UNSETENV.
58339         (Include): Replace setenv.h with <stdlib.h>.
58340         * modules/unsetenv: New file.
58341         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58342         * lib/unsetenv.c: Include <stdlib.h> first.
58343         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58344         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58345         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58346         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58347         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58348         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58350         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58351         * doc/functions/unsetenv.texi: Update.
58352         * modules/xsetenv (Depends-on): Add unsetenv.
58353         * modules/getdate (Depends-on): Likewise.
58354         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58355         * lib/xsetenv.c: Don't include setenv.h.
58356         * lib/getdate.y: Likewise.
58357         * lib/relocwrapper.c: Likewise.
58358         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58359         (Depends-on): Add stdlib.
58360         * NEWS: Mention the changes.
58361         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58362
58363 2007-12-23  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58366         indentation.
58367
58368 2007-12-23  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/c-strcasestr.c: Add more comments.
58371         * lib/c-strstr.c: Likewise.
58372         * lib/mbscasestr.c: Likewise.
58373         * lib/mbsstr.c: Likewise.
58374         * lib/strcasestr.c: Likewise.
58375         * lib/memmem.c: Likewise.
58376
58377 2007-12-23  Bruno Haible  <bruno@clisp.org>
58378
58379         * tests/test-memmem.c: Include <string.h> first.
58380
58381 2007-12-22  Bruno Haible  <bruno@clisp.org>
58382
58383         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58384         the contents of $testsbase.
58385         Reported by Ralf Wildenhues.
58386
58387 2007-12-22  Bruno Haible  <bruno@clisp.org>
58388
58389         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58390         two variables local_ldadd_before, local_ldadd_last.
58391
58392 2007-12-20  Eric Blake  <ebb9@byu.net>
58393
58394         Work around circular library issue when cross-compiling.
58395         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58396         that progname.o does not need to pull in rpl_memcmp.
58397
58398 2007-12-19  Eric Blake  <ebb9@byu.net>
58399
58400         Fix memmem to avoid O(n^2) worst-case complexity.
58401         * lib/memmem.c (knuth_morris_pratt): New function.
58402         (memmem): Use it if first few naive iterations fail.
58403         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58404         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58405         * modules/memchr (License): Likewise.
58406         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58407         malloca.
58408         * tests/test-memmem.c: Rewrite, borrowing ideas from
58409         test-mbsstr1.c; the old version wouldn't even compile!
58410         * modules/memmem-tests: New file.
58411         * lib/string.in.h (rpl_memmem): Add declaration.
58412         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58414         REPLACE_MEMMEM.
58415
58416 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58417
58418         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58419         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58420         before any system include files, and undef after them all.  This
58421         should fix a problem on VMS reported by John E. Malmberg in
58422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58423
58424 2007-12-17  Eric Blake  <ebb9@byu.net>
58425
58426         Revert addition of verify, for BSD/OS.
58427         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58428         can't handle large files, for the sake of obsolete platforms.
58429         * modules/fseeko (Depends-on): Remove verify.
58430         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58431         * doc/functions/ftello.texi (ftello): Likewise.
58432         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58433         Reported by Larry Jones.
58434
58435 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58436
58437         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58438         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58439
58440 2007-12-17  Jim Meyering  <meyering@redhat.com>
58441
58442         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58443         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58444         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58445         * modules/getcwd (Depends-on): Add openat.
58446         Reported by Petr Salinger.
58447
58448 2007-12-17  Bruno Haible  <bruno@clisp.org>
58449
58450         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58451         avoid a segmentation fault of the configure test on x86_64 systems.
58452
58453 2007-12-15  Jim Meyering  <meyering@redhat.com>
58454
58455         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58456
58457 2007-12-13  Eric Blake  <ebb9@byu.net>
58458
58459         Another fseek test.
58460         * tests/test-fseek.c (main): Also test ungetc handling.
58461         * tests/test-fseeko.c (main): Likewise.
58462         * modules/fseeko (Depends-on): Add verify.
58463         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58464         large.
58465         Reported by Larry Jones.
58466
58467         Fix fseeko on mingw.
58468         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58469         seek.
58470
58471         Beef up fseek tests.
58472         * tests/test-fseek.c (main): Also test eof handling.
58473         * tests/test-fseeko.c (main): Likewise.
58474         Reported by Larry Jones.
58475
58476 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58477
58478         Fix fseeko on BSD-based platforms.
58479         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58480         successful seek.
58481
58482 2007-12-12  Eric Blake  <ebb9@byu.net>
58483
58484         Allow circular dependency of separate libtests.a
58485         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58486         when use_libtests.
58487
58488 2007-12-11  Eric Blake  <ebb9@byu.net>
58489
58490         Fix bug with -0.0L in previous patch.
58491         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58492         * tests/test-isnan.c (main): Also test on zeroes.
58493         * tests/test-isnanf.c (main): Likewise.
58494         * tests/test-isnanl.h (main): Likewise.
58495
58496         Detect pseudo-denormals on x86 even when cross-compiling.
58497         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58498         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58499         invalid bit patterns that happen to satisfy ==.
58500
58501         Avoid link failures with separate libtests.a.
58502         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58503         last, to satisfy circular dependencies.
58504
58505 2007-12-11  Eric Blake  <ebb9@byu.net>
58506         and Bruno Haible  <bruno@clisp.org>
58507
58508         Fix OpenBSD 4.0 <float.h> handling of long double.
58509         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58510         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58511         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58512
58513 2007-12-11  Jim Meyering  <meyering@redhat.com>
58514
58515         * users.txt: Add libvirt.
58516
58517         Support versions of autoconf prior to 2.59c.
58518         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58519         if it is not already defined.
58520
58521 2007-12-09  Bruno Haible  <bruno@clisp.org>
58522
58523         Let 'gnulib-tool --import' collect sources needed for the tests in
58524         tests/ rather than in lib/.
58525         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58526         argument. If true, add rules to generate libtests.a, and put libtests.a
58527         into $(LDADD). Consider source files in subdirectories and set
58528         uses_subdirs.
58529         (func_emit_initmacro_start, func_emit_initmacro_end,
58530         func_emit_initmacro_done): Pass all arguments explicitly.
58531         (func_import): Determine two module lists main_modules,
58532         testsrelated_modules. Determine use_libtests. Determine two variables
58533         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58534         instead of just sed_transform_lib_file. Determine two variables
58535         main_files and testsrelated_files. Compute 'files' as the union of
58536         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58537         func_add_or_update. In the generated gnulib-comp.m4, collect the
58538         object files for tests/ in different variables than those for lib/.
58539         Substitute LIBTESTS_LIBDEPS.
58540         (func_create_testdir): Combine the uses_subdirs results from
58541         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58542
58543 2007-12-09  Bruno Haible  <bruno@clisp.org>
58544
58545         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58546         the build-aux directory.
58547
58548 2007-12-09  Bruno Haible  <bruno@clisp.org>
58549
58550         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58551         introduced on 2006-09-09.
58552
58553 2007-12-07  Jim Meyering  <meyering@redhat.com>
58554
58555         Let these macros work also with autoconf-2.59.
58556         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58557         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58558         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58559
58560 2007-12-06  Jim Meyering  <meyering@redhat.com>
58561
58562         Avoid a configure-time syntax error in gl_FUNC_ACL.
58563         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58564         function in each branch, before testing the cache variable.
58565
58566 2007-12-04  Eric Blake  <ebb9@byu.net>
58567
58568         Make scripts executable.
58569         * build-aux/config.guess: Add execute permissions.
58570         * build-aux/config.sub: Likewise.
58571         * build-aux/gendocs.sh: Likewise.
58572
58573         Fix frexp on mingw.
58574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58575         cross-compiling.
58576         * doc/functions/frexp.texi (frexp): Document the bug.
58577
58578         Make cygwin fseeko check more reliable.
58579         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58580         version numbers, rather than unrelated feature check.
58581         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58582         * doc/functions/ftello.texi (ftello): Likewise.
58583         Reported by Bruno Haible.
58584
58585         * m4/strerror.m4: Bump version number.
58586
58587 2007-12-03  Bruno Haible  <bruno@clisp.org>
58588
58589         * doc/functions/mprotect.texi: Mention the mingw problem.
58590
58591 2007-12-03  Eric Blake  <ebb9@byu.net>
58592
58593         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58594         REPLACE_STRERROR is initialized before this macro.
58595
58596 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58599         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58600         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58601         put -lsec in even for programs other than 'ls'.  This fixes a problem
58602         for gettext reported by Bruno Haible in
58603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58604         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58605         Add support for Solaris 10.  This isn't efficient, but should get the
58606         job done for now.
58607
58608 2007-12-03  James Youngman  <jay@gnu.org>
58609
58610         * doc/regexprops-generic.texi: change "an close-group" to "a
58611         close-group" and "illegal" to "not allowed".
58612
58613 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58614
58615         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58616         pr_byname.h. Needed for the rare case when the maintainer has done
58617         "make maintainer-clean" in the source directory and then attempts a
58618         build outside the source directory.
58619         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58620         scripts_byname.h.
58621
58622 2007-12-02  Martin Lambers <marlam@marlam.de>
58623             Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/getpagesize.h: Remove file.
58626         * lib/unistd.in.h: Include declaration of getpagesize here.
58627         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58628         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58629         HAVE_SYS_PARAM_H.
58630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58631         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58632         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58633         (Depends-on): Add unistd.
58634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58635         (Include): Use <unistd.h> instead of getpagesize.h.
58636         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58637         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58638         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58639         gl_GETPAGESIZE invocation, already handled by module dependency.
58640         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58641
58642 2007-12-02  Bruno Haible  <bruno@clisp.org>
58643
58644         * modules/strings-tests: New file.
58645         * tests/test-strings.c: New file.
58646
58647         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58648         * lib/strings.in.h: New file.
58649         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58650         * m4/strings_h.m4: New file.
58651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58652         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58653         * modules/strings: New file.
58654         * modules/string (Makefile.am): Update.
58655         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58656         Reported by Karl Berry.
58657
58658 2007-12-01  Eric Blake  <ebb9@byu.net>
58659
58660         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58661         accomodate fix in cygwin 1.5.25.
58662
58663 2007-12-01  Jim Meyering  <meyering@redhat.com>
58664
58665         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58666         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58667         that would inhibit utf8-optimization of a regexp containing line-
58668         or buffer-anchors, e.g., `^', `$'.
58669
58670 2007-11-30  Bruno Haible  <bruno@clisp.org>
58671
58672         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58673         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58674         glthread_recursive_lock_init.
58675         * lib/lock.c (glthread_recursive_lock_init)
58676         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58678
58679 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58680
58681         New function qset_acl, like set_acl but with syscall semantics.
58682         * lib/acl.h (qset_acl): New decl.
58683         * lib/acl.c (qset_acl): New function.
58684         (set_acl): Use new function.  Use more-consistent diagnostics.
58685
58686 2007-11-28  Jim Meyering  <meyering@redhat.com>
58687
58688         * modules/physmem (License): Change from GPL to LGPLv2+.
58689
58690 2007-11-26  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58693         'long double' type has excess precision.
58694         Reported by Jim Meyering in
58695         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58696
58697 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58698
58699         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58700         Sync from <http://gnu.org/licenses>.
58701         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58702         with license text from same location.
58703         * doc/maintain.texi, doc/standards.texi:  Sync from
58704         <http://savannah.gnu.org/projects/gnustandards>.
58705
58706 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58707         and Jim Meyering  <meyering@redhat.com>
58708
58709         Adjust getdate' grammar to accept a slightly more regular language.
58710         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58711         Before, the former was rejected.
58712         * lib/getdate.y (digits_to_date_time): New function, factored
58713         out of ...
58714         (number): ...here.  Just call digits_to_date_time.
58715         (hybrid): New non-terminal to handle an <unsigned number,
58716         signed relative offset> sequence consistently.
58717
58718 2007-11-18  Jim Meyering  <meyering@redhat.com>
58719
58720         Pull my changes from coreutils:
58721         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58722         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58723         use of $gnulib_tool_option_extras, so that it's separated from the
58724         preceding argument.
58725
58726         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58727         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58728         parent destination directories before copying a file into place.
58729
58730 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58731
58732         bootstrap: work also with 4-argument variant of AC_INIT
58733         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58734
58735 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         Port test-getaddrinfo to Solaris.
58738         Problem reported by Bruno Haible in
58739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58740         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58741         explanation of setting 'hints'.
58742         Don't reject an implementation merely because it returns EAI_SERVICE.
58743         (EAI_SERVICE): Define to 0 if not defined.
58744
58745 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58746
58747         The license of gnu-make and posix-shell is now "GPLed build tool".
58748         * modules/gnu-make (License): Likewise.
58749         * modules/posix-shell (License): Likewise.
58750
58751         New module posix-shell, for determining a POSIX shell
58752         or perhaps something that is close enough to a POSIX shell.
58753         * m4/posix-shell.m4: New file.
58754         * modules/posix-shell: New file.
58755
58756         * MODULES.html.sh: Mention new module.
58757
58758         New module gnu-make, for determining whether we're using GNU Make.
58759         * m4/gnu-make.m4: New file.
58760         * modules/gnu-make: New file.
58761         * MODULES.html.sh: Mention new module.
58762
58763 2007-11-14  Jim Meyering  <meyering@redhat.com>
58764
58765         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58766         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58767         use this macro to create a function _definition_.
58768         Remove useless "#undef ARGMATCH_DIE".
58769
58770 2007-11-14  Bruno Haible  <bruno@clisp.org>
58771
58772         * lib/config.charset: Update for OpenBSD 4.1.
58773         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58774
58775 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58776
58777         Document 64-bit #if problems in stdint.texi.
58778         * doc/headers/stdint.texi (stdint.h): Mention problems with
58779         64-bit-#if, and how to work around them.
58780
58781         Don't insist on 'long long int' support in the preprocessor.  It
58782         breaks too many things.  For example, PRIdMAX still uses a 'long
58783         long int' format with the latest Sun compiler, even though
58784         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58785         preprocessor problem.  This causes the latest coreutils to dump
58786         core on Solaris 10 sparc with the Sun C compiler.
58787         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58788         the troublesome expressions at configure-time, not at #if-time.
58789         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58790         preprocessor.
58791         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58792         compile-time C checks, done at 'configure'-time.
58793         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58794         * modules/inttypes (Makefile): Substitute the new symbols that
58795         gl_INTTYPES_H now generates.
58796         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58797
58798 2007-11-12  Bruno Haible  <bruno@clisp.org>
58799
58800         Tests for Unicode character classification functions.
58801
58802         * modules/unictype/bidicategory-byname-tests: New file.
58803         * modules/unictype/bidicategory-name-tests: New file.
58804         * modules/unictype/bidicategory-of-tests: New file.
58805         * modules/unictype/bidicategory-test-tests: New file.
58806         * modules/unictype/block-list-tests: New file.
58807         * modules/unictype/block-of-tests: New file.
58808         * modules/unictype/block-test-tests: New file.
58809         * modules/unictype/category-C-tests: New file.
58810         * modules/unictype/category-Cc-tests: New file.
58811         * modules/unictype/category-Cf-tests: New file.
58812         * modules/unictype/category-Cn-tests: New file.
58813         * modules/unictype/category-Co-tests: New file.
58814         * modules/unictype/category-Cs-tests: New file.
58815         * modules/unictype/category-L-tests: New file.
58816         * modules/unictype/category-Ll-tests: New file.
58817         * modules/unictype/category-Lm-tests: New file.
58818         * modules/unictype/category-Lo-tests: New file.
58819         * modules/unictype/category-Lt-tests: New file.
58820         * modules/unictype/category-Lu-tests: New file.
58821         * modules/unictype/category-M-tests: New file.
58822         * modules/unictype/category-Mc-tests: New file.
58823         * modules/unictype/category-Me-tests: New file.
58824         * modules/unictype/category-Mn-tests: New file.
58825         * modules/unictype/category-N-tests: New file.
58826         * modules/unictype/category-Nd-tests: New file.
58827         * modules/unictype/category-Nl-tests: New file.
58828         * modules/unictype/category-No-tests: New file.
58829         * modules/unictype/category-P-tests: New file.
58830         * modules/unictype/category-Pc-tests: New file.
58831         * modules/unictype/category-Pd-tests: New file.
58832         * modules/unictype/category-Pe-tests: New file.
58833         * modules/unictype/category-Pf-tests: New file.
58834         * modules/unictype/category-Pi-tests: New file.
58835         * modules/unictype/category-Po-tests: New file.
58836         * modules/unictype/category-Ps-tests: New file.
58837         * modules/unictype/category-S-tests: New file.
58838         * modules/unictype/category-Sc-tests: New file.
58839         * modules/unictype/category-Sk-tests: New file.
58840         * modules/unictype/category-Sm-tests: New file.
58841         * modules/unictype/category-So-tests: New file.
58842         * modules/unictype/category-Z-tests: New file.
58843         * modules/unictype/category-Zl-tests: New file.
58844         * modules/unictype/category-Zp-tests: New file.
58845         * modules/unictype/category-Zs-tests: New file.
58846         * modules/unictype/category-and-not-tests: New file.
58847         * modules/unictype/category-and-tests: New file.
58848         * modules/unictype/category-byname-tests: New file.
58849         * modules/unictype/category-name-tests: New file.
58850         * modules/unictype/category-none-tests: New file.
58851         * modules/unictype/category-of-tests: New file.
58852         * modules/unictype/category-or-tests: New file.
58853         * modules/unictype/category-test-withtable-tests: New file.
58854         * modules/unictype/combining-class-tests: New file.
58855         * modules/unictype/ctype-alnum-tests: New file.
58856         * modules/unictype/ctype-alpha-tests: New file.
58857         * modules/unictype/ctype-blank-tests: New file.
58858         * modules/unictype/ctype-cntrl-tests: New file.
58859         * modules/unictype/ctype-digit-tests: New file.
58860         * modules/unictype/ctype-graph-tests: New file.
58861         * modules/unictype/ctype-lower-tests: New file.
58862         * modules/unictype/ctype-print-tests: New file.
58863         * modules/unictype/ctype-punct-tests: New file.
58864         * modules/unictype/ctype-space-tests: New file.
58865         * modules/unictype/ctype-upper-tests: New file.
58866         * modules/unictype/ctype-xdigit-tests: New file.
58867         * modules/unictype/decimal-digit-tests: New file.
58868         * modules/unictype/digit-tests: New file.
58869         * modules/unictype/mirror-tests: New file.
58870         * modules/unictype/numeric-tests: New file.
58871         * modules/unictype/property-alphabetic-tests: New file.
58872         * modules/unictype/property-ascii-hex-digit-tests: New file.
58873         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58874         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58875         * modules/unictype/property-bidi-block-separator-tests: New file.
58876         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58877         * modules/unictype/property-bidi-common-separator-tests: New file.
58878         * modules/unictype/property-bidi-control-tests: New file.
58879         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58880         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58881         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58882         * modules/unictype/property-bidi-european-digit-tests: New file.
58883         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58884         * modules/unictype/property-bidi-left-to-right-tests: New file.
58885         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58886         * modules/unictype/property-bidi-other-neutral-tests: New file.
58887         * modules/unictype/property-bidi-pdf-tests: New file.
58888         * modules/unictype/property-bidi-segment-separator-tests: New file.
58889         * modules/unictype/property-bidi-whitespace-tests: New file.
58890         * modules/unictype/property-byname-tests: New file.
58891         * modules/unictype/property-combining-tests: New file.
58892         * modules/unictype/property-composite-tests: New file.
58893         * modules/unictype/property-currency-symbol-tests: New file.
58894         * modules/unictype/property-dash-tests: New file.
58895         * modules/unictype/property-decimal-digit-tests: New file.
58896         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58897         * modules/unictype/property-deprecated-tests: New file.
58898         * modules/unictype/property-diacritic-tests: New file.
58899         * modules/unictype/property-extender-tests: New file.
58900         * modules/unictype/property-format-control-tests: New file.
58901         * modules/unictype/property-grapheme-base-tests: New file.
58902         * modules/unictype/property-grapheme-extend-tests: New file.
58903         * modules/unictype/property-grapheme-link-tests: New file.
58904         * modules/unictype/property-hex-digit-tests: New file.
58905         * modules/unictype/property-hyphen-tests: New file.
58906         * modules/unictype/property-id-continue-tests: New file.
58907         * modules/unictype/property-id-start-tests: New file.
58908         * modules/unictype/property-ideographic-tests: New file.
58909         * modules/unictype/property-ids-binary-operator-tests: New file.
58910         * modules/unictype/property-ids-trinary-operator-tests: New file.
58911         * modules/unictype/property-ignorable-control-tests: New file.
58912         * modules/unictype/property-iso-control-tests: New file.
58913         * modules/unictype/property-join-control-tests: New file.
58914         * modules/unictype/property-left-of-pair-tests: New file.
58915         * modules/unictype/property-line-separator-tests: New file.
58916         * modules/unictype/property-logical-order-exception-tests: New file.
58917         * modules/unictype/property-lowercase-tests: New file.
58918         * modules/unictype/property-math-tests: New file.
58919         * modules/unictype/property-non-break-tests: New file.
58920         * modules/unictype/property-not-a-character-tests: New file.
58921         * modules/unictype/property-numeric-tests: New file.
58922         * modules/unictype/property-other-alphabetic-tests: New file.
58923         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58924         * modules/unictype/property-other-grapheme-extend-tests: New file.
58925         * modules/unictype/property-other-id-continue-tests: New file.
58926         * modules/unictype/property-other-id-start-tests: New file.
58927         * modules/unictype/property-other-lowercase-tests: New file.
58928         * modules/unictype/property-other-math-tests: New file.
58929         * modules/unictype/property-other-uppercase-tests: New file.
58930         * modules/unictype/property-paired-punctuation-tests: New file.
58931         * modules/unictype/property-paragraph-separator-tests: New file.
58932         * modules/unictype/property-pattern-syntax-tests: New file.
58933         * modules/unictype/property-pattern-white-space-tests: New file.
58934         * modules/unictype/property-private-use-tests: New file.
58935         * modules/unictype/property-punctuation-tests: New file.
58936         * modules/unictype/property-quotation-mark-tests: New file.
58937         * modules/unictype/property-radical-tests: New file.
58938         * modules/unictype/property-sentence-terminal-tests: New file.
58939         * modules/unictype/property-soft-dotted-tests: New file.
58940         * modules/unictype/property-space-tests: New file.
58941         * modules/unictype/property-terminal-punctuation-tests: New file.
58942         * modules/unictype/property-test-tests: New file.
58943         * modules/unictype/property-titlecase-tests: New file.
58944         * modules/unictype/property-unassigned-code-value-tests: New file.
58945         * modules/unictype/property-unified-ideograph-tests: New file.
58946         * modules/unictype/property-uppercase-tests: New file.
58947         * modules/unictype/property-variation-selector-tests: New file.
58948         * modules/unictype/property-white-space-tests: New file.
58949         * modules/unictype/property-xid-continue-tests: New file.
58950         * modules/unictype/property-xid-start-tests: New file.
58951         * modules/unictype/property-zero-width-tests: New file.
58952         * modules/unictype/scripts-tests: New file.
58953         * modules/unictype/syntax-c-ident-tests: New file.
58954         * modules/unictype/syntax-c-whitespace-tests: New file.
58955         * modules/unictype/syntax-java-ident-tests: New file.
58956         * modules/unictype/syntax-java-whitespace-tests: New file.
58957         * tests/unictype/test-bidi_byname.c: New file.
58958         * tests/unictype/test-bidi_name.c: New file.
58959         * tests/unictype/test-bidi_of.c: New file.
58960         * tests/unictype/test-bidi_test.c: New file.
58961         * tests/unictype/test-block_list.c: New file.
58962         * tests/unictype/test-block_of.c: New file.
58963         * tests/unictype/test-block_test.c: New file.
58964         * tests/unictype/test-categ_and.c: New file.
58965         * tests/unictype/test-categ_and_not.c: New file.
58966         * tests/unictype/test-categ_byname.c: New file.
58967         * tests/unictype/test-categ_name.c: New file.
58968         * tests/unictype/test-categ_none.c: New file.
58969         * tests/unictype/test-categ_of.c: New file.
58970         * tests/unictype/test-categ_or.c: New file.
58971         * tests/unictype/test-categ_test_withtable.c: New file.
58972         * tests/unictype/test-combining.c: New file.
58973         * tests/unictype/test-decdigit.c: New file.
58974         * tests/unictype/test-digit.c: New file.
58975         * tests/unictype/test-mirror.c: New file.
58976         * tests/unictype/test-numeric.c: New file.
58977         * tests/unictype/test-pr_byname.c: New file.
58978         * tests/unictype/test-pr_test.c: New file.
58979         * tests/unictype/test-predicate-part1.h: New file.
58980         * tests/unictype/test-predicate-part2.h: New file.
58981         * tests/unictype/test-scripts.c: New file.
58982         * tests/unictype/test-sy_c_ident.c: New file.
58983         * tests/unictype/test-sy_java_ident.c: New file.
58984
58985         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58986         for Unicode 5.0.0.
58987         * tests/unictype/test-categ_Cc.c: Likewise.
58988         * tests/unictype/test-categ_Cf.c: Likewise.
58989         * tests/unictype/test-categ_Cn.c: Likewise.
58990         * tests/unictype/test-categ_Co.c: Likewise.
58991         * tests/unictype/test-categ_Cs.c: Likewise.
58992         * tests/unictype/test-categ_L.c: Likewise.
58993         * tests/unictype/test-categ_Ll.c: Likewise.
58994         * tests/unictype/test-categ_Lm.c: Likewise.
58995         * tests/unictype/test-categ_Lo.c: Likewise.
58996         * tests/unictype/test-categ_Lt.c: Likewise.
58997         * tests/unictype/test-categ_Lu.c: Likewise.
58998         * tests/unictype/test-categ_M.c: Likewise.
58999         * tests/unictype/test-categ_Mc.c: Likewise.
59000         * tests/unictype/test-categ_Me.c: Likewise.
59001         * tests/unictype/test-categ_Mn.c: Likewise.
59002         * tests/unictype/test-categ_N.c: Likewise.
59003         * tests/unictype/test-categ_Nd.c: Likewise.
59004         * tests/unictype/test-categ_Nl.c: Likewise.
59005         * tests/unictype/test-categ_No.c: Likewise.
59006         * tests/unictype/test-categ_P.c: Likewise.
59007         * tests/unictype/test-categ_Pc.c: Likewise.
59008         * tests/unictype/test-categ_Pd.c: Likewise.
59009         * tests/unictype/test-categ_Pe.c: Likewise.
59010         * tests/unictype/test-categ_Pf.c: Likewise.
59011         * tests/unictype/test-categ_Pi.c: Likewise.
59012         * tests/unictype/test-categ_Po.c: Likewise.
59013         * tests/unictype/test-categ_Ps.c: Likewise.
59014         * tests/unictype/test-categ_S.c: Likewise.
59015         * tests/unictype/test-categ_Sc.c: Likewise.
59016         * tests/unictype/test-categ_Sk.c: Likewise.
59017         * tests/unictype/test-categ_Sm.c: Likewise.
59018         * tests/unictype/test-categ_So.c: Likewise.
59019         * tests/unictype/test-categ_Z.c: Likewise.
59020         * tests/unictype/test-categ_Zl.c: Likewise.
59021         * tests/unictype/test-categ_Zp.c: Likewise.
59022         * tests/unictype/test-categ_Zs.c: Likewise.
59023         * tests/unictype/test-ctype_alnum.c: Likewise.
59024         * tests/unictype/test-ctype_alpha.c: Likewise.
59025         * tests/unictype/test-ctype_blank.c: Likewise.
59026         * tests/unictype/test-ctype_cntrl.c: Likewise.
59027         * tests/unictype/test-ctype_digit.c: Likewise.
59028         * tests/unictype/test-ctype_graph.c: Likewise.
59029         * tests/unictype/test-ctype_lower.c: Likewise.
59030         * tests/unictype/test-ctype_print.c: Likewise.
59031         * tests/unictype/test-ctype_punct.c: Likewise.
59032         * tests/unictype/test-ctype_space.c: Likewise.
59033         * tests/unictype/test-ctype_upper.c: Likewise.
59034         * tests/unictype/test-ctype_xdigit.c: Likewise.
59035         * tests/unictype/test-decdigit.h: Likewise.
59036         * tests/unictype/test-digit.h: Likewise.
59037         * tests/unictype/test-numeric.h: Likewise.
59038         * tests/unictype/test-pr_alphabetic.c: Likewise.
59039         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59040         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59041         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59042         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59043         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59044         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59045         * tests/unictype/test-pr_bidi_control.c: Likewise.
59046         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59047         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59048         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59049         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59050         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59051         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59052         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59053         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59054         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59055         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59056         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59057         * tests/unictype/test-pr_combining.c: Likewise.
59058         * tests/unictype/test-pr_composite.c: Likewise.
59059         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59060         * tests/unictype/test-pr_dash.c: Likewise.
59061         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59062         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59063         * tests/unictype/test-pr_deprecated.c: Likewise.
59064         * tests/unictype/test-pr_diacritic.c: Likewise.
59065         * tests/unictype/test-pr_extender.c: Likewise.
59066         * tests/unictype/test-pr_format_control.c: Likewise.
59067         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59068         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59069         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59070         * tests/unictype/test-pr_hex_digit.c: Likewise.
59071         * tests/unictype/test-pr_hyphen.c: Likewise.
59072         * tests/unictype/test-pr_id_continue.c: Likewise.
59073         * tests/unictype/test-pr_id_start.c: Likewise.
59074         * tests/unictype/test-pr_ideographic.c: Likewise.
59075         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59076         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59077         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59078         * tests/unictype/test-pr_iso_control.c: Likewise.
59079         * tests/unictype/test-pr_join_control.c: Likewise.
59080         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59081         * tests/unictype/test-pr_line_separator.c: Likewise.
59082         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59083         * tests/unictype/test-pr_lowercase.c: Likewise.
59084         * tests/unictype/test-pr_math.c: Likewise.
59085         * tests/unictype/test-pr_non_break.c: Likewise.
59086         * tests/unictype/test-pr_not_a_character.c: Likewise.
59087         * tests/unictype/test-pr_numeric.c: Likewise.
59088         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59089         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59090         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59091         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59092         * tests/unictype/test-pr_other_id_start.c: Likewise.
59093         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59094         * tests/unictype/test-pr_other_math.c: Likewise.
59095         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59096         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59097         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59098         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59099         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59100         * tests/unictype/test-pr_private_use.c: Likewise.
59101         * tests/unictype/test-pr_punctuation.c: Likewise.
59102         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59103         * tests/unictype/test-pr_radical.c: Likewise.
59104         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59105         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59106         * tests/unictype/test-pr_space.c: Likewise.
59107         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59108         * tests/unictype/test-pr_titlecase.c: Likewise.
59109         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59110         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59111         * tests/unictype/test-pr_uppercase.c: Likewise.
59112         * tests/unictype/test-pr_variation_selector.c: Likewise.
59113         * tests/unictype/test-pr_white_space.c: Likewise.
59114         * tests/unictype/test-pr_xid_continue.c: Likewise.
59115         * tests/unictype/test-pr_xid_start.c: Likewise.
59116         * tests/unictype/test-pr_zero_width.c: Likewise.
59117         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59118         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59119
59120 2007-11-12  Bruno Haible  <bruno@clisp.org>
59121
59122         Unicode character classification functions.
59123         * lib/unictype.h: New file.
59124         * modules/unictype/base: New file.
59125         * modules/unictype/category-L: New file.
59126         * modules/unictype/category-Lu: New file.
59127         * modules/unictype/category-Ll: New file.
59128         * modules/unictype/category-Lt: New file.
59129         * modules/unictype/category-Lm: New file.
59130         * modules/unictype/category-Lo: New file.
59131         * modules/unictype/category-M: New file.
59132         * modules/unictype/category-Mn: New file.
59133         * modules/unictype/category-Mc: New file.
59134         * modules/unictype/category-Me: New file.
59135         * modules/unictype/category-N: New file.
59136         * modules/unictype/category-Nd: New file.
59137         * modules/unictype/category-Nl: New file.
59138         * modules/unictype/category-No: New file.
59139         * modules/unictype/category-P: New file.
59140         * modules/unictype/category-Pc: New file.
59141         * modules/unictype/category-Pd: New file.
59142         * modules/unictype/category-Ps: New file.
59143         * modules/unictype/category-Pe: New file.
59144         * modules/unictype/category-Pi: New file.
59145         * modules/unictype/category-Pf: New file.
59146         * modules/unictype/category-Po: New file.
59147         * modules/unictype/category-S: New file.
59148         * modules/unictype/category-Sm: New file.
59149         * modules/unictype/category-Sc: New file.
59150         * modules/unictype/category-Sk: New file.
59151         * modules/unictype/category-So: New file.
59152         * modules/unictype/category-Z: New file.
59153         * modules/unictype/category-Zs: New file.
59154         * modules/unictype/category-Zl: New file.
59155         * modules/unictype/category-Zp: New file.
59156         * modules/unictype/category-C: New file.
59157         * modules/unictype/category-Cc: New file.
59158         * modules/unictype/category-Cf: New file.
59159         * modules/unictype/category-Cs: New file.
59160         * modules/unictype/category-Co: New file.
59161         * modules/unictype/category-Cn: New file.
59162         * modules/unictype/category-or: New file.
59163         * modules/unictype/category-of: New file.
59164         * modules/unictype/category-test: New file.
59165         * modules/unictype/category-test-withtable: New file.
59166         * modules/unictype/category-byname: New file.
59167         * modules/unictype/category-none: New file.
59168         * modules/unictype/category-and: New file.
59169         * modules/unictype/category-and-not: New file.
59170         * modules/unictype/category-name: New file.
59171         * modules/unictype/combining-class: New file.
59172         * modules/unictype/category-all: New file.
59173         * modules/unictype/bidicategory-all: New file.
59174         * modules/unictype/bidicategory-byname: New file.
59175         * modules/unictype/bidicategory-name: New file.
59176         * modules/unictype/bidicategory-of: New file.
59177         * modules/unictype/bidicategory-test: New file.
59178         * modules/unictype/decimal-digit: New file.
59179         * modules/unictype/digit: New file.
59180         * modules/unictype/numeric: New file.
59181         * modules/unictype/mirror: New file.
59182         * modules/unictype/property-white-space: New file.
59183         * modules/unictype/property-alphabetic: New file.
59184         * modules/unictype/property-other-alphabetic: New file.
59185         * modules/unictype/property-not-a-character: New file.
59186         * modules/unictype/property-default-ignorable-code-point: New file.
59187         * modules/unictype/property-other-default-ignorable-code-point: New
59188         file.
59189         * modules/unictype/property-deprecated: New file.
59190         * modules/unictype/property-logical-order-exception: New file.
59191         * modules/unictype/property-variation-selector: New file.
59192         * modules/unictype/property-private-use: New file.
59193         * modules/unictype/property-unassigned-code-value: New file.
59194         * modules/unictype/property-uppercase: New file.
59195         * modules/unictype/property-other-uppercase: New file.
59196         * modules/unictype/property-lowercase: New file.
59197         * modules/unictype/property-other-lowercase: New file.
59198         * modules/unictype/property-titlecase: New file.
59199         * modules/unictype/property-soft-dotted: New file.
59200         * modules/unictype/property-id-start: New file.
59201         * modules/unictype/property-other-id-start: New file.
59202         * modules/unictype/property-id-continue: New file.
59203         * modules/unictype/property-other-id-continue: New file.
59204         * modules/unictype/property-xid-start: New file.
59205         * modules/unictype/property-xid-continue: New file.
59206         * modules/unictype/property-pattern-white-space: New file.
59207         * modules/unictype/property-pattern-syntax: New file.
59208         * modules/unictype/property-join-control: New file.
59209         * modules/unictype/property-grapheme-base: New file.
59210         * modules/unictype/property-grapheme-extend: New file.
59211         * modules/unictype/property-other-grapheme-extend: New file.
59212         * modules/unictype/property-grapheme-link: New file.
59213         * modules/unictype/property-bidi-control: New file.
59214         * modules/unictype/property-bidi-left-to-right: New file.
59215         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59216         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59217         * modules/unictype/property-bidi-european-digit: New file.
59218         * modules/unictype/property-bidi-eur-num-separator: New file.
59219         * modules/unictype/property-bidi-eur-num-terminator: New file.
59220         * modules/unictype/property-bidi-arabic-digit: New file.
59221         * modules/unictype/property-bidi-common-separator: New file.
59222         * modules/unictype/property-bidi-block-separator: New file.
59223         * modules/unictype/property-bidi-segment-separator: New file.
59224         * modules/unictype/property-bidi-whitespace: New file.
59225         * modules/unictype/property-bidi-non-spacing-mark: New file.
59226         * modules/unictype/property-bidi-boundary-neutral: New file.
59227         * modules/unictype/property-bidi-pdf: New file.
59228         * modules/unictype/property-bidi-embedding-or-override: New file.
59229         * modules/unictype/property-bidi-other-neutral: New file.
59230         * modules/unictype/property-hex-digit: New file.
59231         * modules/unictype/property-ascii-hex-digit: New file.
59232         * modules/unictype/property-ideographic: New file.
59233         * modules/unictype/property-unified-ideograph: New file.
59234         * modules/unictype/property-radical: New file.
59235         * modules/unictype/property-ids-binary-operator: New file.
59236         * modules/unictype/property-ids-trinary-operator: New file.
59237         * modules/unictype/property-zero-width: New file.
59238         * modules/unictype/property-space: New file.
59239         * modules/unictype/property-non-break: New file.
59240         * modules/unictype/property-iso-control: New file.
59241         * modules/unictype/property-format-control: New file.
59242         * modules/unictype/property-dash: New file.
59243         * modules/unictype/property-hyphen: New file.
59244         * modules/unictype/property-punctuation: New file.
59245         * modules/unictype/property-line-separator: New file.
59246         * modules/unictype/property-paragraph-separator: New file.
59247         * modules/unictype/property-quotation-mark: New file.
59248         * modules/unictype/property-sentence-terminal: New file.
59249         * modules/unictype/property-terminal-punctuation: New file.
59250         * modules/unictype/property-currency-symbol: New file.
59251         * modules/unictype/property-math: New file.
59252         * modules/unictype/property-other-math: New file.
59253         * modules/unictype/property-paired-punctuation: New file.
59254         * modules/unictype/property-left-of-pair: New file.
59255         * modules/unictype/property-combining: New file.
59256         * modules/unictype/property-composite: New file.
59257         * modules/unictype/property-decimal-digit: New file.
59258         * modules/unictype/property-numeric: New file.
59259         * modules/unictype/property-diacritic: New file.
59260         * modules/unictype/property-extender: New file.
59261         * modules/unictype/property-ignorable-control: New file.
59262         * modules/unictype/property-test: New file.
59263         * modules/unictype/property-byname: New file.
59264         * modules/unictype/property-all: New file.
59265         * modules/unictype/scripts: New file.
59266         * modules/unictype/scripts-all: New file.
59267         * modules/unictype/block-of: New file.
59268         * modules/unictype/block-test: New file.
59269         * modules/unictype/block-list: New file.
59270         * modules/unictype/block-all: New file.
59271         * modules/unictype/syntax-c-whitespace: New file.
59272         * modules/unictype/syntax-java-whitespace: New file.
59273         * modules/unictype/syntax-c-ident: New file.
59274         * modules/unictype/syntax-java-ident: New file.
59275         * modules/unictype/ctype-alnum: New file.
59276         * modules/unictype/ctype-alpha: New file.
59277         * modules/unictype/ctype-cntrl: New file.
59278         * modules/unictype/ctype-digit: New file.
59279         * modules/unictype/ctype-graph: New file.
59280         * modules/unictype/ctype-lower: New file.
59281         * modules/unictype/ctype-print: New file.
59282         * modules/unictype/ctype-punct: New file.
59283         * modules/unictype/ctype-space: New file.
59284         * modules/unictype/ctype-upper: New file.
59285         * modules/unictype/ctype-xdigit: New file.
59286         * modules/unictype/ctype-blank: New file.
59287         * lib/unictype/bidi_byname.c: New file.
59288         * lib/unictype/bidi_name.c: New file.
59289         * lib/unictype/bidi_of.c: New file.
59290         * lib/unictype/bidi_test.c: New file.
59291         * lib/unictype/bitmap.h: New file.
59292         * lib/unictype/block_test.c: New file.
59293         * lib/unictype/blocks.c: New file.
59294         * lib/unictype/categ_C.c: New file.
59295         * lib/unictype/categ_Cc.c: New file.
59296         * lib/unictype/categ_Cf.c: New file.
59297         * lib/unictype/categ_Cn.c: New file.
59298         * lib/unictype/categ_Co.c: New file.
59299         * lib/unictype/categ_Cs.c: New file.
59300         * lib/unictype/categ_L.c: New file.
59301         * lib/unictype/categ_Ll.c: New file.
59302         * lib/unictype/categ_Lm.c: New file.
59303         * lib/unictype/categ_Lo.c: New file.
59304         * lib/unictype/categ_Lt.c: New file.
59305         * lib/unictype/categ_Lu.c: New file.
59306         * lib/unictype/categ_M.c: New file.
59307         * lib/unictype/categ_Mc.c: New file.
59308         * lib/unictype/categ_Me.c: New file.
59309         * lib/unictype/categ_Mn.c: New file.
59310         * lib/unictype/categ_N.c: New file.
59311         * lib/unictype/categ_Nd.c: New file.
59312         * lib/unictype/categ_Nl.c: New file.
59313         * lib/unictype/categ_No.c: New file.
59314         * lib/unictype/categ_P.c: New file.
59315         * lib/unictype/categ_Pc.c: New file.
59316         * lib/unictype/categ_Pd.c: New file.
59317         * lib/unictype/categ_Pe.c: New file.
59318         * lib/unictype/categ_Pf.c: New file.
59319         * lib/unictype/categ_Pi.c: New file.
59320         * lib/unictype/categ_Po.c: New file.
59321         * lib/unictype/categ_Ps.c: New file.
59322         * lib/unictype/categ_S.c: New file.
59323         * lib/unictype/categ_Sc.c: New file.
59324         * lib/unictype/categ_Sk.c: New file.
59325         * lib/unictype/categ_Sm.c: New file.
59326         * lib/unictype/categ_So.c: New file.
59327         * lib/unictype/categ_Z.c: New file.
59328         * lib/unictype/categ_Zl.c: New file.
59329         * lib/unictype/categ_Zp.c: New file.
59330         * lib/unictype/categ_Zs.c: New file.
59331         * lib/unictype/categ_and.c: New file.
59332         * lib/unictype/categ_and_not.c: New file.
59333         * lib/unictype/categ_byname.c: New file.
59334         * lib/unictype/categ_name.c: New file.
59335         * lib/unictype/categ_none.c: New file.
59336         * lib/unictype/categ_of.c: New file.
59337         * lib/unictype/categ_or.c: New file.
59338         * lib/unictype/categ_test.c: New file.
59339         * lib/unictype/combining.c: New file.
59340         * lib/unictype/ctype_alnum.c: New file.
59341         * lib/unictype/ctype_alpha.c: New file.
59342         * lib/unictype/ctype_blank.c: New file.
59343         * lib/unictype/ctype_cntrl.c: New file.
59344         * lib/unictype/ctype_digit.c: New file.
59345         * lib/unictype/ctype_graph.c: New file.
59346         * lib/unictype/ctype_lower.c: New file.
59347         * lib/unictype/ctype_print.c: New file.
59348         * lib/unictype/ctype_punct.c: New file.
59349         * lib/unictype/ctype_space.c: New file.
59350         * lib/unictype/ctype_upper.c: New file.
59351         * lib/unictype/ctype_xdigit.c: New file.
59352         * lib/unictype/decdigit.c: New file.
59353         * lib/unictype/digit.c: New file.
59354         * lib/unictype/identsyntaxmap.h: New file.
59355         * lib/unictype/mirror.c: New file.
59356         * lib/unictype/numeric.c: New file.
59357         * lib/unictype/pr_alphabetic.c: New file.
59358         * lib/unictype/pr_ascii_hex_digit.c: New file.
59359         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59360         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59361         * lib/unictype/pr_bidi_block_separator.c: New file.
59362         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59363         * lib/unictype/pr_bidi_common_separator.c: New file.
59364         * lib/unictype/pr_bidi_control.c: New file.
59365         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59366         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59367         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59368         * lib/unictype/pr_bidi_european_digit.c: New file.
59369         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59370         * lib/unictype/pr_bidi_left_to_right.c: New file.
59371         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59372         * lib/unictype/pr_bidi_other_neutral.c: New file.
59373         * lib/unictype/pr_bidi_pdf.c: New file.
59374         * lib/unictype/pr_bidi_segment_separator.c: New file.
59375         * lib/unictype/pr_bidi_whitespace.c: New file.
59376         * lib/unictype/pr_byname.c: New file.
59377         * lib/unictype/pr_byname.gperf: New file.
59378         * lib/unictype/pr_combining.c: New file.
59379         * lib/unictype/pr_composite.c: New file.
59380         * lib/unictype/pr_currency_symbol.c: New file.
59381         * lib/unictype/pr_dash.c: New file.
59382         * lib/unictype/pr_decimal_digit.c: New file.
59383         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59384         * lib/unictype/pr_deprecated.c: New file.
59385         * lib/unictype/pr_diacritic.c: New file.
59386         * lib/unictype/pr_extender.c: New file.
59387         * lib/unictype/pr_format_control.c: New file.
59388         * lib/unictype/pr_grapheme_base.c: New file.
59389         * lib/unictype/pr_grapheme_extend.c: New file.
59390         * lib/unictype/pr_grapheme_link.c: New file.
59391         * lib/unictype/pr_hex_digit.c: New file.
59392         * lib/unictype/pr_hyphen.c: New file.
59393         * lib/unictype/pr_id_continue.c: New file.
59394         * lib/unictype/pr_id_start.c: New file.
59395         * lib/unictype/pr_ideographic.c: New file.
59396         * lib/unictype/pr_ids_binary_operator.c: New file.
59397         * lib/unictype/pr_ids_trinary_operator.c: New file.
59398         * lib/unictype/pr_ignorable_control.c: New file.
59399         * lib/unictype/pr_iso_control.c: New file.
59400         * lib/unictype/pr_join_control.c: New file.
59401         * lib/unictype/pr_left_of_pair.c: New file.
59402         * lib/unictype/pr_line_separator.c: New file.
59403         * lib/unictype/pr_logical_order_exception.c: New file.
59404         * lib/unictype/pr_lowercase.c: New file.
59405         * lib/unictype/pr_math.c: New file.
59406         * lib/unictype/pr_non_break.c: New file.
59407         * lib/unictype/pr_not_a_character.c: New file.
59408         * lib/unictype/pr_numeric.c: New file.
59409         * lib/unictype/pr_other_alphabetic.c: New file.
59410         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59411         * lib/unictype/pr_other_grapheme_extend.c: New file.
59412         * lib/unictype/pr_other_id_continue.c: New file.
59413         * lib/unictype/pr_other_id_start.c: New file.
59414         * lib/unictype/pr_other_lowercase.c: New file.
59415         * lib/unictype/pr_other_math.c: New file.
59416         * lib/unictype/pr_other_uppercase.c: New file.
59417         * lib/unictype/pr_paired_punctuation.c: New file.
59418         * lib/unictype/pr_paragraph_separator.c: New file.
59419         * lib/unictype/pr_pattern_syntax.c: New file.
59420         * lib/unictype/pr_pattern_white_space.c: New file.
59421         * lib/unictype/pr_private_use.c: New file.
59422         * lib/unictype/pr_punctuation.c: New file.
59423         * lib/unictype/pr_quotation_mark.c: New file.
59424         * lib/unictype/pr_radical.c: New file.
59425         * lib/unictype/pr_sentence_terminal.c: New file.
59426         * lib/unictype/pr_soft_dotted.c: New file.
59427         * lib/unictype/pr_space.c: New file.
59428         * lib/unictype/pr_terminal_punctuation.c: New file.
59429         * lib/unictype/pr_test.c: New file.
59430         * lib/unictype/pr_titlecase.c: New file.
59431         * lib/unictype/pr_unassigned_code_value.c: New file.
59432         * lib/unictype/pr_unified_ideograph.c: New file.
59433         * lib/unictype/pr_uppercase.c: New file.
59434         * lib/unictype/pr_variation_selector.c: New file.
59435         * lib/unictype/pr_white_space.c: New file.
59436         * lib/unictype/pr_xid_continue.c: New file.
59437         * lib/unictype/pr_xid_start.c: New file.
59438         * lib/unictype/pr_zero_width.c: New file.
59439         * lib/unictype/scripts.c: New file.
59440         * lib/unictype/sy_c_ident.c: New file.
59441         * lib/unictype/sy_c_whitespace.c: New file.
59442         * lib/unictype/sy_java_ident.c: New file.
59443         * lib/unictype/sy_java_whitespace.c: New file.
59444
59445         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59446         Unicode 5.0.0.
59447         * lib/unictype/blocks.h: Likewise.
59448         * lib/unictype/categ_C.h: Likewise.
59449         * lib/unictype/categ_Cc.h: Likewise.
59450         * lib/unictype/categ_Cf.h: Likewise.
59451         * lib/unictype/categ_Cn.h: Likewise.
59452         * lib/unictype/categ_Co.h: Likewise.
59453         * lib/unictype/categ_Cs.h: Likewise.
59454         * lib/unictype/categ_L.h: Likewise.
59455         * lib/unictype/categ_Ll.h: Likewise.
59456         * lib/unictype/categ_Lm.h: Likewise.
59457         * lib/unictype/categ_Lo.h: Likewise.
59458         * lib/unictype/categ_Lt.h: Likewise.
59459         * lib/unictype/categ_Lu.h: Likewise.
59460         * lib/unictype/categ_M.h: Likewise.
59461         * lib/unictype/categ_Mc.h: Likewise.
59462         * lib/unictype/categ_Me.h: Likewise.
59463         * lib/unictype/categ_Mn.h: Likewise.
59464         * lib/unictype/categ_N.h: Likewise.
59465         * lib/unictype/categ_Nd.h: Likewise.
59466         * lib/unictype/categ_Nl.h: Likewise.
59467         * lib/unictype/categ_No.h: Likewise.
59468         * lib/unictype/categ_P.h: Likewise.
59469         * lib/unictype/categ_Pc.h: Likewise.
59470         * lib/unictype/categ_Pd.h: Likewise.
59471         * lib/unictype/categ_Pe.h: Likewise.
59472         * lib/unictype/categ_Pf.h: Likewise.
59473         * lib/unictype/categ_Pi.h: Likewise.
59474         * lib/unictype/categ_Po.h: Likewise.
59475         * lib/unictype/categ_Ps.h: Likewise.
59476         * lib/unictype/categ_S.h: Likewise.
59477         * lib/unictype/categ_Sc.h: Likewise.
59478         * lib/unictype/categ_Sk.h: Likewise.
59479         * lib/unictype/categ_Sm.h: Likewise.
59480         * lib/unictype/categ_So.h: Likewise.
59481         * lib/unictype/categ_Z.h: Likewise.
59482         * lib/unictype/categ_Zl.h: Likewise.
59483         * lib/unictype/categ_Zp.h: Likewise.
59484         * lib/unictype/categ_Zs.h: Likewise.
59485         * lib/unictype/categ_of.h: Likewise.
59486         * lib/unictype/combining.h: Likewise.
59487         * lib/unictype/ctype_alnum.h: Likewise.
59488         * lib/unictype/ctype_alpha.h: Likewise.
59489         * lib/unictype/ctype_blank.h: Likewise.
59490         * lib/unictype/ctype_cntrl.h: Likewise.
59491         * lib/unictype/ctype_digit.h: Likewise.
59492         * lib/unictype/ctype_graph.h: Likewise.
59493         * lib/unictype/ctype_lower.h: Likewise.
59494         * lib/unictype/ctype_print.h: Likewise.
59495         * lib/unictype/ctype_punct.h: Likewise.
59496         * lib/unictype/ctype_space.h: Likewise.
59497         * lib/unictype/ctype_upper.h: Likewise.
59498         * lib/unictype/ctype_xdigit.h: Likewise.
59499         * lib/unictype/decdigit.h: Likewise.
59500         * lib/unictype/digit.h: Likewise.
59501         * lib/unictype/mirror.h: Likewise.
59502         * lib/unictype/numeric.h: Likewise.
59503         * lib/unictype/pr_alphabetic.h: Likewise.
59504         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59505         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59506         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59507         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59508         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59509         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59510         * lib/unictype/pr_bidi_control.h: Likewise.
59511         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59512         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59513         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59514         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59515         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59516         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59517         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59518         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59519         * lib/unictype/pr_bidi_pdf.h: Likewise.
59520         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59521         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59522         * lib/unictype/pr_combining.h: Likewise.
59523         * lib/unictype/pr_composite.h: Likewise.
59524         * lib/unictype/pr_currency_symbol.h: Likewise.
59525         * lib/unictype/pr_dash.h: Likewise.
59526         * lib/unictype/pr_decimal_digit.h: Likewise.
59527         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59528         * lib/unictype/pr_deprecated.h: Likewise.
59529         * lib/unictype/pr_diacritic.h: Likewise.
59530         * lib/unictype/pr_extender.h: Likewise.
59531         * lib/unictype/pr_format_control.h: Likewise.
59532         * lib/unictype/pr_grapheme_base.h: Likewise.
59533         * lib/unictype/pr_grapheme_extend.h: Likewise.
59534         * lib/unictype/pr_grapheme_link.h: Likewise.
59535         * lib/unictype/pr_hex_digit.h: Likewise.
59536         * lib/unictype/pr_hyphen.h: Likewise.
59537         * lib/unictype/pr_id_continue.h: Likewise.
59538         * lib/unictype/pr_id_start.h: Likewise.
59539         * lib/unictype/pr_ideographic.h: Likewise.
59540         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59541         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59542         * lib/unictype/pr_ignorable_control.h: Likewise.
59543         * lib/unictype/pr_iso_control.h: Likewise.
59544         * lib/unictype/pr_join_control.h: Likewise.
59545         * lib/unictype/pr_left_of_pair.h: Likewise.
59546         * lib/unictype/pr_line_separator.h: Likewise.
59547         * lib/unictype/pr_logical_order_exception.h: Likewise.
59548         * lib/unictype/pr_lowercase.h: Likewise.
59549         * lib/unictype/pr_math.h: Likewise.
59550         * lib/unictype/pr_non_break.h: Likewise.
59551         * lib/unictype/pr_not_a_character.h: Likewise.
59552         * lib/unictype/pr_numeric.h: Likewise.
59553         * lib/unictype/pr_other_alphabetic.h: Likewise.
59554         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59555         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59556         * lib/unictype/pr_other_id_continue.h: Likewise.
59557         * lib/unictype/pr_other_id_start.h: Likewise.
59558         * lib/unictype/pr_other_lowercase.h: Likewise.
59559         * lib/unictype/pr_other_math.h: Likewise.
59560         * lib/unictype/pr_other_uppercase.h: Likewise.
59561         * lib/unictype/pr_paired_punctuation.h: Likewise.
59562         * lib/unictype/pr_paragraph_separator.h: Likewise.
59563         * lib/unictype/pr_pattern_syntax.h: Likewise.
59564         * lib/unictype/pr_pattern_white_space.h: Likewise.
59565         * lib/unictype/pr_private_use.h: Likewise.
59566         * lib/unictype/pr_punctuation.h: Likewise.
59567         * lib/unictype/pr_quotation_mark.h: Likewise.
59568         * lib/unictype/pr_radical.h: Likewise.
59569         * lib/unictype/pr_sentence_terminal.h: Likewise.
59570         * lib/unictype/pr_soft_dotted.h: Likewise.
59571         * lib/unictype/pr_space.h: Likewise.
59572         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59573         * lib/unictype/pr_titlecase.h: Likewise.
59574         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59575         * lib/unictype/pr_unified_ideograph.h: Likewise.
59576         * lib/unictype/pr_uppercase.h: Likewise.
59577         * lib/unictype/pr_variation_selector.h: Likewise.
59578         * lib/unictype/pr_white_space.h: Likewise.
59579         * lib/unictype/pr_xid_continue.h: Likewise.
59580         * lib/unictype/pr_xid_start.h: Likewise.
59581         * lib/unictype/pr_zero_width.h: Likewise.
59582         * lib/unictype/scripts.h: Likewise.
59583         * lib/unictype/scripts_byname.gperf: Likewise.
59584         * lib/unictype/sy_c_ident.h: Likewise.
59585         * lib/unictype/sy_c_whitespace.h: Likewise.
59586         * lib/unictype/sy_java_ident.h: Likewise.
59587         * lib/unictype/sy_java_whitespace.h: Likewise.
59588
59589         * lib/unictype/Makefile: New file.
59590         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59591         glibc.
59592         * lib/unictype/3level.h: New file, copied from glibc.
59593         * lib/unictype/3levelbit.h: New file.
59594
59595 2007-11-11  Bruno Haible  <bruno@clisp.org>
59596
59597         * modules/gperf: New file.
59598         * modules/iconv_open (Depends-on): Add it.
59599         (Makefile.am): Remove the GPERF definition.
59600
59601 2007-11-11  Bruno Haible  <bruno@clisp.org>
59602
59603         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59604         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59605
59606 2007-11-11  Bruno Haible  <bruno@clisp.org>
59607
59608         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59609         (usage): Remove function.
59610
59611 2007-11-11  Bruno Haible  <bruno@clisp.org>
59612
59613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59614         gl_FUNC_CEILF_LIBS.
59615         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59616         gl_FUNC_CEIL_LIBS.
59617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59618         gl_FUNC_CEILL_LIBS.
59619         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59620         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59621         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59622
59623 2007-11-11  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59626         roundf were declared but do not exist on functions.
59627         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59628         roundl were declared but do not exist on functions.
59629         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59630         HAVE_FLOORL_AND_CEILL, respectively.
59631         Needed for Sun C on Solaris 10.
59632
59633 2007-11-11  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59636         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59637         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59638         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59639         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59640         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59641         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59642         HAVE_DECL_ROUNDF.
59643         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59644         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59646         of HAVE_DECL_ROUND*.
59647         * modules/math (Makefile.am): Update.
59648
59649 2007-11-10  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59652         ptrdiff_t as m4/intl.m4.
59653
59654 2007-11-10  Jim Meyering  <meyering@redhat.com>
59655
59656         Avoid link failure for the argmatch test.
59657         * tests/test-argmatch.c (usage): Define function to avoid a link
59658         failure: argmatch_die requires a usage function.
59659
59660 2007-11-09  Bruno Haible  <bruno@clisp.org>
59661
59662         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59663         * doc/functions/vsnprintf.texi: Likewise.
59664         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59665         with a size argument < 2.
59666
59667 2007-11-09  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59670         buffer. Fixes an inefficiency introduced on 2007-11-03.
59671
59672 2007-11-09  Bruno Haible  <bruno@clisp.org>
59673
59674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59675         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59676
59677 2007-11-08  Jim Meyering  <meyering@redhat.com>
59678
59679         Change cache variable name prefix "jm_" to "gl_" everywhere.
59680         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59681         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59682         * m4/uptime.m4: s/gl_/jm_/
59683
59684 2007-11-07  Bruno Haible  <bruno@clisp.org>
59685
59686         Update to GNU gettext 0.17.
59687         * m4/intl.m4: Update to GNU gettext 0.17.
59688         * m4/po.m4: Likewise.
59689         * modules/gettext (Files): Remove m4/ulonglong.m4.
59690         (configure.ac): Require gettext infrastructure from version 0.17.
59691
59692 2007-11-06  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59695         symbolic values are not defined in a public header.
59696         * lib/freadable.c (freadable) [QNX]: Likewise.
59697         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59698         * lib/freading.c (freading) [QNX]: Likewise.
59699         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59700         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59701         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59702         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59703         Reported by Alain Magloire.
59704
59705         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59706
59707 2007-11-05  Bruno Haible  <bruno@clisp.org>
59708
59709         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59710         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59711         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59712         Reported by Eric Blake.
59713
59714 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59715             Bruno Haible  <bruno@clisp.org>
59716
59717         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59718         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59719         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59720         (malloc): Undefine also before including <stdlib.h>.
59721         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59722         Needed on OSF/1 4.0.
59723
59724 2007-11-05  Jim Meyering  <meyering@redhat.com>
59725
59726         git-version-gen: sync from coreutils.
59727         * build-aux/git-version-gen: Add comments.
59728         Change the first '-' to '.' in the snapshot version string,
59729         e.g., 6.9-377-08144 -> 6.9.377-08144
59730         Remove first parameter.
59731         Don't declare a version "-dirty" merely because a time
59732         stamp has changed.
59733
59734 2007-11-04  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/lock.h: Protect all macro definitions containing an 'if'
59737         statement through a "do { ... } while (0)".
59738         * lib/tls.h: Likewise.
59739
59740 2007-11-04  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59743
59744 2007-11-04  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59747         * modules/fprintf-posix (Depends-on): Add nocrash.
59748         * modules/snprintf-posix (Depends-on): Likewise.
59749         * modules/sprintf-posix (Depends-on): Likewise.
59750         * modules/vasnprintf-posix (Depends-on): Likewise.
59751         * modules/vasprintf-posix (Depends-on): Likewise.
59752         * modules/vfprintf-posix (Depends-on): Likewise.
59753         * modules/vsnprintf-posix (Depends-on): Likewise.
59754         * modules/vsprintf-posix (Depends-on): Likewise.
59755         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59756         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59757         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59758         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59759         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59760         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59761         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59762
59763 2007-11-04  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/nocrash: New file.
59766         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59767         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59768
59769 2007-11-04  Bruno Haible  <bruno@clisp.org>
59770
59771         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59772         precision handling.
59773         * tests/test-vasprintf-posix.c (test_function): Likewise.
59774         * tests/test-snprintf-posix.h (test_function): Likewise.
59775         * tests/test-sprintf-posix.h (test_function): Likewise.
59776
59777         Fix *printf behaviour for large precisions on mingw and BeOS.
59778         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59779         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59781         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59783         gl_PRINTF_PRECISION and test its result. Invoke
59784         gl_PREREQ_VASNPRINTF_PRECISION.
59785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59792         * doc/functions/fprintf.texi: Update.
59793         * doc/functions/printf.texi: Update.
59794         * doc/functions/snprintf.texi: Update.
59795         * doc/functions/sprintf.texi: Update.
59796         * doc/functions/vfprintf.texi: Update.
59797         * doc/functions/vprintf.texi: Update.
59798         * doc/functions/vsnprintf.texi: Update.
59799         * doc/functions/vsprintf.texi: Update.
59800
59801 2007-11-04  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59804
59805 2007-11-04  Bruno Haible  <bruno@clisp.org>
59806
59807         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59808         Reported by Sylvain Beucler <beuc@gnu.org>.
59809
59810 2007-11-03  Bruno Haible  <bruno@clisp.org>
59811
59812         * tests/test-fprintf-posix2.sh: New file.
59813         * tests/test-fprintf-posix2.c: New file.
59814         * modules/fprintf-posix-tests (Files): Add them.
59815         (TESTS): Add test-fprintf-posix2.sh.
59816         (configure.ac): Check for getrlimit and setrlimit.
59817         (check_PROGRAMS): Add test-fprintf-posix2.
59818
59819         * tests/test-printf-posix2.sh: New file.
59820         * tests/test-printf-posix2.c: New file.
59821         * modules/printf-posix-tests (Files): Add them.
59822         (TESTS): Add test-printf-posix2.sh.
59823         (configure.ac): Check for getrlimit and setrlimit.
59824         (check_PROGRAMS): Add test-printf-posix2.
59825
59826         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59827         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59828         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59829         (decode_double): New function, copied from decode_long_double.
59830         (scale10_round_decimal_decoded): New function, extracted from
59831         scale10_round_decimal_long_double.
59832         (scale10_round_decimal_long_double): Use it.
59833         (scale10_round_decimal_double): New function.
59834         (floorlog10): New function.
59835         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59837         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59839         gl_PRINTF_ENOMEM and test its result. Invoke
59840         gl_PREREQ_VASNPRINTF_ENOMEM.
59841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59848         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59849         * modules/snprintf-posix (Depends-on): Likewise.
59850         * modules/sprintf-posix (Depends-on): Likewise.
59851         * modules/vasnprintf-posix (Depends-on): Likewise.
59852         * modules/vasprintf-posix (Depends-on): Likewise.
59853         * modules/vfprintf-posix (Depends-on): Likewise.
59854         * modules/vsnprintf-posix (Depends-on): Likewise.
59855         * modules/vsprintf-posix (Depends-on): Likewise.
59856         * doc/functions/fprintf.texi: Update.
59857         * doc/functions/printf.texi: Update.
59858         * doc/functions/snprintf.texi: Update.
59859         * doc/functions/sprintf.texi: Update.
59860         * doc/functions/vfprintf.texi: Update.
59861         * doc/functions/vprintf.texi: Update.
59862         * doc/functions/vsnprintf.texi: Update.
59863         * doc/functions/vsprintf.texi: Update.
59864
59865 2007-11-03  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/frexp-nolibm-tests: New file.
59868
59869         * modules/frexp-nolibm: New file.
59870         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59871
59872 2007-11-03  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59875         value is C99 compliant.
59876         Needed for OSF/1 5.1.
59877
59878 2007-11-03  Bruno Haible  <bruno@clisp.org>
59879
59880         Fix out-of-memory handling of vasnprintf.
59881         * lib/printf-parse.c: Include <errno.h>.
59882         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59883         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59884         is already set.
59885
59886 2007-11-02  Eric Blake  <ebb9@byu.net>
59887
59888         Fix tests on cygwin.
59889         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59890
59891 2007-11-01  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59894         warning.
59895         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59896         needed for POSIX compatibility.
59897
59898 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59901         for compatibility with GNU.
59902
59903 2007-11-01  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59906         (putenv): Renamed from rpl_putenv. Change argument type from
59907         'const char *' to 'char *'.
59908         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59909         of defining putenv in config.h, just set REPLACE_PUTENV.
59910         * modules/putenv (Depends-on): Add stdlib.
59911         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59912         (Include): Use <stdlib.h>.
59913         * lib/stdlib.in.h (putenv): New declaration.
59914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59915         REPLACE_PUTENV.
59916         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59917         REPLACE_PUTENV.
59918         Needed for MacOS X 10.5.0.
59919         Reported by Peter O'Gorman <peter@pogma.com>.
59920
59921 2007-11-01  Jim Meyering  <meyering@redhat.com>
59922
59923         Treat an empty date string exactly like "0".
59924         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59925         if the remaining date string (to be parsed) is empty, use "0".
59926         Reported by Mischa Molhoek and discussed in this thread:
59927         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59928
59929 2007-10-31  Bruno Haible  <bruno@clisp.org>
59930
59931         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59932         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59933         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59934         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59935         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59936         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59937
59938 2007-10-31  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59941         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59942         (AC_TYPE_LONG_LONG_INT): Use it.
59943         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59944         it as well.
59945         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59946         to m4/longlong.m4.
59947         * modules/stdint (Files): Remove m4/ulonglong.m4.
59948         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59949         m4/ulonglong.m4.
59950         * modules/strtoumax (Files): Likewise.
59951
59952 2007-10-30  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/xvasprintf-posix: New file.
59955         Suggested by Eric Blake.
59956
59957 2007-10-30  Bruno Haible  <bruno@clisp.org>
59958
59959         * modules/xprintf-posix-tests: New file.
59960         * tests/test-xprintf-posix.sh: New file.
59961         * tests/test-xprintf-posix.c: New file.
59962         * tests/test-xfprintf-posix.c: New file.
59963
59964         * modules/xprintf-posix: New file.
59965
59966 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59967
59968         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59969         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59970         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59971
59972 2007-10-29  Bruno Haible  <bruno@clisp.org>
59973
59974         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59975         contain the special marker '_cv_'.
59976         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59977         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59979         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59980         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59981         Reported by Ralf Wildenhues.
59982
59983 2007-10-29  Bruno Haible  <bruno@clisp.org>
59984
59985         * gnulib-tool (func_import): When --lgpl is not specified, set
59986         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59987         GPLv3.
59988         Reported by Simon Josefsson.
59989
59990 2007-10-28  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59993         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59994         HAVE_DECL_ISFINITE.
59995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59996         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59997         HAVE_DECL_ISFINITE.
59998
59999 2007-10-28  Bruno Haible  <bruno@clisp.org>
60000
60001         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60002         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60003
60004 2007-10-28  Bruno Haible  <bruno@clisp.org>
60005
60006         Fix link errors with Sun C 5.0 on Solaris 10.
60007         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60008         function is declared but not present in the compiler's libm.
60009         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60010         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60011         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60012         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60013         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60014         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60015         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60017         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60018         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60019         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60020         HAVE_DECL_FLOORL.
60021
60022 2007-10-28  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60025         gl_FUNC_FLOORL. Cache the result.
60026         (gl_FUNC_FLOORL): Use it.
60027         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60028         gl_FUNC_CEILL. Cache the result.
60029         (gl_FUNC_CEILL): Use it.
60030
60031         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60032         gl_FUNC_FLOOR. Cache the result.
60033         (gl_FUNC_FLOOR): Use it.
60034         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60035         gl_FUNC_CEIL. Cache the result.
60036         (gl_FUNC_CEIL): Use it.
60037
60038         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60039         gl_FUNC_FLOORF. Cache the result.
60040         (gl_FUNC_FLOORF): Use it.
60041         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60042         gl_FUNC_CEILF. Cache the result.
60043         (gl_FUNC_CEILF): Use it.
60044
60045 2007-10-28  Bruno Haible  <bruno@clisp.org>
60046
60047         * gnulib-tool: Allow specifying the LGPL version number through
60048         --lgpl=2 or --lgpl=3.
60049         (func_usage): Document --lgpl with argument.
60050         Handle --lgpl=... arguments.
60051         (func_import): Recognize also gl_LGPL calls with an argument. When
60052         --lgpl=2 is used and the module's license is just LGPL, report an
60053         error. Set sed_transform_lib_file according to the lgpl variable. In
60054         the generated files, use --lgpl or gl_LGPL invocations with argument,
60055         if necessary.
60056         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60057         an LGPv2+ license.
60058         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60059         gl_LGPL macro.
60060
60061 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60062             Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60065         (u16_uctomb_aux): Likewise.
60066         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60067         !HAVE_INLINE.
60068         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60069
60070 2007-10-28  Bruno Haible  <bruno@clisp.org>
60071
60072         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60073         Invoke AM_GETTEXT_OPTION if it exists.
60074         * modules/vasprintf: Likewise.
60075         * modules/verror: Likewise.
60076         * modules/xprintf: Likewise.
60077         * modules/xvasprintf: Likewise.
60078
60079 2007-10-27  Ben Pfaff  <blp@gnu.org>
60080
60081         * lib/math.in.h: Define isfinite macro and prototypes for
60082         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60083         implementations.
60084         * m4/math_h.m4: New substitutions for isfinite module.
60085         * lib/isfinite.c: New file.
60086         * m4/isfinite.m4: New file.
60087         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60088         * modules/isfinite: New file.
60089         * modules/isfinite-tests: New file.
60090         * tests/tests-isfinite.c: New file.
60091         * doc/functions/isfinite.texi: Mention isfinite module.
60092         * MODULES.html.sh: Mention new module.
60093
60094 2007-10-27  Ben Pfaff  <blp@gnu.org>
60095
60096         Ralf Wildenhues reported that Tru64 4.0D declares the round
60097         functions but does not have definitions.
60098         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60099         cannot be found in any library, set the output variable to
60100         "missing" instead of "".
60101         * m4/round.m4: Also use our substitute if we cannot find round in
60102         any library, even if it is declared.
60103         * m4/roundf.m4: Likewise for roundf.
60104         * m4/roundl.m4: Likewise for roundl.
60105         * lib/math.in.h: Undefine roundf, round, roundl before defining
60106         their replacements, to allow for hypothetical systems where these
60107         may be defined as macros but not available in libraries.
60108
60109 2007-10-27  Bruno Haible  <bruno@clisp.org>
60110
60111         * doc/gnulib.texi: Invoke @firstparagraphindent.
60112         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60113         changes in gnulib.
60114         (Source changes): New section.
60115
60116 2007-10-26  Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60119         borrowed from autoconf.
60120
60121 2007-10-26  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60124         strerror returned the empty string. Needed on HP-UX 11.00.
60125
60126 2007-10-24  Micah Cowan  <micah@cowan.name>
60127
60128         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60129         * build-aux/bootstrap: Remove support for now-unnecessary option,
60130         --cvs-user, and envvars CVS_USER, CVS_RSH.
60131
60132 2007-10-24  Jim Meyering  <meyering@redhat.com>
60133
60134         Avoid diagnostics from sha1sum when there is no cached checksum.
60135         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60136         if the po.s1 file hasn't been created yet.
60137
60138         * build-aux/bootstrap: Sync from coreutils:
60139         2007-10-24  Jim Meyering  <meyering@redhat.com>
60140         Get gnulib from the git repository, not from an obsolete cvs one.
60141         * build-aux/bootstrap: Suggestion from Micah Cowan.
60142         2007-10-04  Jim Meyering  <jim@meyering.net>
60143         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60144         (update_po_files): Work also when there are no .po files in po/.
60145
60146 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60147
60148         * README: Append ".git" to git and cg examples.
60149         Problem reported by Benoit Sigoure.
60150
60151 2007-10-23  Micah Cowan  <micah@cowan.name>
60152
60153         * users.txt: Add wget.
60154
60155 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60156
60157         Fix linking of some unistdio tests on FreeBSD.
60158         * modules/unistdio/u16-vsnprintf-tests
60159         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60160         * modules/unistdio/u16-vsprintf-tests
60161         (test_u16_vsnprintf1_LDADD): Likewise.
60162         * modules/unistdio/u32-vsnprintf-tests
60163         (test_u32_vsnprintf1_LDADD): Likewise.
60164         * modules/unistdio/u32-vsprintf-tests
60165         (test_u32_vsprintf1_LDADD): Likewise.
60166         * modules/unistdio/u8-vsnprintf-tests
60167         (test_u8_vsnprintf1_LDADD): Likewise.
60168         * modules/unistdio/u8-vsprintf-tests
60169         (test_u8_vsprintf1_LDADD): Likewise.
60170         * modules/unistdio/ulc-vsnprintf-tests
60171         (test_ulc_vsnprintf1_LDADD): Likewise.
60172         * modules/unistdio/ulc-vsprintf-tests
60173         (test_ulc_vsprintf1_LDADD): Likewise.
60174
60175         Fix linking of some uniconv tests on FreeBSD.
60176         * modules/uniconv/u16-conv-from-enc-tests
60177         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60178         * modules/uniconv/u16-conv-to-enc-tests
60179         (test_u16_conv_to_enc_LDADD): Likewise.
60180         * modules/uniconv/u16-strconv-from-enc-tests
60181         (test_u16_strconv_from_enc_LDADD): Likewise.
60182         * modules/uniconv/u16-strconv-to-enc-tests
60183         (test_u16_strconv_to_enc_LDADD): Likewise.
60184         * modules/uniconv/u32-conv-from-enc-tests
60185         (test_u32_conv_from_enc_LDADD): Likewise.
60186         * modules/uniconv/u32-conv-to-enc-tests
60187         (test_u32_conv_to_enc_LDADD): Likewise.
60188         * modules/uniconv/u32-strconv-from-enc-tests
60189         (test_u32_strconv_from_enc_LDADD): Likewise.
60190         * modules/uniconv/u32-strconv-to-enc-tests
60191         (test_u32_strconv_to_enc_LDADD): Likewise.
60192         * modules/uniconv/u8-conv-from-enc-tests
60193         (test_u8_conv_from_enc_LDADD): Likewise.
60194         * modules/uniconv/u8-conv-to-enc-tests
60195         (test_u8_conv_to_enc_LDADD): Likewise.
60196         * modules/uniconv/u8-strconv-from-enc-tests
60197         (test_u8_strconv_from_enc_LDADD): Likewise.
60198         * modules/uniconv/u8-strconv-to-enc-tests
60199         (test_u8_strconv_to_enc_LDADD): Likewise.
60200
60201 2007-10-22  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60204         size.
60205
60206 2007-10-22  Eric Blake  <ebb9@byu.net>
60207
60208         Tweak x*printf documentation.
60209         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60210         variable name and comments.
60211         Suggested by Bruno Haible.
60212
60213 2007-10-22  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/acl.c (copy_acl): Fix file name in comment.
60216
60217 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         Fix Tru64 problem with stdbool.h.
60220         * lib/stdbool.in.h (false, true):
60221         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60222         Don't declare as an enum in this situation; it runs afoul of Tru64.
60223         Problem reported by Steven M. Schweda in
60224         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60225
60226 2007-10-22  Eric Blake  <ebb9@byu.net>
60227
60228         Also wrap vf?printf.
60229         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60230         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60231         (xvprintf, xvfprintf): New functions.
60232
60233 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60234
60235         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60236         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60237
60238         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60239         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60240
60241 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60244         by Bruno Haible.
60245
60246 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60247
60248         * lib/getloadavg.c
60249         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60250         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60251
60252         * tests/test-i-ring.c: Work for C89.
60253
60254 2007-10-22  Bruno Haible  <bruno@clisp.org>
60255
60256         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60257         -1u, in preprocessor expression, so that we don't test for the bug
60258         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60260
60261 2007-10-22  Eric Blake  <ebb9@byu.net>
60262
60263         * tests/test-yesno.sh: Silence stderr during test.
60264
60265 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60266
60267         * modules/crypto/gc-camellia: New file.
60268
60269         * m4/gc-camellia.m4: New file.
60270
60271         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60272
60273         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60274
60275 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60276
60277         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60278         --help to stdout.  Reported by sms@antinode.org (Steven
60279         M. Schweda).
60280
60281 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60282
60283         * users.txt: Fix link to libksba.
60284
60285 2007-10-21  Ben Pfaff  <blp@gnu.org>
60286
60287         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60288         round.c roundf implementation that depends on floorf and ceilf to
60289         be tested unconditionally.
60290
60291 2007-10-21  Ben Pfaff  <blp@gnu.org>
60292
60293         * m4/check-libm-func.m4: Removed.
60294         * m4/check-math-lib.m4: New file.
60295         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60296         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60297         definition and lack of AC_LIBOBJ([roundf]).
60298         * m4/roundl.m4: Ditto, and similarly for roundl.
60299         * modules/round: Reference new m4 file.
60300         * modules/roundf: Ditto.
60301         * modules/roundl: Ditto.
60302         * tests/test-round2.c (main): Use ROUND instead of round.
60303         Bug report from Bruno Haible.
60304
60305 2007-10-21  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60308         context.
60309
60310 2007-10-21  Bruno Haible  <bruno@clisp.org>
60311
60312         * tests/test-wcwidth.c (main): Allow negative result for some control
60313         characters.
60314
60315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60316         Needed on OSF/1 5.1.
60317
60318 2007-10-21  Bruno Haible  <bruno@clisp.org>
60319
60320         * tests/test-floorf1.c: Include isnanf.h.
60321         (main): Use isnanf() instead of isnan().
60322         * tests/test-ceilf1.c: Include isnanf.h.
60323         (main): Use isnanf() instead of isnan().
60324         * tests/test-truncf1.c: Include isnanf.h.
60325         (main): Use isnanf() instead of isnan().
60326         * tests/test-roundf1.c: Include isnanf.h.
60327         (main): Use isnanf() instead of isnan().
60328
60329 2007-10-21  Eric Blake  <ebb9@byu.net>
60330
60331         * users.txt: Update URL for m4.
60332
60333 2007-10-21  Bruno Haible  <bruno@clisp.org>
60334
60335         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60336
60337 2007-10-21  Bruno Haible  <bruno@clisp.org>
60338
60339         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60340         Git's management files if the CVS files are not present.
60341
60342 2007-10-20  Bruno Haible  <bruno@clisp.org>
60343
60344         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60345         gcc-3.4.x.
60346
60347 2007-10-20  Ben Pfaff  <blp@gnu.org>
60348
60349         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60350         implementations.
60351         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60352         * lib/round.c: New file.
60353         * lib/roundf.c: New file.
60354         * lib/roundl.c: New file.
60355         * m4/round.m4: New file.
60356         * m4/roundf.m4: New file.
60357         * m4/roundl.m4: New file.
60358         * m4/check-libm-func-m4: New file.
60359         * modules/math: Replace round, roundf, roundl related @VARS@ in
60360         math.in.h.
60361         * modules/round: New file.
60362         * modules/round-tests: New file.
60363         * modules/roundf: New file.
60364         * modules/roundf-tests: New file.
60365         * modules/roundl: New file.
60366         * modules/roundl-tests: New file.
60367         * tests/test-round1.c: New file.
60368         * tests/test-round2.c: New file.
60369         * tests/test-roundf1.c: New file.
60370         * tests/test-roundf2.c: New file.
60371         * tests/test-roundl.c: New file.
60372         * doc/functions/round.texi: Mention round module.
60373         * doc/functions/roundf.texi: Mention roundf module.
60374         * doc/functions/roundl.texi: Mention roundl module.
60375         * MODULES.html.sh: Mention new modules.
60376         Thanks to Bruno Haible for suggestions.
60377
60378 2007-10-20  Jim Meyering  <meyering@redhat.com>
60379
60380         * lib/xprintf.c: Include <config.h> unconditionally.
60381
60382         Change xprintf's license to GPL.
60383         * modules/xprintf (License): s/LGPL/GPL/, since this module
60384         depends on modules (exit and exitfail) which are GPL.
60385         Suggestion from Bruno Haible.
60386
60387         xprintf fixes.
60388         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60389         Use a clearer diagnostic.
60390         Patch from Bruno Haible.
60391
60392 2007-10-20  Bruno Haible  <bruno@clisp.org>
60393
60394         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60395         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60397
60398 2007-10-20  Bruno Haible  <bruno@clisp.org>
60399
60400         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60401         precision in the comparison result > x - 1 or similar.
60402         * tests/test-ceilf2.c (correct_result_p): Likewise.
60403         * tests/test-truncf2.c (correct_result_p): Likewise.
60404         * tests/test-trunc2.c (correct_result_p): Likewise.
60405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60406
60407 2007-10-20  Bruno Haible  <bruno@clisp.org>
60408
60409         * modules/ceil: New file.
60410         * m4/ceil.m4: New file.
60411         * doc/functions/ceil.texi: Mention the 'ceil' module.
60412
60413 2007-10-20  Bruno Haible  <bruno@clisp.org>
60414
60415         * modules/floor: New file.
60416         * m4/floor.m4: New file.
60417         * doc/functions/floor.texi: Mention the 'floor' module.
60418
60419 2007-10-20  Bruno Haible  <bruno@clisp.org>
60420
60421         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60422         of %a.
60423         * modules/floorf-tests (Depends-on): Likewise.
60424         * modules/truncf-tests (Depends-on): Likewise.
60425         * modules/trunc-tests (Depends-on): Likewise.
60426         Reported by Ben Pfaff.
60427
60428 2007-10-19  Jim Meyering  <meyering@redhat.com>
60429
60430         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60431         Don't bother testing specific errno values.  Just test ferror.
60432
60433         New module: xprintf
60434         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60435
60436 2007-10-19  Bruno Haible  <bruno@clisp.org>
60437
60438         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60439         syntax.
60440         * modules/javaexec (Makefile.am): Likewise.
60441         * modules/relocatable-prog (Makefile.am): Likewise.
60442         Suggested by Jim Meyering.
60443
60444 2007-10-18  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60447         Reported by Jim Meyering.
60448
60449 2007-10-18  Eric Blake  <ebb9@byu.net>
60450
60451         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60452
60453 2007-10-18  Bruno Haible  <bruno@clisp.org>
60454
60455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60456         the format string into writable memory. Needed in Fortify conditions.
60457
60458 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60459             Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60462         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60463         * modules/trim (Depends-on): Add mbchar.
60464         (configure.ac): Add gl_FUNC_MBRTOWC.
60465         (Makefile.am): Augment lib_SOURCES.
60466
60467 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         Modify glob.c to use fstatat and dirfd, to simplify it.
60470         Suggested by Eric Blake.
60471         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60472         Don't include <stdbool.h>; not used.
60473         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60474         (link_exists_p): Simplify implementation, since we can now assume
60475         dirfd and fstatat.
60476         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60477
60478 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60479
60480         * gnulib-tool (func_get_dependencies): Fix sed script to
60481         match only tests.
60482
60483 2007-10-17  Bruno Haible  <bruno@clisp.org>
60484
60485         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60486         allow locale names without encoding suffix.
60487         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60488         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60489
60490 2007-10-16  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60493         * lib/getgroups.c (getgroups): Likewise.
60494         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60495
60496 2007-10-16  Bruno Haible  <bruno@clisp.org>
60497
60498         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60499         * modules/malloc-posix (License): Likewise.
60500         * modules/realloc-posix (License): Likewise.
60501         * modules/calloc-posix (License): Likewise.
60502         * modules/intprops (License): Change from GPL to LGPL, with
60503         Paul Eggert's approval.
60504
60505 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         Merge glibc changes into lib/glob.c.
60508
60509         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60510         2007-10-15 04:59:03 UTC.  Here are the changes:
60511
60512         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60513
60514         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60515
60516         * lib/glob.c: Add some branch prediction throughout.
60517
60518         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60519
60520         [BZ #5103]
60521         * lib/glob.c (glob): Recognize patterns starting \/.
60522
60523         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60524
60525         [BZ #3996]
60526         * lib/glob.c (attribute_hidden): Define if not defined.
60527         (glob): Unescape dirname, filename or username when needed and not
60528         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60529         is NULL.  Handle unescaped [ in pattern without closing ].
60530         Don't pass GLOB_CHECK down to recursive glob for directories.
60531         (__glob_pattern_type): New function.
60532         (__glob_pattern_p): Implement using __glob_pattern_type.
60533         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60534         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60535         Remove unreachable code.
60536
60537         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60538
60539         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60540         explain why there are no leaks.
60541
60542         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60543
60544         [BZ #3253]
60545         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60546         time, rather allocate increasingly bigger arrays of pointers, if
60547         possible with alloca, if too large with malloc.
60548
60549 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60550
60551         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60552         Problem reported by H.Merijn Brand in
60553         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60555         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60556
60557 2007-10-15  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60560         with explicit rpl_ prefix.
60561         * lib/fopen.c (fopen): Likewise.
60562         * lib/freopen.c (freopen): Likewise.
60563         * lib/iconv.c (iconv): Likewise.
60564         * lib/iconv_close.c (iconv_close): Likewise.
60565
60566 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60567
60568         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60569
60570 2007-10-15  Bruno Haible  <bruno@clisp.org>
60571
60572         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60573         <stddef.h> instead of <stdlib.h> since we only need NULL.
60574         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60575
60576 2007-10-15  Bruno Haible  <bruno@clisp.org>
60577
60578         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60579         Replace paragraph talking about LIBOBJS.
60580         Reported by Colin Watson <cjwatson@debian.org>.
60581
60582 2007-10-15  Bruno Haible  <bruno@clisp.org>
60583
60584         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60585         <stdlib.h> before using NULL.
60586
60587 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60588
60589         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60590         Reported by Albert Chin <china@thewrittenword.com>.
60591
60592 2007-10-14  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/iconv_open-utf-tests: New file.
60595         * tests/test-iconv-utf.c: New file.
60596
60597         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60598         * modules/iconv_open-utf: New file.
60599         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60600         (iconv, iconv_close): New declarations.
60601         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60602         be defined.
60603         (iconv_open): Add special handling of conversion between UTF-8 and
60604         UTF-{16,32}{BE,LE}.
60605         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60606         * lib/iconv_close.c: New file.
60607         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60608         gl_FUNC_ICONV_OPEN.
60609         (gl_FUNC_ICONV_OPEN): Use it.
60610         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60611         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60612         and REPLACE_ICONV_UTF.
60613         * modules/iconv_open (Depends-on): Add c-strcase.
60614         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60615         ICONV_CONST.
60616         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60617
60618 2007-10-13  Albert Chin  <china@thewrittenword.com>
60619             Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60622         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60623
60624 2007-10-13  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60627         defined, use the ISO C99 inline semantics.
60628         * lib/argp.h (ARGP_EI): Likewise.
60629
60630 2007-10-13  Bruno Haible  <bruno@clisp.org>
60631
60632         Handle 'inline' change in gcc 4.3.0.
60633         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60634         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60635         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60636         argp_fmtstream_point): Disable 'extern' declaration if the function
60637         definition is going to be provided inline.
60638         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60639         semantics, not the ISO C99 inline semantics.
60640         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60641         'extern' declaration if the function definition is going to be provided
60642         inline.
60643         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60644         the GNU C inline semantics, not the ISO C99 inline semantics. With
60645         GCC 4.2, avoid a warning.
60646
60647 2007-10-13  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/freading.h (freading): Enable the use of __freading for
60650         glibc >= 2.7.
60651         * lib/freading.c (freading): Likewise.
60652
60653 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60654
60655         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60656         "warning: C99 inline functions are not supported; using GNU89".
60657
60658 2007-10-12  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60661         of 2.
60662         * tests/test-ceilf2.c: New file.
60663         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60664
60665         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60666         * modules/ceilf-tests: Update.
60667
60668 2007-10-12  Bruno Haible  <bruno@clisp.org>
60669
60670         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60671         of 2.
60672         * tests/test-floorf2.c: New file.
60673         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60674
60675         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60676         * modules/floorf-tests: Update.
60677
60678 2007-10-12  Bruno Haible  <bruno@clisp.org>
60679
60680         * tests/test-trunc2.c: New file.
60681         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60682
60683         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60684         * modules/trunc-tests: Update.
60685
60686 2007-10-12  Bruno Haible  <bruno@clisp.org>
60687
60688         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60689         of 2.
60690         * tests/test-truncf2.c: New file.
60691         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60692
60693         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60694         * modules/truncf-tests: Update.
60695
60696 2007-10-11  Eric Blake  <ebb9@byu.net>
60697
60698         Don't claim strerror is broken on Interix.
60699         * doc/functions/strerror.texi (strerror): Known broken systems are
60700         now Solaris 8, and not Interix.
60701         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60702         Interix on cross-compile.
60703         Reported by Martin Koeppe in
60704         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60705
60706 2007-10-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/i-ring-tests: New file.
60709         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60710         instead of assert.
60711
60712 2007-10-11  Bruno Haible  <bruno@clisp.org>
60713
60714         * modules/filenamecat-tests: New file.
60715         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60716         * lib/filenamecat.c: Remove test code.
60717
60718 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60721
60722         * lib/strerror.c: Include <string.h> always, to test interface,
60723         and to remove the need for the dummy.
60724         Include intprops.h to compute width instead of doing it ourselves
60725         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60726         (strerror): Define it to return NULL if there's no system strerror.
60727         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60728         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60729         ancient pre-strerror Unix systems well any more.  Saying "unknown
60730         system error" is enough.
60731         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60732         simpler strerror.c implementation.
60733         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60734         Simplify the tests to reflect the simpler strerror implementation.
60735         * modules/strerror (Depends-on): Add intprops.
60736
60737 2007-10-09  Eric Blake  <ebb9@byu.net>
60738
60739         Silence test-fpending.
60740         * modules/fpending-tests (Files): Add wrapper script.
60741         * tests/test-fpending.sh: New file.
60742
60743 2007-10-09  Bruno Haible  <bruno@clisp.org>
60744
60745         * MODULES.html.sh (func_module): Don't create a hyperlink for
60746         function names like 'printf_frexp'.
60747         (Misc): Add crc, memxor.
60748         (Characteristics of floating types): New section.
60749         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60750         isnanf-nolibm, signbit, trunc, truncf, truncl.
60751         (Enhancements for ISO C 99 functions): New subsection Input/output.
60752         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60753         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60754         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60755         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60756         (Enhancements for POSIX:2001 functions): Add chdir-long.
60757         (File system functions): Add areadlink, chdir-safer, read-file.
60758         Remove cycle-check.
60759         (File system as inode set): New section.
60760         (Date and time): Add gethrxtime.
60761         (Multithreading): Add openmp.
60762         (Internationalization functions): Add localename.
60763         (Unicode string functions): Add unistr/u*-mbsnlen.
60764         (Support for maintaining and releasing projects): Add git-version-gen.
60765         (Lone files): Remove directories.
60766
60767 2007-10-08  Ben Pfaff  <blp@gnu.org>
60768
60769         * lib/xmalloca.h: Fix typo in comment.
60770
60771 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60774         when avoiding problems with integer overflow.  Use a portable test
60775         instead.
60776
60777 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60778
60779         * modules/dummy (License): Change to LGPLv2+.
60780         * modules/float (License): Likewise
60781         * modules/realloc (License): Likewise
60782         * modules/stdlib (License): Likewise
60783
60784 2007-10-07  Bruno Haible  <bruno@clisp.org>
60785
60786         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60787         * floor.c (TWO_MANT_DIG): Likewise.
60788         * ceil.c (TWO_MANT_DIG): Likewise.
60789         Reported by Ben Pfaff.
60790
60791 2007-10-07  Bruno Haible  <bruno@clisp.org>
60792
60793         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60794         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60795         * lib/frexp.c (FUNC): Likewise.
60796         * lib/printf-frexp.h (printf_frexp): Likewise.
60797         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60798         * lib/printf-frexp.c (FUNC): Likewise.
60799         Suggested by Jim Meyering.
60800
60801 2007-10-07  Jim Meyering  <meyering@redhat.com>
60802
60803         Make xnanosleep's integer overflow test more robust.
60804         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60805         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60806
60807 2007-10-07  Bruno Haible  <bruno@clisp.org>
60808
60809         * NEWS: Mention the license change.
60810
60811         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60812         abbreviations in the modules files.
60813
60814         Change copyright notice from GPLv2+ to GPLv3+.
60815         * README: Change copyright notice.
60816         * MODULES.html.sh: Likewise.
60817         * build-aux/bootstrap.conf: Likewise.
60818         * build-aux/config.libpath: Likewise.
60819         * build-aux/csharpcomp.sh.in: Likewise.
60820         * build-aux/csharpexec.sh.in: Likewise.
60821         * build-aux/install-reloc: Likewise.
60822         * build-aux/javacomp.sh.in: Likewise.
60823         * build-aux/javaexec.sh.in: Likewise.
60824         * build-aux/ldd.sh.in: Likewise.
60825         * build-aux/reloc-ldflags: Likewise.
60826         * build-aux/relocatable.sh.in: Likewise.
60827         * build-aux/x-to-1.in: Likewise.
60828         * check-module: Likewise.
60829         * config/srclistvars.sh: Likewise.
60830         * gnulib-tool: Likewise.
60831         * lib/acl-internal.h: Likewise.
60832         * lib/acl.c: Likewise.
60833         * lib/acl.h: Likewise.
60834         * lib/acl_entries.c: Likewise.
60835         * lib/areadlink-with-size.c: Likewise.
60836         * lib/areadlink.c: Likewise.
60837         * lib/areadlink.h: Likewise.
60838         * lib/argmatch.c: Likewise.
60839         * lib/argmatch.h: Likewise.
60840         * lib/argp-ba.c: Likewise.
60841         * lib/argp-eexst.c: Likewise.
60842         * lib/argp-fmtstream.c: Likewise.
60843         * lib/argp-fmtstream.h: Likewise.
60844         * lib/argp-fs-xinl.c: Likewise.
60845         * lib/argp-help.c: Likewise.
60846         * lib/argp-namefrob.h: Likewise.
60847         * lib/argp-parse.c: Likewise.
60848         * lib/argp-pin.c: Likewise.
60849         * lib/argp-pv.c: Likewise.
60850         * lib/argp-pvh.c: Likewise.
60851         * lib/argp-xinl.c: Likewise.
60852         * lib/argp.h: Likewise.
60853         * lib/at-func.c: Likewise.
60854         * lib/atanl.c: Likewise.
60855         * lib/backupfile.c: Likewise.
60856         * lib/backupfile.h: Likewise.
60857         * lib/basename.c: Likewise.
60858         * lib/binary-io.h: Likewise.
60859         * lib/byteswap.in.h: Likewise.
60860         * lib/c-stack.c: Likewise.
60861         * lib/c-stack.h: Likewise.
60862         * lib/c-strcasestr.c: Likewise.
60863         * lib/c-strcasestr.h: Likewise.
60864         * lib/c-strstr.c: Likewise.
60865         * lib/c-strstr.h: Likewise.
60866         * lib/c-strtod.c: Likewise.
60867         * lib/calloc.c: Likewise.
60868         * lib/canon-host.c: Likewise.
60869         * lib/canon-host.h: Likewise.
60870         * lib/canonicalize-lgpl.c: Likewise.
60871         * lib/canonicalize.c: Likewise.
60872         * lib/canonicalize.h: Likewise.
60873         * lib/ceil.c: Likewise.
60874         * lib/ceilf.c: Likewise.
60875         * lib/ceill.c: Likewise.
60876         * lib/chdir-long.c: Likewise.
60877         * lib/chdir-long.h: Likewise.
60878         * lib/chdir-safer.c: Likewise.
60879         * lib/chdir-safer.h: Likewise.
60880         * lib/chown.c: Likewise.
60881         * lib/classpath.c: Likewise.
60882         * lib/classpath.h: Likewise.
60883         * lib/clean-temp.c: Likewise.
60884         * lib/clean-temp.h: Likewise.
60885         * lib/cloexec.c: Likewise.
60886         * lib/close-stream.c: Likewise.
60887         * lib/closein.c: Likewise.
60888         * lib/closein.h: Likewise.
60889         * lib/closeout.c: Likewise.
60890         * lib/closeout.h: Likewise.
60891         * lib/concat-filename.c: Likewise.
60892         * lib/copy-file.c: Likewise.
60893         * lib/copy-file.h: Likewise.
60894         * lib/count-one-bits.h: Likewise.
60895         * lib/crc.c: Likewise.
60896         * lib/crc.h: Likewise.
60897         * lib/creat-safer.c: Likewise.
60898         * lib/csharpcomp.c: Likewise.
60899         * lib/csharpcomp.h: Likewise.
60900         * lib/csharpexec.c: Likewise.
60901         * lib/csharpexec.h: Likewise.
60902         * lib/cycle-check.c: Likewise.
60903         * lib/cycle-check.h: Likewise.
60904         * lib/diacrit.c: Likewise.
60905         * lib/diacrit.h: Likewise.
60906         * lib/diffseq.h: Likewise.
60907         * lib/dirchownmod.c: Likewise.
60908         * lib/dirent.in.h: Likewise.
60909         * lib/dirfd.c: Likewise.
60910         * lib/dirfd.h: Likewise.
60911         * lib/dirname.c: Likewise.
60912         * lib/dirname.h: Likewise.
60913         * lib/dummy.c: Likewise.
60914         * lib/dup-safer.c: Likewise.
60915         * lib/dup2.c: Likewise.
60916         * lib/eealloc.h: Likewise.
60917         * lib/error.c: Likewise.
60918         * lib/error.h: Likewise.
60919         * lib/euidaccess.c: Likewise.
60920         * lib/exclude.c: Likewise.
60921         * lib/exclude.h: Likewise.
60922         * lib/execute.c: Likewise.
60923         * lib/execute.h: Likewise.
60924         * lib/exitfail.c: Likewise.
60925         * lib/exitfail.h: Likewise.
60926         * lib/expl.c: Likewise.
60927         * lib/fatal-signal.c: Likewise.
60928         * lib/fatal-signal.h: Likewise.
60929         * lib/fbufmode.c: Likewise.
60930         * lib/fbufmode.h: Likewise.
60931         * lib/fchdir.c: Likewise.
60932         * lib/fchmodat.c: Likewise.
60933         * lib/fchownat.c: Likewise.
60934         * lib/fcntl--.h: Likewise.
60935         * lib/fcntl-safer.h: Likewise.
60936         * lib/fcntl.in.h: Likewise.
60937         * lib/fd-safer.c: Likewise.
60938         * lib/fflush.c: Likewise.
60939         * lib/file-has-acl.c: Likewise.
60940         * lib/file-set.c: Likewise.
60941         * lib/file-type.c: Likewise.
60942         * lib/file-type.h: Likewise.
60943         * lib/fileblocks.c: Likewise.
60944         * lib/filemode.c: Likewise.
60945         * lib/filemode.h: Likewise.
60946         * lib/filename.h: Likewise.
60947         * lib/filenamecat.c: Likewise.
60948         * lib/filenamecat.h: Likewise.
60949         * lib/findprog.c: Likewise.
60950         * lib/findprog.h: Likewise.
60951         * lib/float.in.h: Likewise.
60952         * lib/floor.c: Likewise.
60953         * lib/floorf.c: Likewise.
60954         * lib/floorl.c: Likewise.
60955         * lib/fopen-safer.c: Likewise.
60956         * lib/fopen.c: Likewise.
60957         * lib/fpending.c: Likewise.
60958         * lib/fpending.h: Likewise.
60959         * lib/fprintf.c: Likewise.
60960         * lib/fprintftime.h: Likewise.
60961         * lib/fpucw.h: Likewise.
60962         * lib/fpurge.c: Likewise.
60963         * lib/fpurge.h: Likewise.
60964         * lib/freadable.c: Likewise.
60965         * lib/freadable.h: Likewise.
60966         * lib/freadahead.c: Likewise.
60967         * lib/freadahead.h: Likewise.
60968         * lib/freading.c: Likewise.
60969         * lib/freading.h: Likewise.
60970         * lib/free.c: Likewise.
60971         * lib/freopen.c: Likewise.
60972         * lib/frexp.c: Likewise.
60973         * lib/frexpl.c: Likewise.
60974         * lib/fseek.c: Likewise.
60975         * lib/fseterr.c: Likewise.
60976         * lib/fseterr.h: Likewise.
60977         * lib/fstatat.c: Likewise.
60978         * lib/fstrcmp.c: Likewise.
60979         * lib/fstrcmp.h: Likewise.
60980         * lib/fsusage.c: Likewise.
60981         * lib/fsusage.h: Likewise.
60982         * lib/ftell.c: Likewise.
60983         * lib/ftello.c: Likewise.
60984         * lib/fts-cycle.c: Likewise.
60985         * lib/fts.c: Likewise.
60986         * lib/fts_.h: Likewise.
60987         * lib/full-read.c: Likewise.
60988         * lib/full-read.h: Likewise.
60989         * lib/full-write.c: Likewise.
60990         * lib/full-write.h: Likewise.
60991         * lib/fwritable.c: Likewise.
60992         * lib/fwritable.h: Likewise.
60993         * lib/fwriteerror.c: Likewise.
60994         * lib/fwriteerror.h: Likewise.
60995         * lib/fwriting.c: Likewise.
60996         * lib/fwriting.h: Likewise.
60997         * lib/gcd.c: Likewise.
60998         * lib/gcd.h: Likewise.
60999         * lib/getcwd.c: Likewise.
61000         * lib/getdate.h: Likewise.
61001         * lib/getdate.y: Likewise.
61002         * lib/getdomainname.c: Likewise.
61003         * lib/getdomainname.h: Likewise.
61004         * lib/getgroups.c: Likewise.
61005         * lib/gethostname.c: Likewise.
61006         * lib/gethrxtime.c: Likewise.
61007         * lib/gethrxtime.h: Likewise.
61008         * lib/getloadavg.c: Likewise.
61009         * lib/getndelim2.c: Likewise.
61010         * lib/getndelim2.h: Likewise.
61011         * lib/getnline.c: Likewise.
61012         * lib/getnline.h: Likewise.
61013         * lib/getopt.c: Likewise.
61014         * lib/getopt.in.h: Likewise.
61015         * lib/getopt1.c: Likewise.
61016         * lib/getopt_int.h: Likewise.
61017         * lib/getpagesize.h: Likewise.
61018         * lib/getsubopt.c: Likewise.
61019         * lib/gettime.c: Likewise.
61020         * lib/getugroups.c: Likewise.
61021         * lib/getugroups.h: Likewise.
61022         * lib/getusershell.c: Likewise.
61023         * lib/gl_anyavltree_list1.h: Likewise.
61024         * lib/gl_anyavltree_list2.h: Likewise.
61025         * lib/gl_anyhash_list1.h: Likewise.
61026         * lib/gl_anyhash_list2.h: Likewise.
61027         * lib/gl_anylinked_list1.h: Likewise.
61028         * lib/gl_anylinked_list2.h: Likewise.
61029         * lib/gl_anyrbtree_list1.h: Likewise.
61030         * lib/gl_anyrbtree_list2.h: Likewise.
61031         * lib/gl_anytree_list1.h: Likewise.
61032         * lib/gl_anytree_list2.h: Likewise.
61033         * lib/gl_anytree_oset.h: Likewise.
61034         * lib/gl_anytreehash_list1.h: Likewise.
61035         * lib/gl_anytreehash_list2.h: Likewise.
61036         * lib/gl_array_list.c: Likewise.
61037         * lib/gl_array_list.h: Likewise.
61038         * lib/gl_array_oset.c: Likewise.
61039         * lib/gl_array_oset.h: Likewise.
61040         * lib/gl_avltree_list.c: Likewise.
61041         * lib/gl_avltree_list.h: Likewise.
61042         * lib/gl_avltree_oset.c: Likewise.
61043         * lib/gl_avltree_oset.h: Likewise.
61044         * lib/gl_avltreehash_list.c: Likewise.
61045         * lib/gl_avltreehash_list.h: Likewise.
61046         * lib/gl_carray_list.c: Likewise.
61047         * lib/gl_carray_list.h: Likewise.
61048         * lib/gl_linked_list.c: Likewise.
61049         * lib/gl_linked_list.h: Likewise.
61050         * lib/gl_linkedhash_list.c: Likewise.
61051         * lib/gl_linkedhash_list.h: Likewise.
61052         * lib/gl_list.c: Likewise.
61053         * lib/gl_list.h: Likewise.
61054         * lib/gl_oset.c: Likewise.
61055         * lib/gl_oset.h: Likewise.
61056         * lib/gl_rbtree_list.c: Likewise.
61057         * lib/gl_rbtree_list.h: Likewise.
61058         * lib/gl_rbtree_oset.c: Likewise.
61059         * lib/gl_rbtree_oset.h: Likewise.
61060         * lib/gl_rbtreehash_list.c: Likewise.
61061         * lib/gl_rbtreehash_list.h: Likewise.
61062         * lib/gl_sublist.c: Likewise.
61063         * lib/gl_sublist.h: Likewise.
61064         * lib/group-member.c: Likewise.
61065         * lib/group-member.h: Likewise.
61066         * lib/hard-locale.c: Likewise.
61067         * lib/hard-locale.h: Likewise.
61068         * lib/hash-pjw.c: Likewise.
61069         * lib/hash-pjw.h: Likewise.
61070         * lib/hash-triple.c: Likewise.
61071         * lib/hash.c: Likewise.
61072         * lib/hash.h: Likewise.
61073         * lib/human.c: Likewise.
61074         * lib/human.h: Likewise.
61075         * lib/i-ring.c: Likewise.
61076         * lib/i-ring.h: Likewise.
61077         * lib/idcache.c: Likewise.
61078         * lib/imaxabs.c: Likewise.
61079         * lib/imaxdiv.c: Likewise.
61080         * lib/inet_pton.c: Likewise.
61081         * lib/inet_pton.h: Likewise.
61082         * lib/intprops.h: Likewise.
61083         * lib/inttostr.c: Likewise.
61084         * lib/inttostr.h: Likewise.
61085         * lib/inttypes.in.h: Likewise.
61086         * lib/isapipe.c: Likewise.
61087         * lib/isdir.c: Likewise.
61088         * lib/isnan.c: Likewise.
61089         * lib/isnan.h: Likewise.
61090         * lib/isnanf.c: Likewise.
61091         * lib/isnanf.h: Likewise.
61092         * lib/isnanl-nolibm.h: Likewise.
61093         * lib/isnanl.c: Likewise.
61094         * lib/isnanl.h: Likewise.
61095         * lib/javacomp.c: Likewise.
61096         * lib/javacomp.h: Likewise.
61097         * lib/javaexec.c: Likewise.
61098         * lib/javaexec.h: Likewise.
61099         * lib/javaversion.c: Likewise.
61100         * lib/javaversion.h: Likewise.
61101         * lib/javaversion.java: Likewise.
61102         * lib/lbrkprop.h: Likewise.
61103         * lib/lchmod.h: Likewise.
61104         * lib/lchown.c: Likewise.
61105         * lib/ldexpl.c: Likewise.
61106         * lib/linebreak.c: Likewise.
61107         * lib/linebreak.h: Likewise.
61108         * lib/linebuffer.c: Likewise.
61109         * lib/linebuffer.h: Likewise.
61110         * lib/locale.in.h: Likewise.
61111         * lib/logl.c: Likewise.
61112         * lib/long-options.c: Likewise.
61113         * lib/long-options.h: Likewise.
61114         * lib/lstat.c: Likewise.
61115         * lib/lstat.h: Likewise.
61116         * lib/math.in.h: Likewise.
61117         * lib/mbchar.c: Likewise.
61118         * lib/mbchar.h: Likewise.
61119         * lib/mbfile.h: Likewise.
61120         * lib/mbiter.h: Likewise.
61121         * lib/mbscasecmp.c: Likewise.
61122         * lib/mbscasestr.c: Likewise.
61123         * lib/mbschr.c: Likewise.
61124         * lib/mbscspn.c: Likewise.
61125         * lib/mbslen.c: Likewise.
61126         * lib/mbsncasecmp.c: Likewise.
61127         * lib/mbsnlen.c: Likewise.
61128         * lib/mbspbrk.c: Likewise.
61129         * lib/mbspcasecmp.c: Likewise.
61130         * lib/mbsrchr.c: Likewise.
61131         * lib/mbssep.c: Likewise.
61132         * lib/mbsspn.c: Likewise.
61133         * lib/mbsstr.c: Likewise.
61134         * lib/mbstok_r.c: Likewise.
61135         * lib/mbswidth.c: Likewise.
61136         * lib/mbswidth.h: Likewise.
61137         * lib/mbuiter.h: Likewise.
61138         * lib/memcasecmp.c: Likewise.
61139         * lib/memcasecmp.h: Likewise.
61140         * lib/memchr.c: Likewise.
61141         * lib/memcmp.c: Likewise.
61142         * lib/memcoll.c: Likewise.
61143         * lib/memcoll.h: Likewise.
61144         * lib/memcpy.c: Likewise.
61145         * lib/memrchr.c: Likewise.
61146         * lib/mkancesdirs.c: Likewise.
61147         * lib/mkdir-p.c: Likewise.
61148         * lib/mkdir-p.h: Likewise.
61149         * lib/mkdir.c: Likewise.
61150         * lib/mkdirat.c: Likewise.
61151         * lib/mkdtemp.c: Likewise.
61152         * lib/mkstemp-safer.c: Likewise.
61153         * lib/mkstemp.c: Likewise.
61154         * lib/modechange.c: Likewise.
61155         * lib/modechange.h: Likewise.
61156         * lib/mountlist.c: Likewise.
61157         * lib/mountlist.h: Likewise.
61158         * lib/mpsort.c: Likewise.
61159         * lib/nanosleep.c: Likewise.
61160         * lib/obstack.c: Likewise.
61161         * lib/obstack.h: Likewise.
61162         * lib/open-safer.c: Likewise.
61163         * lib/open.c: Likewise.
61164         * lib/openat-die.c: Likewise.
61165         * lib/openat-priv.h: Likewise.
61166         * lib/openat-proc.c: Likewise.
61167         * lib/openat.c: Likewise.
61168         * lib/openat.h: Likewise.
61169         * lib/pagealign_alloc.c: Likewise.
61170         * lib/pagealign_alloc.h: Likewise.
61171         * lib/physmem.c: Likewise.
61172         * lib/physmem.h: Likewise.
61173         * lib/pipe-safer.c: Likewise.
61174         * lib/pipe.c: Likewise.
61175         * lib/pipe.h: Likewise.
61176         * lib/posixtm.c: Likewise.
61177         * lib/posixtm.h: Likewise.
61178         * lib/posixver.c: Likewise.
61179         * lib/printf-frexp.c: Likewise.
61180         * lib/printf-frexp.h: Likewise.
61181         * lib/printf-frexpl.c: Likewise.
61182         * lib/printf-frexpl.h: Likewise.
61183         * lib/printf.c: Likewise.
61184         * lib/progname.c: Likewise.
61185         * lib/progname.h: Likewise.
61186         * lib/progreloc.c: Likewise.
61187         * lib/putenv.c: Likewise.
61188         * lib/quote.c: Likewise.
61189         * lib/quote.h: Likewise.
61190         * lib/quotearg.c: Likewise.
61191         * lib/quotearg.h: Likewise.
61192         * lib/raise.c: Likewise.
61193         * lib/readline.c: Likewise.
61194         * lib/readline.h: Likewise.
61195         * lib/readlink.c: Likewise.
61196         * lib/readtokens.c: Likewise.
61197         * lib/readtokens.h: Likewise.
61198         * lib/readtokens0.c: Likewise.
61199         * lib/readtokens0.h: Likewise.
61200         * lib/readutmp.c: Likewise.
61201         * lib/readutmp.h: Likewise.
61202         * lib/realloc.c: Likewise.
61203         * lib/relocwrapper.c: Likewise.
61204         * lib/rename-dest-slash.c: Likewise.
61205         * lib/rename.c: Likewise.
61206         * lib/rmdir.c: Likewise.
61207         * lib/rpmatch.c: Likewise.
61208         * lib/safe-read.c: Likewise.
61209         * lib/safe-read.h: Likewise.
61210         * lib/safe-write.c: Likewise.
61211         * lib/safe-write.h: Likewise.
61212         * lib/same-inode.h: Likewise.
61213         * lib/same.c: Likewise.
61214         * lib/same.h: Likewise.
61215         * lib/save-cwd.c: Likewise.
61216         * lib/save-cwd.h: Likewise.
61217         * lib/savedir.c: Likewise.
61218         * lib/savedir.h: Likewise.
61219         * lib/savewd.c: Likewise.
61220         * lib/savewd.h: Likewise.
61221         * lib/search.in.h: Likewise.
61222         * lib/setenv.c: Likewise.
61223         * lib/setenv.h: Likewise.
61224         * lib/settime.c: Likewise.
61225         * lib/sh-quote.c: Likewise.
61226         * lib/sh-quote.h: Likewise.
61227         * lib/sig2str.c: Likewise.
61228         * lib/sig2str.h: Likewise.
61229         * lib/signal.in.h: Likewise.
61230         * lib/signbitd.c: Likewise.
61231         * lib/signbitf.c: Likewise.
61232         * lib/signbitl.c: Likewise.
61233         * lib/sigprocmask.c: Likewise.
61234         * lib/sincosl.c: Likewise.
61235         * lib/sleep.c: Likewise.
61236         * lib/sprintf.c: Likewise.
61237         * lib/sqrtl.c: Likewise.
61238         * lib/stat-time.h: Likewise.
61239         * lib/stdio--.h: Likewise.
61240         * lib/stdio-safer.h: Likewise.
61241         * lib/stdlib--.h: Likewise.
61242         * lib/stdlib-safer.h: Likewise.
61243         * lib/stdlib.in.h: Likewise.
61244         * lib/stpcpy.c: Likewise.
61245         * lib/stpncpy.c: Likewise.
61246         * lib/strchrnul.c: Likewise.
61247         * lib/strcspn.c: Likewise.
61248         * lib/strerror.c: Likewise.
61249         * lib/strftime.c: Likewise.
61250         * lib/strftime.h: Likewise.
61251         * lib/striconveh.c: Likewise.
61252         * lib/striconveh.h: Likewise.
61253         * lib/striconveha.c: Likewise.
61254         * lib/striconveha.h: Likewise.
61255         * lib/stripslash.c: Likewise.
61256         * lib/strnlen1.c: Likewise.
61257         * lib/strnlen1.h: Likewise.
61258         * lib/strtod.c: Likewise.
61259         * lib/strtoimax.c: Likewise.
61260         * lib/strtok_r.c: Likewise.
61261         * lib/strtol.c: Likewise.
61262         * lib/strtoll.c: Likewise.
61263         * lib/strtoul.c: Likewise.
61264         * lib/strtoull.c: Likewise.
61265         * lib/sysexits.in.h: Likewise.
61266         * lib/tempname.c: Likewise.
61267         * lib/tempname.h: Likewise.
61268         * lib/timespec.h: Likewise.
61269         * lib/tls.c: Likewise.
61270         * lib/tls.h: Likewise.
61271         * lib/tmpdir.c: Likewise.
61272         * lib/tmpdir.h: Likewise.
61273         * lib/tmpfile-safer.c: Likewise.
61274         * lib/tmpfile.c: Likewise.
61275         * lib/trigl.c: Likewise.
61276         * lib/trigl.h: Likewise.
61277         * lib/trim.c: Likewise.
61278         * lib/trim.h: Likewise.
61279         * lib/trunc.c: Likewise.
61280         * lib/truncf.c: Likewise.
61281         * lib/truncl.c: Likewise.
61282         * lib/tsearch.c: Likewise.
61283         * lib/unicodeio.c: Likewise.
61284         * lib/unicodeio.h: Likewise.
61285         * lib/unistd--.h: Likewise.
61286         * lib/unistd-safer.h: Likewise.
61287         * lib/unistdio/ulc-fprintf.c: Likewise.
61288         * lib/unistdio/ulc-vfprintf.c: Likewise.
61289         * lib/unlinkdir.c: Likewise.
61290         * lib/unlinkdir.h: Likewise.
61291         * lib/unlocked-io.h: Likewise.
61292         * lib/unsetenv.c: Likewise.
61293         * lib/userspec.c: Likewise.
61294         * lib/utime.c: Likewise.
61295         * lib/utimecmp.c: Likewise.
61296         * lib/utimecmp.h: Likewise.
61297         * lib/utimens.c: Likewise.
61298         * lib/verify.h: Likewise.
61299         * lib/verror.c: Likewise.
61300         * lib/verror.h: Likewise.
61301         * lib/version-etc-fsf.c: Likewise.
61302         * lib/version-etc.c: Likewise.
61303         * lib/version-etc.h: Likewise.
61304         * lib/vfprintf.c: Likewise.
61305         * lib/vprintf.c: Likewise.
61306         * lib/vsprintf.c: Likewise.
61307         * lib/w32spawn.h: Likewise.
61308         * lib/wait-process.c: Likewise.
61309         * lib/wait-process.h: Likewise.
61310         * lib/wcwidth.c: Likewise.
61311         * lib/write-any-file.c: Likewise.
61312         * lib/xalloc-die.c: Likewise.
61313         * lib/xalloc.h: Likewise.
61314         * lib/xasprintf.c: Likewise.
61315         * lib/xgetcwd.c: Likewise.
61316         * lib/xgetcwd.h: Likewise.
61317         * lib/xgetdomainname.c: Likewise.
61318         * lib/xgetdomainname.h: Likewise.
61319         * lib/xgethostname.c: Likewise.
61320         * lib/xmalloc.c: Likewise.
61321         * lib/xmalloca.c: Likewise.
61322         * lib/xmalloca.h: Likewise.
61323         * lib/xmemcoll.c: Likewise.
61324         * lib/xnanosleep.c: Likewise.
61325         * lib/xreadlink.c: Likewise.
61326         * lib/xreadlink.h: Likewise.
61327         * lib/xsetenv.c: Likewise.
61328         * lib/xsetenv.h: Likewise.
61329         * lib/xstriconv.c: Likewise.
61330         * lib/xstriconv.h: Likewise.
61331         * lib/xstrndup.c: Likewise.
61332         * lib/xstrndup.h: Likewise.
61333         * lib/xstrtod.c: Likewise.
61334         * lib/xstrtod.h: Likewise.
61335         * lib/xstrtol-error.c: Likewise.
61336         * lib/xstrtol.c: Likewise.
61337         * lib/xstrtol.h: Likewise.
61338         * lib/xtime.h: Likewise.
61339         * lib/xvasprintf.c: Likewise.
61340         * lib/xvasprintf.h: Likewise.
61341         * lib/yesno.c: Likewise.
61342         * lib/yesno.h: Likewise.
61343         * posix-modules: Likewise.
61344         * tests/test-alloca-opt.c: Likewise.
61345         * tests/test-arcfour.c: Likewise.
61346         * tests/test-arctwo.c: Likewise.
61347         * tests/test-argmatch.c: Likewise.
61348         * tests/test-argp-2.sh: Likewise.
61349         * tests/test-argp.c: Likewise.
61350         * tests/test-arpa_inet.c: Likewise.
61351         * tests/test-array_list.c: Likewise.
61352         * tests/test-array_oset.c: Likewise.
61353         * tests/test-atexit.c: Likewise.
61354         * tests/test-avltree_list.c: Likewise.
61355         * tests/test-avltree_oset.c: Likewise.
61356         * tests/test-avltreehash_list.c: Likewise.
61357         * tests/test-base64.c: Likewise.
61358         * tests/test-binary-io.c: Likewise.
61359         * tests/test-byteswap.c: Likewise.
61360         * tests/test-c-ctype.c: Likewise.
61361         * tests/test-c-strcasecmp.c: Likewise.
61362         * tests/test-c-strcasestr.c: Likewise.
61363         * tests/test-c-strncasecmp.c: Likewise.
61364         * tests/test-c-strstr.c: Likewise.
61365         * tests/test-canonicalize-lgpl.c: Likewise.
61366         * tests/test-canonicalize.c: Likewise.
61367         * tests/test-carray_list.c: Likewise.
61368         * tests/test-ceilf.c: Likewise.
61369         * tests/test-ceill.c: Likewise.
61370         * tests/test-count-one-bits.c: Likewise.
61371         * tests/test-crc.c: Likewise.
61372         * tests/test-dirname.c: Likewise.
61373         * tests/test-fbufmode.c: Likewise.
61374         * tests/test-fcntl.c: Likewise.
61375         * tests/test-fflush.c: Likewise.
61376         * tests/test-floorf.c: Likewise.
61377         * tests/test-floorl.c: Likewise.
61378         * tests/test-fopen.c: Likewise.
61379         * tests/test-fprintf-posix.c: Likewise.
61380         * tests/test-fprintf-posix.h: Likewise.
61381         * tests/test-fpurge.c: Likewise.
61382         * tests/test-freadable.c: Likewise.
61383         * tests/test-freadahead.c: Likewise.
61384         * tests/test-freading.c: Likewise.
61385         * tests/test-freopen.c: Likewise.
61386         * tests/test-frexp.c: Likewise.
61387         * tests/test-frexpl.c: Likewise.
61388         * tests/test-fseek.c: Likewise.
61389         * tests/test-fseeko.c: Likewise.
61390         * tests/test-fseterr.c: Likewise.
61391         * tests/test-fstrcmp.c: Likewise.
61392         * tests/test-ftell.c: Likewise.
61393         * tests/test-ftello.c: Likewise.
61394         * tests/test-fwritable.c: Likewise.
61395         * tests/test-fwriting.c: Likewise.
61396         * tests/test-getaddrinfo.c: Likewise.
61397         * tests/test-getpass.c: Likewise.
61398         * tests/test-gettimeofday.c: Likewise.
61399         * tests/test-hmac-md5.c: Likewise.
61400         * tests/test-hmac-sha1.c: Likewise.
61401         * tests/test-iconv.c: Likewise.
61402         * tests/test-iconvme.c: Likewise.
61403         * tests/test-inttypes.c: Likewise.
61404         * tests/test-isnan.c: Likewise.
61405         * tests/test-isnanf.c: Likewise.
61406         * tests/test-isnanl-nolibm.c: Likewise.
61407         * tests/test-isnanl.c: Likewise.
61408         * tests/test-isnanl.h: Likewise.
61409         * tests/test-ldexpl.c: Likewise.
61410         * tests/test-linked_list.c: Likewise.
61411         * tests/test-linkedhash_list.c: Likewise.
61412         * tests/test-locale.c: Likewise.
61413         * tests/test-localename.c: Likewise.
61414         * tests/test-lock.c: Likewise.
61415         * tests/test-lseek.c: Likewise.
61416         * tests/test-malloca.c: Likewise.
61417         * tests/test-math.c: Likewise.
61418         * tests/test-mbscasecmp.c: Likewise.
61419         * tests/test-mbscasestr1.c: Likewise.
61420         * tests/test-mbscasestr2.c: Likewise.
61421         * tests/test-mbscasestr3.c: Likewise.
61422         * tests/test-mbscasestr4.c: Likewise.
61423         * tests/test-mbschr.c: Likewise.
61424         * tests/test-mbscspn.c: Likewise.
61425         * tests/test-mbsncasecmp.c: Likewise.
61426         * tests/test-mbspbrk.c: Likewise.
61427         * tests/test-mbspcasecmp.c: Likewise.
61428         * tests/test-mbsrchr.c: Likewise.
61429         * tests/test-mbsspn.c: Likewise.
61430         * tests/test-mbsstr1.c: Likewise.
61431         * tests/test-mbsstr2.c: Likewise.
61432         * tests/test-mbsstr3.c: Likewise.
61433         * tests/test-md5.c: Likewise.
61434         * tests/test-memmem.c: Likewise.
61435         * tests/test-netinet_in.c: Likewise.
61436         * tests/test-open.c: Likewise.
61437         * tests/test-printf-frexp.c: Likewise.
61438         * tests/test-printf-frexpl.c: Likewise.
61439         * tests/test-printf-posix.c: Likewise.
61440         * tests/test-printf-posix.h: Likewise.
61441         * tests/test-rbtree_list.c: Likewise.
61442         * tests/test-rbtree_oset.c: Likewise.
61443         * tests/test-rbtreehash_list.c: Likewise.
61444         * tests/test-read-file.c: Likewise.
61445         * tests/test-rijndael.c: Likewise.
61446         * tests/test-search.c: Likewise.
61447         * tests/test-signbit.c: Likewise.
61448         * tests/test-sleep.c: Likewise.
61449         * tests/test-snprintf-posix.c: Likewise.
61450         * tests/test-snprintf-posix.h: Likewise.
61451         * tests/test-snprintf.c: Likewise.
61452         * tests/test-sprintf-posix.c: Likewise.
61453         * tests/test-sprintf-posix.h: Likewise.
61454         * tests/test-stat-time.c: Likewise.
61455         * tests/test-stdbool.c: Likewise.
61456         * tests/test-stdint.c: Likewise.
61457         * tests/test-stdio.c: Likewise.
61458         * tests/test-stdlib.c: Likewise.
61459         * tests/test-stpncpy.c: Likewise.
61460         * tests/test-strcasestr.c: Likewise.
61461         * tests/test-striconv.c: Likewise.
61462         * tests/test-striconveh.c: Likewise.
61463         * tests/test-striconveha.c: Likewise.
61464         * tests/test-string.c: Likewise.
61465         * tests/test-sys_select.c: Likewise.
61466         * tests/test-sys_socket.c: Likewise.
61467         * tests/test-sys_stat.c: Likewise.
61468         * tests/test-sys_time.c: Likewise.
61469         * tests/test-sysexits.c: Likewise.
61470         * tests/test-time.c: Likewise.
61471         * tests/test-tls.c: Likewise.
61472         * tests/test-trunc.c: Likewise.
61473         * tests/test-truncf.c: Likewise.
61474         * tests/test-truncl.c: Likewise.
61475         * tests/test-unistd.c: Likewise.
61476         * tests/test-vasnprintf-posix.c: Likewise.
61477         * tests/test-vasnprintf-posix2.c: Likewise.
61478         * tests/test-vasnprintf.c: Likewise.
61479         * tests/test-vasprintf-posix.c: Likewise.
61480         * tests/test-vasprintf.c: Likewise.
61481         * tests/test-verify.c: Likewise.
61482         * tests/test-vfprintf-posix.c: Likewise.
61483         * tests/test-vprintf-posix.c: Likewise.
61484         * tests/test-vsnprintf-posix.c: Likewise.
61485         * tests/test-vsnprintf.c: Likewise.
61486         * tests/test-vsprintf-posix.c: Likewise.
61487         * tests/test-wchar.c: Likewise.
61488         * tests/test-wctype.c: Likewise.
61489         * tests/test-wcwidth.c: Likewise.
61490         * tests/test-xstrtol.c: Likewise.
61491         * tests/test-xvasprintf.c: Likewise.
61492         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61493         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61494         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61495         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61496         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61497         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61498         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61499         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61500         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61501         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61502         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61503         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61504         * tests/uniname/test-uninames.c: Likewise.
61505         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61506         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61507         * tests/unistdio/test-u16-printf1.h: Likewise.
61508         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61509         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61510         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61511         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61512         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61513         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61514         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61515         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61516         * tests/unistdio/test-u32-printf1.h: Likewise.
61517         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61518         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61519         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61520         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61521         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61522         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61523         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61524         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61525         * tests/unistdio/test-u8-printf1.h: Likewise.
61526         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61527         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61528         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61529         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61530         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61531         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61532         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61533         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61534         * tests/unistdio/test-ulc-printf1.h: Likewise.
61535         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61536         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61537         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61538         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61539         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61540         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61541         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61542         * tests/uniwidth/test-u16-width.c: Likewise.
61543         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61544         * tests/uniwidth/test-u32-width.c: Likewise.
61545         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61546         * tests/uniwidth/test-u8-width.c: Likewise.
61547         * tests/uniwidth/test-uc_width.c: Likewise.
61548         * config/srclist-update: Likewise.
61549         (fixlicense): Update to GPLv3+.
61550
61551         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61552         * tests/test-tsearch.c: Change copyright notice.
61553
61554         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61555         * lib/c-strcaseeq.h: Change copyright notice.
61556         * lib/streq.h: Likewise.
61557         * lib/uniconv.h: Likewise.
61558         * lib/uniconv/u-conv-from-enc.h: Likewise.
61559         * lib/uniconv/u-conv-to-enc.h: Likewise.
61560         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61561         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61562         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61563         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61564         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61565         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61566         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61567         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61568         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61569         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61570         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61571         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61572         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61573         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61574         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61575         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61576         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61577         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61578         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61579         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61580         * lib/uniname.h: Likewise.
61581         * lib/uniname/uniname.c: Likewise.
61582         * lib/unistdio.h: Likewise.
61583         * lib/unistdio/u-asnprintf.h: Likewise.
61584         * lib/unistdio/u-asprintf.h: Likewise.
61585         * lib/unistdio/u-printf-args.c: Likewise.
61586         * lib/unistdio/u-printf-args.h: Likewise.
61587         * lib/unistdio/u-printf-parse.h: Likewise.
61588         * lib/unistdio/u-snprintf.h: Likewise.
61589         * lib/unistdio/u-sprintf.h: Likewise.
61590         * lib/unistdio/u-vasprintf.h: Likewise.
61591         * lib/unistdio/u-vsnprintf.h: Likewise.
61592         * lib/unistdio/u-vsprintf.h: Likewise.
61593         * lib/unistdio/u16-asnprintf.c: Likewise.
61594         * lib/unistdio/u16-asprintf.c: Likewise.
61595         * lib/unistdio/u16-printf-parse.c: Likewise.
61596         * lib/unistdio/u16-snprintf.c: Likewise.
61597         * lib/unistdio/u16-sprintf.c: Likewise.
61598         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61599         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61600         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61601         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61602         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61603         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61604         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61605         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61606         * lib/unistdio/u16-vasnprintf.c: Likewise.
61607         * lib/unistdio/u16-vasprintf.c: Likewise.
61608         * lib/unistdio/u16-vsnprintf.c: Likewise.
61609         * lib/unistdio/u16-vsprintf.c: Likewise.
61610         * lib/unistdio/u32-asnprintf.c: Likewise.
61611         * lib/unistdio/u32-asprintf.c: Likewise.
61612         * lib/unistdio/u32-printf-parse.c: Likewise.
61613         * lib/unistdio/u32-snprintf.c: Likewise.
61614         * lib/unistdio/u32-sprintf.c: Likewise.
61615         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61616         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61617         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61618         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61619         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61620         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61621         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61622         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61623         * lib/unistdio/u32-vasnprintf.c: Likewise.
61624         * lib/unistdio/u32-vasprintf.c: Likewise.
61625         * lib/unistdio/u32-vsnprintf.c: Likewise.
61626         * lib/unistdio/u32-vsprintf.c: Likewise.
61627         * lib/unistdio/u8-asnprintf.c: Likewise.
61628         * lib/unistdio/u8-asprintf.c: Likewise.
61629         * lib/unistdio/u8-printf-parse.c: Likewise.
61630         * lib/unistdio/u8-snprintf.c: Likewise.
61631         * lib/unistdio/u8-sprintf.c: Likewise.
61632         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61633         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61634         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61635         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61636         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61637         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61638         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61639         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61640         * lib/unistdio/u8-vasnprintf.c: Likewise.
61641         * lib/unistdio/u8-vasprintf.c: Likewise.
61642         * lib/unistdio/u8-vsnprintf.c: Likewise.
61643         * lib/unistdio/u8-vsprintf.c: Likewise.
61644         * lib/unistdio/ulc-asnprintf.c: Likewise.
61645         * lib/unistdio/ulc-asprintf.c: Likewise.
61646         * lib/unistdio/ulc-printf-parse.c: Likewise.
61647         * lib/unistdio/ulc-snprintf.c: Likewise.
61648         * lib/unistdio/ulc-sprintf.c: Likewise.
61649         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61650         * lib/unistdio/ulc-vasprintf.c: Likewise.
61651         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61652         * lib/unistdio/ulc-vsprintf.c: Likewise.
61653         * lib/unistr.h: Likewise.
61654         * lib/unistr/u-cpy-alloc.h: Likewise.
61655         * lib/unistr/u-cpy.h: Likewise.
61656         * lib/unistr/u-endswith.h: Likewise.
61657         * lib/unistr/u-move.h: Likewise.
61658         * lib/unistr/u-set.h: Likewise.
61659         * lib/unistr/u-startswith.h: Likewise.
61660         * lib/unistr/u-stpcpy.h: Likewise.
61661         * lib/unistr/u-stpncpy.h: Likewise.
61662         * lib/unistr/u-strcat.h: Likewise.
61663         * lib/unistr/u-strcpy.h: Likewise.
61664         * lib/unistr/u-strcspn.h: Likewise.
61665         * lib/unistr/u-strdup.h: Likewise.
61666         * lib/unistr/u-strlen.h: Likewise.
61667         * lib/unistr/u-strncat.h: Likewise.
61668         * lib/unistr/u-strncpy.h: Likewise.
61669         * lib/unistr/u-strnlen.h: Likewise.
61670         * lib/unistr/u-strpbrk.h: Likewise.
61671         * lib/unistr/u-strspn.h: Likewise.
61672         * lib/unistr/u-strstr.h: Likewise.
61673         * lib/unistr/u-strtok.h: Likewise.
61674         * lib/unistr/u16-check.c: Likewise.
61675         * lib/unistr/u16-chr.c: Likewise.
61676         * lib/unistr/u16-cmp.c: Likewise.
61677         * lib/unistr/u16-cpy-alloc.c: Likewise.
61678         * lib/unistr/u16-cpy.c: Likewise.
61679         * lib/unistr/u16-endswith.c: Likewise.
61680         * lib/unistr/u16-mblen.c: Likewise.
61681         * lib/unistr/u16-mbsnlen.c: Likewise.
61682         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61683         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61684         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61685         * lib/unistr/u16-mbtouc.c: Likewise.
61686         * lib/unistr/u16-mbtoucr.c: Likewise.
61687         * lib/unistr/u16-move.c: Likewise.
61688         * lib/unistr/u16-next.c: Likewise.
61689         * lib/unistr/u16-prev.c: Likewise.
61690         * lib/unistr/u16-set.c: Likewise.
61691         * lib/unistr/u16-startswith.c: Likewise.
61692         * lib/unistr/u16-stpcpy.c: Likewise.
61693         * lib/unistr/u16-stpncpy.c: Likewise.
61694         * lib/unistr/u16-strcat.c: Likewise.
61695         * lib/unistr/u16-strchr.c: Likewise.
61696         * lib/unistr/u16-strcmp.c: Likewise.
61697         * lib/unistr/u16-strcpy.c: Likewise.
61698         * lib/unistr/u16-strcspn.c: Likewise.
61699         * lib/unistr/u16-strdup.c: Likewise.
61700         * lib/unistr/u16-strlen.c: Likewise.
61701         * lib/unistr/u16-strmblen.c: Likewise.
61702         * lib/unistr/u16-strmbtouc.c: Likewise.
61703         * lib/unistr/u16-strncat.c: Likewise.
61704         * lib/unistr/u16-strncmp.c: Likewise.
61705         * lib/unistr/u16-strncpy.c: Likewise.
61706         * lib/unistr/u16-strnlen.c: Likewise.
61707         * lib/unistr/u16-strpbrk.c: Likewise.
61708         * lib/unistr/u16-strrchr.c: Likewise.
61709         * lib/unistr/u16-strspn.c: Likewise.
61710         * lib/unistr/u16-strstr.c: Likewise.
61711         * lib/unistr/u16-strtok.c: Likewise.
61712         * lib/unistr/u16-to-u32.c: Likewise.
61713         * lib/unistr/u16-to-u8.c: Likewise.
61714         * lib/unistr/u16-uctomb-aux.c: Likewise.
61715         * lib/unistr/u16-uctomb.c: Likewise.
61716         * lib/unistr/u32-check.c: Likewise.
61717         * lib/unistr/u32-chr.c: Likewise.
61718         * lib/unistr/u32-cmp.c: Likewise.
61719         * lib/unistr/u32-cpy-alloc.c: Likewise.
61720         * lib/unistr/u32-cpy.c: Likewise.
61721         * lib/unistr/u32-endswith.c: Likewise.
61722         * lib/unistr/u32-mblen.c: Likewise.
61723         * lib/unistr/u32-mbsnlen.c: Likewise.
61724         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61725         * lib/unistr/u32-mbtouc.c: Likewise.
61726         * lib/unistr/u32-mbtoucr.c: Likewise.
61727         * lib/unistr/u32-move.c: Likewise.
61728         * lib/unistr/u32-next.c: Likewise.
61729         * lib/unistr/u32-prev.c: Likewise.
61730         * lib/unistr/u32-set.c: Likewise.
61731         * lib/unistr/u32-startswith.c: Likewise.
61732         * lib/unistr/u32-stpcpy.c: Likewise.
61733         * lib/unistr/u32-stpncpy.c: Likewise.
61734         * lib/unistr/u32-strcat.c: Likewise.
61735         * lib/unistr/u32-strchr.c: Likewise.
61736         * lib/unistr/u32-strcmp.c: Likewise.
61737         * lib/unistr/u32-strcpy.c: Likewise.
61738         * lib/unistr/u32-strcspn.c: Likewise.
61739         * lib/unistr/u32-strdup.c: Likewise.
61740         * lib/unistr/u32-strlen.c: Likewise.
61741         * lib/unistr/u32-strmblen.c: Likewise.
61742         * lib/unistr/u32-strmbtouc.c: Likewise.
61743         * lib/unistr/u32-strncat.c: Likewise.
61744         * lib/unistr/u32-strncmp.c: Likewise.
61745         * lib/unistr/u32-strncpy.c: Likewise.
61746         * lib/unistr/u32-strnlen.c: Likewise.
61747         * lib/unistr/u32-strpbrk.c: Likewise.
61748         * lib/unistr/u32-strrchr.c: Likewise.
61749         * lib/unistr/u32-strspn.c: Likewise.
61750         * lib/unistr/u32-strstr.c: Likewise.
61751         * lib/unistr/u32-strtok.c: Likewise.
61752         * lib/unistr/u32-to-u16.c: Likewise.
61753         * lib/unistr/u32-to-u8.c: Likewise.
61754         * lib/unistr/u32-uctomb.c: Likewise.
61755         * lib/unistr/u8-check.c: Likewise.
61756         * lib/unistr/u8-chr.c: Likewise.
61757         * lib/unistr/u8-cmp.c: Likewise.
61758         * lib/unistr/u8-cpy-alloc.c: Likewise.
61759         * lib/unistr/u8-cpy.c: Likewise.
61760         * lib/unistr/u8-endswith.c: Likewise.
61761         * lib/unistr/u8-mblen.c: Likewise.
61762         * lib/unistr/u8-mbsnlen.c: Likewise.
61763         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61764         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61765         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61766         * lib/unistr/u8-mbtouc.c: Likewise.
61767         * lib/unistr/u8-mbtoucr.c: Likewise.
61768         * lib/unistr/u8-move.c: Likewise.
61769         * lib/unistr/u8-next.c: Likewise.
61770         * lib/unistr/u8-prev.c: Likewise.
61771         * lib/unistr/u8-set.c: Likewise.
61772         * lib/unistr/u8-startswith.c: Likewise.
61773         * lib/unistr/u8-stpcpy.c: Likewise.
61774         * lib/unistr/u8-stpncpy.c: Likewise.
61775         * lib/unistr/u8-strcat.c: Likewise.
61776         * lib/unistr/u8-strchr.c: Likewise.
61777         * lib/unistr/u8-strcmp.c: Likewise.
61778         * lib/unistr/u8-strcpy.c: Likewise.
61779         * lib/unistr/u8-strcspn.c: Likewise.
61780         * lib/unistr/u8-strdup.c: Likewise.
61781         * lib/unistr/u8-strlen.c: Likewise.
61782         * lib/unistr/u8-strmblen.c: Likewise.
61783         * lib/unistr/u8-strmbtouc.c: Likewise.
61784         * lib/unistr/u8-strncat.c: Likewise.
61785         * lib/unistr/u8-strncmp.c: Likewise.
61786         * lib/unistr/u8-strncpy.c: Likewise.
61787         * lib/unistr/u8-strnlen.c: Likewise.
61788         * lib/unistr/u8-strpbrk.c: Likewise.
61789         * lib/unistr/u8-strrchr.c: Likewise.
61790         * lib/unistr/u8-strspn.c: Likewise.
61791         * lib/unistr/u8-strstr.c: Likewise.
61792         * lib/unistr/u8-strtok.c: Likewise.
61793         * lib/unistr/u8-to-u16.c: Likewise.
61794         * lib/unistr/u8-to-u32.c: Likewise.
61795         * lib/unistr/u8-uctomb-aux.c: Likewise.
61796         * lib/unistr/u8-uctomb.c: Likewise.
61797         * lib/unitypes.h: Likewise.
61798         * lib/uniwidth.h: Likewise.
61799         * lib/uniwidth/cjk.h: Likewise.
61800         * lib/uniwidth/u16-strwidth.c: Likewise.
61801         * lib/uniwidth/u16-width.c: Likewise.
61802         * lib/uniwidth/u32-strwidth.c: Likewise.
61803         * lib/uniwidth/u32-width.c: Likewise.
61804         * lib/uniwidth/u8-strwidth.c: Likewise.
61805         * lib/uniwidth/u8-width.c: Likewise.
61806         * lib/uniwidth/width.c: Likewise.
61807
61808 2007-10-07  Bruno Haible  <bruno@clisp.org>
61809
61810         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61811         The file is still under LGPL (see modules/inttypes).
61812
61813 2007-10-06  Bruno Haible  <bruno@clisp.org>
61814
61815         * modules/trunc (Dependencies): Add 'extensions'.
61816         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61817         Reported by Ben Pfaff <blp@gnu.org>.
61818
61819 2007-10-06  Bruno Haible  <bruno@clisp.org>
61820
61821         * modules/freopen-tests: New file.
61822         * tests/test-freopen.c: New file.
61823
61824         * modules/fopen-tests: New file.
61825         * tests/test-fopen.c: New file.
61826
61827         * modules/fopen: New file.
61828         * lib/fopen.c: New file.
61829         * m4/fopen.m4: New file.
61830         * modules/freopen: New file.
61831         * lib/freopen.c: New file.
61832         * m4/freopen.m4: New file.
61833         * lib/stdio.in.h (fopen, freopen): New declarations.
61834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61835         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61836         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61837         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61838         * doc/functions/fopen.texi: Mention the 'fopen' module.
61839         * doc/functions/freopen.texi: Mention the 'freopen' module.
61840
61841 2007-10-06  Bruno Haible  <bruno@clisp.org>
61842
61843         * modules/open-tests: New file.
61844         * tests/test-open.c: New file.
61845
61846         * modules/open: New file.
61847         * lib/open.c: New file.
61848         * m4/open.m4: New file.
61849         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61850         lib/open.c does.
61851         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61852         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61853         macros.
61854         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61855         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61856         REPLACE_OPEN.
61857         * doc/functions/open.texi: Mention the 'open' module.
61858
61859 2007-10-04  Bruno Haible  <bruno@clisp.org>
61860
61861         * modules/ceill-tests: New file.
61862         * tests/test-ceill.c: New file.
61863
61864         * modules/ceill: New file.
61865         * lib/ceill.c: Replace entire file.
61866         * m4/ceill.m4: New file.
61867         * lib/math.in.h (ceill): Replace declaration.
61868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61869         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61870         * doc/functions/ceill.texi: Mention the 'ceill' module.
61871         * modules/mathl (Files): Remove lib/ceill.c.
61872         (Depends-on): Add ceill.
61873
61874 2007-10-04  Bruno Haible  <bruno@clisp.org>
61875
61876         * modules/ceilf-tests: New file.
61877         * tests/test-ceilf.c: New file.
61878
61879         * modules/ceilf: New file.
61880         * lib/ceil.c: New file.
61881         * lib/ceilf.c: New file.
61882         * m4/ceilf.m4: New file.
61883         * lib/math.in.h (ceilf): New declaration.
61884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61885         HAVE_DECL_CEILF.
61886         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61887         HAVE_DECL_CEILF.
61888         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61889
61890 2007-10-04  Bruno Haible  <bruno@clisp.org>
61891
61892         * modules/floorl-tests: New file.
61893         * tests/test-floorl.c: New file.
61894
61895         * modules/floorl: New file.
61896         * lib/floorl.c: Replace entire file.
61897         * m4/floorl.m4: New file.
61898         * lib/math.in.h (floorl): Replace declaration.
61899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61900         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61901         * doc/functions/floorl.texi: Mention the 'floorl' module.
61902         * modules/mathl (Files): Remove lib/floorl.c.
61903         (Depends-on): Add floorl.
61904
61905 2007-10-04  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/floorf-tests: New file.
61908         * tests/test-floorf.c: New file.
61909
61910         * modules/floorf: New file.
61911         * lib/floor.c: New file.
61912         * lib/floorf.c: New file.
61913         * m4/floorf.m4: New file.
61914         * lib/math.in.h (floorf): New declaration.
61915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61916         HAVE_DECL_FLOORF.
61917         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61918         HAVE_DECL_FLOORF.
61919         * doc/functions/floorf.texi: Mention the 'floorf' module.
61920
61921 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61922             Bruno Haible  <bruno@clisp.org>
61923
61924         Advertise for the Git server instead of the CVS server.
61925         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61926         repository instead of the CVS one.
61927         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61928         about all VCS systems generically.
61929         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61930
61931 2007-10-04  Bruno Haible  <bruno@clisp.org>
61932
61933         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61934         means.
61935         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61936
61937 2007-10-04  Bruno Haible  <bruno@clisp.org>
61938
61939         * modules/truncl-tests: New file.
61940         * tests/test-truncl.c: New file.
61941
61942         * modules/truncl: New file.
61943         * lib/truncl.c: New file.
61944         * m4/truncl.m4: New file.
61945         * lib/math.in.h (truncl): New declaration.
61946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61947         HAVE_DECL_TRUNCL.
61948         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61949         HAVE_DECL_TRUNCL.
61950         * doc/functions/truncl.texi: Mention the 'truncl' module.
61951
61952 2007-10-04  Bruno Haible  <bruno@clisp.org>
61953
61954         * modules/truncf-tests: New file.
61955         * tests/test-truncf.c: New file.
61956
61957         * modules/truncf: New file.
61958         * lib/trunc.c: Make paramerizable through USE_* macros.
61959         * lib/truncf.c: New file.
61960         * m4/truncf.m4: New file.
61961         * lib/math.in.h (truncf): New declaration.
61962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61963         HAVE_DECL_TRUNCF.
61964         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61965         HAVE_DECL_TRUNCF.
61966         * doc/functions/truncf.texi: Mention the 'truncf' module.
61967
61968 2007-10-03  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61971         augmentation also for tests modules.
61972         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61973         * modules/atexit-tests (Makefile.am): Likewise.
61974         * modules/binary-io-tests (Makefile.am): Likewise.
61975         * modules/c-strcase-tests (Makefile.am): Likewise.
61976         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61977         * modules/canonicalize-tests (Makefile.am): Likewise.
61978         * modules/closein-tests (Makefile.am): Likewise.
61979         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61980         * modules/freadahead-tests (Makefile.am): Likewise.
61981         * modules/fseek-tests (Makefile.am): Likewise.
61982         * modules/fseeko-tests (Makefile.am): Likewise.
61983         * modules/ftell-tests (Makefile.am): Likewise.
61984         * modules/ftello-tests (Makefile.am): Likewise.
61985         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61986         * modules/isnanl-tests (Makefile.am): Likewise.
61987         * modules/lseek-tests (Makefile.am): Likewise.
61988         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61989         * modules/mbscasestr-tests (Makefile.am): Likewise.
61990         * modules/mbschr-tests (Makefile.am): Likewise.
61991         * modules/mbscspn-tests (Makefile.am): Likewise.
61992         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61993         * modules/mbspbrk-tests (Makefile.am): Likewise.
61994         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61995         * modules/mbsrchr-tests (Makefile.am): Likewise.
61996         * modules/mbsspn-tests (Makefile.am): Likewise.
61997         * modules/mbsstr-tests (Makefile.am): Likewise.
61998         * modules/printf-posix-tests (Makefile.am): Likewise.
61999         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62000         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62001         * modules/tsearch-tests (Makefile.am): Likewise.
62002         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62003         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62004         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62005         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62006         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62007         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62008         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62009         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62010         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62011         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62012         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62013         * modules/xstrtol-tests (Makefile.am): Likewise.
62014         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62015         * modules/yesno-tests (Makefile.am): Likewise.
62016
62017 2007-10-03  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/trunc-tests: New file.
62020         * tests/test-trunc.c: New file.
62021
62022         * modules/trunc: New file.
62023         * lib/trunc.c: New file.
62024         * m4/trunc.m4: New file.
62025         * lib/math.in.h (trunc): New declaration.
62026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62027         HAVE_DECL_TRUNC.
62028         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62029         HAVE_DECL_TRUNC.
62030         * doc/functions/trunc.texi: Mention the 'trunc' module.
62031
62032 2007-10-03  Bruno Haible  <bruno@clisp.org>
62033
62034         * tests/test-fpending.c: New file, mostly copied
62035         from coreutils/lib/t-fpending.c.
62036         * modules/fpending-tests: New file.
62037
62038 2007-10-03  Bruno Haible  <bruno@clisp.org>
62039
62040         Port the stdio extensions to QNX (untested).
62041         * lib/fseterr.c (fseterr): Add support for QNX.
62042         * lib/fbufmode.c (fbufmode): Likewise.
62043         * lib/freadable.c (freadable): Likewise.
62044         * lib/fwritable.c (fwritable): Likewise.
62045         * lib/freading.c (freading): Likewise.
62046         * lib/fwriting.c (fwriting): Likewise.
62047         * lib/freadahead.c (freadahed): Likewise.
62048         * lib/fpurge.c (fpurge): Likewise.
62049         * lib/fseeko.c (rpl_fseeko): Likewise.
62050
62051 2007-10-03  Bruno Haible  <bruno@clisp.org>
62052             Jim Meyering  <jim@meyering.net>
62053             Eric Blake  <ebb9@byu.net>
62054
62055         * doc/relocatable.texi: Use @command instead of @program.
62056
62057 2007-10-02  Jim Meyering  <jim@meyering.net>
62058
62059         Perform one more "_.h" -> ".in.h" substitution.
62060         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62061         instead of unistd_.h here, too.
62062
62063 2007-10-01  Bruno Haible  <bruno@clisp.org>
62064
62065         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62066         Needed for the alloca-opt module.
62067
62068 2007-09-30  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62071         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62072         alloca_.h.
62073         * lib/argz.in.h: Renamed from lib/argz_.h.
62074         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62075         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62076         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62077         byteswap_.h.
62078         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62079         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62080         dirent_.h.
62081         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62082         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62083         fcntl_.h.
62084         * lib/float.in.h: Renamed from lib/float_.h.
62085         * modules/float (Files, Makefile.am): Use float.in.h instead of
62086         float_.h.
62087         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62088         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62089         fnmatch_.h.
62090         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62091         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62092         getopt_.h.
62093         * lib/glob.in.h: Renamed from lib/glob_.h.
62094         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62095         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62096         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62097         iconv_.h.
62098         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62099         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62100         inttypes_.h.
62101         * lib/locale.in.h: Renamed from lib/locale_.h.
62102         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62103         locale_.h.
62104         * lib/math.in.h: Renamed from lib/math_.h.
62105         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62106         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62107         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62108         of netinet_in_.h. Add dependency.
62109         * lib/poll.in.h: Renamed from lib/poll_.h.
62110         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62111         * lib/search.in.h: Renamed from lib/search_.h.
62112         * modules/search (Files, Makefile.am): Use search.in.h instead of
62113         search_.h.
62114         * lib/signal.in.h: Renamed from lib/signal_.h.
62115         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62116         _signal.h.
62117         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62118         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62119         stdbool_.h.
62120         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62121         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62122         stdint_.h.
62123         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62124         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62125         stdio_.h.
62126         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62127         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62128         stdlib_.h.
62129         * lib/string.in.h: Renamed from lib/string_.h.
62130         * modules/string (Files, Makefile.am): Use string.in.h instead of
62131         string_.h.
62132         * doc/gnulib-tool.texi (Initial import): Update.
62133         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62134         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62135         of sys_select_.h. Add dependency.
62136         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62137         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62138         of sys_socket_.h.
62139         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62140         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62141         sys_stat_.h.
62142         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62143         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62144         sys_time_.h.
62145         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62146         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62147         sysexits_.h.
62148         * lib/time.in.h: Renamed from lib/time_.h.
62149         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62150         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62151         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62152         unistd_.h.
62153         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62154         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62155         wchar_.h.
62156         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62157         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62158         wctype_.h.
62159         * build-aux/bootstrap (slurp): Update.
62160         * lib/.cppi-disable: Update.
62161
62162 2007-09-30  Bruno Haible  <bruno@clisp.org>
62163
62164         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62165         Needed on BeOS.
62166
62167 2007-09-30  Bruno Haible  <bruno@clisp.org>
62168
62169         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62170
62171 2007-09-29  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62174
62175 2007-09-29  Bruno Haible  <bruno@clisp.org>
62176
62177         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62178         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62179         * build-aux/install-reloc: Compile also areadlink.c.
62180         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62181
62182 2007-09-29  Bruno Haible  <bruno@clisp.org>
62183
62184         * gnulib-tool (func_emit_initmacro_done): Indentation.
62185
62186 2007-09-29  Bruno Haible  <bruno@clisp.org>
62187
62188         * README: Add CVS checkout update instructions.
62189         Info from Bob Proulx <bob@proulx.com>.
62190
62191 2007-09-28  Eric Blake  <ebb9@byu.net>
62192
62193         Provide move-if-change.
62194         * build-aux/move-if-change: New file, based on best practice
62195         rather than any canonical upstream location.
62196
62197 2007-09-28  Jim Meyering  <jim@meyering.net>
62198
62199         Fix canonicalize loop-detection corner case.
62200         Do not attempt to stat the symlink values stored via seen_triple.
62201         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62202         on linux-2.6.18, (but not 2.6.22).
62203         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62204         triple_compare.  The former compares dev,ino,filename, while the latter
62205         would actually stat dirname(filename) when dev and ino were equal.
62206         * lib/hash-triple.c: Install <string.h>.
62207         (STREQ): Define.
62208         (triple_compare_ino_str): New function.
62209         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62210
62211 2007-09-28  Eric Blake  <ebb9@byu.net>
62212
62213         Enforce that AC_REPLACE_FUNCS files exist.
62214         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62215         override check for typos.
62216
62217         Fix test-closein on Solaris 10.
62218         * tests/test-closein.c (main): Don't assume stdin can be inherited
62219         closed on all systems.
62220         * tests/test-closein.sh: Likewise.
62221         Reported by Piotr Tarnowski.
62222
62223 2007-09-28  Jim Meyering  <jim@meyering.net>
62224
62225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62226
62227 2007-09-27  Jim Meyering  <jim@meyering.net>
62228
62229         canonicalize: Avoid a false-positive cycle failure.
62230         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62231         Sort.  Remove cycle-check.
62232         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62233         not cycle-check.h.
62234         (seen_triple): New function.
62235         (canonicalize_filename_mode): Use it instead of cycle-check.
62236         * tests/test-canonicalize.c: Add a test for this bug.
62237         * tests/test-canonicalize.sh: Set up and run the test.
62238
62239         New module, file-set, from coreutils.
62240         * modules/file-set: Define it.
62241         * lib/file-set.c, lib/file-set.h: Implement.
62242
62243         New module, hash-triple, from coreutils.
62244         * modules/hash-triple: Define it.
62245         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62246
62247 2007-09-25  Eric Blake  <ebb9@byu.net>
62248
62249         Fix strerror on Interix.
62250         * lib/string_.h (strerror): Declare replacement.
62251         * doc/functions/strerror.texi (strerror): Document the Interix
62252         shortcoming.
62253         * modules/string (Makefile.am): Support new hooks.
62254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62255         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62256         gl_FUNC_STRERROR_SEPARATE.
62257         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62258         * lib/strerror.c (rpl_strerror): Provide replacement.
62259         * modules/strerror (Depends-on): Add string.
62260         (configure.ac): Detect use of module.
62261         * tests/test-strerror.c: New file.
62262         * modules/strerror-tests: New test module.
62263         * modules/argp (Depends-on): Add strerror.
62264         * modules/error (Depends-on): Likewise.
62265         Reported by Martin Koeppe.
62266
62267 2007-09-24  Bruno Haible  <bruno@clisp.org>
62268
62269         * README: Update git instructions.
62270
62271 2007-09-24  Eric Blake  <ebb9@byu.net>
62272
62273         Revert fpending breakage from 2007-09-08.
62274         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62275         __fpending.c.
62276
62277 2007-09-24  Jim Meyering  <jim@meyering.net>
62278
62279         filenamecat.c: Add a test.
62280         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62281         showing how the function works when DIR is the empty string.
62282
62283 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62284
62285         * tests/test-canonicalize.sh: Turn on executable bit.
62286
62287 2007-09-19  Eric Blake  <ebb9@byu.net>
62288
62289         * README: Update CVS instructions.
62290
62291 2007-09-18  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/areadlink: New file.
62294         * lib/areadlink.h (areadlink): New declaration.
62295         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62296
62297 2007-09-17  Jim Meyering  <jim@meyering.net>
62298
62299         * lib/savewd.c (ESTALE) [!defined]: Define.
62300         Reported to be required on Interix by Martin Koeppe.
62301
62302 2007-09-17  Bruno Haible  <bruno@clisp.org>
62303
62304         * gnulib-tool (func_version): Use $version.
62305
62306 2007-09-16  Bruno Haible  <bruno@clisp.org>
62307
62308         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62309         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62310         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62311         Reported by Greg Schafer <gschafer@zip.com.au>.
62312
62313 2007-09-15  Bruno Haible  <bruno@clisp.org>
62314
62315         * gnulib-tool (sed): Try a little harder to make bash understand the
62316         alias.
62317         Reported by Bruce Korb <bruce.korb@gmail.com>.
62318
62319 2007-09-13  Eric Blake  <ebb9@byu.net>
62320
62321         * ChangeLog: Remove conflict markers.
62322
62323 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62324
62325         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62326         Reported by Bruno Haible <bruno@clisp.org>.
62327
62328 2007-09-12  Bruno Haible  <bruno@clisp.org>
62329
62330         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62331         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62332         is not defined.
62333
62334 2007-09-12  Eric Blake  <ebb9@byu.net>
62335
62336         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62338         Autoconf definition.
62339         * modules/euidaccess (Depends-on): Add extensions, for
62340         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62341         * modules/fnmatch (Depends-on): Likewise.
62342         * modules/getaddrinfo (Depends-on): Likewise.
62343         * modules/getdelim (Depends-on): Likewise.
62344         * modules/getline (Depends-on): Likewise.
62345         * modules/getsubopt (Depends-on): Likewise.
62346         * modules/gettext (Depends-on): Likewise.
62347         * modules/group-member (Depends-on): Likewise.
62348         * modules/mbchar (Depends-on): Likewise.
62349         * modules/memmem (Depends-on): Likewise.
62350         * modules/mempcpy (Depends-on): Likewise.
62351         * modules/memrchr (Depends-on): Likewise.
62352         * modules/pagealign_alloc (Depends-on): Likewise.
62353         * modules/readutmp (Depends-on): Likewise.
62354         * modules/stpcpy (Depends-on): Likewise.
62355         * modules/stpncpy (Depends-on): Likewise.
62356         * modules/strchrnul (Depends-on): Likewise.
62357         * modules/strndup (Depends-on): Likewise.
62358         * modules/strsep (Depends-on): Likewise.
62359         * modules/strverscmp (Depends-on): Likewise.
62360         * modules/vasprintf (Depends-on): Likewise.
62361         * modules/wcwidth (Depends-on): Likewise.
62362         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62363         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62364         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62365         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62366         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62367         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62368         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62369         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62370         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62371         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62372         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62373         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62374         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62375         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62376         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62377         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62378         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62379         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62380         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62381         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62382         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62383         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62384         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62385         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62386         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62388         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62389         so that lock.m4 can be used in gettext without extensions module.
62390
62391 2007-09-11  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/isc-posix.m4: Remove file.
62394         Suggested by Eric Blake.
62395
62396 2007-09-11  Eric Blake  <ebb9@byu.net>
62397
62398         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62399
62400 2007-09-10  Bruno Haible  <bruno@clisp.org>
62401
62402         * posix-modules: Fix typo in error message.
62403         Reported by Matt <mkraai@beckman.com>.
62404
62405 2007-09-09  Bruno Haible  <bruno@clisp.org>
62406
62407         * doc/functions/getdelim.texi: Update list of platforms lacking the
62408         function.
62409         * doc/functions/getline.texi: Likewise.
62410
62411 2007-09-09  Jim Meyering  <jim@meyering.net>
62412
62413         * lib/hash.c (hash_initialize): Detect calloc failure.
62414         Reported by Bruno Haible.
62415
62416 2007-09-09  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62419         malloc or realloc fails.
62420
62421 2007-09-09  Bruno Haible  <bruno@clisp.org>
62422
62423         * modules/getcwd (Depends-on): Add malloc-posix.
62424         * modules/glob (Depends-on): Likewise.
62425         * modules/putenv (Depends-on): Likewise.
62426         * modules/strdup (Depends-on): Likewise.
62427         * modules/getdelim (Depends-on): Add realloc-posix.
62428         * modules/read-file (Depends-on): Likewise.
62429
62430 2007-09-09  Bruno Haible  <bruno@clisp.org>
62431
62432         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62433         (gl_FUNC_MALLOC_POSIX): Require it.
62434         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62435         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62436         * modules/realloc (Files): Add m4/malloc.m4.
62437         * modules/calloc (Files): Likewise.
62438
62439 2007-09-09  Bruno Haible  <bruno@clisp.org>
62440
62441         * modules/malloc-posix: New file.
62442         * modules/malloc (Depends-on): Add malloc-posix.
62443         * lib/malloc.c: Include errno.h.
62444         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62445         and a POSIX-compatible malloc into a single function. Set ENOMEM
62446         when returning NULL.
62447         * m4/malloc.m4: New file.
62448         * doc/functions/malloc.texi: Mention the malloc-posix module.
62449         * lib/stdlib_.h (malloc): New declaration.
62450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62451         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62452         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62453         and HAVE_MALLOC_POSIX.
62454
62455 2007-09-09  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/realloc-posix: New file.
62458         * modules/realloc (Depends-on): Add realloc-posix.
62459         * lib/realloc.c: Include errno.h.
62460         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62461         and a POSIX-compatible realloc into a single function. Set ENOMEM
62462         when returning NULL.
62463         * m4/realloc.m4: New file.
62464         * doc/functions/realloc.texi: Mention the realloc-posix module.
62465         * lib/stdlib_.h (realloc): New declaration.
62466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62467         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62468         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62469         and HAVE_REALLOC_POSIX.
62470
62471 2007-09-09  Bruno Haible  <bruno@clisp.org>
62472
62473         * modules/calloc-posix: New file.
62474         * modules/calloc (Depends-on): Add calloc-posix.
62475         * lib/calloc.c: Include errno.h.
62476         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62477         and a POSIX-compatible calloc into a single function. Set ENOMEM
62478         when returning NULL.
62479         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62480         * doc/functions/calloc.texi: Mention the calloc-posix module.
62481         * lib/stdlib_.h (calloc): New declaration.
62482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62483         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62484         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62485         and HAVE_CALLOC_POSIX.
62486
62487 2007-09-09  Bruno Haible  <bruno@clisp.org>
62488
62489         Allow for modules to show an arbitrary notice.
62490         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62491         * gnulib-tool: New option --extract-notice.
62492         (func_usage): Document it.
62493         (sed_extract_prog): Update.
62494         (func_get_notice): New function.
62495         (func_modules_notice): New function.
62496         (func_import, func_create_testdir): Invoke it.
62497         Suggested by Jim Meyering.
62498
62499 2007-09-09  Bruno Haible  <bruno@clisp.org>
62500
62501         * gnulib-tool: New options --verbose, --quiet.
62502         (func_usage): Document them.
62503         (verbose): New variable.
62504         (func_execute_command): New function.
62505         (func_import): Don't show the module list and the file list if
62506         $verbose < 0.
62507         (func_create_testdir): Likewise. Use func_execute_command.
62508         (func_create_megatestdir): Use func_execute_command.
62509
62510 2007-09-08  Bruno Haible  <bruno@clisp.org>
62511
62512         * gnulib-tool (func_import): Prefer rsync over wget when available,
62513         for fetching the PO files.
62514
62515 2007-09-08  Bruno Haible  <bruno@clisp.org>
62516
62517         * posix-modules: New file. Portions copied from gnulib-tool.
62518         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62519
62520 2007-09-08  Jim Meyering  <jim@meyering.net>
62521
62522         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62523         * lib/fpending.h: Rename from __fpending.h.
62524         * lib/fpending.c: Rename from __fpending.c.
62525         Include "fpending.h", not "__fpending.h".
62526         * lib/__fpending.h, lib/__fpending.c: Remove files.
62527         * modules/fpending (Files): Reflect new file names.
62528         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62529
62530 2007-09-08  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/inttypes-h.m4: Remove stub file.
62533
62534 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62535
62536         * doc/headers/stdint.texi: Discuss #include_next issue.
62537
62538 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62539
62540         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62541
62542 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62543
62544         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62545         in variable name.
62546
62547 2007-09-03  Jim Meyering  <jim@meyering.net>
62548
62549         New module: git-version-gen.
62550         * modules/git-version-gen: New file.
62551
62552         Import changes from coreutils for bootstrap script.
62553
62554         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62555
62556         bootstrap: uses rsync to download the .po files
62557         * build-aux/bootstrap (po_download_command_format): New global.
62558         (download_po_files): Use rsync.
62559         (update_po_files): Don't remove .po files after download,
62560         so future rsync runs can take advantage of the copies.
62561
62562         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62563
62564         Solve the unnecessary-.po-file-regeneration problem once and for all.
62565         * build-aux/bootstrap (download_po_files): New function, renamed from
62566         get_translations.  Now, downloads, but doesn't update LINGUAS.
62567         (update_po_files): New function.
62568
62569         bootstrap: Ignore more.
62570         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62571         uniwidth to e.g., lib/.gitignore.
62572         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62573
62574         * build-aux/bootstrap: New setting: vc_ignore.
62575         (insert_sorted_if_absent): Create $file if absent.
62576         Adapt to new, possibly empty, list: $vc_ignore.
62577
62578         bootstrap: generate more ignorable names
62579         * build-aux/bootstrap (slurp): When generating ignorable names,
62580         also map .sin to .sed, .gperf to .c, and .y to .c.
62581
62582 2007-09-03  Jim Meyering  <jim@meyering.net>
62583
62584         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62585         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62586
62587 2007-09-02  Bruno Haible  <bruno@clisp.org>
62588
62589         Fix mis-recognition of 'mcs' on QNX 6.
62590         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62591         output contains the string "Mono".
62592         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62593         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62594
62595 2007-09-01  Bruno Haible  <bruno@clisp.org>
62596
62597         Fix collision between uniwidth/* and linebreak modules.
62598         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62599         u32_width): Remove declarations.
62600         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62601         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62602         streq3, streq2, streq1, streq0): Remove functions.
62603         (STREQ): Remove macro.
62604         (is_cjk_encoding): Remove function.
62605         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62606         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62607         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62608         * NEWS: Document the change.
62609
62610 2007-09-01  Bruno Haible  <bruno@clisp.org>
62611
62612         * lib/streq.h: Add double-inclusion guard.
62613
62614 2007-09-01  Karl Berry  <karl@gnu.org>
62615
62616         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62617
62618 2007-08-28  Jim Meyering  <jim@meyering.net>
62619
62620         Rename mreadlink_with_size to areadlink_with_size.
62621         * NEWS: Document the change.
62622         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62623         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62624         * lib/mreadlink.h: Rename this to...
62625         * lib/areadlink.h: ...this.
62626         * modules/mreadlink-with-size: Rename this to...
62627         * modules/areadlink-with-size: ...this.
62628         * lib/canonicalize.c: Reflect the renaming.
62629         * modules/canonicalize: Likewise.
62630
62631 2007-08-26  Bruno Haible  <bruno@clisp.org>
62632
62633         * gnulib-tool (func_import): When deciding which files to remove,
62634         consider also dangling symbolic links.
62635         Reported by Eric Blake.
62636
62637 2007-08-26  Bruno Haible  <bruno@clisp.org>
62638
62639         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62640
62641 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62642
62643         * lib/readline.c: Don't include getline.h, the prototype is now
62644         found in stdio.h.
62645
62646 2007-08-23  Jim Meyering  <jim@meyering.net>
62647
62648         Getdelim touchup.
62649         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62650         around the funlockfile call, since funlockfile never sets errno.
62651         Don't set errno upon failed realloc.
62652
62653 2007-08-22  Eric Blake  <ebb9@byu.net>
62654
62655         Getline touchups.
62656         * lib/getdelim.c (getdelim): Revert regression that required *n to
62657         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62658         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62659         getdelim, rather than whether implementation is missing.
62660         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62661         * lib/stdio_.h (getline): Also declare if replacement is
62662         required.
62663         * doc/functions/getdelim.texi: New file.
62664         * doc/functions/getline.texi: Likewise.
62665         * doc/gnulib.texi (Function Substitutes): Add new files.
62666         Reported by Bruno Haible.
62667
62668 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62669
62670         * users.txt: Add Guile.
62671
62672 2007-08-22  Eric Blake  <ebb9@byu.net>
62673
62674         * tests/test-getdelim.c (main): Use remove, not unlink.
62675         * tests/test-getline.c (main): Likewise.
62676
62677         Move getline and getdelim into stdio.h, per POSIX 200x.
62678         * modules/getline (Files): Remove getline.h.
62679         (Depends-on): Add stdio.
62680         (configure.ac): Add module indicator.
62681         * modules/getdelim (Files): Remove getdelim.h.
62682         (Depends-on): Add stdio.
62683         (configure.ac): Add module indicator.
62684         * modules/stdio (Makefile.am): Work with new indicators.
62685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62687         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62688         * lib/getdelim.h: Delete.
62689         * lib/getline.h: Delete.
62690         * lib/stdio_.h (getdelim, getline): Declare.
62691         * modules/getdelim-tests: New module.
62692         * modules/getline-tests: Likewise.
62693         * tests/test-getdelim.c: New file.
62694         * tests/test-getline.c: Likewise.
62695         * NEWS: Document the change.
62696         * lib/getline.c: Update choice of header.
62697         * lib/csharpcomp.c: Likewise.
62698         * lib/getpass.c: Likewise.
62699         * lib/javacomp.c: Likewise.
62700         * lib/javaversion.c: Likewise.
62701         * lib/yesno.c: Likewise.
62702         * lib/getdelim.c: Likewise.
62703         (getdelim): Set errno on failure, and avoid memory leak.
62704
62705 2007-08-19  Bruno Haible  <bruno@clisp.org>
62706
62707         * modules/closein (Depends-on): Add freadahead.
62708         * lib/closein.c: Include freadahead.h.
62709         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62710         is zero.
62711
62712 2007-08-19  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/freadahead-tests: New file.
62715         * tests/test-freadahead.sh: New file.
62716         * tests/test-freadahead.c: New file.
62717
62718         * modules/freadahead: New file.
62719         * lib/freadahead.h: New file.
62720         * lib/freadahead.c: New file.
62721         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62722         fbufmode, fpurge, freadable, fwritable.
62723
62724 2007-08-19  Eric Blake  <ebb9@byu.net>
62725
62726         Test yesno in combination with closein.
62727         * lib/yesno.c (yesno): Document use of stdin.
62728         * modules/yesno-tests (Files): New module.
62729         * tests/test-yesno.c (main): New file.
62730         * tests/test-yesno.sh: Likewise.
62731
62732 2007-08-19  Bruno Haible  <bruno@clisp.org>
62733
62734         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62735         * lib/fseeko.c (rpl_fseeko): Likewise.
62736         * lib/fseterr.c (fseterr): Likewise.
62737
62738 2007-08-19  Bruno Haible  <bruno@clisp.org>
62739
62740         * tests/test-lseek.c (main): Disable a test for BeOS.
62741         * doc/functions/lseek.texi: Document the BeOS bug.
62742
62743 2007-08-19  Bruno Haible  <bruno@clisp.org>
62744             Eric Blake  <ebb9@byu.net>
62745
62746         * lib/lseek.c: Include <sys/stat.h>.
62747         (rpl_lseek): Add workaround code also for Unix platforms.
62748         Needed for BeOS.
62749         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62750         * doc/functions/lseek.texi: Document BeOS definiency.
62751
62752 2007-08-18  Bruno Haible  <bruno@clisp.org>
62753
62754         * modules/fstrcmp-tests: New file.
62755         * tests/test-fstrcmp.c: New file.
62756
62757 2007-08-18  Bruno Haible  <bruno@clisp.org>
62758
62759         * modules/fstrcmp: New file, from GNU gettext with modifications.
62760         * lib/fstrcmp.h: New file, from GNU gettext.
62761         * lib/fstrcmp.c: New file, from GNU gettext.
62762         * MODULES.html.sh (String handling): Add fstrcmp.
62763
62764 2007-08-18  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62767         'bool'.
62768         (diag, compareseq): Remove const from the ctxt argument.
62769         (USE_HEURISTIC): Undefine at the end.
62770
62771 2007-08-18  Jim Meyering  <jim@meyering.net>
62772
62773         New file: lib/idcache.h
62774         * NEWS: Mention the addition.
62775         * modules/idcache (Files): Add lib/idcache.h
62776         * lib/idcache.c: Include "idcache.h".
62777         Don't include <sys/types.h>.
62778         Add a FIXME comment.
62779         Move file-scoped "static" declarations to the top.
62780         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62781
62782 2007-08-17  Bruno Haible  <bruno@clisp.org>
62783         and Paul Eggert  <eggert@cs.ucla.edu>
62784
62785         * MODULES.html.sh: Add diffseq.
62786         * modules/diffseq: New file.
62787         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62788         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62789
62790 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         Import changes from coreutils for bootstrap script.
62793
62794         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * build-aux/bootstrap (slurp): Work even in environments where
62797         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62798         current code does not slurp files whose names start with ".", and
62799         this looks like it might be a troublesome area.
62800
62801         2007-07-11  Jim Meyering  <jim@meyering.net>
62802
62803         If there's a GPL vN copyright comment, require that N == 3.
62804
62805         2007-07-08  Jim Meyering  <jim@meyering.net>
62806
62807         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62808         * build-aux/bootstrap (mam_template): Move definition out of loop.
62809
62810         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62811
62812         * build-aux/bootstrap (symlink_to_dir): Rename function from
62813         symlink_to_gnulib.  Add a directory parameter.  Update all
62814         callers.
62815         (cp_mark_as_generated): Also check for -- and link to -- files in
62816         gl/.
62817
62818         2007-07-08  Jim Meyering  <jim@meyering.net>
62819
62820         Adapt to deeper hierarchy in gnulib.
62821         * build-aux/bootstrap (symlink_to_dir): If the destination
62822         directory doesn't exist, create it. This is required at least for
62823         "lib/uniwidth/cjk.h".
62824
62825         2007-05-15  Jim Meyering  <jim@meyering.net>
62826
62827         * build-aux/bootstrap: Now that generated Makefile.am files
62828         are no longer under version control, they must be created at
62829         bootstrap time.
62830
62831 2007-08-14  Ben Pfaff  <blp@gnu.org>
62832
62833         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62834
62835 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62838         given the changes below.
62839         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62840         even on hosts that have padding bits beyond the supported 64.
62841
62842 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62843
62844         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62845         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62846         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62847         depends on it.
62848         (xstrtol_error): Remove.
62849         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62850         but with a different signature.
62851         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62852         * lib/xstrtol-error.c: Include exitfail.h.
62853         (xstrtol_fatal): New function, with a different signature from the
62854         old xstrtol_error, so that the caller need not worry about passing
62855         in an exit status, or about storage management of the option argument.
62856         (xstrtol_error): Now a static function.  Redo signature to
62857         implement xstrtol_fatal.  Output the correct number of hyphens in
62858         front of the option so that the caller need not worry about
62859         storage management.
62860         (N_): New macro.
62861         (_): Remove; not used now.
62862         * modules/xstrtol: Depend on getopt.
62863         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62864         of old STRTOL_FATAL_ERROR macro.
62865         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62866         of test program.
62867         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62868         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62869
62870 2007-08-08  Eric Blake  <ebb9@byu.net>
62871
62872         * lib/xstrtol-error.c: Add missing include.
62873
62874         Move xstrtol messages into gnulib domain, when --pobase is used.
62875         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62876         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62877         * modules/xstrtol (Files): Distribute new file.
62878         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62879         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62880         * tests/test-xstrtol.c: ...into new file.
62881         * tests/test-xstrtoul.c: Also test xstrtoul.
62882         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62883         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62884         * tests/test-xstrtol.sh: Drive the tests.
62885         * tests/test-xstrtoimax.sh: Likewise.
62886         * tests/test-xstrtoumax.sh: Likewise.
62887         * modules/xstrtol-tests: New module.
62888         * modules/xstrtoimax-tests: Likewise.
62889         * modules/xstrtoumax-tests: Likewise.
62890
62891 2007-08-08  Jim Meyering  <jim@meyering.net>
62892
62893         New function: mfile_name_concat.
62894         * lib/filenamecat.c (mfile_name_concat): New function, just like
62895         file_name_concat, but return NULL upon failure rather than exiting
62896         with a diagnostic.
62897         * lib/filenamecat.h: Declare it.
62898
62899 2007-08-07  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62902         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62903         warning from gcc.
62904         Reported by Eric Blake.
62905
62906 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62907
62908         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62909         * modules/crypto/arcfour (License): Likewise.
62910         * modules/crypto/des-tests (License): Likewise.
62911         * modules/crypto/gc-arctwo-tests (License): Likewise.
62912         * modules/crypto/gc-des-tests (License): Likewise.
62913         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62914         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62915         * modules/crypto/gc-md2-tests (License): Likewise.
62916         * modules/crypto/gc-md4-tests (License): Likewise.
62917         * modules/crypto/gc-md5-tests (License): Likewise.
62918         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62919         * modules/crypto/gc-rijndael-tests (License): Likewise.
62920         * modules/crypto/gc-sha1-tests (License): Likewise.
62921         * modules/crypto/gc-tests (License): Likewise.
62922         * modules/crypto/hmac-md5 (License): Likewise.
62923         * modules/crypto/hmac-sha1 (License): Likewise.
62924         * modules/crypto/md2-tests (License): Likewise.
62925         * modules/crypto/md4-tests (License): Likewise.
62926         * modules/crypto/md5 (License): Likewise.
62927         * modules/crypto/rijndael (License): Likewise.
62928         * modules/crypto/sha1 (License): Likewise.
62929         * modules/memxor (License): Likewise.
62930
62931 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62932         and Bruno Haible  <bruno@clisp.org>
62933
62934         * NEWS: Describe interface changes to human, xstrtol.
62935         * lib/human.h: Include <xstrtol.h>.
62936         (human_options): Return enum strtol_error, not int.  Remove
62937         bool arg; take int * instead.
62938         * lib/human.c: Don't include "gettext.h".
62939         (_): Remove; no longer used.
62940         Don't include <xstrtol.h>, since human.h does it.
62941         (human_options): Adjust to abovementioned interface changes.
62942         Do not report error to stderr; that's now the caller's
62943         responsibility.
62944         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62945         interface change.
62946         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62947         Str, Argument_type_string.  All uses changed.  Put " argument"
62948         in diagnostics to make them clearer.  Change wording of suffix
62949         message for clarity.
62950         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62951         Argument_type_string.
62952         (STRTOL_FATAL_WARN): Remove; no longer used.
62953         * modules/human (Depends-on): Remove gettext-h.
62954
62955 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62956
62957         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62958
62959 2007-07-31  Bruno Haible  <bruno@clisp.org>
62960
62961         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62962         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62963         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62964
62965 2007-07-31  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62968         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62969
62970 2007-07-30  Bruno Haible  <bruno@clisp.org>
62971
62972         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62973         * modules/c-ctype (License): Likewise.
62974         * modules/c-strcase (License): Likewise.
62975         * modules/check-version (License): Likewise.
62976         * modules/iconv (License): Likewise.
62977         * modules/iconv_open (License): Likewise.
62978         * modules/read-file (License): Likewise.
62979         * modules/striconv (License): Likewise.
62980         * modules/strverscmp (License): Likewise.
62981         * modules/vasprintf (License): Likewise.
62982         * modules/crypto/des (License): Likewise.
62983         * modules/crypto/gc (License): Likewise.
62984         * modules/crypto/gc-arcfour (License): Likewise.
62985         * modules/crypto/gc-arctwo (License): Likewise.
62986         * modules/crypto/gc-des (License): Likewise.
62987         * modules/crypto/gc-hmac-md5 (License): Likewise.
62988         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62989         * modules/crypto/gc-md2 (License): Likewise.
62990         * modules/crypto/gc-md4 (License): Likewise.
62991         * modules/crypto/gc-md5 (License): Likewise.
62992         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62993         * modules/crypto/gc-random (License): Likewise.
62994         * modules/crypto/gc-rijndael (License): Likewise.
62995         * modules/crypto/gc-sha1 (License): Likewise.
62996         * modules/crypto/md2 (License): Likewise.
62997         * modules/crypto/md4 (License): Likewise.
62998
62999 2007-07-30  Jim Meyering  <jim@meyering.net>
63000
63001         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63002         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63003         it has valid stat data.  This bug would cause du not to count the
63004         sizes of inaccessible directories.
63005         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63006         in <http://bugzilla.redhat.com/250077>.
63007
63008 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63009             Bruno Haible  <bruno@clisp.org>
63010
63011         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63012         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63013         #include_next, gives a diagnostic about it, but reports no error in
63014         the exit code.
63015         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63016
63017 2007-07-24  Ben Pfaff  <blp@gnu.org>
63018
63019         Improve name: "count-one-bits" is better than "popcount".
63020         * MODULES.html.sh: Update name.
63021         * lib/popcount.h: Renamed lib/count-one-bits.h.
63022         (popcount): Renamed count_one_bits.
63023         (popcountl): Renamed count_one_bits_l.
63024         (popcountll): Renamed count_one_bits_ll.
63025         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63026         * modules/popcount: Renamed module/count-one-bits.
63027         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63028         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63029
63030 2007-07-23  Ben Pfaff  <blp@gnu.org>
63031
63032         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63033         better code generation, and add U to large constants to avoid
63034         warnings, in non-GCC case.
63035         Suggested by Bruno Haible.
63036
63037 2007-07-23  Ben Pfaff  <blp@gnu.org>
63038
63039         * lib/popcount.h: Use verify_true instead of if...abort.
63040         * modules/popcount: Depend on verify module.
63041         Suggested by Jim Meyering.
63042
63043 2007-07-23  Bruno Haible  <bruno@clisp.org>
63044
63045         * gnulib-tool (func_import): Create a .cvsignore file also when the
63046         directory is not yet in CVS but the toplevel directory is. When
63047         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63048         Reported by Karl Berry.
63049
63050 2007-07-22  Ben Pfaff  <blp@gnu.org>
63051
63052         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63053         case.
63054         Suggested by Eric Blake.
63055
63056 2007-07-22  Ben Pfaff  <blp@gnu.org>
63057
63058         New module: popcount.
63059         * MODULES.html.sh: Add popcount.
63060         * modules/popcount: New file.
63061         * modules/popcount-tests: New file.
63062         * tests/test-popcount.c: New file.
63063         * lib/popcount.h: New file.
63064         * m4/popcount.m4: New file.
63065
63066 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * build-aux/announce-gen: Update to GPLv3.
63069
63070         * build-aux/config.guess: Update from config.
63071
63072 2007-07-21  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63075         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63076
63077 2007-07-20  Jim Meyering  <jim@meyering.net>
63078
63079         * check-module: Diagnose a self-dependency.
63080
63081 2007-07-19  Bruno Haible  <bruno@clisp.org>
63082
63083         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63084         empty.
63085         Reported by Eric Blake.
63086
63087 2007-07-18  Bruno Haible  <bruno@clisp.org>
63088
63089         * gnulib-tool: New options --po-base, --po-domain.
63090         (func_usage): Document them.
63091         (pobase, po_domain): New variables.
63092         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63093         DEFAULT_TEXT_DOMAIN.
63094         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63095         (func_import): Consider pobase and po_domain. Create a po/ directory.
63096         (func_create_testdir): Set pobase and po_domain to empty.
63097         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63098         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63099
63100 2007-07-18  Bruno Haible  <bruno@clisp.org>
63101
63102         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63103         EXTRA_DIST augmentation for files in build-aux/.
63104
63105 2007-07-16  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63108         * modules/getdelim (License): Likewise.
63109
63110 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63111
63112         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63113         * modules/d-type (License): Likewise.
63114         * modules/extensions (License): Likewise.
63115         * modules/fnmatch (License): Likewise.
63116         * modules/fseeko (License): Likewise.
63117         * modules/getaddrinfo (License): Likewise.
63118         * modules/getline (License): Likewise.
63119         * modules/getlogin_r (License): Likewise.
63120         * modules/getpass (License): Likewise.
63121         * modules/gettimeofday (License): Likewise.
63122         * modules/glob (License): Likewise.
63123         * modules/inet_ntop (License): Likewise.
63124         * modules/malloc (License): Likewise.
63125         * modules/malloca (License): Likewise.
63126         * modules/memmem (License): Likewise.
63127         * modules/mempcpy (License): Likewise.
63128         * modules/memset (License): Likewise.
63129         * modules/minmax (License): Likewise.
63130         * modules/mktime (License): Likewise.
63131         * modules/netinet_in (License): Likewise.
63132         * modules/pathmax (License): Likewise.
63133         * modules/poll (License): Likewise.
63134         * modules/regex (License): Likewise.
63135         * modules/snprintf (License): Likewise.
63136         * modules/stdbool (License): Likewise.
63137         * modules/stdint (License): Likewise.
63138         * modules/stdio (License): Likewise.
63139         * modules/strcase (License): Likewise.
63140         * modules/strcasestr (License): Likewise.
63141         * modules/strdup (License): Likewise.
63142         * modules/string (License): Likewise.
63143         * modules/strndup (License): Likewise.
63144         * modules/strnlen (License): Likewise.
63145         * modules/strpbrk (License): Likewise.
63146         * modules/strptime (License): Likewise.
63147         * modules/strsep (License): Likewise.
63148         * modules/sys_select (License): Likewise.
63149         * modules/sys_socket (License): Likewise.
63150         * modules/sys_stat (License): Likewise.
63151         * modules/sys_time (License): Likewise.
63152         * modules/time (License): Likewise.
63153         * modules/time_r (License): Likewise.
63154         * modules/timegm (License): Likewise.
63155         * modules/unistd (License): Likewise.
63156         * modules/vsnprintf (License): Likewise.
63157         * modules/wctype (License): Likewise.
63158
63159 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63160
63161         * modules/argz (License): LGPLv2+.
63162
63163 2007-07-15  Karl Berry  <karl@gnu.org>
63164
63165         * doc/gnulib.texi: revise node structure per new fdl.texi.
63166
63167 2007-07-14  Bruno Haible  <bruno@clisp.org>
63168
63169         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63170         the output file.
63171         * lib/uniname/uninames.h: Regenerated.
63172
63173 2007-07-14  Karl Berry  <karl@gnu.org>
63174
63175         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63176         omitting sectioning and index commands.
63177
63178 2007-07-13  Bruno Haible  <bruno@clisp.org>
63179
63180         New gnulib-tool option --more-symlinks.
63181         * gnulib-tool (func_usage): Document --more-symlinks.
63182         (do_copyrights): New variable.
63183         Recognize option --more-symlinks.
63184         (func_import): Don't add a copyright notice transform to
63185         sed_transform_lib_file if do_copyrights is empty.
63186
63187 2007-07-13  Bruno Haible  <bruno@clisp.org>
63188
63189         * lib/vasnprintf.c (decimal_point_char): Define also if
63190         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63191         && !NEED_PRINTF_DIRECTIVE_A.
63192         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63193         Gary V. Vaughan <gary@gnu.org>.
63194
63195 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * lib/inttypes_.h: Undo previous change, since it was fixed
63198         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63199
63200 2007-07-13  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63203         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63204
63205 2007-07-13  Jim Meyering  <jim@meyering.net>
63206
63207         df: Don't fail for Tru64's "file-on-file mount".
63208         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63209         so we fall through and use statfs instead.  Details here:
63210         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63211         Reported by Albert Chin.
63212
63213 2007-07-13  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63216         * modules/configmake (License): Likewise.
63217         * modules/gettext (License): Likewise.
63218         * modules/gettext-h (License): Likewise.
63219         * modules/include_next (License): Likewise.
63220         * modules/link-warning (License): Likewise.
63221         * modules/localcharset (License): Likewise.
63222         * modules/localename (License): Likewise.
63223         * modules/lock (License): Likewise.
63224         * modules/relocatable-lib-lgpl (License): Likewise.
63225         * modules/size_max (License): Likewise.
63226         * modules/vasnprintf (License): Likewise.
63227         * modules/wchar (License): Likewise.
63228         * modules/xsize (License): Likewise.
63229
63230 2007-07-13  Bruno Haible  <bruno@clisp.org>
63231
63232         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63233         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63234
63235 2007-07-12  Bruno Haible  <bruno@clisp.org>
63236
63237         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63238         in the modules files.
63239
63240 2007-07-11  Karl Berry  <karl@gnu.org>
63241
63242         * MODULES.html.sh (func_module): use
63243          sed -e '\|^'"${includefile}"'$|d'
63244          instead of /.../d, to avoid errors on $includefile's containing /.
63245
63246 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63247
63248         * gnulib-tool (func_import): Avoid duplication of --avoid
63249         statements
63250         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63251         names to `_' in variable names.
63252
63253 2007-07-10  Eric Blake  <ebb9@byu.net>
63254
63255         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63256         * NEWS: Document this change.
63257
63258 2007-07-08  Bruno Haible  <bruno@clisp.org>
63259
63260         Update to Unicode 5.0.
63261         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63262         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63263         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63264         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63265         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63266         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63267         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63268         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63269         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63270         U+10A3F, U+1D242..U+1D244.
63271         (nonspacing_table_ind): Update.
63272         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63273         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63274
63275 2007-07-08  Bruno Haible  <bruno@clisp.org>
63276
63277         Update to Unicode 5.0.
63278         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63279         code transform. Extend the name index field of unicode_name_to_code and
63280         unicode_code_to_name from 16 to 24 bits.
63281         * lib/uniname/uniname.c (unicode_character_name,
63282         unicode_name_character): Add the range 0x12xxx to the code transform.
63283         * lib/uniname/uninames.h: Regenerated.
63284         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63285
63286 2007-07-07  Bruno Haible  <bruno@clisp.org>
63287
63288         * modules/wcwidth-tests: New file.
63289         * tests/test-wcwidth.c: New file.
63290
63291         Work around MacOS X wcwidth() bug.
63292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63293         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63294         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63295         original wcwidth in non-UTF-8 locales.
63296         * modules/wcwidth (Depends-on): Add localcharset, streq,
63297         uniwidth/width.
63298         * doc/functions/wcwidth.texi: Update.
63299
63300 2007-07-07  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63303         (wcwidth): New declaration.
63304         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63305         macros.
63306         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63307         here. Prepare for creating <wchar.h> unconditionally.
63308         * modules/wchar (Depends-on): Add link-warning.
63309         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63310         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63311         * lib/wcwidth.h: Remove file.
63312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63313         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63314         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63315         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63316         (Include): Replace wcwidth.h with <wchar.h>.
63317         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63318         * lib/mbchar.h: Don't include wcwidth.h.
63319         * lib/mbswidth.c: Likewise.
63320         * NEWS: Mention the change.
63321
63322 2007-07-07  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63325         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63326         definition with an external declaration.
63327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63328         defined as a function. Remove AC_C_INLINE requirement.
63329         * modules/wcwidth (Files): Add lib/wcwidth.c.
63330         (Makefile.am): Remove redundant statement.
63331
63332 2007-07-07  Bruno Haible  <bruno@clisp.org>
63333
63334         * MODULES.html.sh (Unicode string functions): Add the new modules.
63335
63336         * tests/uniwidth/test-u32-strwidth.c: New file.
63337         * modules/uniwidth/u32-strwidth-tests: New file.
63338
63339         * lib/uniwidth/u32-strwidth.c: New file.
63340         * modules/uniwidth/u32-strwidth: New file.
63341
63342         * tests/uniwidth/test-u16-strwidth.c: New file.
63343         * modules/uniwidth/u16-strwidth-tests: New file.
63344
63345         * lib/uniwidth/u16-strwidth.c: New file.
63346         * modules/uniwidth/u16-strwidth: New file.
63347
63348         * tests/uniwidth/test-u8-strwidth.c: New file.
63349         * modules/uniwidth/u8-strwidth-tests: New file.
63350
63351         * lib/uniwidth/u8-strwidth.c: New file.
63352         * modules/uniwidth/u8-strwidth: New file.
63353
63354         * tests/uniwidth/test-u32-width.c: New file.
63355         * modules/uniwidth/u32-width-tests: New file.
63356
63357         * lib/uniwidth/u32-width.c: New file.
63358         * modules/uniwidth/u32-width: New file.
63359
63360         * tests/uniwidth/test-u16-width.c: New file.
63361         * modules/uniwidth/u16-width-tests: New file.
63362
63363         * lib/uniwidth/u16-width.c: New file.
63364         * modules/uniwidth/u16-width: New file.
63365
63366         * tests/uniwidth/test-u8-width.c: New file.
63367         * modules/uniwidth/u8-width-tests: New file.
63368
63369         * lib/uniwidth/u8-width.c: New file.
63370         * modules/uniwidth/u8-width: New file.
63371
63372         * tests/uniwidth/test-uc_width.c: New file.
63373         * modules/uniwidth/width-tests: New file.
63374
63375         * lib/uniwidth/width.c: New file, from GNU libiconv.
63376         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63377         * modules/uniwidth/width: New file.
63378
63379         * lib/uniwidth.h: New file, from GNU libiconv.
63380         * modules/uniwidth/base: New file.
63381
63382 2007-07-07  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/uniname.h: New file, from GNU gettext.
63385         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63386         * lib/uniname/uninames.h: New file, from GNU gettext.
63387         * lib/uniname/uniname.c: New file, from GNU gettext.
63388         * tests/uniname/test-uninames.sh: New file.
63389         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63390         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63391         * modules/uniname/base: New file.
63392         * modules/uniname/uniname: New file.
63393         * modules/uniname/uniname-tests: New file.
63394         * MODULES.html.sh (Unicode string functions): Add the new modules.
63395
63396 2007-07-06  Bruno Haible  <bruno@clisp.org>
63397
63398         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63399
63400 2007-07-06  Bruno Haible  <bruno@clisp.org>
63401
63402         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63403         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63404         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63405         include <sys/time.h>.
63406         Reported by Eric Blake.
63407
63408 2007-07-06  Eric Blake  <ebb9@byu.net>
63409
63410         Fix testing canonicalize on cygwin.
63411         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63412         Revert patch from 2007-06-19.
63413         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63414         canonicalize module is also in use.
63415         * tests/test-canonicalize.c: New file.
63416         * tests/test-canonicalize.sh: Likewise.
63417         * modules/canonicalize-tests: Likewise.
63418
63419 2007-07-06  Jim Meyering  <jim@meyering.net>
63420
63421         * lib/getugroups.c (getugroups): Detect getgrent failure.
63422         Adjust comment to reflect reality: this function may return -1.
63423
63424 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63425
63426         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63427         the new TP address.
63428         (usage): Fix typo
63429         (gnulib_mk): New variable.
63430
63431 2007-07-05  Jim Meyering  <jim@meyering.net>
63432
63433         Don't let endgrent clobber errno, no matter how improbable.
63434         * lib/getugroups.c (getugroups): Save and restore errno around
63435         endgrent call.
63436
63437         Close the group DB even when failing with 2^31 or more members.
63438         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63439
63440 2007-07-04  Jim Meyering  <jim@meyering.net>
63441
63442         * lib/getugroups.h: New file.
63443         * lib/getugroups.c: Include "getugroups.h".
63444         Remove uses of "register" keyword.
63445         Move local variable, "cp", down into scope where used.
63446         Give "username" parameter the "const" attribute.
63447         * modules/getugroups (Files): Add lib/getugroups.h
63448
63449 2007-07-04  Karl Berry  <karl@gnu.org>
63450
63451         * MODULES.html.sh (func_all_modules): Complete rename of
63452         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63453
63454 2007-07-02  Bruno Haible  <bruno@clisp.org>
63455
63456         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63457         mode, when inttypes.h comes from gnulib.
63458         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63459
63460 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63461
63462         * NEWS: Mention lgpl module name change.
63463
63464         * modules/lgpl-2.1: Renamed from lgpl.
63465
63466         * NEWS: Mention gpl module name change.
63467
63468         * modules/gpl-3.0: New file, based on gpl-2.0.
63469
63470         * modules/gpl-2.0: Renamed from gpl.
63471
63472         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63473         doc/gpl-2.0.texi.
63474
63475 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63478         #define __STDC_LIMIT_MACROS temporarily while including
63479         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63480         Problem reported by Joel E. Denny in
63481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63482
63483 2007-07-01  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/unistdio.h: New file.
63486         * lib/unistdio/u-asnprintf.h: New file.
63487         * lib/unistdio/u-asprintf.h: New file.
63488         * lib/unistdio/u-printf-args.c: New file.
63489         * lib/unistdio/u-printf-args.h: New file.
63490         * lib/unistdio/u-printf-parse.h: New file.
63491         * lib/unistdio/u-snprintf.h: New file.
63492         * lib/unistdio/u-sprintf.h: New file.
63493         * lib/unistdio/u-vasprintf.h: New file.
63494         * lib/unistdio/u-vsnprintf.h: New file.
63495         * lib/unistdio/u-vsprintf.h: New file.
63496         * lib/unistdio/ulc-asnprintf.c: New file.
63497         * lib/unistdio/ulc-asprintf.c: New file.
63498         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63499         * lib/unistdio/ulc-printf-parse.c: New file.
63500         * lib/unistdio/ulc-snprintf.c: New file.
63501         * lib/unistdio/ulc-sprintf.c: New file.
63502         * lib/unistdio/ulc-vasnprintf.c: New file.
63503         * lib/unistdio/ulc-vasprintf.c: New file.
63504         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63505         * lib/unistdio/ulc-vsnprintf.c: New file.
63506         * lib/unistdio/ulc-vsprintf.c: New file.
63507         * lib/unistdio/u8-asnprintf.c: New file.
63508         * lib/unistdio/u8-asprintf.c: New file.
63509         * lib/unistdio/u8-printf-parse.c: New file.
63510         * lib/unistdio/u8-snprintf.c: New file.
63511         * lib/unistdio/u8-sprintf.c: New file.
63512         * lib/unistdio/u8-vasnprintf.c: New file.
63513         * lib/unistdio/u8-vasprintf.c: New file.
63514         * lib/unistdio/u8-vsnprintf.c: New file.
63515         * lib/unistdio/u8-vsprintf.c: New file.
63516         * lib/unistdio/u8-u8-asnprintf.c: New file.
63517         * lib/unistdio/u8-u8-asprintf.c: New file.
63518         * lib/unistdio/u8-u8-snprintf.c: New file.
63519         * lib/unistdio/u8-u8-sprintf.c: New file.
63520         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63521         * lib/unistdio/u8-u8-vasprintf.c: New file.
63522         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63523         * lib/unistdio/u8-u8-vsprintf.c: New file.
63524         * lib/unistdio/u16-asnprintf.c: New file.
63525         * lib/unistdio/u16-asprintf.c: New file.
63526         * lib/unistdio/u16-printf-parse.c: New file.
63527         * lib/unistdio/u16-snprintf.c: New file.
63528         * lib/unistdio/u16-sprintf.c: New file.
63529         * lib/unistdio/u16-vasnprintf.c: New file.
63530         * lib/unistdio/u16-vasprintf.c: New file.
63531         * lib/unistdio/u16-vsnprintf.c: New file.
63532         * lib/unistdio/u16-vsprintf.c: New file.
63533         * lib/unistdio/u16-u16-asnprintf.c: New file.
63534         * lib/unistdio/u16-u16-asprintf.c: New file.
63535         * lib/unistdio/u16-u16-snprintf.c: New file.
63536         * lib/unistdio/u16-u16-sprintf.c: New file.
63537         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63538         * lib/unistdio/u16-u16-vasprintf.c: New file.
63539         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63540         * lib/unistdio/u16-u16-vsprintf.c: New file.
63541         * lib/unistdio/u32-asnprintf.c: New file.
63542         * lib/unistdio/u32-asprintf.c: New file.
63543         * lib/unistdio/u32-printf-parse.c: New file.
63544         * lib/unistdio/u32-snprintf.c: New file.
63545         * lib/unistdio/u32-sprintf.c: New file.
63546         * lib/unistdio/u32-vasnprintf.c: New file.
63547         * lib/unistdio/u32-vasprintf.c: New file.
63548         * lib/unistdio/u32-vsnprintf.c: New file.
63549         * lib/unistdio/u32-vsprintf.c: New file.
63550         * lib/unistdio/u32-u32-asnprintf.c: New file.
63551         * lib/unistdio/u32-u32-asprintf.c: New file.
63552         * lib/unistdio/u32-u32-snprintf.c: New file.
63553         * lib/unistdio/u32-u32-sprintf.c: New file.
63554         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63555         * lib/unistdio/u32-u32-vasprintf.c: New file.
63556         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63557         * lib/unistdio/u32-u32-vsprintf.c: New file.
63558         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63559         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63560         * tests/unistdio/test-ulc-printf1.h: New file.
63561         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63562         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63563         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63564         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63565         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63566         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63567         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63568         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63569         * tests/unistdio/test-u8-asnprintf1.c: New file.
63570         * tests/unistdio/test-u8-asnprintf1.h: New file.
63571         * tests/unistdio/test-u8-printf1.h: New file.
63572         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63573         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63574         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63575         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63576         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63577         * tests/unistdio/test-u8-vasprintf1.c: New file.
63578         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63579         * tests/unistdio/test-u8-vsprintf1.c: New file.
63580         * tests/unistdio/test-u16-asnprintf1.c: New file.
63581         * tests/unistdio/test-u16-asnprintf1.h: New file.
63582         * tests/unistdio/test-u16-printf1.h: New file.
63583         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63584         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63585         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63586         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63587         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63588         * tests/unistdio/test-u16-vasprintf1.c: New file.
63589         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63590         * tests/unistdio/test-u16-vsprintf1.c: New file.
63591         * tests/unistdio/test-u32-asnprintf1.c: New file.
63592         * tests/unistdio/test-u32-asnprintf1.h: New file.
63593         * tests/unistdio/test-u32-printf1.h: New file.
63594         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63595         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63596         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63597         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63598         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63599         * tests/unistdio/test-u32-vasprintf1.c: New file.
63600         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63601         * tests/unistdio/test-u32-vsprintf1.c: New file.
63602         * modules/unistdio/base: New file.
63603         * modules/unistdio/u-printf-args: New file.
63604         * modules/unistdio/ulc-asnprintf: New file.
63605         * modules/unistdio/ulc-asprintf: New file.
63606         * modules/unistdio/ulc-fprintf: New file.
63607         * modules/unistdio/ulc-printf-parse: New file.
63608         * modules/unistdio/ulc-snprintf: New file.
63609         * modules/unistdio/ulc-sprintf: New file.
63610         * modules/unistdio/ulc-vasnprintf: New file.
63611         * modules/unistdio/ulc-vasprintf: New file.
63612         * modules/unistdio/ulc-vfprintf: New file.
63613         * modules/unistdio/ulc-vsnprintf: New file.
63614         * modules/unistdio/ulc-vsprintf: New file.
63615         * modules/unistdio/u8-asnprintf: New file.
63616         * modules/unistdio/u8-asprintf: New file.
63617         * modules/unistdio/u8-printf-parse: New file.
63618         * modules/unistdio/u8-snprintf: New file.
63619         * modules/unistdio/u8-sprintf: New file.
63620         * modules/unistdio/u8-vasnprintf: New file.
63621         * modules/unistdio/u8-vasprintf: New file.
63622         * modules/unistdio/u8-vsnprintf: New file.
63623         * modules/unistdio/u8-vsprintf: New file.
63624         * modules/unistdio/u8-u8-asnprintf: New file.
63625         * modules/unistdio/u8-u8-asprintf: New file.
63626         * modules/unistdio/u8-u8-snprintf: New file.
63627         * modules/unistdio/u8-u8-sprintf: New file.
63628         * modules/unistdio/u8-u8-vasnprintf: New file.
63629         * modules/unistdio/u8-u8-vasprintf: New file.
63630         * modules/unistdio/u8-u8-vsnprintf: New file.
63631         * modules/unistdio/u8-u8-vsprintf: New file.
63632         * modules/unistdio/u16-asnprintf: New file.
63633         * modules/unistdio/u16-asprintf: New file.
63634         * modules/unistdio/u16-printf-parse: New file.
63635         * modules/unistdio/u16-snprintf: New file.
63636         * modules/unistdio/u16-sprintf: New file.
63637         * modules/unistdio/u16-vasnprintf: New file.
63638         * modules/unistdio/u16-vasprintf: New file.
63639         * modules/unistdio/u16-vsnprintf: New file.
63640         * modules/unistdio/u16-vsprintf: New file.
63641         * modules/unistdio/u16-u16-asnprintf: New file.
63642         * modules/unistdio/u16-u16-asprintf: New file.
63643         * modules/unistdio/u16-u16-snprintf: New file.
63644         * modules/unistdio/u16-u16-sprintf: New file.
63645         * modules/unistdio/u16-u16-vasnprintf: New file.
63646         * modules/unistdio/u16-u16-vasprintf: New file.
63647         * modules/unistdio/u16-u16-vsnprintf: New file.
63648         * modules/unistdio/u16-u16-vsprintf: New file.
63649         * modules/unistdio/u32-asnprintf: New file.
63650         * modules/unistdio/u32-asprintf: New file.
63651         * modules/unistdio/u32-printf-parse: New file.
63652         * modules/unistdio/u32-snprintf: New file.
63653         * modules/unistdio/u32-sprintf: New file.
63654         * modules/unistdio/u32-vasnprintf: New file.
63655         * modules/unistdio/u32-vasprintf: New file.
63656         * modules/unistdio/u32-vsnprintf: New file.
63657         * modules/unistdio/u32-vsprintf: New file.
63658         * modules/unistdio/u32-u32-asnprintf: New file.
63659         * modules/unistdio/u32-u32-asprintf: New file.
63660         * modules/unistdio/u32-u32-snprintf: New file.
63661         * modules/unistdio/u32-u32-sprintf: New file.
63662         * modules/unistdio/u32-u32-vasnprintf: New file.
63663         * modules/unistdio/u32-u32-vasprintf: New file.
63664         * modules/unistdio/u32-u32-vsnprintf: New file.
63665         * modules/unistdio/u32-u32-vsprintf: New file.
63666         * modules/unistdio/ulc-asnprintf-tests: New file.
63667         * modules/unistdio/ulc-vasnprintf-tests: New file.
63668         * modules/unistdio/ulc-vasprintf-tests: New file.
63669         * modules/unistdio/ulc-vsnprintf-tests: New file.
63670         * modules/unistdio/ulc-vsprintf-tests: New file.
63671         * modules/unistdio/u8-asnprintf-tests: New file.
63672         * modules/unistdio/u8-vasnprintf-tests: New file.
63673         * modules/unistdio/u8-vasprintf-tests: New file.
63674         * modules/unistdio/u8-vsnprintf-tests: New file.
63675         * modules/unistdio/u8-vsprintf-tests: New file.
63676         * modules/unistdio/u16-asnprintf-tests: New file.
63677         * modules/unistdio/u16-vasnprintf-tests: New file.
63678         * modules/unistdio/u16-vasprintf-tests: New file.
63679         * modules/unistdio/u16-vsnprintf-tests: New file.
63680         * modules/unistdio/u16-vsprintf-tests: New file.
63681         * modules/unistdio/u32-asnprintf-tests: New file.
63682         * modules/unistdio/u32-vasnprintf-tests: New file.
63683         * modules/unistdio/u32-vasprintf-tests: New file.
63684         * modules/unistdio/u32-vsnprintf-tests: New file.
63685         * modules/unistdio/u32-vsprintf-tests: New file.
63686         * MODULES.html.sh (Unicode string functions): Add the new modules.
63687
63688 2007-07-01  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/sprintf.c (sprintf): Limit the available length estimation,
63691         to avoid address wraparound.
63692         * lib/vsprintf.c (vsprintf): Likewise.
63693         * modules/sprintf-posix (Dependencies): Add stdint.
63694         * modules/vsprintf-posix (Dependencies): Likewise.
63695
63696 2007-07-01  Bruno Haible  <bruno@clisp.org>
63697
63698         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63699         Windows PATH as well. Conservative double-quoting. Comments.
63700
63701 2007-07-01  Bruno Haible  <bruno@clisp.org>
63702             Eric Blake  <ebb9@byu.net>
63703             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63704
63705         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63706         empty components in $PATH, denoting '.'.
63707
63708 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63709
63710         * gnulib-tool: Fix indentation.
63711         (func_create_megatestdir): Likewise.
63712         Report by Bruno Haible.
63713
63714 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63715
63716         Sync from Automake.
63717         * build-aux/gnupload: Fix shell portability issues with for loops.
63718         Report by Karl Berry.
63719
63720 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63721
63722         * build-aux/maint.mk (POURL): Use translationproject.org.
63723
63724 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63725             Bruno Haible  <bruno@clisp.org>
63726
63727         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63728         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63729         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63730         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63731         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63732
63733 2007-06-27  Bruno Haible  <bruno@clisp.org>
63734
63735         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63736         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63737
63738 2007-06-26  Karl Berry  <karl@gnu.org>
63739
63740         * MODULES.html.sh: remove xreadlink-with-size.
63741
63742 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63745         method that I hope also handles the double-include problem noted
63746         by Bruno Haible in
63747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63748
63749 2007-06-23  Bruno Haible  <bruno@clisp.org>
63750
63751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63752         Don't let the 'mostlyclean' target fail if the last subdirectory could
63753         not be removed.
63754         Reported by Karl Berry.
63755
63756 2007-06-23  Bruno Haible  <bruno@clisp.org>
63757
63758         * gnulib-tool (echo): Add a speedier workaround for ksh.
63759         * tests/test-echo.sh: Likewise.
63760
63761 2007-06-23  Bruno Haible  <bruno@clisp.org>
63762
63763         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63764         * tests/test-echo.sh: Likewise.
63765
63766 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63767
63768         * gnulib-tool (IFS): Initialize early, so we don't set it to
63769         empty later.
63770         (self_abspathname): Rewrite algorithm to set it, reindent.
63771         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63772         (func_create_megatestdir): Merge some sed scripts.
63773
63774 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63777         exposed by Sun Studio 11 cc on Solaris 8.
63778
63779 2007-06-22  Bruno Haible  <bruno@clisp.org>
63780
63781         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63782         backslashes.
63783         * tests/test-echo.sh: New file.
63784
63785 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63786
63787         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63788         simplify `sed_replace_build_aux' scripts, they are portable but
63789         echoing them with `echo' is not.
63790         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63791
63792 2007-06-21  Karl Berry  <karl@gnu.org>
63793
63794         * config/srclist.txt: guess we can't handle the licenses via
63795         srclist at the moment.
63796
63797 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * MODULES.html.sh: Add include_next.
63800         * modules/include_next: New file.
63801
63802 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63803
63804         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63805         INCLUDE_NEXT.
63806         (gl_CHECK_NEXT_HEADERS): New macro.
63807         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63808         the obsolescent gl_ABSOLUTE_HEADER.
63809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63810         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63811         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63812         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63813         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63814         * m4/math_h.m4 (gl_MATH_H): Likewise.
63815         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63816         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63817         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63818         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63819         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63820         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63821         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63825         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63826         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63827         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63828         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63829         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63830         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63831         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63832         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63833         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63834         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63835         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63836         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63837         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63838         * lib/float_.h: Likewise.
63839         * lib/inttypes_.h: Likewise.
63840         * lib/math_.h: Likewise.
63841         * lib/search_.h: Likewise.
63842         * lib/signal_.h: Likewise.
63843         * lib/stdint_.h: Likewise.
63844         * lib/stdio_.h: Likewise.
63845         * lib/stdlib_.h: Likewise.
63846         * lib/string_.h: Likewise.
63847         * lib/sys_stat_.h: Likewise.
63848         * lib/sys_time_.h: Likewise.
63849         * lib/time_.h: Likewise.
63850         * lib/unistd_.h: Likewise.
63851         * lib/wchar_.h: Likewise.
63852         * lib/wctype_.h: Likewise.
63853         * lib/dirent_.h: Likewise.
63854         * lib/iconv_.h: Likewise.
63855         * lib/locale_.h: Likewise.
63856         * lib/netinet_in_.h: Likewise.
63857         * lib/sys_select_.h: Likewise.
63858         * lib/sys_socket_.h: Likewise.
63859         * lib/sysexits_.h: Likewise.
63860         * modules/fcntl (Depends-on): Depend on include_next, not
63861         absolute_header.
63862         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63863         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63864         * modules/fchdir: Likewise.
63865         * modules/float: Likewise.
63866         * modules/iconv_open: Likewise.
63867         * modules/inttypes: Likewise.
63868         * modules/locale: Likewise.
63869         * modules/math: Likewise.
63870         * modules/netinet_in: Likewise.
63871         * modules/search: Likewise.
63872         * modules/signal: Likewise.
63873         * modules/stdint: Likewise.
63874         * modules/stdio: Likewise.
63875         * modules/stdlib: Likewise.
63876         * modules/string: Likewise.
63877         * modules/sys_select: Likewise.
63878         * modules/sys_socket: Likewise.
63879         * modules/sys_stat: Likewise.
63880         * modules/sys_time: Likewise.
63881         * modules/sysexits: Likewise.
63882         * modules/time: Likewise.
63883         * modules/unistd: Likewise.
63884         * modules/wchar: Likewise.
63885         * modules/wctype: Likewise.
63886         * modules/sys_stat: Change maintainer to "all".
63887         * modules/unistd: Likewise.
63888
63889 2007-06-20  Karl Berry  <karl@gnu.org>
63890
63891         * config/srclist.txt: track www changes in license files.
63892
63893 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63894
63895         * build-aux/bootstrap: Remove stray dot.
63896         Make sure build_aux settings are honored when linking
63897         gnulib_extra_files.
63898
63899 2007-06-19  Eric Blake  <ebb9@byu.net>
63900
63901         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63902         Allow compilation on cygwin.
63903
63904 2007-06-19  Jim Meyering  <jim@meyering.net>
63905
63906         xreadlink-with-size: Remove module.  No longer used.
63907         Ex-callers now use xreadlink or mreadlink-with-size.
63908         * modules/xreadlink-with-size: Remove module.
63909         * lib/xreadlink-with-size.c: Remove file.
63910         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63911         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63912         just before the function definition *is* accurate.
63913
63914         Eliminate one way canonicalize_filename_mode could exit.
63915         * lib/canonicalize.c (canonicalize_filename_mode):
63916         Use mreadlink_with_size, not xreadlink_with_size.
63917
63918 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         Detect porting problems to FreeBSD/arm, which has time_t wider than
63921         long int.  Original problem reported for GNU diff by Xin Li in
63922         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63923         * modules/getdate (Depends-on): Add intprops, verify.
63924         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63925         is an integer type no wider than long int.
63926
63927 2007-06-18  Jim Meyering  <jim@meyering.net>
63928
63929         New module: mreadlink-with-size.
63930         * MODULES.html.sh: Add mreadlink-with-size.
63931         * modules/mreadlink-with-size: New module
63932         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63933         not xreadlink-with-size.
63934         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63935
63936 2007-06-16  Bruno Haible  <bruno@clisp.org>
63937
63938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63939         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63940         Reported by Gary V. Vaughan <gary@gnu.org>.
63941
63942 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63943
63944         Revamp lchown so that it lives in unistd.h where it belongs.
63945         * lib/lchown.h: Remove.
63946         * lib/dirchownmod.c: Don't include lib/lchown.h.
63947         * lib/fchownat.c: Likewise.
63948         * lib/openat.c: Likewise.
63949         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63950         does not follow symlinks.
63951         (EOPNOTSUPP): Define if not defined.
63952         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63953         is defined to 0.
63954         (lchown): New decl.
63955         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63956         Do not check for lchown decl.
63957         Set REPLACE_LCHOWN.
63958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63959         REPLACE_LCHOWN.
63960         * modules/chown: Make it clear it follows symlinks.
63961         * modules/lchown: Make it clear it doesn't follow symlinks.
63962         (Files): Remove lib/lchown.h
63963         (Depends-on): Add unistd.
63964         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63965         (Include): Include <unistd.h>, not "lchown.h".
63966         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63967         REPLACE_LCHOWN.
63968
63969 2007-06-15  Jim Meyering  <jim@meyering.net>
63970
63971         Change license (GPL to LGPL) of fsusage and dependents.
63972         * modules/fsusage (License): Change to LGPL.
63973         * modules/full-read (License): Likewise.
63974         * modules/full-write (License): Likewise.
63975         * modules/safe-read (License): Likewise.
63976         * modules/safe-write (License): Likewise.
63977
63978 2007-06-14  Ben Pfaff  <blp@gnu.org>
63979
63980         Missing part of allocsa -> malloca transition.
63981         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63982         gl_MALLOCA.
63983
63984 2007-06-12  Bruno Haible  <bruno@clisp.org>
63985
63986         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63987         to ia64, x86_64, i386.
63988         Reported by Eric Blake.
63989
63990 2007-06-12  Bruno Haible  <bruno@clisp.org>
63991
63992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63993         cross-compiling to x86_64.
63994
63995 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63998         glitch reported by Ralf Wildenhues in
63999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64000
64001         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64002         Vin Shelton.
64003
64004 2007-06-11  Bruno Haible  <bruno@clisp.org>
64005
64006         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64007         replacement string.
64008         Reported by Eric Blake.
64009
64010 2007-06-10  Bruno Haible  <bruno@clisp.org>
64011
64012         Prepare vasnprintf code for use with Unicode strings.
64013         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64014         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64015         TYPE_U32_STRING.
64016         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64017         a_u32_string variants.
64018         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64019         * lib/printf-args.c: Don't include config.h and the specification
64020         header if PRINTF_FETCHARGS is already defined.
64021         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64022         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64023         TYPE_U16_STRING, TYPE_U32_STRING.
64024         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64025         u16_directive, u16_directives, u32_directive, u32_directives): New
64026         types.
64027         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64028         New declarations.
64029         * lib/printf-parse.c: Don't include config.h and the specification
64030         header if PRINTF_PARSE is already defined. Eliminate the set of
64031         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64032         them now. Include c-ctype.h.
64033         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64034         directive and CHAR_T_ONLY_ASCII.
64035         * lib/vasnprintf.c: Don't include config.h and the specification header
64036         if VASNPRINTF is already defined.
64037         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64038         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64039         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64040         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64041         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64042         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64043         code accordingly.
64044         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64045         pad_ourselves also in this case, with the 'c' and 's' directives, and
64046         with a different notion of "width".
64047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64048
64049 2007-06-10  Bruno Haible  <bruno@clisp.org>
64050
64051         * modules/unistr/u32-mbsnlen: New file.
64052         * lib/unistr/u32-mbsnlen.c: New file.
64053
64054         * modules/unistr/u16-mbsnlen: New file.
64055         * lib/unistr/u16-mbsnlen.c: New file.
64056
64057         * modules/unistr/u8-mbsnlen: New file.
64058         * lib/unistr/u8-mbsnlen.c: New file.
64059
64060         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64061         declarations.
64062
64063 2007-06-10  Bruno Haible  <bruno@clisp.org>
64064
64065         * lib/string_.h (mbsnlen): New declaration.
64066         * lib/mbsnlen.c: New file.
64067         * m4/mbsnlen.m4: New file.
64068         * modules/mbsnlen: New file.
64069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64070         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64071         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64072
64073 2007-06-10  Bruno Haible  <bruno@clisp.org>
64074
64075         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64076
64077 2007-06-10  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64080         * lib/mbuiter.h: Likewise.
64081
64082 2007-06-10  Bruno Haible  <bruno@clisp.org>
64083
64084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64085         declaration.
64086
64087 2007-06-10  Karl Berry  <karl@gnu.org>
64088
64089         * config/srclist.txt: remove gettext entries, Bruno prefers
64090         to update individually.
64091
64092 2007-06-10  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64095         'maxlen'. Ensure only length + width bytes are allocated, not
64096         length + 1 + width.
64097
64098 2007-06-09  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64101         (CHAR_T): Remove macro.
64102         (VASNPRINTF): Update.
64103
64104 2007-06-09  Bruno Haible  <bruno@clisp.org>
64105
64106         * MODULES.html.sh (Unicode string functions): Add the new modules.
64107
64108         * modules/uniconv/u32-conv-to-enc: New file.
64109         * lib/uniconv/u32-conv-to-enc.c: New file.
64110         * modules/uniconv/u32-conv-to-enc-tests: New file.
64111         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64112
64113         * modules/uniconv/u16-conv-to-enc: New file.
64114         * lib/uniconv/u16-conv-to-enc.c: New file.
64115         * lib/uniconv/u-conv-to-enc.h: New file.
64116         * modules/uniconv/u16-conv-to-enc-tests: New file.
64117         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64118
64119         * modules/uniconv/u8-conv-to-enc: New file.
64120         * lib/uniconv/u8-conv-to-enc.c: New file.
64121         * modules/uniconv/u8-conv-to-enc-tests: New file.
64122         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64123
64124         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64125         u32_conv_to_encoding): New declarations.
64126
64127 2007-06-09  Bruno Haible  <bruno@clisp.org>
64128
64129         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64130
64131 2007-06-09  Bruno Haible  <bruno@clisp.org>
64132
64133         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64134         * modules/malloca: Renamed from modules/allocsa, updated.
64135         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64136         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64137         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64138         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64139         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64140         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64141         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64142         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64143         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64144         * modules/c-strcasestr (Depends-on): Update.
64145         * lib/c-strcasestr.c: Update.
64146         * modules/c-strstr (Depends-on): Update.
64147         * lib/c-strstr.c: Update.
64148         * modules/canonicalize-lgpl (Depends-on): Update.
64149         * lib/canonicalize-lgpl.c: Update.
64150         * modules/clean-temp (Depends-on): Update.
64151         * lib/clean-temp.c: Update.
64152         * modules/csharpcomp (Depends-on): Update.
64153         * lib/csharpcomp.c: Update.
64154         * modules/csharpexec (Depends-on): Update.
64155         * lib/csharpexec.c: Update.
64156         * modules/javacomp (Depends-on): Update.
64157         * lib/javacomp.c: Update.
64158         * modules/javaexec (Depends-on): Update.
64159         * lib/javaexec.c: Update.
64160         * modules/mbscasestr (Depends-on): Update.
64161         * lib/mbscasestr.c: Update.
64162         * modules/mbsstr (Depends-on): Update.
64163         * lib/mbsstr.c: Update.
64164         * modules/setenv (Depends-on): Update.
64165         * lib/setenv.c: Update.
64166         * modules/strcasestr (Depends-on): Update.
64167         * lib/strcasestr.c: Update.
64168         * modules/striconveha (Depends-on): Update.
64169         * lib/striconveha.c: Update.
64170         * modules/relocatable-prog-wrapper (Files): Update.
64171         * lib/relocwrapper.c: Update.
64172         * build-aux/install-reloc: Update.
64173         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64174
64175 2007-06-08  Bruno Haible  <bruno@clisp.org>
64176
64177         Port to uClibc.
64178         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64179         * lib/fpurge.c (fpurge): Likewise.
64180         * lib/freading.c (freading): Likewise.
64181         * lib/fseeko.c (rpl_fseeko): Likewise.
64182         * lib/fseterr.c (fseterr): Likewise.
64183         * lib/fwriting.c (fwriting): Likewise.
64184         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64185
64186 2007-06-08  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64189         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64190         * modules/gettext (Files): Add m4/intlmacosx.m4.
64191
64192 2007-06-07  Bruno Haible  <bruno@clisp.org>
64193
64194         * modules/localename-tests: New file.
64195         * tests/test-localename.c: New file.
64196
64197         New module 'localename'.
64198         * lib/localename.h: New file.
64199         * lib/localename.c: New file, from GNU gettext.
64200         * m4/localename.m4: New file.
64201         * modules/localename: New file.
64202
64203 2007-06-07  Bruno Haible  <bruno@clisp.org>
64204
64205         Work around the lack of <wchar.h> on some builds of uClibc.
64206         * doc/headers/wchar.texi: Update.
64207         * lib/wchar_.h: Include <wchar.h> only if it exists.
64208         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64209         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64210         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64211         doesn't exist.
64212         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64213         * modules/mbfile (Depends-on): Add wchar.
64214         * modules/mbiter (Depends-on): Likewise.
64215         * modules/mbuiter (Depends-on): Likewise.
64216         Reported by Simon Josefsson.
64217
64218 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         Work around problem reported by Steven M. Schweda in
64221         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64222         Tru64 5.1B with the Compaq compiler environment installed declares
64223         an 'isblank' function but does not define it in the C library.
64224         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64225         * lib/regex_internal.h (isblank): Likewise.
64226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64227         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64228
64229 2007-06-05  Bruno Haible  <bruno@clisp.org>
64230
64231         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64232         ia64.
64233         * modules/printf-safe: New file.
64234         * modules/fprintf-posix (Depends-on): Add printf-safe.
64235         * modules/printf-posix (Depends-on): Likewise.
64236         * modules/snprintf-posix (Depends-on): Likewise.
64237         * modules/sprintf-posix (Depends-on): Likewise.
64238         * modules/vasnprintf-posix (Depends-on): Likewise.
64239         * modules/vasprintf-posix (Depends-on): Likewise.
64240         * modules/vfprintf-posix (Depends-on): Likewise.
64241         * modules/vprintf-posix (Depends-on): Likewise.
64242         * modules/vsnprintf-posix (Depends-on): Likewise.
64243         * modules/vsprintf-posix (Depends-on): Likewise.
64244         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64245         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64246         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64247         "no" on i386, x86_64, ia64.
64248         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64249         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64250         on i386, x86_64, ia64.
64251         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64253         on i386, x86_64, ia64.
64254         * tests/test-vasnprintf-posix.c: Include float.h.
64255         (LDBL80_WORDS): New macro.
64256         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64257         on i386, x86_64, ia64.
64258         * tests/test-vasprintf-posix.c: Include float.h.
64259         (LDBL80_WORDS): New macro.
64260         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64261         on i386, x86_64, ia64.
64262         * tests/test-snprintf-posix.c: Include float.h.
64263         * tests/test-sprintf-posix.c: Likewise.
64264         * tests/test-vsnprintf-posix.c: Likewise.
64265         * tests/test-vsprintf-posix.c: Likewise.
64266
64267 2007-06-05  Bruno Haible  <bruno@clisp.org>
64268
64269         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64270         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64271         non-IEEE numbers on i386, x86_64, ia64.
64272         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64273         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64274         * tests/test-isnanl.h: Include float.h.
64275         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64276
64277 2007-06-05  Bruno Haible  <bruno@clisp.org>
64278
64279         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64280         also the %a / %A. Handle the %a / %A code before this extra handling.
64281
64282 2007-06-05  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64285         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64286
64287 2007-06-05  Bruno Haible  <bruno@clisp.org>
64288
64289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64290         typo in variable name.
64291
64292 2007-06-05  Eric Blake  <ebb9@byu.net>
64293
64294         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64295         Reported by Simon Josefsson.
64296
64297 2007-06-04  Bruno Haible  <bruno@clisp.org>
64298
64299         Avoid test failures on some PowerPC platforms.
64300         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64301         Define differently for PowerPC.
64302         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64303         Reported by Gary V. Vaughan <gary@gnu.org>.
64304
64305 2007-06-02  Bruno Haible  <bruno@clisp.org>
64306
64307         Fix test-stdint failure on FreeBSD/ia64.
64308         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64309         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64310         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64311         * doc/headers/stdint.texi: Update.
64312
64313 2007-06-01  Bruno Haible  <bruno@clisp.org>
64314
64315         * tests/test-binary-io.c (main): Pass a third argument to open().
64316         Reported by Gary V. Vaughan <gary@gnu.org>.
64317
64318 2007-06-01  Bruno Haible  <bruno@clisp.org>
64319
64320         * doc/functions/frexpl.texi: Update for mingw.
64321
64322 2007-06-01  Bruno Haible  <bruno@clisp.org>
64323
64324         * tests/test-lseek.c (main): Disable test of errno for invalid third
64325         argument.
64326         * doc/functions/lseek.texi: Update.
64327         Reported by Gary V. Vaughan <gary@gnu.org>.
64328
64329 2007-05-28  Bruno Haible  <bruno@clisp.org>
64330
64331         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64332
64333 2007-05-31  Eric Blake  <ebb9@byu.net>
64334
64335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64336         cross compiling.
64337
64338 2007-05-30  Eric Blake  <ebb9@byu.net>
64339         and Bruno Haible  <bruno@clisp.org>
64340
64341         Work around mingw test failures exposed by m4-1.4.9b.
64342         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64343         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64344         moment.
64345
64346 2007-05-30  Bruno Haible  <bruno@clisp.org>
64347
64348         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64349         assuming that they are closed. Needed on HP-UX 11.
64350
64351 2007-05-29  Bruno Haible  <bruno@clisp.org>
64352
64353         Fix a problem with #include_next.
64354         * lib/dirent_.h: Split the double-inclusion guard.
64355         * lib/fcntl_.h: Likewise.
64356         * lib/float_.h: Likewise.
64357         * lib/iconv_.h: Likewise.
64358         * lib/inttypes_.h: Likewise.
64359         * lib/locale_.h: Likewise.
64360         * lib/math_.h: Likewise.
64361         * lib/netinet_in_.h: Likewise.
64362         * lib/search_.h: Likewise.
64363         * lib/signal_.h: Likewise.
64364         * lib/stdint_.h: Likewise.
64365         * lib/stdio_.h: Likewise.
64366         * lib/stdlib_.h: Likewise.
64367         * lib/string_.h: Likewise.
64368         * lib/sys_select_.h: Likewise.
64369         * lib/sys_socket_.h: Likewise.
64370         * lib/sys_stat_.h: Likewise.
64371         * lib/sys_time_.h: Likewise.
64372         * lib/sysexits_.h: Likewise.
64373         * lib/time_.h: Likewise.
64374         * lib/unistd_.h: Likewise.
64375         * lib/wchar_.h: Likewise.
64376         * lib/wctype_.h: Likewise.
64377
64378 2007-05-29  Bruno Haible  <bruno@clisp.org>
64379
64380         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64381         for the moment.
64382
64383 2007-05-29  Bruno Haible  <bruno@clisp.org>
64384
64385         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64386         invocation.
64387         Reported by Eric Blake.
64388
64389 2007-05-29  Bruno Haible  <bruno@clisp.org>
64390
64391         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64392         compiling case.
64393
64394 2007-05-29  Eric Blake  <ebb9@byu.net>
64395             Bruno Haible  <bruno@clisp.org>
64396
64397         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64398         cross compiles.
64399
64400 2007-05-28  Eric Blake  <ebb9@byu.net>
64401
64402         * modules/closein-tests (test_closein_LDADD): Support test on
64403         cygwin with libtool.
64404
64405 2007-05-28  Bruno Haible  <bruno@clisp.org>
64406
64407         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64408         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64409         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64410         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64411         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64412         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64413         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64414         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64415         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64416
64417 2007-05-28  Eric Blake  <ebb9@byu.net>
64418
64419         Unconditionally include <config.h> in unit tests.
64420         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64421         * tests/test-allocsa.c, tests/test-arcfour.c,
64422         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64423         tests/test-array_list.c, tests/test-array_oset.c,
64424         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64425         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64426         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64427         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64428         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64429         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64430         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64431         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64432         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64433         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64434         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64435         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64436         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64437         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64438         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64439         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64440         test-md5.c, test-memmem.c, test-printf-posix.c,
64441         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64442         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64443         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64444         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64445         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64446         test-vasnprintf-posix2.c, test-vasnprintf.c,
64447         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64448         test-vfprintf-posix.c, test-vprintf-posix.c,
64449         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64450         test-xvasprintf.c: Likewise.
64451
64452 2007-05-28  Bruno Haible  <bruno@clisp.org>
64453
64454         * gnulib-tool (func_import): Remember the --with-tests command-line
64455         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64456         Reported by Eric Blake.
64457
64458 2007-05-28  Bruno Haible  <bruno@clisp.org>
64459
64460         * modules/ftell-tests: New file.
64461         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64462         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64463
64464         * lib/ftell.c: New file.
64465         * modules/ftell: New file.
64466         * m4/ftell.m4: New file.
64467         * doc/functions/ftell.texi: Update.
64468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64469         REPLACE_FTELL.
64470         * lib/stdio_.h (rpl_ftell): New declaration.
64471         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64472         REPLACE_FTELL.
64473
64474 2007-05-28  Eric Blake  <ebb9@byu.net>
64475
64476         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64477
64478 2007-05-28  Bruno Haible  <bruno@clisp.org>
64479
64480         * modules/fseek-tests: New file.
64481         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64482         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64483
64484         * lib/fseek.c: New file.
64485         * modules/fseek: New file.
64486         * m4/fseek.m4: New file.
64487         * doc/functions/fseek.texi: Update.
64488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64489         REPLACE_FSEEK.
64490         * lib/stdio_.h (rpl_fseek): New declaration.
64491         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64492         REPLACE_FSEEK.
64493
64494 2007-05-28  Bruno Haible  <bruno@clisp.org>
64495
64496         * lib/stdio_.h (fflush): More comments.
64497
64498 2007-05-28  Bruno Haible  <bruno@clisp.org>
64499
64500         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64501         runtime test.
64502
64503 2007-05-28  Eric Blake  <ebb9@byu.net>
64504
64505         Improve lseek module.
64506         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64507         * lib/unistd_.h (lseek): Scale back link warning message.
64508         * tests/test-lseek.c: Beef up test.
64509         * tests/test-lseek.sh: Exercise more facets of lseek.
64510         Reported by Bruno Haible.
64511
64512 2007-05-28  Bruno Haible  <bruno@clisp.org>
64513
64514         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64515         to define.
64516
64517 2007-05-27  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64520
64521 2007-05-27  Bruno Haible  <bruno@clisp.org>
64522
64523         * modules/openmp: New file.
64524         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64525         Noah Misch.
64526
64527 2007-05-26  Bruno Haible  <bruno@clisp.org>
64528
64529         * modules/chdir-long (Depends-on): Add fchdir.
64530         * modules/chdir-safer (Depends-on): Likewise.
64531         * modules/fts (Depends-on): Likewise.
64532         * modules/fts-lgpl (Depends-on): Likewise.
64533         * modules/openat (Depends-on): Likewise.
64534         * modules/savewd (Depends-on): Likewise.
64535
64536 2007-05-24  Eric Blake  <ebb9@byu.net>
64537
64538         Fix lseek on mingw.
64539         * modules/lseek: New module.
64540         * m4/lseek.m4: New file.
64541         * lib/lseek.c: New file.
64542         * modules/lseek-tests: New file.
64543         * tests/test-lseek.c: New file.
64544         * tests/test-lseek.sh: New file.
64545         * MODULES.html.sh: Document lseek module.
64546         * modules/fflush (Depends-on): Add lseek, fseeko.
64547         * modules/fseeko (Depends-on): Likewise.
64548         * modules/ftello (Depends-on): Likewise.
64549         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64550         broken.
64551         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64552         broken.
64553         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64554         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64555         * lib/ftello.c (rpl_ftello): Likewise.
64556         * tests/test-fseeko.c (main): Test this.
64557         * tests/test-fseeko.sh: Likewise.
64558         * tests/test-ftello.c (main): Likewise.
64559         * tests/test-ftello.sh: Likewise.
64560         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64561         implies replacing fseek.
64562         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64563         HAVE_FTELLO.
64564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64565         * modules/unistd (Makefile.am): Likewise.
64566         * lib/unistd_.h (lseek): Declare a replacement.
64567         * doc/functions/lseek.texi (lseek): Document this fix.
64568         * doc/functions/fseek.texi (fseek): Likewise.
64569         * doc/functions/ftell.texi (ftell): Likewise.
64570
64571 2007-05-24  Bruno Haible  <bruno@clisp.org>
64572
64573         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64574         in the printed representation of a NaN.
64575         * tests/test-vasprintf-posix.c (test_function): Likewise.
64576         * tests/test-snprintf-posix.h (test_function): Likewise.
64577         * tests/test-sprintf-posix.h (test_function): Likewise.
64578         Reported by Eric Blake.
64579
64580 2007-05-23  Eric Blake  <ebb9@byu.net>
64581
64582         Fix fseeko/ftello on cygwin 1.5.24.
64583         * doc/functions/fseeko.texi (fseeko): Document the fix.
64584         * doc/functions/ftello.texi (ftello): Document the fix.
64585         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64586         * doc/functions/stdout.text (stdout): New file.
64587         * doc/functions/stderr.text (stderr): New file.
64588         * doc/gnulib.texi (Function Substitutes): Use new files.
64589         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64590         prior to 1.7.0.
64591         * tests/test-ftello.c (main): Likewise for ftello.
64592         * tests/test-fseeko.sh: New file.
64593         * tests/test-ftello.sh: New file.
64594         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64595         with seekable stdin.
64596         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64597         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64598         (gl_REPLACE_FSEEKO): New macro.
64599         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64600         * modules/fseeko (Files): Distribute fseeko.c.
64601         * modules/ftello (Files): Distribute ftello.c.
64602         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64603         mode.
64604         * lib/ftello.c (rpl_ftello): New file.
64605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64606         fseeko, ftello.
64607         (gl_STDIN_LARGE_OFFSET): New macro.
64608         * modules/stdio (Makefile.am): Perform the replacement.
64609         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64610
64611 2007-05-23  Bruno Haible  <bruno@clisp.org>
64612
64613         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64614         GNULIB_POSIXCHECK is defined.
64615
64616 2007-05-21  Bruno Haible  <bruno@clisp.org>
64617
64618         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64619         Check also the output for NaN arguments. When cross-compiling, guess
64620         no on IRIX.
64621         * lib/vasnprintf.c: Update comments.
64622         * tests/test-vasnprintf-posix.c (strisnan): New function.
64623         (test_function): Use it.
64624         * tests/test-vasprintf-posix.c (strisnan): New function.
64625         (test_function): Use it.
64626         * tests/test-snprintf-posix.h (strisnan): New function.
64627         (test_function): Use it.
64628         * tests/test-sprintf-posix.h (strisnan): New function.
64629         (test_function): Use it.
64630         Reported by Eric Blake.
64631
64632 2007-05-20  Bruno Haible  <bruno@clisp.org>
64633
64634         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64635         numbers that fails on BeOS.
64636         * doc/functions/frexpl.texi: Update.
64637
64638 2007-05-20  Jim Meyering  <jim@meyering.net>
64639
64640         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64641         forced upon us by glibc-2.6.
64642
64643 2007-05-20  Bruno Haible  <bruno@clisp.org>
64644
64645         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64646         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64647         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64648         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64649         NEED_PRINTF_INFINITE.
64650         (is_infinitel): New function.
64651         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64653         gl_PREREQ_VASNPRINTF_INFINITE.
64654         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64656         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64657         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64658         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64659         gl_PREREQ_VASNPRINTF_INFINITE.
64660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64667         * doc/functions/fprintf.texi: Update.
64668         * doc/functions/printf.texi: Update.
64669         * doc/functions/snprintf.texi: Update.
64670         * doc/functions/sprintf.texi: Update.
64671         * doc/functions/vfprintf.texi: Update.
64672         * doc/functions/vprintf.texi: Update.
64673         * doc/functions/vsnprintf.texi: Update.
64674         * doc/functions/vsprintf.texi: Update.
64675
64676 2007-05-20  Bruno Haible  <bruno@clisp.org>
64677
64678         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64679         was not found in libc.
64680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64681
64682 2007-05-20  Bruno Haible  <bruno@clisp.org>
64683
64684         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64685         printed as "-nan" instead of "nan".
64686         * tests/test-vasprintf-posix.c (test_function): Likewise.
64687         * tests/test-snprintf-posix.h (test_function): Likewise.
64688         * tests/test-sprintf-posix.h (test_function): Likewise.
64689         Needed for HP-UX 11.
64690
64691 2007-05-20  Jim Meyering  <jim@meyering.net>
64692
64693         Fix buggy test for the fchownat-deref bug.
64694         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64695         symlink required for the run-test.  Without it, this test would
64696         always declare that fchownat doesn't work, and client code would
64697         unnecessarily use the replacement function with fixed libc.
64698         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64699         Reported by Greg Schafer.
64700
64701 2007-05-19  Bruno Haible  <bruno@clisp.org>
64702
64703         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64704         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64705         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64706         Needed for IRIX 6.5 and Solaris 2.5.1.
64707
64708 2007-05-19  Bruno Haible  <bruno@clisp.org>
64709
64710         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64711         (test_function): Skip tests involving -0.0 on platforms where
64712         -0.0 = 0.0.
64713         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64714         (test_function): Skip tests involving -0.0 on platforms where
64715         -0.0 = 0.0.
64716         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64717         (test_function): Skip tests involving -0.0 on platforms where
64718         -0.0 = 0.0.
64719         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64720         (test_function): Skip tests involving -0.0 on platforms where
64721         -0.0 = 0.0.
64722         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64723         tests.
64724         * tests/test-printf-posix.h (test_function): Likewise.
64725         * tests/test-printf-posix.output: Remove all -0.0 related results.
64726         Needed for IRIX 6.5.
64727
64728 2007-05-19  Bruno Haible  <bruno@clisp.org>
64729
64730         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64731         printed as "nan0x7fffffff" instead of "nan".
64732         * tests/test-vasprintf-posix.c (test_function): Likewise.
64733         * tests/test-snprintf-posix.h (test_function): Likewise.
64734         * tests/test-sprintf-posix.h (test_function): Likewise.
64735         * tests/test-fprintf-posix.h (NaN): Remove macro.
64736         (test_function): Remove all NaN related tests.
64737         * tests/test-printf-posix.h (NaN): Remove macro.
64738         (test_function): Remove all NaN related tests.
64739         * tests/test-printf-posix.output: Remove all NaN related results.
64740         Needed for IRIX 6.5.
64741
64742 2007-05-19  Bruno Haible  <bruno@clisp.org>
64743
64744         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64746
64747 2007-05-19  Bruno Haible  <bruno@clisp.org>
64748
64749         * lib/float_.h: New file.
64750         * m4/float_h.m4: New file.
64751         * modules/float: New file.
64752         * modules/isnanl (Dependencies): Add float.
64753         * modules/isnanl-nolibm (Dependencies): Likewise.
64754         * modules/mathl (Dependencies): Likewise.
64755         * modules/printf-frexpl (Dependencies): Likewise.
64756         * modules/signbit (Dependencies): Likewise.
64757         * modules/vasnprintf (Dependencies): Likewise.
64758         * doc/headers/float.texi: Update.
64759
64760 2007-05-19  Jim Meyering  <jim@meyering.net>
64761
64762         * lib/utimens.c (gl_futimens): Rename from futimens,
64763         now that glibc-2.6 declares futimens.
64764         * lib/utimens.h: Likewise.
64765
64766 2007-05-19  Bruno Haible  <bruno@clisp.org>
64767
64768         Avoid test failures on mingw.
64769         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64770         * tests/test-printf-posix.sh: Likewise.
64771         * tests/test-vfprintf-posix.sh: Likewise.
64772         * tests/test-vprintf-posix.sh: Likewise.
64773
64774 2007-05-19  Bruno Haible  <bruno@clisp.org>
64775
64776         Fix *printf result for NaN, Inf, -0.0 on mingw.
64777         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64778         * lib/vasnprintf.c: Include math.h and isnan.h.
64779         (is_infinite_or_zero): New function.
64780         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64781         values in the %f, %F, %e, %E, %g, %G directives.
64782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64784         gl_PRINTF_INFINITE and test its result. Invoke
64785         gl_PREREQ_VASNPRINTF_INFINITE.
64786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64793         * doc/functions/fprintf.texi: Update.
64794         * doc/functions/printf.texi: Update.
64795         * doc/functions/snprintf.texi: Update.
64796         * doc/functions/sprintf.texi: Update.
64797         * doc/functions/vfprintf.texi: Update.
64798         * doc/functions/vprintf.texi: Update.
64799         * doc/functions/vsnprintf.texi: Update.
64800         * doc/functions/vsprintf.texi: Update.
64801
64802 2007-05-19  Bruno Haible  <bruno@clisp.org>
64803
64804         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64805         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64806         Instead of multiplying with 10^k, set extra_zeroes to k.
64807         (scale10_round_long_double): Remove function.
64808
64809 2007-05-18  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64812         introduced on 2007-05-06.
64813
64814 2007-05-18  Bruno Haible  <bruno@clisp.org>
64815
64816         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64817         %g directives.
64818         * tests/test-vasprintf-posix.c (test_function): Likewise.
64819         * tests/test-snprintf-posix.h (test_function): Likewise.
64820         * tests/test-sprintf-posix.h (test_function): Likewise.
64821
64822 2007-05-18  Bruno Haible  <bruno@clisp.org>
64823
64824         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64825         (strmatch): New function.
64826         (test_function): Test the %f directive on numbers of various exponents.
64827         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64828         (strmatch): New function.
64829         (test_function): Test the %f directive on numbers of various exponents.
64830         * tests/test-snprintf-posix.h (strmatch): New function.
64831         (test_function): Test the %f directive on numbers of various exponents.
64832         * tests/test-sprintf-posix.h (strmatch): New function.
64833         (test_function): Test the %f directive on numbers of various exponents.
64834         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64835         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64836         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64837         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64838
64839 2007-05-18  Bruno Haible  <bruno@clisp.org>
64840
64841         Add support for 'long double' number output.
64842         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64843         * lib/vasnprintf.c: Include math.h and float+.h.
64844         (mp_limb_t): New type.
64845         (GMP_LIMB_BITS): New macro.
64846         (mp_twolimb_t): New type.
64847         (GMP_TWOLIMB_BITS): New macro.
64848         (mpn_t): New type.
64849         (multiply, divide, convert_to_decimal, decode_long_double,
64850         scale10_round_long_double, scale10_round_decimal_long_double,
64851         floorlog10l): New functions.
64852         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64853         for the %f, %F, %e, %E, %g, %G directives.
64854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64856         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64857         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64865         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64866         * modules/snprintf-posix (Depends-on): Likewise.
64867         * modules/sprintf-posix (Depends-on): Likewise.
64868         * modules/vasnprintf-posix (Depends-on): Likewise.
64869         * modules/vasprintf-posix (Depends-on): Likewise.
64870         * modules/vfprintf-posix (Depends-on): Likewise.
64871         * modules/vsnprintf-posix (Depends-on): Likewise.
64872         * modules/vsprintf-posix (Depends-on): Likewise.
64873         * modules/vasnprintf (Files): Add lib/float+.h.
64874         * doc/functions/fprintf.texi: Update.
64875         * doc/functions/printf.texi: Update.
64876         * doc/functions/snprintf.texi: Update.
64877         * doc/functions/sprintf.texi: Update.
64878         * doc/functions/vfprintf.texi: Update.
64879         * doc/functions/vprintf.texi: Update.
64880         * doc/functions/vsnprintf.texi: Update.
64881         * doc/functions/vsprintf.texi: Update.
64882
64883 2007-05-18  Bruno Haible  <bruno@clisp.org>
64884
64885         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64886
64887 2007-05-18  Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64890         for printing 64-bit integers. Needed for mingw.
64891
64892 2007-05-18  Bruno Haible  <bruno@clisp.org>
64893
64894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64895         gl_FUNC_FREXPL_WORKS.
64896         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64897
64898 2007-05-18  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/frexpl-nolibm-tests: New file.
64901
64902         * modules/frexpl-nolibm: New file.
64903         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64904
64905 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64906
64907         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64908         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64909         GCC 4.2, which otherwise issues a lot of warnings.
64910         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64911         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64912         Likewise.
64913         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64914         * modules/iconv_open (iconv.h): Likewise.
64915         * modules/locale (locale.h): Likewise.
64916         * modules/netinet_in (netinet/in.h): Likewise.
64917         * modules/sys_select (sys_select.h): Likewise.
64918         * modules/sys_socket (sys/socket.h): Likewise.
64919         * modules/sys_stat (sys/stat.h): Likewise.
64920         * modules/sysexits (sysexits.h): Likewise.
64921         * modules/unistd (unistd.h): Likewise.
64922
64923 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64924
64925         * modules/closein-tests (Makefile.am): Distribute
64926         `test-closein.sh'.
64927
64928 2007-05-17  Bruno Haible  <bruno@clisp.org>
64929
64930         * tests/test-printf-posix.output: Renamed from
64931         tests/test-fprintf-posix.out.
64932         * modules/fprintf-posix-tests: Update.
64933         * modules/printf-posix-tests: Update.
64934         * modules/vfprintf-posix-tests: Update.
64935         * modules/vprintf-posix-tests: Update.
64936         * tests/test-fprintf-posix.sh: Update.
64937         * tests/test-printf-posix.sh: Update.
64938         * tests/test-vfprintf-posix.sh: Update.
64939         * tests/test-vprintf-posix.sh: Update.
64940         Reported by Ralf Wildenhues.
64941
64942 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64945         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64946         GCC 4.2, which otherwise issues a lot of warnings.
64947         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64948         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64949         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64950         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64951         it should no longer be needed.
64952         * lib/string_.h: Likewise.
64953         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64954         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64955         * modules/inttypes (inttypes.h): Likewise.
64956         * modules/math (math.h): Likewise.
64957         * modules/search (search.h): Likewise.
64958         * modules/signal (signal.h): Likewise.
64959         * modules/stdint (stdint.h): Likewise.
64960         * modules/stdio (stdio.h): Likewise.
64961         * modules/stdlib (stdlib.h): Likewise.
64962         * modules/string (string.h): Likewise.
64963         * modules/sys_time (sys/time.h): Likewise.
64964         * modules/time (time.h): Likewise.
64965         * modules/wchar (wchar.h): Likewise.
64966         * modules/wctype (wtype.h): Likewise.
64967
64968 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64969
64970         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64971
64972 2007-05-13  Bruno Haible  <bruno@clisp.org>
64973
64974         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64975         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64976         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64977         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64978         (gl_PREREQ_STRTOK_R): Don't require it here.
64979
64980 2007-05-13  Bruno Haible  <bruno@clisp.org>
64981
64982         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64983         when used in C++ mode.
64984
64985 2007-05-12  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/linebuffer.h: Tweak doc.
64988         * lib/linebuffer.c: Likewise.
64989
64990 2007-05-12  James Youngman  <jay@gnu.org>
64991
64992         * lib/linebuffer.c (readlinebuffer_delim): New function,
64993         like readlinebuffer, but use a caller-specified delimiter.
64994         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64995         as the delimiter.
64996         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64997
64998 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64999
65000         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65001         * modules/openat (Files): Remove openat-die.c.
65002         (Depends-on): Add openat-die.
65003         * modules/openat-die: New module.
65004
65005 2007-05-06  Bruno Haible  <bruno@clisp.org>
65006
65007         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65008         Update with info about Cygwin.
65009         * doc/functions/fprintf.texi: Update.
65010         * doc/functions/printf.texi: Update.
65011         * doc/functions/snprintf.texi: Update.
65012         * doc/functions/sprintf.texi: Update.
65013         * doc/functions/vfprintf.texi: Update.
65014         * doc/functions/vprintf.texi: Update.
65015         * doc/functions/vsnprintf.texi: Update.
65016         * doc/functions/vsprintf.texi: Update.
65017         Reported by Eric Blake.
65018
65019 2007-05-06  Bruno Haible  <bruno@clisp.org>
65020
65021         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65022         padding ourselves for the floating-point directives.
65023         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65026         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65027         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65035         * tests/test-snprintf-posix.h (test_function): Also check the width
65036         and some flags in the %f directive.
65037         * tests/test-sprintf-posix.h (test_function): Likewise.
65038         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65039         * tests/test-vasprintf-posix.c (test_function): Likewise.
65040         * doc/functions/fprintf.texi: Update.
65041         * doc/functions/printf.texi: Update.
65042         * doc/functions/snprintf.texi: Update.
65043         * doc/functions/sprintf.texi: Update.
65044         * doc/functions/vfprintf.texi: Update.
65045         * doc/functions/vprintf.texi: Update.
65046         * doc/functions/vsnprintf.texi: Update.
65047         * doc/functions/vsprintf.texi: Update.
65048
65049 2007-05-06  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65052         pass the ' flag character to sprintf or snprintf.
65053         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65054         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65056         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65057         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65065         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65066         flag.
65067         * tests/test-sprintf-posix.h (test_function): Likewise.
65068         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65069         * tests/test-vasprintf-posix.c (test_function): Likewise.
65070         * doc/functions/fprintf.texi: Update.
65071         * doc/functions/printf.texi: Update.
65072         * doc/functions/snprintf.texi: Update.
65073         * doc/functions/sprintf.texi: Update.
65074         * doc/functions/vfprintf.texi: Update.
65075         * doc/functions/vprintf.texi: Update.
65076         * doc/functions/vsnprintf.texi: Update.
65077         * doc/functions/vsprintf.texi: Update.
65078
65079 2007-05-01  Bruno Haible  <bruno@clisp.org>
65080
65081         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65082
65083 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65086         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65087
65088 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65089
65090         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65091         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65093
65094 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65095
65096         * lib/argp-help.c (struct hol_entry): New member `ord'.
65097         (HOL_ENTRY_PTRCMP): Use ord for comparison
65098         (hol_sort): Initialize ord.
65099
65100 2007-05-01  Bruno Haible  <bruno@clisp.org>
65101
65102         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65103         Reported by Eric Blake.
65104         * doc/gnulib.texi (Function Substitutes): Update.
65105
65106 2007-05-01  Bruno Haible  <bruno@clisp.org>
65107
65108         * doc/functions.texi: Remove file, now redundant through
65109         doc/functions/*.texi.
65110
65111 2007-05-01  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/argp (Depends-on): Add sleep.
65114
65115 2007-05-01  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/sleep-tests: New file.
65118         * tests/test-sleep.c: New file.
65119
65120         * modules/sleep: New file.
65121         * lib/sleep.c: New file.
65122         * m4/sleep.m4: New file.
65123         * lib/unistd_.h (sleep): New declaration.
65124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65125         HAVE_SLEEP.
65126         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65127         * doc/functions/sleep.texi: Document the sleep module.
65128
65129 2007-05-01  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/sigprocmask.h: Remove file.
65132         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65133         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65135         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65136         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65137         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65138         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65139         HAVE_SIGSET_T as a shell variable.
65140         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65141         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65142         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65143         (Depends-on): Add signal. Remove verify.
65144         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65145         (Include): Mention <signal.h> instead of sigprocmask.h.
65146         * NEWS: Mention the change.
65147         * lib/fatal-signal.c: Don't include sigprocmask.h.
65148
65149 2007-05-01  Bruno Haible  <bruno@clisp.org>
65150
65151         * modules/signal: New file.
65152         * lib/signal_.h: New file.
65153         * m4/signal_h.m4: New file.
65154
65155 2007-05-01  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65158         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65159         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65160         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65161
65162 2007-05-01  Bruno Haible  <bruno@clisp.org>
65163
65164         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65165         configure time.
65166         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65167         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65168         * modules/sys_stat (Makefile.am): Substitute their values into
65169         sys/stat.h.
65170
65171 2007-05-01  Bruno Haible  <bruno@clisp.org>
65172
65173         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65174         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65175         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65176
65177 2007-05-01  Bruno Haible  <bruno@clisp.org>
65178
65179         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65180         'assert' module here.
65181
65182 2007-05-01  Bruno Haible  <bruno@clisp.org>
65183
65184         * doc/functions/*.texi: New files.
65185         * doc/functions/google-ranking.txt: New file.
65186         * doc/gnulib.texi (Function Substitutes): New chapter.
65187         (ctime, inet_ntoa): Remove sections.
65188         * doc/ctime.texi: Remove file.
65189         * doc/inet_ntoa.texi: Remove file.
65190         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65191         dependencies.
65192         (%.info): New rule, specifying a --reference-limit.
65193
65194 2007-05-01  Bruno Haible  <bruno@clisp.org>
65195
65196         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65197
65198 2007-05-01  Bruno Haible  <bruno@clisp.org>
65199
65200         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65201         the portability of 'mkdir' to mingw systems.
65202
65203 2007-05-01  Bruno Haible  <bruno@clisp.org>
65204
65205         * doc/headers/google-ranking.txt: New file.
65206
65207 2007-04-30  Eric Blake  <ebb9@byu.net>
65208
65209         Prefer fseeko to fseek.
65210         * modules/getpass (Depends-on): Add fseeko.
65211         * lib/getpass.c (getpass): Use fseeko, not fseek.
65212
65213 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65214
65215         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65216         assumes the sorting is stable, while most qsort implementations
65217         are not.  Use argument addresses to ensure they never compare as
65218         equal.
65219
65220         * tests/test-argp-2.sh (usage-indent test): Fix output
65221         (func_compare): Restore diff options
65222         * tests/test-argp.c: Restore #include "progname.h"
65223
65224 2007-04-29  Bruno Haible  <bruno@clisp.org>
65225
65226         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65228         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65230         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65231         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65232         (TESTS, check_PROGRAMS): Add test-snprintf.
65233         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65234         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65235         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65236         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65237         assertions that fail on HP-UX, OSF/1, or IRIX.
65238         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65239
65240 2007-04-29  Bruno Haible  <bruno@clisp.org>
65241
65242         * MODULES.html.sh (posix_functions): Remove 'contents'.
65243
65244 2007-04-29  Karl Berry  <karl@gnu.org>
65245
65246         * config/srclist.txt (gendocs_template_min): new entry.
65247
65248 2007-04-29  Bruno Haible  <bruno@clisp.org>
65249
65250         Work around fpurge bug on BSD systems.
65251         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65252         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65253         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65254         fpurge to rpl_fpurge if the system already has this function.
65255         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65256         the case where the system already has this function. Correct invariants
65257         on BSD systems.
65258         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65259         BSD systems.
65260
65261 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65262
65263         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65264         proposed by Sven Verdoolaege.
65265
65266         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65267         options.
65268         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65269         (usage and help tests): Update
65270
65271 2007-04-29  Bruno Haible  <bruno@clisp.org>
65272
65273         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65274         Print more information in case of failure. Disable a test on BeOS.
65275
65276 2007-04-29  Bruno Haible  <bruno@clisp.org>
65277
65278         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65279         This helps debugging on systems on which no gdb is available.
65280
65281 2007-04-29  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/freading.h: Improve comments.
65284         * lib/fwriting.h: Likewise.
65285         * tests/test-freading.c (main): Don't check freading immediately after
65286         repositioning. Needed for glibc.
65287
65288 2007-04-29  Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/freading.c (freading): Trivial simplification.
65291
65292 2007-04-28  Bruno Haible  <bruno@clisp.org>
65293
65294         * tests/test-fwriting.c (main): Also test the interaction between
65295         fflush and fwriting.
65296         * modules/fwriting-tests (Depends-on): Add fflush.
65297
65298         * tests/test-freading.c (main): Also test the interaction between
65299         fflush and freading.
65300         * modules/freading-tests (Depends-on): Add fflush.
65301
65302 2007-04-28  Bruno Haible  <bruno@clisp.org>
65303
65304         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65305         fseeko and ftello.
65306         Suggested by Eric Blake.
65307
65308 2007-04-28  Jim Meyering  <jim@meyering.net>
65309
65310         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65311         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65312         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65313
65314 2007-04-27  Eric Blake  <ebb9@byu.net>
65315
65316         * doc/headers/assert.texi (assert.h): Document assert module use.
65317
65318 2007-04-27  Bruno Haible  <bruno@clisp.org>
65319
65320         * doc/headers/*.texi: New files.
65321         * doc/gnulib.texi (Header File Substitutes): New chapter.
65322         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65323         dependencies.
65324         (standards.info ,standards.html, standards.dvi): Update dependencies.
65325         (mostlyclean, clean): New targets.
65326
65327 2007-04-27  Bruno Haible  <bruno@clisp.org>
65328
65329         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65330         * modules/sysexits (Files, Makefile.am): Update.
65331
65332         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65333         * modules/sys_socket (Files, Makefile.am): Update.
65334
65335         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65336         * modules/sys_stat (Files, Makefile.am): Update.
65337
65338 2007-04-27  Eric Blake  <ebb9@byu.net>
65339
65340         * lib/freading.h: Improve comments.
65341         * lib/fwriting.h: Likewise.
65342         * lib/fflush.c: Likewise.
65343
65344         Fix closein for mingw.
65345         * modules/closein-tests: Add tests for closein.
65346         * tests/test-closein.c: New file.
65347         * tests/test-closein.sh: Likewise.
65348         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65349         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65350
65351 2007-04-27  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65354         version is < 6.
65355         * lib/math_.h [__DECC]: Likewise.
65356         * lib/stdio_.h [__DECC]: Likewise.
65357         * lib/stdlib_.h [__DECC]: Likewise.
65358         * lib/string_.h [__DECC]: Likewise.
65359         * lib/time_.h [__DECC]: Likewise.
65360         * lib/wchar_.h [__DECC]: Likewise.
65361         * lib/wctype_.h [__DECC]: Likewise.
65362
65363 2007-04-27  Bruno Haible  <bruno@clisp.org>
65364
65365         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65366
65367 2007-04-27  Bruno Haible  <bruno@clisp.org>
65368
65369         * lib/fflush.c: Add comments.
65370         * modules/fpurge-tests (Depends-on): Add fflush.
65371         * modules/freadable-tests (Depends-on): Likewise.
65372         * modules/fwritable-tests (Depends-on): Likewise.
65373
65374 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65375
65376         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65377         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65378         Report by Bruno Haible <bruno@clisp.org>.
65379
65380 2007-04-26  Eric Blake  <ebb9@byu.net>
65381
65382         Fix fflush on mingw.
65383         * modules/fflush (Depends-on): Add freading.
65384         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65385         but unread data.
65386
65387 2007-04-26  Eric Blake  <ebb9@byu.net>
65388         and Bruno Haible  <bruno@clisp.org>
65389
65390         Implement freading and fwriting.
65391         * lib/freading.c: New file.
65392         * lib/freading.h: Likewise.
65393         * m4/freading.m4: Likewise.
65394         * modules/freading: Likewise.
65395         * modules/freading-tests: Likewise.
65396         * tests/test-freading.c: Likewise.
65397         * lib/fwriting.c: New file.
65398         * lib/fwriting.h: Likewise.
65399         * m4/fwriting.m4: Likewise.
65400         * modules/fwriting: Likewise.
65401         * modules/fwriting-tests: Likewise.
65402         * tests/test-fwriting.c: Likewise.
65403         * MODULES.html.sh (File stream based Input/Output): Mention them.
65404
65405 2007-04-26  Bruno Haible  <bruno@clisp.org>
65406
65407         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65408         'long' when we assume it.
65409         Suggested by Eric Blake.
65410
65411 2007-04-26  Bruno Haible  <bruno@clisp.org>
65412
65413         Ensure fseeko, ftello are declared on glibc systems.
65414         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65415         * modules/fseeko (configure.ac-early): Likewise.
65416         * modules/ftello (configure.ac-early): Likewise.
65417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65418         AC_FUNC_FSEEKO for this.
65419         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65420         (gl_CHECK_FSEEKO): Remove macro.
65421
65422 2007-04-26  Bruno Haible  <bruno@clisp.org>
65423
65424         * tests/test-fflush.c (main): Also check the ftell result after
65425         fflush and fseek/fseeko.
65426         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65427         file descriptor position cache in the stream.
65428         * lib/fseeko.c (rpl_fseeko): Likewise.
65429
65430 2007-04-26  Bruno Haible  <bruno@clisp.org>
65431
65432         * modules/fflush-tests (Depends-on): Add fseeko.
65433
65434 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65435             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65436
65437         * lib/argz_.h: ensure error_t definition is obtained in same
65438         mechanism system argz.h would have.
65439         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65440         argz facilities are known bad.  Err on the side of caution if
65441         cross-compiling.
65442
65443 2007-04-25  Eric Blake  <ebb9@byu.net>
65444
65445         * lib/fpurge.c (includes): Use stdlib.h for free.
65446         * tests/test-fflush.c (main): Also test fflush-fseeko.
65447
65448 2007-04-25  Bruno Haible  <bruno@clisp.org>
65449
65450         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65451         * lib/fseeko.c: New file.
65452         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65453         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65454         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65455         gl_FUNC_FSEEKO.
65456         (gl_FUNC_FSEEKO): Invoke it.
65457         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65458         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65459         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65460
65461 2007-04-25  Bruno Haible  <bruno@clisp.org>
65462
65463         * modules/fflush (Depends-on): Add ftello.
65464
65465 2007-04-25  Bruno Haible  <bruno@clisp.org>
65466
65467         * modules/ftello-tests: New file.
65468         * tests/test-ftello.c: New file.
65469
65470         * modules/ftello: New file.
65471         * m4/ftello.m4: New file.
65472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65473         HAVE_FTELLO.
65474         * lib/stdio_.h (ftello): New declaration.
65475         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65476         HAVE_FTELLO.
65477
65478 2007-04-25  Bruno Haible  <bruno@clisp.org>
65479
65480         * modules/fseeko-tests: New file.
65481         * tests/test-fseeko.c: New file.
65482
65483         * modules/fseeko: New file.
65484         * m4/fseeko.m4: New file.
65485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65486         HAVE_FSEEKO.
65487         * lib/stdio_.h (fseeko): New declaration.
65488         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65489         HAVE_FSEEKO.
65490
65491 2007-04-25  Bruno Haible  <bruno@clisp.org>
65492
65493         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65494
65495 2007-04-25  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65498         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65499         * tests/test-unistd.c: Likewise.
65500         * tests/test-fcntl.c: Likewise.
65501
65502 2007-04-23  Eric Blake  <ebb9@byu.net>
65503
65504         * lib/fflush.c: Fix missing include.
65505         Reported by Bruno Haible.
65506
65507 2007-04-23  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65510         Reported by Eric Blake.
65511
65512 2007-04-23  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65515
65516 2007-04-23  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65519
65520 2007-04-23  Bruno Haible  <bruno@clisp.org>
65521
65522         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65523         Needed on HP-UX 11.
65524
65525 2007-04-16  Eric Blake  <ebb9@byu.net>
65526
65527         Make fflush rely on fpurge.
65528         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65529         open coding all variants.
65530         * modules/fflush (Depends-on): Add fpurge and unistd.
65531         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65532         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65533
65534         Fix --with-tests compilation on cygwin.
65535         * modules/argmatch-tests (Makefile.am): List gnulib library first
65536         in LDADD.
65537         * modules/argp-tests (Makefile.am): Likewise.
65538         * modules/array-list-tests (Makefile.am): Likewise.
65539         * modules/array-oset-tests (Makefile.am): Likewise.
65540         * modules/avltree-list-tests (Makefile.am): Likewise.
65541         * modules/avltree-oset-tests (Makefile.am): Likewise.
65542         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65543         * modules/carray-list-tests (Makefile.am): Likewise.
65544         * modules/dirname-tests (Makefile.am): Likewise.
65545         * modules/frexp-tests (Makefile.am): Likewise.
65546         * modules/isnanl-tests (Makefile.am): Likewise.
65547         * modules/linked-list-tests (Makefile.am): Likewise.
65548         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65549         * modules/lock-tests (Makefile.am): Likewise.
65550         * modules/rbtree-list-tests (Makefile.am): Likewise.
65551         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65552         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65553         * modules/tls-tests (Makefile.am): Likewise.
65554         * modules/tsearch-tests (Makefile.am): Likewise.
65555         * modules/xvasprintf-tests (Makefile.am): Likewise.
65556
65557         Fix fpurge for cygwin.
65558         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65559         value.
65560         * modules/fpurge-tests (Depends-on): Clean up trash.
65561
65562 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65563
65564         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65565
65566         * m4/autobuild.m4: Re-indent.
65567
65568 2007-04-13  Bruno Haible  <bruno@clisp.org>
65569
65570         * modules/fpurge-tests: New file.
65571         * tests/test-fpurge.c: New file.
65572
65573         * modules/fpurge: New file.
65574         * lib/fpurge.h: New file.
65575         * lib/fpurge.c: New file.
65576         * m4/fpurge.m4: New file.
65577
65578 2007-04-13  Bruno Haible  <bruno@clisp.org>
65579
65580         * modules/fbufmode-tests: New file.
65581         * tests/test-fbufmode.c: New file.
65582
65583         * modules/fbufmode: New file.
65584         * lib/fbufmode.h: New file.
65585         * lib/fbufmode.c: New file.
65586         * m4/fbufmode.m4: New file.
65587
65588 2007-04-13  Bruno Haible  <bruno@clisp.org>
65589
65590         * modules/fwritable-tests: New file.
65591         * tests/test-fwritable.c: New file.
65592
65593         * modules/fwritable: New file.
65594         * lib/fwritable.h: New file.
65595         * lib/fwritable.c: New file.
65596         * m4/fwritable.m4: New file.
65597
65598 2007-04-13  Bruno Haible  <bruno@clisp.org>
65599
65600         * modules/freadable-tests: New file.
65601         * tests/test-freadable.c: New file.
65602
65603         * modules/freadable: New file.
65604         * lib/freadable.h: New file.
65605         * lib/freadable.c: New file.
65606         * m4/freadable.m4: New file.
65607
65608 2007-04-13  Bruno Haible  <bruno@clisp.org>
65609
65610         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65611         MOSTLYCLEANFILES.
65612
65613 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65616         gzip bootstrap.conf to avoid dragging in i18n machinery.
65617         (gnulib_tool_option): Use it.
65618
65619 2007-04-13  Bruno Haible  <bruno@clisp.org>
65620
65621         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65622         %F directives.
65623         * tests/test-vasprintf-posix.c (test_function): Likewise.
65624         * tests/test-snprintf-posix.h (test_function): Likewise.
65625         * tests/test-sprintf-posix.h (test_function): Likewise.
65626         * tests/test-fprintf-posix.h (test_function): Likewise.
65627         * tests/test-printf-posix.h (test_function): Likewise.
65628         * tests/test-fprintf-posix.out: Likewise.
65629
65630 2007-04-13  Bruno Haible  <bruno@clisp.org>
65631
65632         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65633         * modules/tls-tests (configure.ac): Likewise.
65634         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65635
65636 2007-04-13  Bruno Haible  <bruno@clisp.org>
65637
65638         * lib/tls.c (glthread_tls_get): Fix return type.
65639         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65640
65641 2007-04-12  Eric Blake  <ebb9@byu.net>
65642
65643         * modules/gettime (Depends-on): Remove gettime.
65644         Reported by Dmitry V. Levin.
65645
65646 2007-04-12  Bruno Haible  <bruno@clisp.org>
65647
65648         * modules/fflush (Include): Mention <stdio.h>.
65649         * modules/strtoimax (Include): Mention <inttypes.h>.
65650         * modules/strtoumax (Include): Likewise.
65651
65652 2007-04-12  Eric Blake  <ebb9@byu.net>
65653
65654         * .cvsignore: New file.
65655         * .gitignore: Likewise.
65656
65657 2007-04-12  Bruno Haible  <bruno@clisp.org>
65658
65659         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65660         not before, since $(LDADD) often contains libgnu.a.
65661         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65662         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65663         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65664         Needed on Cygwin.
65665
65666 2007-04-12  Eric Blake  <ebb9@byu.net>
65667
65668         Work around glibc's failure to flush stdin on fclose.
65669         * lib/closein.c (close_stdin): Flush stdin before closing.
65670
65671         Work around glibc's failure to reset seekable stdin on exit.
65672         * modules/closein: New module.
65673         * lib/closein.c: New file.
65674         * lib/closein.h: Likewise.
65675         * m4/closein.m4: Likewise.
65676         * MODULES.html.sh (File stream based Input/Output): Document it.
65677
65678 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65679
65680         * gnulib-tool: Rename generated 'autobuild' script to
65681         'do-autobuild' in --create-megatestdir output.
65682
65683         * doc/gnulib.texi (Build robot for gnulib): Fix.
65684
65685 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65686
65687         * modules/sysexits (Depends-on): Add absolute-header.
65688
65689 2007-04-12  Eric Blake  <ebb9@byu.net>
65690
65691         No need to preserve errno on success.
65692         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65693         Reported by Bruno Haible.
65694
65695 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65696
65697         * MODULES.html.sh (Support for maintaining and releasing
65698         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65699
65700 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65701
65702         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65703
65704 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65705
65706         * modules/autobuild: New module.
65707
65708         * m4/autobuild.m4: New file.
65709
65710 2007-04-11  Bruno Haible  <bruno@clisp.org>
65711
65712         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65713         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65717         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65718         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65719         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65720         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65721         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65722         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65723         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65724         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65726         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65727         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65729         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65730         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65731         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65732         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65733         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65735         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65736         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65738         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65739         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65740         Reported by Eric Blake.
65741
65742 2007-04-11  Bruno Haible  <bruno@clisp.org>
65743
65744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65745
65746 2007-04-10  Bruno Haible  <bruno@clisp.org>
65747
65748         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65749         for NaN and Infinity. Needed on FreeBSD 6.1.
65750         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65751         regarding results for "%010a" of Infinity and NaN.
65752         * tests/test-vasprintf-posix.c (test_function): Likewise.
65753         * tests/test-snprintf-posix.h (test_function): Likewise.
65754         * tests/test-sprintf-posix.h (test_function): Likewise.
65755         * tests/test-fprintf-posix.h (test_function): Likewise.
65756         * tests/test-printf-posix.h (test_function): Likewise.
65757         * tests/test-fprintf-posix.out: Likewise.
65758
65759 2007-04-10  Bruno Haible  <bruno@clisp.org>
65760
65761         * modules/locale-tests: New file.
65762         * tests/test-locale.c: New file.
65763
65764         * modules/locale: New file.
65765         * lib/locale_.h: New file.
65766         * m4/locale_h.m4: New file.
65767
65768 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65769             Bruno Haible  <bruno@clisp.org>
65770
65771         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65772         be determined, test for availability of the copysignf, copysign,
65773         copysignl functions.
65774         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65775         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65776         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65777
65778 2007-04-09  Eric Blake  <ebb9@byu.net>
65779
65780         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65781         * modules/stdio (Makefile.am): Support fflush.
65782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65783         * modules/fflush: New file.
65784         * lib/fflush.c: Likewise.
65785         * m4/fflush.m4: Likewise.
65786         * modules/fflush-tests: New test.
65787         * tests/test-fflush.c: Likewise.
65788         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65789
65790 2007-04-06  Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65793         (VASNPRINTF): Use signbit for faster determination whether to print a
65794         minus sign.
65795         * modules/vasnprintf (Files): Remove lib/float+.h.
65796         * modules/fprintf-posix (Depends-on): Add signbit.
65797         * modules/snprintf-posix (Depends-on): Likewise.
65798         * modules/sprintf-posix (Depends-on): Likewise.
65799         * modules/vasnprintf-posix (Depends-on): Likewise.
65800         * modules/vasprintf-posix (Depends-on): Likewise.
65801         * modules/vfprintf-posix (Depends-on): Likewise.
65802         * modules/vsnprintf-posix (Depends-on): Likewise.
65803         * modules/vsprintf-posix (Depends-on): Likewise.
65804
65805 2007-04-06  Bruno Haible  <bruno@clisp.org>
65806
65807         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65808         * tests/test-frexpl.c (main): Likewise.
65809         * tests/test-ldexpl.c (main): Likewise.
65810         * modules/frexp-tests (Depends-on): Add signbit.
65811         * modules/frexpl-tests (Depdends-on): Likewise.
65812         * modules/ldexpl-tests (Depdends-on): Likewise.
65813
65814 2007-04-06  Bruno Haible  <bruno@clisp.org>
65815
65816         * modules/signbit-tests: New file.
65817         * tests/test-signbit.c: New file.
65818
65819         * modules/signbit: New file.
65820         * lib/signbitf.c: New file.
65821         * lib/signbitd.c: New file.
65822         * lib/signbitl.c: New file.
65823         * m4/signbit.m4: New file.
65824         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65825         (signbit): New macro.
65826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65827         REPLACE_SIGNBIT.
65828         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65829         REPLACE_FREXPL into math.h.
65830
65831 2007-04-06  Bruno Haible  <bruno@clisp.org>
65832
65833         * modules/isnanf-nolibm-tests: New file.
65834         * tests/test-isnanf.c: New file.
65835
65836         * modules/isnanf-nolibm: New file.
65837         * lib/isnanf.h: New file.
65838         * lib/isnanf.c: New file.
65839         * lib/isnan.c: Consider the USE_FLOAT macro.
65840         * m4/isnanf.m4: New file.
65841
65842 2007-04-06  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65845         (Link): New section.
65846
65847         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65848
65849 2007-04-06  Bruno Haible  <bruno@clisp.org>
65850
65851         Assume the 'long double' type.
65852         * m4/longdouble.m4: Remove file.
65853         * config/srclist.txt: Don't mention longdouble.m4.
65854         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65855         * lib/float+.h: Likewise.
65856         * lib/frexp.c: Likewise.
65857         * lib/printf-args.h: Likewise.
65858         * lib/printf-args.c: Likewise.
65859         * lib/printf-frexp.c: Likewise.
65860         * lib/printf-parse.c: Likewise.
65861         * lib/vasnprintf.c: Likewise.
65862         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65863         * m4/intl.m4: Likewise.
65864         * m4/isnanl.m4: Likewise.
65865         * m4/printf.m4: Likewise.
65866         * m4/printf-frexpl.m4: Likewise.
65867         * m4/vasnprintf.m4: Likewise.
65868         * modules/allocsa (Files): Remove m4/longdouble.m4.
65869         * modules/gettext (Files): Likewise.
65870         * modules/relocatable-prog-wrapper (Files): Likewise.
65871         * modules/vasnprintf (Files): Likewise.
65872         * modules/isnanl (Files): Likewise.
65873         (Include): Simplify.
65874         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65875         (Include): Simplify.
65876         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65877         (Include): Simplify.
65878         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65880         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65882         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65883         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65884         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65885         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65886         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65887         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65888         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65890         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65891         * tests/test-isnanl.c: Likewise.
65892         * tests/test-snprintf-posix.h: Likewise.
65893         * tests/test-sprintf-posix.h: Likewise.
65894         * tests/test-vasnprintf-posix.c: Likewise.
65895         * tests/test-vasnprintf-posix2.c: Likewise.
65896         * tests/test-vasprintf-posix.c: Likewise.
65897
65898 2007-04-06  Bruno Haible  <bruno@clisp.org>
65899
65900         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65901         * lib/math_.h [__DECC]: Include the overridden include file through
65902         #include_next, outside the double-inclusion guard.
65903         * lib/stdio_.h [__DECC]: Likewise.
65904         * lib/stdlib_.h [__DECC]: Likewise.
65905         * lib/string_.h [__DECC]: Likewise.
65906         * lib/time_.h [__DECC]: Likewise.
65907         * lib/wchar_.h [__DECC]: Likewise.
65908         * lib/wctype_.h [__DECC]: Likewise.
65909         * lib/inttypes_.h [__DECC]: Likewise.
65910         Reported by Albert Chin <china@thewrittenword.com> in
65911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65912
65913 2007-04-04  Eric Blake  <ebb9@byu.net>
65914
65915         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65916         1.5.x.
65917
65918 2007-04-04  Bruno Haible  <bruno@clisp.org>
65919
65920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65921         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65922
65923 2007-04-04  Bruno Haible  <bruno@clisp.org>
65924
65925         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65926         results for "%010a" of Infinity and NaN.
65927         * tests/test-vasprintf-posix.c (test_function): Likewise.
65928         * tests/test-snprintf-posix.h (test_function): Likewise.
65929         * tests/test-sprintf-posix.h (test_function): Likewise.
65930         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65931         * tests/test-printf-posix.h (test_function): Likewise.
65932         * tests/test-fprintf-posix.out: Update.
65933         Needed for FreeBSD 6.1.
65934
65935 2007-04-04  Bruno Haible  <bruno@clisp.org>
65936
65937         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65938         directly used by the gnulib modules nor by gnulib-tool.
65939
65940 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * DEPENDENCIES: Give overall description of version dependency
65943         desirability.  Use more-typical names for apps.
65944         Add shell, coreutils, diffutils, grep, tar, gzip.
65945
65946 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65947
65948         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65949
65950 2007-04-04  Karl Berry  <karl@gnu.org>
65951
65952         * MODULES.html.sh (func_module): missing '.
65953
65954 2007-04-03  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/argmatch-tests (Makefile.am): New variable
65957         test_argmatch_LDADD.
65958         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65959         * modules/array-list-tests (Makefile.am): New variable
65960         test_array_list_LDADD.
65961         * modules/array-oset-tests (Makefile.am): New variable
65962         test_array_oset_LDADD.
65963         * modules/avltree-list-tests (Makefile.am): New variable
65964         test_avltree_list_LDADD.
65965         * modules/avltree-oset-tests (Makefile.am): New variable
65966         test_avltree_oset_LDADD.
65967         * modules/avltreehash-list-tests (Makefile.am): New variable
65968         test_avltreehash_list_LDADD.
65969         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65970         test_canonicalize_lgpl_LDADD.
65971         * modules/carray-list-tests (Makefile.am): New variable
65972         test_carray_list_LDADD.
65973         * modules/dirname-tests (Makefile.am): New variable
65974         test_dirname_LDADD.
65975         * modules/linked-list-tests (Makefile.am): New variable
65976         test_linked_list_LDADD.
65977         * modules/linkedhash-list-tests (Makefile.am): New variable
65978         test_linkedhash_list_LDADD.
65979         * modules/rbtree-list-tests (Makefile.am): New variable
65980         test_rbtree_list_LDADD.
65981         * modules/rbtree-oset-tests (Makefile.am): New variable
65982         test_rbtree_oset_LDADD.
65983         * modules/rbtreehash-list-tests (Makefile.am): New variable
65984         test_rbtreehash_list_LDADD.
65985         * modules/xvasprintf-tests (Makefile.am): New variable
65986         test_xvasprintf_LDADD.
65987         Reported by Eric Blake.
65988
65989 2007-04-03  Eric Blake  <ebb9@byu.net>
65990
65991         * DEPENDENCIES: Weaken m4 requirements.
65992
65993 2007-04-03  Bruno Haible  <bruno@clisp.org>
65994
65995         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65996         * modules/isnanl-tests (configure.ac): Likewise.
65997
65998 2007-04-03  Ben Pfaff  <blp@gnu.org>
65999
66000         * modules/iconv_open: Add $(srcdir)/ to source directory
66001         references in Makefile fragments that call gperf, to fix VPATH
66002         builds.
66003
66004 2007-04-03  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66007         * lib/ldexpl.c: Undo last change.
66008
66009 2007-04-03  Bruno Haible  <bruno@clisp.org>
66010
66011         * modules/printf-frexpl (Depends-on): Undo last change.
66012         (Files): Add m4/ldexpl.m4.
66013
66014 2007-04-03  Bruno Haible  <bruno@clisp.org>
66015
66016         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66017         * modules/isnanl (Link): New section.
66018
66019         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66020         * modules/frexp (Link): New section.
66021
66022         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66023         * modules/frexpl (Link): New section.
66024
66025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66026         * modules/ldexpl (Link): New section.
66027
66028 2007-04-03  Bruno Haible  <bruno@clisp.org>
66029
66030         * modules/TEMPLATE-EXTENDED: New file.
66031         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66032
66033 2007-04-03  Bruno Haible  <bruno@clisp.org>
66034
66035         * DEPENDENCIES: New file.
66036         Suggested by Simon Josefsson.
66037
66038 2007-04-03  Bruno Haible  <bruno@clisp.org>
66039
66040         * doc/gnulib.texi: Escape @.
66041
66042 2007-04-03  James Youngman  <jay@gnu.org>
66043         and Paul Eggert  <eggert@cs.ucla.edu>
66044
66045         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66046         birthtime on all systems that have birthtime, not just those which
66047         use st_birthtimensec rather than st_birthtim.  Putting zero in
66048         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66049         that the birth time is not available for files on an NFS mount.
66050
66051 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66052
66053         * modules/memxor: Move back from crypto/, suggested by Bruno.
66054         * modules/crypto/hmac-sha1: Fix memxor dependency.
66055
66056         * modules/crypto/gc: Moved from ../.
66057
66058 2007-04-02  Eric Blake  <ebb9@byu.net>
66059
66060         * lib/ldexpl.c (includes): Avoid libm.
66061
66062         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66063
66064 2007-04-02  Bruno Haible  <bruno@clisp.org>
66065
66066         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66067         on IRIX.
66068
66069 2007-04-02  Bruno Haible  <bruno@clisp.org>
66070
66071         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66072         x86 or x86_64 platforms running MacOS X.
66073         Reported by Ryan Schmidt <@ryandesign.com>.
66074
66075 2007-04-02  Bruno Haible  <bruno@clisp.org>
66076
66077         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66078         i386.
66079
66080 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66081
66082         * modules/crypto/arcfour: Moved from ../.
66083         * modules/crypto/arcfour-tests: Moved from ../.
66084         * modules/crypto/arctwo: Moved from ../.
66085         * modules/crypto/arctwo-tests: Moved from ../.
66086         * modules/crypto/des: Moved from ../.
66087         * modules/crypto/des-tests: Moved from ../.
66088         * modules/crypto/gc-arcfour: Moved from ../.
66089         * modules/crypto/gc-arcfour-tests: Moved from ../.
66090         * modules/crypto/gc-arctwo: Moved from ../.
66091         * modules/crypto/gc-arctwo-tests: Moved from ../.
66092         * modules/crypto/gc-des: Moved from ../.
66093         * modules/crypto/gc-des-tests: Moved from ../.
66094         * modules/crypto/gc-hmac-md5: Moved from ../.
66095         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66096         * modules/crypto/gc-hmac-sha1: Moved from ../.
66097         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66098         * modules/crypto/gc-md2: Moved from ../.
66099         * modules/crypto/gc-md2-tests: Moved from ../.
66100         * modules/crypto/gc-md4: Moved from ../.
66101         * modules/crypto/gc-md4-tests: Moved from ../.
66102         * modules/crypto/gc-md5: Moved from ../.
66103         * modules/crypto/gc-md5-tests: Moved from ../.
66104         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66105         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66106         * modules/crypto/gc-random: Moved from ../.
66107         * modules/crypto/gc-rijndael: Moved from ../.
66108         * modules/crypto/gc-rijndael-tests: Moved from ../.
66109         * modules/crypto/gc-sha1: Moved from ../.
66110         * modules/crypto/gc-sha1-tests: Moved from ../.
66111         * modules/crypto/gc-tests: Moved from ../.
66112         * modules/crypto/hmac-md5: Moved from ../.
66113         * modules/crypto/hmac-md5-tests: Moved from ../.
66114         * modules/crypto/hmac-sha1: Moved from ../.
66115         * modules/crypto/hmac-sha1-tests: Moved from ../.
66116         * modules/crypto/md2: Moved from ../.
66117         * modules/crypto/md2-tests: Moved from ../.
66118         * modules/crypto/md4: Moved from ../.
66119         * modules/crypto/md4-tests: Moved from ../.
66120         * modules/crypto/md5: Moved from ../.
66121         * modules/crypto/md5-tests: Moved from ../.
66122         * modules/crypto/memxor: Moved from ../.
66123         * modules/crypto/rijndael: Moved from ../.
66124         * modules/crypto/rijndael-tests: Moved from ../.
66125         * modules/crypto/sha1: Moved from ../.
66126
66127 2007-03-30  James Youngman  <jay@gnu.org>
66128
66129         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66130         rename() to change the ctime of a file (because ctime is unaffected
66131         by rename on jfs2 on AIX 5.1).
66132         (main): Start by doing cleanup, in case a previous run failed leaving
66133         test files behind.
66134
66135 2007-03-31  Bruno Haible  <bruno@clisp.org>
66136
66137         Support old proprietary implementations of iconv.
66138         * modules/iconv_open: New file.
66139         * lib/iconv_.h: New file.
66140         * m4/iconv_h.m4: New file.
66141         * lib/iconv_open.c: New file.
66142         * lib/iconv_open-aix.gperf: New file.
66143         * lib/iconv_open-hpux.gperf: New file.
66144         * lib/iconv_open-irix.gperf: New file.
66145         * lib/iconv_open-osf.gperf: New file.
66146         * m4/iconv_open.m4: New file.
66147         * modules/linebreak (Depends-on): Add iconv_open.
66148         * modules/striconv (Depends-on): Likewise.
66149         * modules/striconveh (Depends-on): Likewise.
66150         * modules/unicodeio (Depends-on): Likewise.
66151         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66152         (iconv_t)(-1).
66153         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66154         conversion if cd is (iconv_t)(-1).
66155         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66156         is not possible.
66157
66158 2007-03-31  Bruno Haible  <bruno@clisp.org>
66159
66160         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66161         work on Solaris either. Protect also second use of "autodetect_jp".
66162
66163 2007-03-31  Bruno Haible  <bruno@clisp.org>
66164
66165         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66166         the function is not present.
66167
66168 2007-03-31  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66171         the function is not present.
66172
66173 2007-03-31  Bruno Haible  <bruno@clisp.org>
66174
66175         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66176         a bug in HP-UX iconv_open().
66177
66178 2007-03-31  Bruno Haible  <bruno@clisp.org>
66179
66180         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66181         (Mathematics <math.h>): New section, add fpieee.
66182         (Input/output <stdio.h>): Add fseterr.
66183         (Mathematics <math.h>): New section, add printf-frexp.
66184         (Container data structures): Add sublist.
66185         (Core language properties): Add fpucw, inline.
66186         (Functions for greatest-width integer types <inttypes.h>): Add
66187         imaxabs, imaxdiv, inttypes.
66188         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66189         isnanl-nolibm, ldexp.
66190         (Mathematics <math.h>): New section, add printf-frexpl.
66191         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66192         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66193         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66194         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66195         (Unicode string functions): Add unistr/u*-mbtoucr.
66196         (Java): Add javacomp-script, javaexec-script.
66197         (C#): Add csharpcomp-script, csharpexec-script.
66198         (Support for building libraries and executables): Add havelib,
66199         relocatable-*.
66200         (Support for maintaining and releasing projects): Renamed from
66201         'Support for maintaining and release projects'. Add announce-gen.
66202
66203 2007-03-31  Bruno Haible  <bruno@clisp.org>
66204
66205         * README: Talk primarily about git.
66206         (git and CVS): Renamed from CVS.
66207         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66208         gnulib is available through git.
66209         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66210
66211 2007-03-30  Bruno Haible  <bruno@clisp.org>
66212
66213         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66214         * lib/poll_.h: Likewise.
66215         * lib/stat_.h: Likewise.
66216         * lib/sys_time_.h: Likewise.
66217         * lib/sysexit_.h: Likewise.
66218         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66219         * lib/stdbool_.h: Likewise.
66220         * lib/byteswap_.h: Add double-inclusion guard.
66221
66222 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66223
66224         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66225
66226 2007-03-30  Karl Berry  <karl@gnu.org>
66227
66228         * config/srclist-update: double space after USA in the license
66229         substitution, since that's how it's usually (?) written.
66230
66231 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66234         reported by Bruno Haible.
66235
66236 2007-03-29  Bruno Haible  <bruno@clisp.org>
66237
66238         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66239         a bug in AIX iconv().
66240
66241 2007-03-29  Bruno Haible  <bruno@clisp.org>
66242
66243         * modules/ldexpl-tests: New file.
66244         * tests/test-ldexpl.c: New file.
66245
66246 2007-03-29  Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/ldexpl.c: Include fpucw.h.
66249         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66250         multiplication.
66251         * modules/ldexpl (Depends-on): Add fpucw.
66252
66253 2007-03-29  Bruno Haible  <bruno@clisp.org>
66254
66255         * modules/ldexpl: New file.
66256         * m4/ldexpl.m4: New file.
66257         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66258         set.
66259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66260         REPLACE_LDEXPL.
66261         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66262         REPLACE_LDEXPL.
66263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66264         gl_FUNC_LDEXPL_WORKS.
66265         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66266         * modules/mathl (Files): Remove lib/ldexpl.c.
66267         (Depends-on): Add ldexpl.
66268
66269 2007-03-29  Bruno Haible  <bruno@clisp.org>
66270
66271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66272
66273 2007-03-29  Bruno Haible  <bruno@clisp.org>
66274
66275         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66276         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66277         and possibly also HP-UX.
66278         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66279         work on AIX, IRIX, HP-UX, OSF/1.
66280         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66281         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66282         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66283         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66284         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66285         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66286
66287 2007-03-29  Bruno Haible  <bruno@clisp.org>
66288
66289         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66290
66291 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66294         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66295
66296 2007-03-29  Eric Blake  <ebb9@byu.net>
66297
66298         * lib/acl-internal.h: Remove redundant include.
66299         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66300         Cygwin when a file is locked.
66301
66302 2007-03-29  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66305         file.
66306         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66307
66308 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66311         try to remove a parent directory if the child couldn't be removed
66312         (except for the first rmdir, which could fail because the child
66313         doesn't exist).  Problem reported by Jeff Blaine in
66314         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66315
66316 2007-03-28  Bruno Haible  <bruno@clisp.org>
66317
66318         * lib/striconveh.c (utf8conv_carefully): New function.
66319         (mem_cd_iconveh_internal): Invoke it.
66320
66321 2007-03-28  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66324         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66325         input.
66326         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66327         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66328         unistr/u8-uctomb.
66329
66330 2007-03-28  Bruno Haible  <bruno@clisp.org>
66331
66332         * modules/unistr/u8-mbtoucr: New file.
66333         * lib/unistr/u8-mbtoucr.c: New file.
66334         * modules/unistr/u16-mbtoucr: New file.
66335         * lib/unistr/u16-mbtoucr.c: New file.
66336         * modules/unistr/u16-mbtoucr: New file.
66337         * lib/unistr/u16-mbtoucr.c: New file.
66338         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66339
66340 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66341             Bruno Haible  <bruno@clisp.org>
66342
66343         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66344         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66345         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66346
66347         * m4/stdio_h.m4: Add stubs for vasprintf too.
66348
66349         * modules/stdio: Support vasprintf in sed command.
66350
66351         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66352         vasprintf.h.  Add stdio module indicator.
66353
66354         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66355         vasprintf.h.
66356
66357         * lib/vasprintf.h: File removed.
66358
66359         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66360         * lib/vasprintf.c: Ditto.
66361         * lib/xvasprintf.c: Ditto.
66362         * tests/test-vasprintf-posix.c: Ditto.
66363         * tests/test-vasprintf.c: Ditto.
66364
66365 2007-03-27  Bruno Haible  <bruno@clisp.org>
66366
66367         Make vasnprintf multithread-safe.
66368         * lib/vasnprintf.c (decimal_point_char): New function.
66369         (VASNPRINTF): Use it.
66370         Suggested by Simon Josefsson.
66371
66372 2007-03-27  Eric Blake  <ebb9@byu.net>
66373
66374         Support sub-second birthtime on cygwin.
66375         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66376         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66377         (get_stat_birthtime): Also work with st_birthtim.
66378
66379 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66382         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66383         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66384         (get_stat_birthtime_ns): Simplify compile-time tests.
66385         (get_stat_birthtime): Change the API to look like
66386         get_stat_mtime etc., except return a negative tv_nsec on error.
66387         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66388         Don't check for "spare" fields.
66389         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66390         or for struct stat.st_birthtime, as these tests aren't used.
66391         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66392
66393 2007-03-27  Bruno Haible  <bruno@clisp.org>
66394
66395         * lib/stat-time.h: Include <sys/stat.h>.
66396
66397 2007-03-27  James Youngman  <jay@gnu.org>
66398
66399         * lib/stat-time.h (get_stat_birthtime): New function for
66400           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66401         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66402           and its variants.
66403         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66404         * modules/stat-time-test: New file.
66405         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66406
66407 2007-03-26  Bruno Haible  <bruno@clisp.org>
66408
66409         Better support of signalling NaNs.
66410         * lib/atanl.c: Include isnanl.h.
66411         (atanl): Perform test for NaN at the beginning of the function and
66412         through a call to isnanl.
66413         * lib/cosl.c: Include isnanl.h.
66414         (cosl): Perform test for NaN at the beginning of the function and
66415         through a call to isnanl.
66416         * lib/ldexpl.c: Include isnanl.h.
66417         (ldexpl): Perform test for NaN through a call to isnanl.
66418         * lib/logl.c: Include isnanl.h.
66419         (logl): Perform test for NaN at the beginning of the function and
66420         through a call to isnanl.
66421         * lib/sinl.c: Include isnanl.h.
66422         (sinl): Perform test for NaN at the beginning of the function and
66423         through a call to isnanl.
66424         * lib/sqrtl.c: Include isnanl.h.
66425         (sqrtl): Perform test for NaN at the beginning of the function and
66426         through a call to isnanl.
66427         * lib/tanl.c: Include isnanl.h.
66428         (tanl): Perform test for NaN at the beginning of the function and
66429         through a call to isnanl.
66430         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66431         * modules/mathl (Depends-on): Add isnanl.
66432
66433 2007-03-26  Eric Blake  <ebb9@byu.net>
66434
66435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66436         regression in logic sense of previous patch.
66437
66438 2007-03-26  Bruno Haible  <bruno@clisp.org>
66439
66440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66441         unportable shell command "if ! ...".
66442         Reported by Ralf Wildenhues.
66443
66444 2007-03-25  Bruno Haible  <bruno@clisp.org>
66445
66446         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66447         <sysexits.h> file, and only add EX_CONFIG.
66448         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66449         absolute file name and whether it is sufficient. Substitute also
66450         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66451         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66452         ABSOLUTE_SYSEXITS_H into sysexits.h.
66453
66454 2007-03-25  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66457         hints is NULL.
66458
66459 2007-03-25  Bruno Haible  <bruno@clisp.org>
66460
66461         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66462         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66463
66464 2007-03-25  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/vasnprintf.c: Include langinfo.h.
66467         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66468         multithread-safe.
66469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66471         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66473         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66474         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66477         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66478         Reported by Simon Josefsson.
66479
66480 2007-03-25  Bruno Haible  <bruno@clisp.org>
66481
66482         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66483         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66484         * modules/vasnprintf (Depends-on): Add stdint.
66485
66486 2007-03-25  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/fpieee: New file.
66489         * m4/fpieee.m4: New file.
66490         * modules/isnan-nolibm (Depends-on): Add fpieee.
66491         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66492         * modules/isnanl (Depends-on): Add fpieee.
66493
66494 2007-03-25  Bruno Haible  <bruno@clisp.org>
66495
66496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66497
66498 2007-03-25  Bruno Haible  <bruno@clisp.org>
66499
66500         Avoid test failures on IRIX 6.5.
66501         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66502         (main): Use it.
66503         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66504         macros.
66505         (main): Use them.
66506
66507 2007-03-25  Bruno Haible  <bruno@clisp.org>
66508
66509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66510         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66511         exists but doesn't work.
66512         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66513         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66515         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66516         math.h.
66517
66518 2007-03-25  Bruno Haible  <bruno@clisp.org>
66519
66520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66521         returns inf. Needed on IRIX 6.5.
66522
66523 2007-03-25  Bruno Haible  <bruno@clisp.org>
66524
66525         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66526         (main): Use isnanl instead of x != x idiom.
66527         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66528
66529         * tests/test-frexp.c: Include isnan.h.
66530         (main): Use isnan instead of x != x idiom.
66531         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66532
66533 2007-03-25  Bruno Haible  <bruno@clisp.org>
66534
66535         * tests/test-frexp.c (NaN): New function/macro.
66536         (main): Use it instead of 0.0 / 0.0.
66537         * tests/test-isnan.c (NaN): New function/macro.
66538         (main): Use it instead of 0.0 / 0.0.
66539         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66540         (test_function): Use it instead of 0.0 / 0.0.
66541         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66542         (test_function): Use it instead of 0.0 / 0.0.
66543         * tests/test-snprintf-posix.h (NaN): New function/macro.
66544         (test_function): Use it instead of 0.0 / 0.0.
66545         * tests/test-sprintf-posix.h (NaN): New function/macro.
66546         (test_function): Use it instead of 0.0 / 0.0.
66547         * tests/test-fprintf-posix.h (NaN): New function/macro.
66548         (test_function): Use it instead of 0.0 / 0.0.
66549         * tests/test-printf-posix.h (NaN): New function/macro.
66550         (test_function): Use it instead of 0.0 / 0.0.
66551
66552         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66553
66554 2007-03-25  Bruno Haible  <bruno@clisp.org>
66555
66556         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66557
66558 2007-03-25  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/regexec.c (merge_state_with_log): Make static.
66561
66562 2007-03-25  Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/trigl.c (kernel_rem_pio2): Make static.
66565
66566 2007-03-25  Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/sincosl.c (sincosl_table): Make static.
66569
66570 2007-03-25  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66573         if the compiler does not support C99.
66574
66575 2007-03-25  Bruno Haible  <bruno@clisp.org>
66576
66577         * modules/time (Makefile.am): Ensure all rule action lines start with a
66578         tab.
66579
66580 2007-03-24  Bruno Haible  <bruno@clisp.org>
66581
66582         * modules/tsearch-tests: New file.
66583         * tests/test-tsearch.sh: New file.
66584         * tests/test-tsearch.c: New file, mostly copied from glibc.
66585
66586         * modules/search-tests: New file.
66587         * tests/test-search.c: New file.
66588
66589         * modules/search: New file.
66590         * lib/search_.h: New file, incorporating lib/tsearch.h.
66591         * m4/search_h.m4: New file.
66592         * lib/tsearch.h: Remove file.
66593         * lib/tsearch.c: Include search.h instead of tsearch.h.
66594         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66595         HAVE_TSEARCH.
66596         * modules/tsearch (Files): Remove lib/tsearch.h.
66597         (Depends-on): Add search.
66598         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66599         (Include): Change tsearch.h into search.h.
66600
66601 2007-03-24  Bruno Haible  <bruno@clisp.org>
66602
66603         * modules/fpucw: New file.
66604         * lib/fpucw.h: New file.
66605         * lib/frexp.c: Include fpucw.h.
66606         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66607         (FUNC): Use them.
66608         * lib/printf-frexp.c: Include fpucw.h.
66609         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66610         (FUNC): Use them.
66611         * lib/vasnprintf.c: Include fpucw.h.
66612         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66613         'long double' calculations.
66614         * tests/test-frexpl.c: Include fpucw.h.
66615         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66616         * tests/test-printf-frexpl.c: Include fpucw.h.
66617         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66618         * modules/frexpl (Depends-on): Add fpucw.
66619         * modules/printf-frexpl (Depends-on): Likewise.
66620         * modules/fprintf-posix (Depends-on): Likewise.
66621         * modules/snprintf-posix (Depends-on): Likewise.
66622         * modules/sprintf-posix (Depends-on): Likewise.
66623         * modules/vasnprintf-posix (Depends-on): Likewise.
66624         * modules/vasprintf-posix (Depends-on): Likewise.
66625         * modules/vfprintf-posix (Depends-on): Likewise.
66626         * modules/vsnprintf-posix (Depends-on): Likewise.
66627         * modules/vsprintf-posix (Depends-on): Likewise.
66628         * modules/frexpl-tests (Depends-on): Likewise.
66629         * modules/printf-frexpl-tests (Depends-on): Likewise.
66630
66631 2007-03-24  Bruno Haible  <bruno@clisp.org>
66632
66633         * lib/float+.h: New file.
66634         * lib/isnan.c: Include float+.h.
66635         (SIZE): New macro.
66636         (FUNC): Compare only SIZE bytes of the value.
66637         * lib/vasnprintf.c: Include float+.h.
66638         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66639         SIZEOF_LDBL or SIZEOF_DBL bytes.
66640         * modules/isnan-nolibm (Files): Add lib/float+.h.
66641         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66642         * modules/isnanl (Files): Add lib/float+.h.
66643         * modules/vasnprintf (Files): Add lib/float+.h.
66644
66645 2007-03-24  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66648         include isnanl-nolibm.h.
66649
66650 2007-03-24  Bruno Haible  <bruno@clisp.org>
66651
66652         * tests/test-read-file.c (main): Don't produce spurious output for
66653         expected situations. Make the test fail if it encountered unexpected
66654         results.
66655
66656 2007-03-24  Bruno Haible  <bruno@clisp.org>
66657
66658         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66659         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66660
66661 2007-03-24  Bruno Haible  <bruno@clisp.org>
66662
66663         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66664
66665 2007-03-24  Bruno Haible  <bruno@clisp.org>
66666
66667         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66668         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66669
66670         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66671         * modules/utf8-ucs4: Turn into a symbolic link to module
66672         unistr/u8-mbtouc.
66673
66674         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66675         utf8-ucs4-unsafe.
66676         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66677         unistr/u8-mbtouc-unsafe.
66678
66679         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66680         * modules/utf16-ucs4: Turn into a symbolic link to module
66681         unistr/u16-mbtouc.
66682
66683         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66684         utf16-ucs4-unsafe.
66685         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66686         unistr/u16-mbtouc-unsafe.
66687
66688         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66689         * modules/ucs4-utf8: Turn into a symbolic link to module
66690         unistr/u8-ubtomb.
66691
66692         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66693         * modules/ucs4-utf16: Turn into a symbolic link to module
66694         unistr/u16-ubtomb.
66695
66696 2007-03-24  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66699         Enable the function only if HAVE_INLINE.
66700         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66701         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66702         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66703         Enable the function only if HAVE_INLINE.
66704         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66705         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66706         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66707         Enable the function only if HAVE_INLINE.
66708         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66709         Enable the function only if HAVE_INLINE.
66710         * modules/utf8-ucs4: Update.
66711         * modules/utf8-ucs4-unsafe: Update.
66712         * modules/utf16-ucs4: Update.
66713         * modules/utf16-ucs4-unsafe: Update.
66714         * modules/ucs4-utf8: Update.
66715         * modules/ucs4-utf16: Update.
66716
66717 2007-03-24  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/utf8-ucs4.h: Remove file.
66720         * lib/utf8-ucs4-unsafe.h: Remove file.
66721         * lib/utf16-ucs4.h: Remove file.
66722         * lib/utf16-ucs4-unsafe.h: Remove file.
66723         * lib/ucs4-utf8.h: Remove file.
66724         * lib/ucs4-utf16.h: Remove file.
66725         * lib/unistr.h: Include their previous contents.
66726         * m4/utf-ucs4.m4: Remove file.
66727         * m4/ucs4-utf.m4: Remove file.
66728         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66729         (Depends-on): Add unistr/base.
66730         (configure.ac): Remove gl_UTF_UCS4.
66731         (Makefile.am): Update.
66732         (Include): Change to unistr.h.
66733         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66734         (Depends-on): Add unistr/base.
66735         (configure.ac): Remove gl_UTF_UCS4.
66736         (Makefile.am): Update.
66737         (Include): Change to unistr.h.
66738         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66739         (Depends-on): Add unistr/base.
66740         (configure.ac): Remove gl_UTF_UCS4.
66741         (Makefile.am): Update.
66742         (Include): Change to unistr.h.
66743         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66744         (Depends-on): Add unistr/base.
66745         (configure.ac): Remove gl_UTF_UCS4.
66746         (Makefile.am): Update.
66747         (Include): Change to unistr.h.
66748         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66749         (Depends-on): Add unistr/base.
66750         (configure.ac): Remove gl_UCS4_UTF.
66751         (Makefile.am): Update.
66752         (Include): Change to unistr.h.
66753         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66754         (Depends-on): Add unistr/base.
66755         (configure.ac): Remove gl_UCS4_UTF.
66756         (Makefile.am): Update.
66757         (Include): Change to unistr.h.
66758         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66759         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66760         utf8-ucs4-unsafe.h.
66761         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66762         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66763         utf16-ucs4-unsafe.h.
66764         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66765         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66766         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66767         * lib/unistr/u8-strchr.c: Likewise.
66768         * lib/unistr/u8-strrchr.c: Likewise.
66769         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66770         * lib/unistr/u16-strchr.c: Likewise.
66771         * lib/unistr/u16-strrchr.c: Likewise.
66772         * lib/striconveh.c: Update.
66773         * lib/linebreak.c: Update.
66774
66775 2007-03-24  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66778         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66779
66780 2007-03-22  Bruno Haible  <bruno@clisp.org>
66781
66782         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66783
66784 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * MODULES.html.sh (File system functions): New module write-any-file.
66787         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66788         * m4/write-any-file.m4: New files.
66789
66790 2007-03-23  Eric Blake  <ebb9@byu.net>
66791
66792         * gnulib-tool: Rearrange space-tab sequences, since some editors
66793         like to eat them.
66794
66795 2007-03-23  Eric Blake  <ebb9@byu.net>
66796
66797         * lib/version-etc.c (version_etc_va): Update license wording to
66798         be more concise.  Recommended by Richard Stallman.
66799
66800 2007-03-22  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/poll.c (MSG_PEEK): New fallback definition.
66803
66804 2007-03-22  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66807         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66808         (main): Update.
66809         Fixes a compilation error on BeOS.
66810
66811 2007-03-22  Bruno Haible  <bruno@clisp.org>
66812
66813         * modules/frexpl-tests: New file.
66814         * tests/test-frexpl.c: New file.
66815
66816         * modules/frexpl: New file.
66817         * m4/frexpl.m4: New file.
66818         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66819         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66821         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66822         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66823         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66824
66825 2007-03-22  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/frexpl.c: Share code with lib/frexp.c.
66828         * modules/mathl (Files): Add lib/frexp.c.
66829         (Depends-on): Add isnanl-nolibm.
66830
66831 2007-03-22  Bruno Haible  <bruno@clisp.org>
66832
66833         * modules/printf-frexp (Files): Add m4/frexp.m4.
66834         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66835         only if the found frexp function actually works.
66836
66837 2007-03-22  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/frexp.c: Remove older implementation that uses divisions.
66840
66841 2007-03-21  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/frexp-tests: New file.
66844         * tests/test-frexp.c: New file.
66845
66846         * modules/frexp: New file.
66847         * lib/frexp.c: New file.
66848         * m4/frexp.m4: New file.
66849         * lib/math_.h (frexp): New declaration.
66850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66851         REPLACE_FREXP.
66852         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66853
66854 2007-03-21  Bruno Haible  <bruno@clisp.org>
66855
66856         * modules/isnanl-tests: New file.
66857         * tests/test-isnanl.c: New file.
66858
66859         * modules/isnanl: New file.
66860         * lib/isnanl.h: New file.
66861         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66862         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66863         gl_FUNC_ISNANL_WORKS.
66864         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66865         New macros.
66866
66867 2007-03-21  Bruno Haible  <bruno@clisp.org>
66868
66869         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66870         lib/isnanl.h.
66871         (Include): Update.
66872         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66873         * lib/vasnprintf.c: Update.
66874         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66875         tests/test-isnanl.h, remove tests/test-isnanl.c.
66876         (Makefile.am): Update.
66877         * tests/test-isnanl-nolibm.c: New file.
66878         * tests/test-isnanl.h: New file.
66879         * tests/test-isnanl.c: Remove file.
66880
66881 2007-03-21  Jim Meyering  <jim@meyering.net>
66882
66883         When trying to open ".", treat ESTALE like EACCES.
66884         * lib/savewd.c (savewd_save): Resort to forking not just upon
66885         failure with EACCES, but also when errno is ESTALE.
66886
66887 2007-03-20  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66890         Needed on AIX 5.1. Reported by Matthew Woehlke.
66891
66892 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         Suggestions by Bruno Haible:
66895         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66896         our own.
66897         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66898         * modules/acl (Depends-on): Add gettext.
66899
66900 2007-03-19  Bruno Haible  <bruno@clisp.org>
66901
66902         * modules/iconvme: Remove file.
66903         * lib/iconvme.h: Remove file.
66904         * lib/iconvme.c: Remove file.
66905         * m4/iconvme.m4: Remove file.
66906
66907 2007-03-19  Bruno Haible  <bruno@clisp.org>
66908
66909         * doc/relocatable-maint.texi: Break long shell script line.
66910         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66911
66912 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66913
66914         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66915         handle file_has_acl.
66916         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66917         * lib/acl.c: Move header inclusions and related macro defns into
66918         lib/acl-internal.h.
66919         (S_ISLNK): Remove defn, since that's now done for us.
66920         (file_has_acl): Move to lib/file-has-acl.c.
66921         Call acl_trivial if available.  This is the crucial part of the fix.
66922         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66923         shared within the library.  Rewrite a bit, partly to make it compatible
66924         with the GNU coding style.
66925         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66926         Remove unnecessary double-quotes.
66927         Don't test for acl_to_text; the build will catch that.
66928         Replace acl_entries if it doesn't exist and it is needed.
66929         Check for -lsec and acl_trivial (as used on Solaris 10).
66930         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66931         lib/file-has-acl.c.
66932         (Depends-on): Add sys_stat, for S_ISLNK.
66933
66934 2007-03-19  Ben Pfaff  <blp@gnu.org>
66935
66936         * doc/gnulib.texi: Fix typos.
66937         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66938
66939 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66942         If size is zero here, buf must be zero.
66943
66944 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66945
66946         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66947         <bruno@clisp.org>.
66948
66949 2007-03-18  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66952         Suggested by Eric Blake.
66953
66954 2007-03-18  Ben Pfaff  <blp@gnu.org>
66955
66956         * doc/relocatable.texi: Recommend using as prefix a directory
66957         that does not exist and will never be created.  Based on
66958         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66959         and others.
66960
66961 2007-03-17  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/fchownat.c: Include lchown.h.
66964
66965 2007-03-17  Bruno Haible  <bruno@clisp.org>
66966
66967         Fix endless loop when the given allocated size was > INT_MAX.
66968         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66969         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66970         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66971         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66972         * lib/sprintf.c (sprintf): Likewise.
66973
66974 2007-03-17  Bruno Haible  <bruno@clisp.org>
66975
66976         * tests/test-argp-2.sh (func_compare): Output a context diff.
66977
66978 2007-03-17  Bruno Haible  <bruno@clisp.org>
66979
66980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66981         locale's decimal-point character.
66982
66983 2007-03-17  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66986         before comparing it. Needed because on some platforms (e.g. x86) a
66987         'long double' occupies less bytes than sizeof (long double).
66988
66989 2007-03-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66992         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66993         * tests/test-getaddrinfo.c (simple): Likewise.
66994         * tests/test-read-file.c (main): Likewise.
66995
66996 2007-03-17  Bruno Haible  <bruno@clisp.org>
66997
66998         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66999
67000 2007-03-17  Bruno Haible  <bruno@clisp.org>
67001
67002         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67003         unused variable.
67004
67005 2007-03-17  Bruno Haible  <bruno@clisp.org>
67006
67007         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67008         * tests/test-c-strncasecmp.c: Likewise.
67009
67010 2007-03-17  Bruno Haible  <bruno@clisp.org>
67011
67012         * modules/stdlib (Depends-on): Add unistd.
67013         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67014         Needed for MacOS X 10.3.
67015
67016 2007-03-17  Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67019
67020 2007-03-17  Bruno Haible  <bruno@clisp.org>
67021
67022         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67023
67024 2007-03-17  Bruno Haible  <bruno@clisp.org>
67025
67026         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67027         to reflect files copied from gnulib (with or without modifications).
67028         Suggested by Jim Meyering.
67029
67030 2007-03-17  Eric Blake  <ebb9@byu.net>
67031
67032         * NEWS: Document stdlib change from 2007-02-18.
67033
67034 2007-03-17  Jim Meyering  <jim@meyering.net>
67035
67036         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67037         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67038         someone uses a name containing shell meta-characters.
67039         Reported by Alfred M. Szmidt.
67040
67041         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67042
67043 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67044
67045         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67046         and copy gettext configuration files only if configure.ac contains
67047         a use of AM_GNU_GETTEXT_VERSION.
67048
67049 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67050
67051         * build-aux/bootstrap (gnulib_name): New variable.
67052         (gnulib_tool_options): Use it.
67053
67054 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67055
67056         * tests/test-des.c: Use new namespace.
67057
67058 2007-03-15  Bruno Haible  <bruno@clisp.org>
67059
67060         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67061         Reported by James Youngman <jay@gnu.org>.
67062
67063 2007-03-15  Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67066         declared prototype. Needed with cc on OSF/1 5.1.
67067
67068 2007-03-15  Bruno Haible  <bruno@clisp.org>
67069
67070         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67071         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67072         (struct gl_list_implementation): Add dispose_fn argument to the
67073         'create_empty', 'create' methods.
67074         (struct gl_list_impl_base): Add field 'dispose_fn'.
67075         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67076         argument.
67077         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67078         dispose_fn argument.
67079         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67080         dispose_fn on the dropped values.
67081         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67082         dispose_fn argument.
67083         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67084         dropped values.
67085         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67086         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67087         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67088         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67089         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67090         argument.
67091         (gl_tree_list_free): Call dispose_fn on the dropped values.
67092         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67093         the dropped values.
67094         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67095         Add dispose_fn argument.
67096         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67097         Call dispose_fn on the dropped values.
67098         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67099         Add dispose_fn argument.
67100         (gl_sublist_create): Initialize the 'dispose_fn' field.
67101         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67102         * tests/test-array_list.c (main): Update.
67103         * tests/test-carray_list.c (main): Update.
67104         * tests/test-avltree_list.c (main): Update.
67105         * tests/test-rbtree_list.c (main): Update.
67106         * tests/test-avltreehash_list.c (main): Update.
67107         * tests/test-rbtreehash_list.c (main): Update.
67108         * tests/test-linked_list.c (main): Update.
67109         * tests/test-linkedhash_list.c (main): Update.
67110         * tests/test-array_oset.c (main): Update.
67111
67112 2007-03-15  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67115         (gl_oset_create_empty): Add dispose_fn argument.
67116         (struct gl_oset_implementation): Add dispose_fn argument to
67117         'create_empty' method.
67118         (struct gl_oset_impl_base): Add dispose_fn field.
67119         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67120         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67121         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67122         values.
67123         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67124         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67125         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67126         dropped value.
67127         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67128         dropped value.
67129         * tests/test-array_oset.c (main): Update.
67130         * tests/test-avltree_oset.c (main): Update.
67131         * tests/test-rbtree_oset.c (main): Update.
67132         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67133
67134 2007-03-13  Bruno Haible  <bruno@clisp.org>
67135
67136         * tests/test-stdbool.c (i): Update after last patch.
67137
67138 2007-03-12  Bruno Haible  <bruno@clisp.org>
67139
67140         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67141         the iswprint macro. Needed on Solaris 2.5.1.
67142
67143 2007-03-12  Bruno Haible  <bruno@clisp.org>
67144
67145         * tests/test-printf-frexp.c (main): Declare x as volatile.
67146
67147 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67148
67149         * doc/gnulib.texi (Build robot for gnulib): New section.
67150
67151 2007-03-12  Jim Meyering  <jim@meyering.net>
67152
67153         * build-aux/bootstrap: New file.
67154         * build-aux/bootstrap.conf: New file, from coreutils.
67155
67156 2007-03-11  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67159
67160 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67161
67162         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67163         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67164         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67165
67166 2007-03-11  Bruno Haible  <bruno@clisp.org>
67167
67168         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67169         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67170
67171 2007-03-11  Bruno Haible  <bruno@clisp.org>
67172
67173         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67174         formula. Needed for SunPRO C 5.0.
67175
67176 2007-03-11  Bruno Haible  <bruno@clisp.org>
67177
67178         * modules/long-options (Depends-on): Add getopt.
67179
67180 2007-03-11  Bruno Haible  <bruno@clisp.org>
67181
67182         * modules/modechange (Depends-on): Add stdbool.
67183
67184 2007-03-11  Bruno Haible  <bruno@clisp.org>
67185
67186         * modules/i-ring (Depends-on): Add stdbool.
67187
67188 2007-03-11  Bruno Haible  <bruno@clisp.org>
67189
67190         * modules/gc-des (Depends-on): Add stdbool.
67191
67192 2007-03-11  Bruno Haible  <bruno@clisp.org>
67193
67194         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67195
67196 2007-03-11  Bruno Haible  <bruno@clisp.org>
67197
67198         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67199
67200 2007-03-11  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67203
67204 2007-03-11  Bruno Haible  <bruno@clisp.org>
67205
67206         * lib/vasnprintf.c (sprintf): Undefine.
67207
67208 2007-03-11  Bruno Haible  <bruno@clisp.org>
67209
67210         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67211         initializers in SunPRO C and Compaq C compilers.
67212
67213 2007-03-11  Bruno Haible  <bruno@clisp.org>
67214
67215         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67216         decrementing code ANSI C compliant.
67217
67218 2007-03-11  Bruno Haible  <bruno@clisp.org>
67219
67220         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67221         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67222
67223 2007-03-11  Bruno Haible  <bruno@clisp.org>
67224
67225         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67226         <stdbool.h> substitute doesn't pass.
67227
67228 2007-03-11  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67231
67232 2007-03-11  Bruno Haible  <bruno@clisp.org>
67233
67234         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67235         script, for submission to autobuild.josefsson.org.
67236
67237 2007-03-10  Bruno Haible  <bruno@clisp.org>
67238
67239         * modules/canonicalize-lgpl-tests: New file.
67240         * tests/test-canonicalize-lgpl.sh: New file.
67241         * tests/test-canonicalize-lgpl.c: New file.
67242
67243         * modules/c-strcase-tests: New file.
67244         * tests/test-c-strcase.sh: New file.
67245         * tests/test-c-strcasecmp.c: New file.
67246         * tests/test-c-strncasecmp.c: New file.
67247
67248         * modules/atexit-tests: New file.
67249         * tests/test-atexit.sh: New file.
67250         * tests/test-atexit.c: New file.
67251
67252 2007-03-10  Bruno Haible  <bruno@clisp.org>
67253
67254         * tests/test-binary-io.sh: Use temporary filenames that are not so
67255         likely to clash with those of other tests (in a parallel make).
67256         * tests/test-binary-io.c: Likewise.
67257
67258 2007-03-10  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67261         fallback; use #error instead.
67262         Suggested by Simon Josefsson.
67263
67264 2007-03-10  Bruno Haible  <bruno@clisp.org>
67265
67266         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67267         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67268         first and the last.
67269
67270 2007-03-10  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67273
67274 2007-03-10  Bruno Haible  <bruno@clisp.org>
67275
67276         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67277         "make distcheck".
67278         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67279         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67280         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67281
67282 2007-03-10  Bruno Haible  <bruno@clisp.org>
67283
67284         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67285         variable.
67286         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67287         variable.
67288
67289 2007-03-09  Eric Blake  <ebb9@byu.net>
67290         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67291
67292         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67293         types are not being provided by gnulib.
67294         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67295         types are supported.
67296
67297 2007-03-10  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/stdio_.h (__attribute__): New macro.
67300         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67301         vsprintf): Specify __attribute__ __format__ for GCC.
67302         Suggested by Eric Blake.
67303
67304 2007-03-09  Bruno Haible  <bruno@clisp.org>
67305
67306         * modules/printf-posix-tests: New file.
67307         * tests/test-printf-posix.sh: New file.
67308         * tests/test-printf-posix.c: New file.
67309
67310         * modules/printf-posix: New file.
67311         * lib/printf.c: New file.
67312         * m4/printf-posix-rpl.m4: New file.
67313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67314         REPLACE_PRINTF.
67315         * lib/stdio_.h (printf): New declaration.
67316         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67317         ____strfmon____): New macros.
67318         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67319         REPLACE_PRINTF.
67320
67321 2007-03-09  Bruno Haible  <bruno@clisp.org>
67322
67323         * tests/test-vasnprintf-posix2.sh: New file.
67324         * tests/test-vasnprintf-posix2.c: New file.
67325         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67326         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67327         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67328
67329         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67330         a locale dependent decimal point, rather than always '.'.
67331
67332 2007-03-09  Eric Blake  <ebb9@byu.net>
67333
67334         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67335         spite of platforms like Tandem/NSK that define it to -1.
67336
67337 2007-03-08  Bruno Haible  <bruno@clisp.org>
67338
67339         * modules/vprintf-posix-tests: New file.
67340         * tests/test-vprintf-posix.sh: New file.
67341         * tests/test-vprintf-posix.c: New file.
67342         * tests/test-printf-posix.h: New file.
67343
67344         * modules/vprintf-posix: New file.
67345         * lib/vprintf.c: New file.
67346         * m4/vprintf-posix.m4: New file.
67347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67348         REPLACE_VPRINTF.
67349         * lib/stdio_.h (vprintf): New declaration.
67350         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67351         REPLACE_VPRINTF.
67352
67353 2007-03-08  Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/fprintf-posix-tests: New file.
67356         * tests/test-fprintf-posix.sh: New file.
67357         * tests/test-fprintf-posix.c: New file.
67358
67359         * modules/fprintf-posix: New file.
67360         * lib/fprintf.c: New file.
67361         * m4/fprintf-posix.m4: New file.
67362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67363         REPLACE_FPRINTF.
67364         * lib/stdio_.h (fprintf): New declaration.
67365         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67366         REPLACE_FPRINTF.
67367
67368 2007-03-08  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/vfprintf-posix-tests: New file.
67371         * tests/test-vfprintf-posix.sh: New file.
67372         * tests/test-vfprintf-posix.c: New file.
67373         * tests/test-fprintf-posix.h: New file.
67374         * tests/test-fprintf-posix.out: New file.
67375
67376         * modules/vfprintf-posix: New file.
67377         * lib/vfprintf.c: New file.
67378         * m4/vfprintf-posix.m4: New file.
67379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67380         REPLACE_VFPRINTF.
67381         * lib/stdio_.h (vfprintf): New declaration.
67382         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67383         REPLACE_VFPRINTF.
67384
67385 2007-03-08  Bruno Haible  <bruno@clisp.org>
67386
67387         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67388
67389 2007-03-08  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67392         instead of 'expr' invocations.
67393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67398         Suggested by Paul Eggert.
67399
67400 2007-03-08  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/fseterr-tests: New file.
67403         * tests/test-fseterr.c: New file.
67404
67405         * modules/fseterr: New file.
67406         * lib/fseterr.h: New file.
67407         * lib/fseterr.c: New file.
67408
67409 2007-03-08  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67412         * lib/getopt_.h: Likewise.
67413         * lib/mbswidth.h: Likewise.
67414         * lib/setenv.h: Likewise.
67415         * lib/vasnprintf.h: Likewise.
67416         * lib/vasprintf.h: Likewise.
67417         * lib/verror.h: Likewise.
67418         * lib/xsetenv.h: Likewise.
67419         * lib/xvasprintf.h: Likewise.
67420
67421 2007-03-08  Jim Meyering  <jim@meyering.net>
67422
67423         * users.txt: Add parted.
67424
67425         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67426
67427 2007-03-07  Bruno Haible  <bruno@clisp.org>
67428
67429         * m4/printf.m4: Make the shell script snippets copy&pastable.
67430
67431 2007-03-02  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/netinet_in_.h: New file.
67434         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67435         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67436         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67437         (Depends-on): Add absolute-header.
67438         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67439         into netinet/in.h.
67440
67441 2007-03-03  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/sys_select_.h: New file.
67444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67445         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67446         * modules/sys_select (Files): Add lib/sys_select_.h.
67447         (Depends-on): Add absolute-header.
67448         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67449         into sys/select.h.
67450
67451 2007-03-02  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67454         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67455         values.
67456         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67457         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67458         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67459         * modules/sys_socket (Depends-on): Add absolute-header.
67460         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67461         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67462         (Include): Remove requirement of inclusion of <sys/types.h>.
67463
67464 2007-03-02  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/byteswap_.h (bswap_32): Fix formula.
67467
67468 2007-03-06  Bruno Haible  <bruno@clisp.org>
67469
67470         * modules/sprintf-posix-tests: New file.
67471         * tests/test-sprintf-posix.c: New file.
67472
67473         * modules/sprintf-posix: New file.
67474         * lib/sprintf.c: New file.
67475         * m4/sprintf-posix.m4: New file.
67476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67477         REPLACE_SPRINTF.
67478         * lib/stdio_.h (sprintf): New declaration.
67479         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67480         REPLACE_SPRINTF.
67481
67482 2007-03-06  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/vsprintf-posix-tests: New file.
67485         * tests/test-vsprintf-posix.c: New file.
67486         * tests/test-sprintf-posix.h: New file.
67487
67488         * modules/vsprintf-posix: New file.
67489         * lib/vsprintf.c: New file.
67490         * m4/vsprintf-posix.m4: New file.
67491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67492         REPLACE_VSPRINTF.
67493         * lib/stdio_.h (vsprintf): New declaration.
67494         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67495         REPLACE_VSPRINTF.
67496
67497 2007-03-06  Bruno Haible  <bruno@clisp.org>
67498
67499         * modules/vsnprintf (Depend-on): Remove minmax.
67500
67501 2007-03-06  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/snprintf-posix-tests: New file.
67504         * tests/test-snprintf-posix.c: New file.
67505
67506         * modules/snprintf-posix: New file.
67507         * m4/snprintf-posix.m4: New file.
67508         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67509         gl_FUNC_SNPRINTF.
67510         (gl_FUNC_SNPRINTF): Invoke it.
67511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67512         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67513         is set.
67514         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67515
67516 2007-03-06  Bruno Haible  <bruno@clisp.org>
67517
67518         * modules/vsnprintf-posix-tests: New file.
67519         * tests/test-vsnprintf-posix.c: New file.
67520         * tests/test-snprintf-posix.h: New file.
67521
67522         * modules/vsnprintf-posix: New file.
67523         * m4/vsnprintf-posix.m4: New file.
67524         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67525         gl_FUNC_VSNPRINTF.
67526         (gl_FUNC_VSNPRINTF): Invoke it.
67527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67528         * lib/stdio_.h (vsnprintf): Define as a replacement if
67529         REPLACE_VSNPRINTF is set.
67530         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67531
67532 2007-03-06  Bruno Haible  <bruno@clisp.org>
67533
67534         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67536
67537 2007-03-06  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67540         (asinl): Declare also if HAVE_DECL_ASINL is set.
67541         (atanl): Declare also if HAVE_DECL_ATANL is set.
67542         (ceill): Declare also if HAVE_DECL_CEILL is set.
67543         (cosl): Declare also if HAVE_DECL_COSL is set.
67544         (expl): Declare also if HAVE_DECL_EXPL is set.
67545         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67546         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67547         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67548         (logl): Declare also if HAVE_DECL_LOGL is set.
67549         (sinl): Declare also if HAVE_DECL_SINL is set.
67550         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67551         (tanl): Declare also if HAVE_DECL_TANL is set.
67552         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67554         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67555         declaration of frexpl, ldexpl.
67556         * modules/printf-frexpl (Depends-on): Add math.
67557         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67558
67559 2007-03-05  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67562         frexpl and ldexpl are declared.
67563         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67564
67565 2007-03-05  Bruno Haible  <bruno@clisp.org>
67566
67567         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67568         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67569
67570 2007-03-05  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/stdio_.h: Include <stddef.h>.
67573
67574 2007-03-05  Bruno Haible  <bruno@clisp.org>
67575
67576         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67577
67578 2007-03-05  Bruno Haible  <bruno@clisp.org>
67579
67580         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67581         NetBSD 4, from Ralf Wildenhues.
67582
67583 2007-03-04  Bruno Haible  <bruno@clisp.org>
67584
67585         * lib/vasprintf.h: Update #if logic for the case when the functions
67586         exist but are overridden.
67587
67588 2007-03-04  Bruno Haible  <bruno@clisp.org>
67589
67590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67591         implementations: glibc-2.4 and MacOS X 10.3.
67592         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67593         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67594         * tests/test-vasprintf-posix.c (test_function): Likewise.
67595
67596 2007-03-04  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/vasprintf-posix-tests: New file.
67599         * tests/test-vasprintf-posix.c: New file.
67600
67601         * modules/vasprintf-posix: New file.
67602         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67603         defined.
67604         * m4/vasprintf-posix.m4: New file.
67605         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67606         gl_FUNC_VASPRINTF.
67607         (gl_FUNC_VASPRINTF): Invoke it.
67608         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67609         here.
67610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67611
67612 2007-03-04  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67615         REPLACE_GETTIMEOFDAY.
67616         * modules/sys_time (Makefile.am): Likewise.
67617         * m4/sys_time_h.m4: Likewise.
67618         * m4/gettimeofday.m4: Likewise.
67619
67620 2007-03-04  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/vasnprintf-posix-tests: New file.
67623         * tests/test-vasnprintf-posix.c: New file.
67624
67625         * modules/vasnprintf-posix: New file.
67626         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67627         printf-frexpl.h.
67628         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67629         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67630         REPLACE_VASNPRINTF is defined.
67631         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67632         gl_FUNC_VASNPRINTF.
67633         (gl_FUNC_VASNPRINTF): Invoke it.
67634         * m4/vasnprintf-posix.m4: New file.
67635         * m4/printf.m4: New file.
67636
67637 2007-03-04  Bruno Haible  <bruno@clisp.org>
67638
67639         Compile progreloc.c only if --enable-relocatable is specified.
67640         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67641         if --enable-relocatable was specified.
67642         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67643         lib_SOURCES.
67644
67645 2007-03-04  Jim Meyering  <jim@meyering.net>
67646
67647         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67648         Use it consistently, rather than enumerating errno constants.
67649
67650 2007-03-04  Bruno Haible  <bruno@clisp.org>
67651
67652         * modules/xvasprintf-tests: New file.
67653         * tests/test-xvasprintf.c: New file.
67654
67655         * modules/vasprintf-tests: New file.
67656         * tests/test-vasprintf.c: New file.
67657
67658         * modules/vasnprintf-tests: New file.
67659         * tests/test-vasnprintf.c: New file.
67660
67661         * modules/vsnprintf-tests: New file.
67662         * tests/test-vsnprintf.c: New file.
67663
67664         * modules/snprintf-tests: New file.
67665         * tests/test-snprintf.c: New file.
67666
67667 2007-03-04  Bruno Haible  <bruno@clisp.org>
67668
67669         Compile relocatable.c only if --enable-relocatable is specified.
67670         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67671         gl_RELOCATABLE_LIBRARY.
67672         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67673         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67674         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67675         gl_RELOCATABLE_LIBRARY.
67676         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67677         (Makefile.am): Remove lib_SOURCES.
67678         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67679         gl_RELOCATABLE_LIBRARY.
67680         (Makefile.am): Remove lib_SOURCES.
67681         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67682         always.
67683         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67684         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67685
67686 2007-03-04  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/argmatch-tests: New file.
67689         * tests/test-argmatch.c: New file.
67690
67691         * tests/test-allocsa.c (main): Halve the number of loop runs.
67692
67693         * modules/alloca-opt-tests: New file.
67694         * tests/test-alloca-opt.c: New file.
67695
67696 2007-03-04  Jim Meyering  <jim@meyering.net>
67697
67698         Work around difference between Linux ACLs and Solaris 10 ZFS.
67699         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67700         for EINVAL.
67701
67702 2007-03-03  Bruno Haible  <bruno@clisp.org>
67703
67704         * modules/relocatable-prog (Depends-on): Add back progreloc's
67705         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67706
67707 2007-03-03  Bruno Haible  <bruno@clisp.org>
67708
67709         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67710         * modules/relocatable-lib: New file.
67711
67712 2007-03-03  Bruno Haible  <bruno@clisp.org>
67713
67714         * modules/relocatable-prog: Renamed from modules/relocatable.
67715         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67716
67717 2007-03-03  Bruno Haible  <bruno@clisp.org>
67718
67719         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67720         m4/relocatable-lib.m4.
67721         (Depends-on): Remove 'relocatable'.
67722         (configure.ac): Add gl_RELOCATABLE_NOP.
67723
67724 2007-03-03  Bruno Haible  <bruno@clisp.org>
67725
67726         * modules/relocatable-prog-wrapper: New file.
67727         * modules/relocatable (Depends-on): Add it. Remove all other
67728         dependencies except progname.
67729         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67730
67731         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67732         (gl_FUNC_STRERROR): Nop.
67733         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67734
67735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67736         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67737
67738         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67739         (gl_FUNC_READLINK): Update.
67740
67741         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67742
67743 2007-03-03  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67746         * modules/xreadlink (Depends-on): Add unistd.
67747         * modules/xreadlink-with-size (Depends-on): Likewise.
67748
67749 2007-03-03  Bruno Haible  <bruno@clisp.org>
67750
67751         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67752         extracted from gt_FUNC_SETENV.
67753         (gt_FUNC_SETENV): Remove macro.
67754         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67755         remove gt_FUNC_SETENV.
67756
67757 2007-03-03  Bruno Haible  <bruno@clisp.org>
67758
67759         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67760         ENABLE_RELOCATABLE here.
67761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67762
67763 2007-03-03  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67766         * tests/test-rbtreehash_list.c: Include progname.h.
67767         (main): Call set_program_name.
67768
67769         * modules/rbtree-oset-tests (Depends-on): Add progname.
67770         * tests/test-rbtree_oset.c: Include progname.h.
67771         (main): Call set_program_name.
67772
67773         * modules/rbtree-list-tests (Depends-on): Add progname.
67774         * tests/test-rbtree_list.c: Include progname.h.
67775         (main): Call set_program_name.
67776
67777         * modules/linked-list-tests (Depends-on): Add progname.
67778         * tests/test-linked_list.c: Include progname.h.
67779         (main): Call set_program_name.
67780
67781 2007-03-03  Bruno Haible  <bruno@clisp.org>
67782
67783         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67784         All uses of __restrict changed to _Restrict_.
67785         * lib/glob_.h (__restrict): Remove macro.
67786
67787 2007-03-02  Bruno Haible  <bruno@clisp.org>
67788
67789         * modules/gettext (configure.ac): Require gettext infrastructure
67790         from version 0.16.1.
67791
67792 2007-03-02  Bruno Haible  <bruno@clisp.org>
67793
67794         * modules/linkedhash-list-tests (Depends-on): Add progname.
67795         * tests/test-linkedhash_list.c: Include progname.h.
67796         (main): Call set_program_name.
67797
67798         * modules/carray-list-tests (Depends-on): Add progname.
67799         * tests/test-carray_list.c: Include progname.h.
67800         (main): Call set_program_name.
67801
67802         * modules/avltreehash-list-tests (Depends-on): Add progname.
67803         * tests/test-avltreehash_list.c: Include progname.h.
67804         (main): Call set_program_name.
67805
67806         * modules/avltree-oset-tests (Depends-on): Add progname.
67807         * tests/test-avltree_oset.c: Include progname.h.
67808         (main): Call set_program_name.
67809
67810         * modules/avltree-list-tests (Depends-on): Add progname.
67811         * tests/test-avltree_list.c: Include progname.h.
67812         (main): Call set_program_name.
67813
67814         * modules/array-oset-tests (Depends-on): Add progname.
67815         * tests/test-array_oset.c: Include progname.h.
67816         (main): Call set_program_name.
67817
67818         * modules/array-list-tests (Depends-on): Add progname.
67819         * tests/test-array_list.c: Include progname.h.
67820         (main): Call set_program_name.
67821
67822         * modules/argp-tests (Depends-on): Add progname.
67823         * tests/test-argp.c: Include argp.h first. Include progname.h.
67824         (main): Call set_program_name.
67825
67826 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * doc/gnulib-tool.texi (Initial import): Reword description of
67829         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67830         limited effect even if defined after the first system include.
67831
67832 2007-03-01  Bruno Haible  <bruno@clisp.org>
67833
67834         * build-aux/config.libpath: Update to libtool-1.5.22.
67835         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67836
67837 2007-03-01  Bruno Haible  <bruno@clisp.org>
67838
67839         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67840         foo_CFLAGS.
67841         Reported by Ralf Wildenhues.
67842
67843 2007-03-01  Bruno Haible  <bruno@clisp.org>
67844
67845         * build-aux/install-reloc: Remove object files left over by some
67846         compilers.
67847         Reported by Ralf Wildenhues.
67848
67849 2007-03-01  Bruno Haible  <bruno@clisp.org>
67850
67851         * build-aux/install-reloc: Break long lines.
67852
67853 2007-03-01  Bruno Haible  <bruno@clisp.org>
67854
67855         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67856         Reported by Ralf Wildenhues.
67857
67858 2007-03-01  Bruno Haible  <bruno@clisp.org>
67859
67860         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67861         include ordering constraints.
67862
67863 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67867         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67868         as another example.
67869         * lib/time_.h: Fix misspelling.
67870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67871         Require gl_HEADER_TIME_H_DEFAULTS.
67872         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67873         * m4/time_r.m4 (gl_TIME_R): Likewise.
67874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67875
67876 2007-03-01  Bruno Haible  <bruno@clisp.org>
67877
67878         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67879         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67880
67881 2007-03-01  Jim Meyering  <jim@meyering.net>
67882
67883         * modules/xreadlink (Maintainer): Add my name.
67884         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67885
67886 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67887             Bruno Haible  <bruno@clisp.org>
67888
67889         * build-aux/install-reloc: Compile also c-ctype.c.
67890         * build-aux/relocatable.sh.in: New file.
67891         * doc/relocatable.texi: New file.
67892         * doc/relocatable-maint.texi: New file.
67893         * doc/gnulib.texi: Include relocatable-maint.texi.
67894         * lib/progreloc.c: Include unistd.h unconditionally.
67895         * lib/relocwrapper.c: Include unistd.h unconditionally.
67896         Include c-ctype.h.
67897         (add_dotbin): Use c_tolower.
67898         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67899         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67900         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67901         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67902         to m4/relocatable-lib.m4.
67903         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67904         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67905         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67906         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67907         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67908         * modules/relocatable: New file.
67909         * modules/relocatable-lib: New file.
67910         * modules/relocatable-script: New file.
67911
67912 2007-02-28  Bruno Haible  <bruno@clisp.org>
67913
67914         Import --enable-relocatable infrastructure.
67915         * build-aux/config.libpath: New file, from GNU gettext.
67916         * build-aux/install-reloc: New file, from GNU gettext.
67917         * build-aux/reloc-ldflags: New file, from GNU gettext.
67918         * lib/relocatable.h: New file, from GNU gettext.
67919         * lib/relocatable.c: New file, from GNU gettext.
67920         * lib/relocwrapper.c: New file, from GNU gettext.
67921         * m4/relocatable.m4: New file, from GNU gettext.
67922
67923 2007-02-28  Bruno Haible  <bruno@clisp.org>
67924
67925         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67926
67927         * modules/xreadlink: New file, from GNU gettext with modifications.
67928         * lib/xreadlink.c: New file, from GNU gettext.
67929         * lib/xreadlink.h: Add comments.
67930         (xreadlink): New declaration.
67931
67932         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67933         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67934         lib/xreadlink-with-size.c.
67935         (configure.ac): Remove gl_XREADLINK invocation.
67936         (Makefile.am): Augment lib_SOURCES.
67937         * m4/xreadlink.m4: Remove file.
67938         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67939         (xreadlink_with_size): Renamed from xreadink.
67940         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67941         * modules/canonicalize (Depends-on): Replace xreadlink with
67942         xreadlink-with-size.
67943         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67944
67945 2007-02-25  Jim Meyering  <jim@meyering.net>
67946
67947         * build-aux/announce-gen: When complaining about excess arguments,
67948         list them.
67949
67950 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         * README: Document signed integer overflow situation more
67953         accurately.
67954
67955 2007-02-25  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67958         'a' or 'A' conversion.
67959
67960 2007-02-25  Bruno Haible  <bruno@clisp.org>
67961
67962         * modules/filename: Renamed from modules/pathname.
67963         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67964         lib/concatpath.c with lib/concat-filename.c.
67965         (Makefile.am): Update.
67966         (Include): Replace pathname.h with filename.h.
67967         * lib/filename.h: Renamed from lib/pathname.h.
67968         (concatenated_filename): Renamed from concatenated_pathname.
67969         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67970         (concatenated_filename): Renamed from concatenated_pathname.
67971         * lib/findprog.c: Include filename.h instead of pathname.h.
67972         (find_in_path): Update.
67973         * lib/javacomp.c: Include filename.h instead of pathname.h.
67974         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67975         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67976         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67977         is_oldgcj_14_13_usable, is_javac_usable): Update.
67978         * lib/javaexec.c: Include filename.h instead of pathname.h.
67979         (execute_java_class): Update.
67980         * modules/findprog: Update.
67981         * modules/javacomp: Update.
67982         * modules/javaexec: Update.
67983         * MODULES.html.sh (File system functions): Add 'filename', remove
67984         'pathname'.
67985
67986 2007-02-25  Bruno Haible  <bruno@clisp.org>
67987
67988         * modules/printf-frexpl-tests: New file.
67989         * tests/test-printf-frexpl.c: New file.
67990
67991         * modules/printf-frexpl: New file.
67992         * lib/printf-frexpl.h: New file.
67993         * lib/printf-frexpl.c: New file.
67994         * m4/printf-frexpl.m4: New file.
67995
67996 2007-02-25  Bruno Haible  <bruno@clisp.org>
67997
67998         * modules/printf-frexp-tests: New file.
67999         * tests/test-printf-frexp.c: New file.
68000
68001         * modules/printf-frexp: New file.
68002         * lib/printf-frexp.h: New file.
68003         * lib/printf-frexp.c: New file.
68004         * m4/printf-frexp.m4: New file.
68005
68006 2007-02-25  Bruno Haible  <bruno@clisp.org>
68007
68008         Assume automake >= 1.10 for the tests.
68009         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68010         * modules/arctwo-tests: Likewise.
68011         * modules/argp-tests: Likewise.
68012         * modules/avltree-list-tests: Likewise.
68013         * modules/avltree-oset-tests: Likewise.
68014         * modules/avltreehash-list-tests: Likewise.
68015         * modules/carray-list-tests: Likewise.
68016         * modules/crc-tests: Likewise.
68017         * modules/des-tests: Likewise.
68018         * modules/gc-arcfour-tests: Likewise.
68019         * modules/gc-arctwo-tests: Likewise.
68020         * modules/gc-des-tests: Likewise.
68021         * modules/gc-hmac-md5-tests: Likewise.
68022         * modules/gc-hmac-sha1-tests: Likewise.
68023         * modules/gc-md2-tests: Likewise.
68024         * modules/gc-md4-tests: Likewise.
68025         * modules/gc-md5-tests: Likewise.
68026         * modules/gc-pbkdf2-sha1-tests: Likewise.
68027         * modules/gc-rijndael-tests: Likewise.
68028         * modules/gc-sha1-tests: Likewise.
68029         * modules/gc-tests: Likewise.
68030         * modules/getaddrinfo-tests: Likewise.
68031         * modules/hmac-md5-tests: Likewise.
68032         * modules/hmac-sha1-tests: Likewise.
68033         * modules/linked-list-tests: Likewise.
68034         * modules/linkedhash-list-tests: Likewise.
68035         * modules/lock-tests: Likewise.
68036         * modules/md2-tests: Likewise.
68037         * modules/md4-tests: Likewise.
68038         * modules/md5-tests: Likewise.
68039         * modules/rbtree-list-tests: Likewise.
68040         * modules/rbtree-oset-tests: Likewise.
68041         * modules/rbtreehash-list-tests: Likewise.
68042         * modules/read-file-tests: Likewise.
68043         * modules/rijndael-tests: Likewise.
68044         * modules/stdint-tests: Likewise.
68045         * modules/tls-tests: Likewise.
68046
68047 2007-02-24  Bruno Haible  <bruno@clisp.org>
68048
68049         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68050         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68051         function; instead check whether isnan with a double argument links.
68052         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68053         function; instead check whether isnan with a 'long double' argument
68054         links.
68055         Reported by Eric Blake <ebb9@byu.net>.
68056
68057 2007-02-24  Bruno Haible  <bruno@clisp.org>
68058
68059         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68060         defined.
68061         * lib/isnanl.c: Remove all code. Just include isnan.c.
68062         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68063
68064 2007-02-25  Jim Meyering  <jim@meyering.net>
68065
68066         Avoid conflicting types for 'unsetenv' on FreeBSD.
68067         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68068         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68069         in stdlib.h.
68070
68071 2007-02-24  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/isnanl-nolibm-tests: New file.
68074         * tests/test-isnanl.c: New file.
68075
68076         * modules/isnanl-nolibm: New file.
68077         * lib/isnanl.h: New file.
68078         * lib/isnanl.c: New file.
68079         * m4/isnanl.m4: New file.
68080
68081 2007-02-24  Bruno Haible  <bruno@clisp.org>
68082
68083         * modules/isnan-nolibm-tests: New file.
68084         * tests/test-isnan.c: New file.
68085
68086         * modules/isnan-nolibm: New file.
68087         * lib/isnan.h: New file.
68088         * lib/isnan.c: New file.
68089         * m4/isnan.m4: New file.
68090
68091 2007-02-24  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68094         assume that an exponent fits in 20 bits.
68095
68096 2007-02-24  Jim Meyering  <jim@meyering.net>
68097
68098         * m4/regex.m4: Update the description of the configure-time option,
68099         --without-included-regex, to state accurately what the defaults are,
68100         and perhaps to give people an idea why using this option is risky.
68101
68102 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68105         loops on small arguments.  This attempts to avoid the problem
68106         Bruno Haible reported for AIX 4.3.2 in
68107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68108
68109 2007-02-23  Bruno Haible  <bruno@clisp.org>
68110
68111         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68112         Needed for help2man.
68113
68114 2007-02-23  Karl Berry  <karl@gnu.org>
68115
68116         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68117         exists, foo.h should be cvs-ignored, not committed.
68118
68119 2007-02-23  Eric Blake  <ebb9@byu.net>
68120
68121         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68122         * lib/stat-time.h (includes): Likewise.
68123         * lib/utimecmp.c (includes): Likewise.
68124         * lib/utimens.h (includes): Likewise.
68125         * lib/getdate.y (includes): Also include "timespec.h" for use
68126         internal to the module.
68127         * modules/utimens (Depends-on): Revert yesterday's patch.
68128         * modules/nanosleep (Depends-on): Add missing dependency.
68129
68130 2007-02-22  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/glob.c: Don't include getlogin_r.h.
68133
68134 2007-02-22  Jim Meyering  <jim@meyering.net>
68135
68136         * modules/utimens (Depends-on): Add timespec, required for
68137         utimens.h's inclusion of timespec.h.
68138
68139 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68142         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68143         Schwab in
68144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68145         I'll try to think of a better way to fix the Solaris problem.
68146
68147         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68148         like glibc; on Solaris 10, it fails with errno == EINVAL.
68149         POSIX says the behavior is unspecified if the first argument is NULL,
68150         so play it safe and never pass NULL to the system getcwd.
68151
68152 2007-02-21  Jim Meyering  <jim@meyering.net>
68153
68154         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68155         of gettimeofday.  It would conflict with the one now always
68156         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68157         an IRIX 6.5 build failure.
68158
68159 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         Minor fixups to port to Solaris 10 with Sun C 5.8.
68162         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68163         * modules/getcwd (Depends-on): Add dirfd.
68164         * lib/putenv.c (putenv): #undef it.
68165         (rpl_putenv): New decl.
68166         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68167
68168 2007-02-20  Bruno Haible  <bruno@clisp.org>
68169
68170         * modules/stdio-tests: New file.
68171         * tests/test-stdio.c: New file.
68172
68173         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68174         (Depends-on): Add stdio.
68175         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68176         (Include): Use <stdio.h> instead of vsnprintf.h.
68177         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68178         HAVE_DECL_VSNPRINTF.
68179         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68180
68181         * modules/snprintf (Files): Remove lib/snprintf.h.
68182         (Depends-on): Add stdio.
68183         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68184         (Include): Use <stdio.h> instead of snprintf.h.
68185         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68186         HAVE_DECL_SNPRINTF.
68187         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68188         * lib/getaddrinfo.c: Likewise.
68189
68190         * modules/stdio: New file.
68191         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68192         * lib/snprintf.h: Remove file.
68193         * lib/vsnprintf.h: Remove file.
68194         * lib/.cppi-disable: Remove snprintf.h.
68195         * m4/stdio_h.m4: New file.
68196         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68197
68198 2007-02-20  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68201         used by e.g., mingw.  From Bruno Haible.
68202
68203 2007-02-19  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68206         warnings.
68207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68208
68209 2007-02-19  Bruno Haible  <bruno@clisp.org>
68210
68211         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68212         from mingw users.
68213
68214 2007-02-19  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68217         warnings.
68218         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68219
68220 2007-02-19  Jim Meyering  <jim@meyering.net>
68221
68222         Don't use FD after a successful "fdopendir (fd)".
68223         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68224         Reset it by calling dirfd on the just-obtained DIR*.
68225
68226         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68227         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68228
68229 2007-02-18  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/readlink.c: Include <unistd.h>.
68232         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68233         HAVE_READLINK.
68234         * modules/readlink (Depends-on): Add unistd.
68235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68236         (Include): Add <unistd.h>.
68237
68238         * lib/getlogin_r.h: Remove file.
68239         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68240         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68241         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68242         HAVE_DECL_GETLOGIN_R.
68243         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68245         (Include): Use <unistd.h> instead of getlogin_r.h.
68246
68247         * lib/getcwd.h: Remove file.
68248         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68249         * lib/xgetcwd.c: Likewise.
68250         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68251         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68252         * modules/getcwd (Files): Remove lib/getcwd.h.
68253         (Depends-on): Add unistd.
68254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68255         (Include): Use <unistd.h> instad of getcwd.h.
68256
68257         * lib/ftruncate.c: Include <unistd.h> first.
68258         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68259         Set HAVE_FTRUNCATE.
68260         * modules/ftruncate (Depends-on): Add unistd.
68261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68262
68263         * lib/fchdir.c: Include <unistd.h> first.
68264         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68265         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68266         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68267         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68268         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68269
68270         * lib/dup2.c: Include <unistd.h> first.
68271         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68272         HAVE_DUP2.
68273         * modules/dup2 (Depends-on): Add unistd.
68274         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68275
68276         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68277         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68278         REPLACE_CHOWN. Don't define chown as a macro here.
68279         * modules/chown (Depends-on): Add unistd.
68280         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68281
68282         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68283         Add definition for GL_LINK_WARNING.
68284         (chown, dup2): New declarations.
68285         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68286         link warning.
68287         (ftruncate): New declaration.
68288         (getcwd): New declaration, taken from old getcwd.h.
68289         (getlogin_r): New declaration, taken from old getlogin_r.h.
68290         (readlink): New declaration.
68291         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68292         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68293         (gl_PREREQ_UNISTD): Remove macro.
68294         (gl_UNISTD_MODULE_INDICATOR): New macro.
68295         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68296         many new variables. Don't set UNISTD_H.
68297         * modules/unistd (Description): Change.
68298         (Depends-on): Add link-warning.
68299         (configure.ac): Update.
68300         (Makefile.am): Create unistd.h always. Substitute many new variables
68301         into it.
68302
68303 2007-02-18  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68306         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68307         HAVE_GETSUBOPT.
68308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68309         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68310         * lib/getsubopt.h: Remove file.
68311         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68312         (Depends-on): Add stdlib.
68313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68314         (Includes): Use <stdlib.h> instead of getsubopt.h.
68315         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68316         Set HAVE_GETSUBOPT.
68317         * lib/getsubopt.c: Don't include getsubopt.h.
68318
68319 2007-02-18  Bruno Haible  <bruno@clisp.org>
68320
68321         * modules/fchdir (Depends-on): Add dup2.
68322
68323 2007-02-18  Bruno Haible  <bruno@clisp.org>
68324
68325         * lib/stdlib_.h: Handle glibc's special invocation convention
68326         specially.
68327
68328 2007-02-18  Bruno Haible  <bruno@clisp.org>
68329
68330         * modules/stdlib-tests: New file.
68331         * tests/test-stdlib.c: New file.
68332
68333         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68334         (Depends-on): Add stdlib.
68335         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68336         (Includes): Use <stdlib.h> instead of mkstemp.h.
68337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68338         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68339         * lib/mkstemp.c: Don't include mkstemp.h.
68340         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68341         * lib/stdlib--.h: Don't include mkstemp.h.
68342
68343         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68344         (Depends-on): Add stdlib.
68345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68346         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68347         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68348         HAVE_MKDTEMP.
68349         * lib/mkdtemp.c: Don't include mkdtemp.h.
68350         * lib/clean-temp.c: Don't include mkdtemp.h.
68351
68352         * modules/exit (Files): Remove lib/exit.h.
68353         (Depends-on): Add stdlib.
68354         (Makefile.am): Remove lib_SOURCES.
68355         (Include): Use <stdlib.h> instead of exit.h.
68356         * lib/argmatch.c: Don't include exit.h.
68357         * lib/execute.c: Likewise.
68358         * lib/pagealign_alloc.c: Likewise.
68359         * lib/pipe.c: Likewise.
68360         * lib/wait-process.c: Likewise.
68361         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68362         * lib/exitfail.c: Likewise.
68363         * lib/savewd.c: Likewise.
68364         * lib/xsetenv.c: Likewise.
68365
68366         * modules/stdlib: New file.
68367         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68368         and extra comments about mkstemp().
68369         * lib/exit.h: Remove file.
68370         * lib/mkdtemp.h: Remove file.
68371         * lib/mkstemp.h: Remove file.
68372         * m4/stdlib_h.m4: New file.
68373         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68374
68375 2007-02-18  Bruno Haible  <bruno@clisp.org>
68376
68377         * modules/math-tests: New file.
68378         * tests/test-math.c: New file.
68379
68380         * modules/math: New file.
68381         * modules/mathl (Files): Remove lib/mathl.h.
68382         (Depends-on): Add math.
68383         (Makefile.am): Don't mention mathl.h.
68384         (Include): Use <math.h> instead of mathl.h.
68385         * lib/math_.h: New file.
68386         * lib/mathl.h: Remove file.
68387         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68388         mathl.h.
68389         * lib/asinl.c: Likewise.
68390         * lib/atanl.c: Likewise.
68391         * lib/ceill.c: Likewise.
68392         * lib/cosl.c: Likewise.
68393         * lib/expl.c: Likewise.
68394         * lib/floorl.c: Likewise.
68395         * lib/frexpl.c: Likewise.
68396         * lib/ldexpl.c: Likewise.
68397         * lib/logl.c: Likewise.
68398         * lib/sincosl.c: Likewise.
68399         * lib/sinl.c: Likewise.
68400         * lib/sqrtl.c: Likewise.
68401         * lib/tanl.c: Likewise.
68402         * lib/trigl.c: Likewise.
68403         * m4/math_h.m4: New file.
68404         * MODULES.html.sh (Mathematics): Add math.
68405
68406 2007-02-17  Bruno Haible  <bruno@clisp.org>
68407
68408         * modules/wctype-tests: New file.
68409         * tests/test-wctype.c: New file.
68410
68411         * modules/wchar-tests: New file.
68412         * tests/test-wchar.c: New file.
68413
68414         * modules/unistd-tests: New file.
68415         * tests/test-unistd.c: New file.
68416
68417         * modules/time-tests: New file.
68418         * tests/test-time.c: New file.
68419
68420         * modules/sysexits-tests: New file.
68421         * tests/test-sysexits.c: New file.
68422
68423         * modules/sys_time-tests: New file.
68424         * tests/test-sys_time.c: New file.
68425
68426         * modules/sys_stat-tests: New file.
68427         * tests/test-sys_stat.c: New file.
68428
68429         * modules/sys_socket-tests: New file.
68430         * tests/test-sys_socket.c: New file.
68431
68432         * modules/sys_select-tests: New file.
68433         * tests/test-sys_select.c: New file.
68434
68435         * modules/string-tests: New file.
68436         * tests/test-string.c: New file.
68437
68438         * modules/stdbool-tests: New file.
68439         * tests/test-stdbool.c: New file.
68440
68441         * modules/netinet_in-tests: New file.
68442         * tests/test-netinet_in.c: New file.
68443
68444         * modules/inttypes-tests: New file.
68445         * tests/test-inttypes.c: New file.
68446
68447         * modules/fcntl-tests: New file.
68448         * tests/test-fcntl.c: New file.
68449
68450         * modules/byteswap-tests: New file.
68451         * tests/test-byteswap.c: New file.
68452
68453         * modules/arpa_inet-tests: New file.
68454         * tests/test-arpa_inet.c: New file.
68455
68456 2007-02-17  Bruno Haible  <bruno@clisp.org>
68457
68458         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68459         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68460         if the corresponding module is not enabled. Emit link warnings if
68461         the function is used nevertheless.
68462         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68463         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68464         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68465         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68466         * modules/inttypes (Depends-on): Add link-warning.
68467         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68468         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68469         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68470         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68471         * modules/imaxdiv (configure.ac): Likewise.
68472         * modules/strtoimax (configure.ac): Likewise.
68473         * modules/strtoumax (configure.ac): Likewise.
68474
68475 2007-02-17  Bruno Haible  <bruno@clisp.org>
68476
68477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68478         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68479         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68480         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68481
68482 2007-02-17  Bruno Haible  <bruno@clisp.org>
68483
68484         * modules/link-warning: New file.
68485         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68486         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68487         * modules/string (Depends-on): Add link-warning.
68488         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68489         string.h.
68490         * MODULES.html.sh (Support for building libraries and executables): Add
68491         link-warning.
68492
68493 2007-02-17  Bruno Haible  <bruno@clisp.org>
68494
68495         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68496         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68497         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68498         long lines.
68499
68500 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68501             Bruno Haible  <bruno@clisp.org>
68502
68503         * modules/tmpfile: New file.
68504         * lib/tmpfile.c: New file.
68505         * m4/tmpfile.m4: New file.
68506         * MODULES.html.sh (func_all_modules): New section "Input/output".
68507
68508 2007-02-15  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68511         (supports_delete_on_close): New function.
68512         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68513
68514 2007-02-14  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/mbspcasecmp-tests: New file.
68517         * tests/test-mbspcasecmp.sh: New file.
68518         * tests/test-mbspcasecmp.c: New file.
68519
68520         New module mbspcasecmp.
68521         * modules/mbspcasecmp: New file.
68522         * lib/mbspcasecmp.c: New file.
68523         * lib/string_.h (strncasecmp): Change warning message.
68524         (mbspcasecmp): New declaration.
68525         * m4/mbspcasecmp.m4: New file.
68526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68527         GNULIB_MBSPCASECMP.
68528         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68529         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68530
68531 2007-02-14  Bruno Haible  <bruno@clisp.org>
68532
68533         * modules/mbsncasecmp-tests: New file.
68534         * tests/test-mbsncasecmp.sh: New file.
68535         * tests/test-mbsncasecmp.c: New file.
68536
68537         New module mbsncasecmp.
68538         * modules/mbsncasecmp: New file.
68539         * lib/mbsncasecmp.c: New file.
68540         * lib/string_.h (mbsncasecmp): New declaration.
68541         * m4/mbsncasecmp.m4: New file.
68542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68543         GNULIB_MBSNCASECMP.
68544         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68545         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68546
68547 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68550         Verify that it doesn't overlap with our flags.
68551         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68552         do not have the desired effect in multibyte locales; instead, use
68553         mbscasecmp.
68554         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68555         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68556         we don't require GNU fnmatch ourselves (if our users require it, they
68557         should do so explicitly).
68558
68559         Fix regex code so it doesn't rely on strcasecmp.
68560         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68561         Otherwise, include gnulib's langinfo.h.
68562         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68563         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68564         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68565         * modules/regex (FILES): Remove m4/codeset.m4.
68566         (Depends-on): Add localcharset.  Remove strcase.
68567
68568 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68569
68570         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68571         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68572
68573 2007-02-13  Bruno Haible  <bruno@clisp.org>
68574
68575         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68577
68578 2007-02-12  Bruno Haible  <bruno@clisp.org>
68579
68580         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68581         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68582         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68583         time warning rather than a link error.
68584
68585 2007-02-12  Bruno Haible  <bruno@clisp.org>
68586
68587         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68590
68591 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68594         args, not 2.
68595
68596 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         New module 'time', so that apps can include <time.h> as per
68599         POSIX and GNU instead of separate include files like time_r.h
68600         and timegm.h.  This implementation tries out a simpler approach
68601         for replacing decls in standard include files (as compared to
68602         the string module), somewhat as an experiment.
68603
68604         * config/srclist.txt: Comment out mktime.c for now.
68605         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68606         since it doesn't apply any more.  Use generic wording instead.
68607         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68608         'time'.
68609         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68610         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68611         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68612         Don't include <sys/types.h>; no longer needed since we assume C89.
68613         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68614         * lib/strftime.c: Likewise.
68615         * lib/time_r.c: Likewise.
68616         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68617         * lib/nanosleep.c: Include <time.h> first, to check interface.
68618         * lib/strptime.c: Likewise.
68619         * lib/time_r.c: Likewise.
68620         * lib/timegm.c: Likewise.
68621         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68622         needed.
68623         * lib/timegm.c: Don't include timegm.h; no longer needed.
68624         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68625         time.h now handles any problems in that area.
68626         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68627         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68628         that time.h defines struct timespec.
68629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68630         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68631         handles that.
68632         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68633         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68634         needed.  Set REPLACE_LOCALTIME.
68635         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68636         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68637         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68638         nanosleep; time_h.m4 now does that.  Don't require
68639         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68640         module handles this now.
68641         * modules/getdate (Depends-on): Remove timespec.  Add time.
68642         * modules/nanosleep (Depends-on): Likewise.
68643         * modules/stat-time (Depends-on): Likewise.
68644         * modules/nanosleep (Include): Include time.h, not timespec.h.
68645         * modules/strptime (Files): Remove lib/strptime.h.
68646         (Depends-on): Add extensions, time.
68647         (Include): Include time.h, not strptime.h.
68648         * modules/time_r (Files): Remove lib/time_r.h.
68649         (Depends-on): Add time.
68650         (Include): Include time.h, not time_r.h.
68651         * modules/timegm: Likewise.
68652         * modules/timespec (Description): Now does timespec-related decls
68653         of our own, instead of struct timespec itself.
68654         (Depends-on): Add time; remove extensions.
68655         (Maintainer): Add self.
68656         * modules/utimecmp (Depends-on): Add time; remove timespec.
68657         * modules/utimens (Depends-on): Likewise.
68658         * modules/xnanosleep (Depends-on): Likewise.
68659
68660 2007-02-11  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/c-strstr.c: Include allocsa.h.
68663         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68664         * lib/c-strcasestr.c: Include allocsa.h.
68665         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68666         * lib/strcasestr.c: Include allocsa.h.
68667         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68668         * lib/mbsstr.c: Include allocsa.h.
68669         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68670         allocsa/freesa instead of malloc/free.
68671         * lib/mbscasestr.c: Include allocsa.h.
68672         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68673         allocsa/freesa instead of malloc/free.
68674         * modules/c-strstr (Depends-on): Add allocsa.
68675         * modules/c-strcasestr (Depends-on): Likewise.
68676         * modules/strcasestr (Depends-on): Likewise.
68677         * modules/mbsstr (Depends-on): Likewise.
68678         * modules/mbscasestr (Depends-on): Likewise.
68679
68680 2007-02-11  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68683
68684         * modules/mbsspn-tests: New file.
68685         * tests/test-mbsspn.sh: New file.
68686         * tests/test-mbsspn.c: New file.
68687
68688 2007-02-11  Bruno Haible  <bruno@clisp.org>
68689
68690         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68691
68692         * modules/mbspbrk-tests: New file.
68693         * tests/test-mbspbrk.sh: New file.
68694         * tests/test-mbspbrk.c: New file.
68695
68696 2007-02-11  Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68699         unneeded cast.
68700
68701         * modules/mbscspn-tests: New file.
68702         * tests/test-mbscspn.sh: New file.
68703         * tests/test-mbscspn.c: New file.
68704
68705 2007-02-11  Bruno Haible  <bruno@clisp.org>
68706
68707         * modules/mbscasecmp-tests: New file.
68708         * tests/test-mbscasecmp.sh: New file.
68709         * tests/test-mbscasecmp.c: New file.
68710
68711 2007-02-11  Bruno Haible  <bruno@clisp.org>
68712
68713         Ensure O(n) worst-case complexity of mbscasestr.
68714         * lib/mbscasestr.c: Include stdbool.h.
68715         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68716         functions.
68717         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68718         the bookkeeping indicates that it's worth it.
68719         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68720
68721         * modules/mbscasestr-tests: New file.
68722         * tests/test-mbscasestr1.c: New file.
68723         * tests/test-mbscasestr2.sh: New file.
68724         * tests/test-mbscasestr2.c: New file.
68725         * tests/test-mbscasestr3.sh: New file.
68726         * tests/test-mbscasestr3.c: New file.
68727         * tests/test-mbscasestr4.sh: New file.
68728         * tests/test-mbscasestr4.c: New file.
68729         * m4/locale-tr.m4: New file.
68730
68731 2007-02-11  Bruno Haible  <bruno@clisp.org>
68732
68733         Ensure O(n) worst-case complexity of mbsstr.
68734         * lib/mbsstr.c: Include stdbool.h.
68735         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68736         functions.
68737         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68738         bookkeeping indicates that it's worth it.
68739         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68740
68741         * modules/mbsstr-tests: New file.
68742         * tests/test-mbsstr1.c: New file.
68743         * tests/test-mbsstr2.sh: New file.
68744         * tests/test-mbsstr2.c: New file.
68745         * tests/test-mbsstr3.sh: New file.
68746         * tests/test-mbsstr3.c: New file.
68747         * m4/locale-fr.m4: New file.
68748
68749 2007-02-11  Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/mbsrchr.c (mbsrchr): Fix bug.
68752
68753         * modules/mbsrchr-tests: New file.
68754         * tests/test-mbsrchr.sh: New file.
68755         * tests/test-mbsrchr.c: New file.
68756
68757 2007-02-11  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/mbschr.c (mbschr): Fix bug.
68760
68761         * modules/mbschr-tests: New file.
68762         * tests/test-mbschr.sh: New file.
68763         * tests/test-mbschr.c: New file.
68764         * m4/locale-zh.m4: New file.
68765
68766 2007-02-11  Bruno Haible  <bruno@clisp.org>
68767
68768         Support for copying multibyte string iterators.
68769         * lib/mbiter.h: Include <string.h>.
68770         (mbiter_multi_copy): New function.
68771         (mbi_copy): New macro.
68772         * lib/mbuiter.h: Include <string.h>.
68773         (mbuiter_multi_copy): New function.
68774         (mbui_copy): New macro.
68775
68776 2007-02-11  Bruno Haible  <bruno@clisp.org>
68777
68778         New module mbslen.
68779         * modules/mbslen: New file.
68780         * lib/mbslen.c: New file.
68781         * lib/string_.h (mbslen): New declaration.
68782         * m4/mbslen.m4: New file.
68783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68784         GNULIB_MBSLEN.
68785         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68786         * MODULES.html.sh (Internationalization functions): Add mbslen.
68787
68788 2007-02-11  Bruno Haible  <bruno@clisp.org>
68789
68790         Ensure O(n) worst-case complexity of strcasestr substitute.
68791         * lib/strcasestr.c: Include stdbool.h.
68792         (knuth_morris_pratt): New function.
68793         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68794         bookkeeping indicates that it's worth it.
68795         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68796
68797         * modules/strcasestr-tests: New file.
68798         * tests/test-strcasestr.c: New file.
68799
68800 2007-02-11  Bruno Haible  <bruno@clisp.org>
68801
68802         Ensure O(n) worst-case complexity of c_strcasestr.
68803         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68804         (knuth_morris_pratt): New function.
68805         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68806         the bookkeeping indicates that it's worth it.
68807         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68808
68809         * modules/c-strcasestr-tests: New file.
68810         * tests/test-c-strcasestr.c: New file.
68811
68812 2007-02-11  Bruno Haible  <bruno@clisp.org>
68813
68814         Ensure O(n) worst-case complexity of c_strstr.
68815         * lib/c-strstr.c: Include stdbool.h, string.h.
68816         (knuth_morris_pratt): New function.
68817         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68818         bookkeeping indicates that it's worth it.
68819         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68820
68821         * lib/c-strstr.c: Complete rewrite for maintainability.
68822
68823         * modules/c-strstr-tests: New file.
68824         * tests/test-c-strstr.c: New file.
68825
68826 2007-02-11  Bruno Haible  <bruno@clisp.org>
68827
68828         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68829         5.2.1 and earlier, whereby \055 was treated just like the range
68830         delimiter '-'.
68831         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68832
68833 2007-02-08  Bruno Haible  <bruno@clisp.org>
68834
68835         * modules/regex (Depends-on): Add stdbool.
68836         Reported by Dalibor Topic <robilad@kaffe.org>.
68837
68838 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68839
68840         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68841         Prefer returning from main to exiting from it.
68842         Remove unnecessary parens after sizeof.
68843
68844 2007-02-05  Bruno Haible  <bruno@clisp.org>
68845
68846         New module mbssep.
68847         * modules/mbssep: New file.
68848         * lib/mbssep.c: New file.
68849         * lib/string_.h (strsep): Add a conditional link warning.
68850         (mbssep): New declaration.
68851         * m4/mbssep.m4: New file.
68852         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68853         GNULIB_MBSSEP.
68854         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68855         * MODULES.html.sh (Internationalization functions): Add mbssep.
68856
68857 2007-02-05  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68860         Optimize search in case of 1 delimiter.
68861
68862 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68863
68864         * lib/acl.h: Include sys/types.h before sys/acl.h.
68865
68866 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68867
68868         Merge upstream fix for glibc bugzilla #3957:
68869
68870         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68871
68872         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68873         bit for RE_HAT_LISTS_NOT_NEWLINE.
68874         (build_charclass_op): Remove bogus comment.
68875
68876 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68877
68878         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68879
68880 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68883         * lib/memmem.c [!defined _LIBC]: Include config.h.
68884
68885 2007-02-04  Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68888         warning message.
68889
68890 2007-02-04  Bruno Haible  <bruno@clisp.org>
68891
68892         New module mbstok_r.
68893         * modules/mbstok_r: New file.
68894         * lib/mbstok_r.c: New file.
68895         * lib/string_.h (strtok_r): Change argument names to match the
68896         comments. Add a conditional link warning.
68897         (mbstok_r): New declaration.
68898         * m4/mbstok_r.m4: New file.
68899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68900         GNULIB_MBSTOK_R.
68901         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68902         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68903
68904 2007-02-04  Bruno Haible  <bruno@clisp.org>
68905
68906         New module mbsspn.
68907         * modules/mbsspn: New file.
68908         * lib/mbsspn.c: New file.
68909         * lib/string_.h (strspn): Add a conditional link warning.
68910         (mbsspn): New declaration.
68911         * m4/mbsspn.m4: New file.
68912         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68913         GNULIB_MBSSPN.
68914         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68915         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68916
68917 2007-02-04  Bruno Haible  <bruno@clisp.org>
68918
68919         New module mbspbrk.
68920         * modules/mbspbrk: New file.
68921         * lib/mbspbrk.c: New file.
68922         * lib/string_.h (strpbrk): Add a conditional link warning.
68923         (mbspbrk): New declaration.
68924         * m4/mbspbrk.m4: New file.
68925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68926         GNULIB_MBSPBRK.
68927         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68928         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68929
68930 2007-02-04  Bruno Haible  <bruno@clisp.org>
68931
68932         New module mbscspn.
68933         * modules/mbscspn: New file.
68934         * lib/mbscspn.c: New file.
68935         * lib/string_.h (strcspn): Add a conditional link warning.
68936         (mbscspn): New declaration.
68937         * m4/mbscspn.m4: New file.
68938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68939         GNULIB_MBSCSPN.
68940         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68941         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68942
68943 2007-02-04  Bruno Haible  <bruno@clisp.org>
68944
68945         New module mbscasestr, reduced goal of strcasestr.
68946         * modules/mbscasestr: New file.
68947         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68948         (mbscasestr): Renamed from strcasestr.
68949         * lib/strcasestr.c: Don't include mbuiter.h.
68950         (strcasestr): Remove support for multibyte locales.
68951         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68952         Change the conditional link warning.
68953         (mbscasestr): New declaration.
68954         * m4/mbscasestr.m4: New file.
68955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68956         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68957         REPLACE_STRCASESTR.
68958         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68960         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68961         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68962         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68963         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68964         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68965         (Depends-on): Remove mbuiter.
68966         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68967
68968 2007-02-04  Bruno Haible  <bruno@clisp.org>
68969
68970         Simplify handling of strncasecmp.
68971         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68972         the conditional link warning.
68973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68974         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68975         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68976         * modules/strcase (configure.ac): Don't invoke
68977         gl_STRING_MODULE_INDICATOR.
68978         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68979
68980 2007-02-04  Bruno Haible  <bruno@clisp.org>
68981
68982         New module mbscasecmp, reduced goal of strcasecmp.
68983         * modules/mbscasecmp: New file.
68984         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68985         (mbscasecmp): Renamed from strcasecmp.
68986         * lib/strcasecmp.c: Don't include mbuiter.h.
68987         (strcasecmp): Remove support for multibyte locales.
68988         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68989         Change the conditional link warning.
68990         (mbscasecmp): New declaration.
68991         * m4/mbscasecmp.m4: New file.
68992         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68993         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68994         REPLACE_STRCASECMP.
68995         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68997         GNULIB_MBSCASECMP.
68998         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68999         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69000         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69001         (Depends-on): Remove mbuiter.
69002         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69003
69004 2007-02-04  Bruno Haible  <bruno@clisp.org>
69005
69006         New module mbsstr. Remove module strstr.
69007         * modules/mbsstr: New file.
69008         * modules/strstr: Remove file.
69009         * lib/mbsstr.c: Renamed from lib/strstr.c.
69010         (mbsstr): Renamed from strstr.
69011         * lib/string_.h (strstr): Remove declaration. Change the conditional
69012         link warning.
69013         (mbsstr): New declaration.
69014         * m4/mbsstr.m4: New file.
69015         * m4/strstr.m4: Remove file.
69016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69017         REPLACE_STRSTR.
69018         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69019         Don't initialize GNULIB_STRSTR.
69020         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69021         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69022         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69023         (Support for systems lacking ANSI C 89): Remove strstr.
69024
69025 2007-02-04  Bruno Haible  <bruno@clisp.org>
69026
69027         New module mbsrchr.
69028         * modules/mbsrchr: New file.
69029         * lib/mbsrchr.c: New file.
69030         * lib/string_.h (strrchr): Add a conditional link warning.
69031         (mbsrchr): New declaration.
69032         * m4/mbsrchr.m4: New file.
69033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69034         GNULIB_MBSRCHR.
69035         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69036         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69037
69038 2007-02-04  Bruno Haible  <bruno@clisp.org>
69039
69040         New module mbschr.
69041         * modules/mbschr: New file.
69042         * lib/mbschr.c: New file.
69043         * lib/string_.h (strchr): Add a conditional link warning.
69044         (mbschr): New declaration.
69045         * m4/mbschr.m4: New file.
69046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69047         GNULIB_MBSCHR.
69048         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69049         * MODULES.html.sh (Internationalization functions): Add mbschr.
69050
69051 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69052
69053         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69054
69055         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69056
69057 2007-02-04  Bruno Haible  <bruno@clisp.org>
69058
69059         New module description section 'configure.ac-early'.
69060         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69061         (func_get_autoconf_early_snippet): New function.
69062         (func_import, func_create_testdir): Use it. Remove special cases for
69063         modules 'extensions' and 'lock'.
69064         * modules/extensions (configure.ac-early): Require
69065         gl_USE_SYSTEM_EXTENSIONS.
69066         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69067
69068 2007-02-04  Bruno Haible  <bruno@clisp.org>
69069
69070         Make use of gcj-4.3's -fsource and -ftarget option.
69071         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69072         and if so try the options -fsource and -ftarget.
69073         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69074         source_version, ftarget_option, target_version arguments.
69075         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69076         (is_envjavac_oldgcj_14_14_usable): Renamed from
69077         is_envjavac_gcj_14_14_usable.
69078         (is_envjavac_oldgcj_14_13_usable): Renamed from
69079         is_envjavac_gcj_14_13_usable.
69080         (is_gcj_present): Update.
69081         (is_gcj_43, is_gcj43_usable): New functions.
69082         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69083         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69084         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69085         try the options -fsource and -ftarget.
69086
69087 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69090         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69091         larger value.
69092
69093 2007-02-03  Jim Meyering  <jim@meyering.net>
69094
69095         Give tools a better chance to allocate space for very large buffers.
69096         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69097
69098         Make pwd and readlink work also when run with an unreadable parent dir
69099         on systems with openat support.
69100         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69101         provided getcwd function, even when we have openat support.
69102         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69103
69104 2007-02-02  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69108         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69109         portability problems if one of these functions is only used on specific
69110         platforms.
69111         Reported by Paul Eggert.
69112
69113 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69116         is causing more trouble than it's curing.
69117         * lib/regex_internal.h (__mempcpy): Remove.
69118         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69119         (and make the code a tad smaller to boot).
69120         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69121
69122 2007-02-02  Jim Meyering  <jim@meyering.net>
69123
69124         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69125         section, not in the Makefile.am: one.
69126
69127 2007-02-02  Eric Blake  <ebb9@byu.net>
69128
69129         * lib/strchrnul.c: Always include config.h first.
69130
69131         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69132         gnulib strstr is not necessary here.
69133
69134 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69135
69136         * m4/socklen.m4: Fix typo.
69137
69138 2007-02-02  Eric Blake  <ebb9@byu.net>
69139
69140         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69141         * modules/netinet_in (Makefile.am): Likewise.
69142
69143 2007-02-01  Bruno Haible  <bruno@clisp.org>
69144
69145         * lib/string_.h (GL_LINK_WARNING): New macro.
69146         (strcasecmp, strstr, strcasestr): If provided by the system,
69147         conditionally define as a macro that leads to a warning instead of to
69148         an error.
69149         (strncasecmp): Conditionally define as a macro that leads to a warning.
69150
69151 2007-02-01  Karl Berry  <karl@gnu.org>
69152
69153         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69154
69155 2007-02-01  Bruno Haible  <bruno@clisp.org>
69156
69157         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69158         renamings.
69159
69160 2007-02-01  Eric Blake  <ebb9@byu.net>
69161
69162         * modules/regex (Depends-on): Revert dependence on mempcpy.
69163         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69164         module's definition of mempcpy.
69165         Reported by Paul Eggert.
69166
69167 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69170         the symbol XYZ before redefining it.  This fixes a problem with
69171         programs that don't use XYZ, when compiled on systems that define
69172         XYZ to something else.
69173
69174 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69177         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69178         writeable to group or other and (2) is intended to have a special
69179         mode bit that is set or cleared.  In such a case, the directory
69180         should be neither group- nor other-writeable until the special
69181         mode bits are right.
69182
69183 2007-01-31  Eric Blake  <ebb9@byu.net>
69184
69185         * modules/mountlist (Depends-on): Add strstr.
69186
69187         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69188         bug.
69189         * modules/string (Makefile.am): Remove redundant replacement.
69190         * modules/regex (Depends-on): Add mempcpy.
69191
69192 2007-01-31  Bruno Haible  <bruno@clisp.org>
69193
69194         New module description field 'Link'.
69195         * gnulib-tool (func_usage): Document --extract-link-directive.
69196         (sed_extract_prog): Recognize 'Link' directive.
69197         (func_get_link_directive): New function.
69198         (func_import): Show summary of link directives.
69199         Handle --extract-link-directive option.
69200         * modules/acl (Link): New section.
69201         * modules/clock-time (Link): New section.
69202         * modules/euidaccess (Link): New section.
69203         * modules/gettext (Link): New section.
69204         * modules/iconv (Link): New section.
69205         * modules/lock (Link): New section.
69206         * modules/nanosleep (Link): New section.
69207         * modules/readline (Link): New section.
69208
69209 2007-01-27  Bruno Haible  <bruno@clisp.org>
69210
69211         Enforce the use of gnulib modules for unportable <string.h> functions.
69212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69213         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69214         (gl_HEADER_STRING_H_BODY): Require it.
69215         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69216         the symbol XYZ to one that gives a link error.
69217         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69218         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69219         * modules/mempcpy (configure.ac): Likewise.
69220         * modules/memrchr (configure.ac): Likewise.
69221         * modules/stpcpy (configure.ac): Likewise.
69222         * modules/stpncpy (configure.ac): Likewise.
69223         * modules/strcase (configure.ac): Likewise.
69224         * modules/strcasestr (configure.ac): Likewise.
69225         * modules/strchrnul (configure.ac): Likewise.
69226         * modules/strdup (configure.ac): Likewise.
69227         * modules/strndup (configure.ac): Likewise.
69228         * modules/strnlen (configure.ac): Likewise.
69229         * modules/strpbrk (configure.ac): Likewise.
69230         * modules/strsep (configure.ac): Likewise.
69231         * modules/strstr (configure.ac): Likewise.
69232         * modules/strtok_r (configure.ac): Likewise.
69233
69234 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69235
69236         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69237
69238 2007-01-30  Jim Meyering  <jim@meyering.net>
69239
69240         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69241
69242 2007-01-29  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69245         * lib/execute.c: Likewise.
69246         * lib/pipe.c: Likewise.
69247         * lib/printf-args.h: Likewise.
69248         * lib/printf-args.c: Likewise.
69249         * lib/printf-parse.c: Likewise.
69250         * lib/vasnprintf.c: Likewise.
69251
69252 2007-01-29  Eric Blake  <ebb9@byu.net>
69253
69254         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69255         declaration.
69256
69257 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         * lib/strptime.h (strptime): Use 'restrict' for args where
69260         POSIX requires this.
69261         * lib/strptime.c (strptime): Likewise.
69262         Change license notice from LGPL to GPL, since gnulib-tool will
69263         change this as needed.
69264         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69265         defined.
69266         Include "strptime.h" first, to check interface.
69267         Do not #undef _LIBC and _NL_CURRENT.
69268         Do not include <stdlib.h>; no longer needed.
69269         Include "time_r.h" and declare ptime_locale_status
69270         only if _LIBC is not defined.
69271         (__P): Remove unused macro.
69272         (match_string): Bring back glibc version, but use it only if _LIBC
69273         is defined.
69274         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69275         Remove unnecessary assertion and abort() call.
69276         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69277         * m4/strptime.m4: Fix serial number comment.
69278         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69279         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69280         (Depends-on): Add time_r.
69281
69282 2007-01-29  Bruno Haible  <bruno@clisp.org>
69283
69284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69285         strptime.
69286         * modules/strptime (Depends-on): Add stdbool.
69287         * lib/strptime.h: Include <time.h> always. Add comments.
69288
69289 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69290
69291         * modules/strptime: New file.
69292         * lib/strptime.h: New file.
69293         * lib/strptime.c: New file.
69294         * m4/strptime.m4: New file.
69295
69296 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69297
69298         * MODULES.html.sh: New module mpsort.
69299         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69300
69301         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69302         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69304         All uses changed.
69305         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69306         All uses changed.
69307         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69308         to _Restrict_.
69309         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69310         the parameter matches the prototype.
69311
69312 2007-01-28  Jim Meyering  <jim@meyering.net>
69313
69314         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69315         sys/time.h here, reverting that part of the previous patch:
69316         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69317
69318 2007-01-28  Bruno Haible  <bruno@clisp.org>
69319
69320         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69321         value of $(SYS_TIME_H).
69322         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69323         remove it conditionally, too. [added by Jim Meyering]
69324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69325         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69326         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69327         GETTIMEOFDAY_REPLACEMENT to 1.
69328
69329 2007-01-28  Bruno Haible  <bruno@clisp.org>
69330
69331         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69332         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69334         Set UNISTD_H instead of UNISTD_H2.
69335         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69336
69337 2007-01-28  Bruno Haible  <bruno@clisp.org>
69338
69339         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69340         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69341
69342 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69343
69344         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69345         (func_create_testdir): Ensure C locale for `grep' and `tr'
69346         character ranges.
69347         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69348         ACLOCAL_AMFLAGS parsing state machine.
69349
69350 2007-01-27  Bruno Haible  <bruno@clisp.org>
69351
69352         * modules/unistr/base: Update.
69353
69354 2007-01-27  Bruno Haible  <bruno@clisp.org>
69355
69356         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69357         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69358         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69359         modules/unistr/u32-mbtouc.
69360         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69361         * lib/unistr.h: Update.
69362         * lib/linebreak.c: Update.
69363         * modules/unistr/u32-mbtouc: Renamed from
69364         modules/unistr/u32-mbtouc-safe.
69365         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69366         * lib/unistr.h: Update.
69367         * lib/unistr/u32-to-u8.c: Update.
69368         * lib/unistr/u32-to-u16.c: Update.
69369
69370 2007-01-27  Bruno Haible  <bruno@clisp.org>
69371
69372         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69373         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69374         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69375         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69376         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69377         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69378         modules/unistr/u16-mbtouc.
69379         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69380         * lib/unistr.h: Update.
69381         * lib/linebreak.c: Update.
69382         * modules/linebreak: Update.
69383         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69384         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69385         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69386         * modules/unistr/u16-mbtouc: Renamed from
69387         modules/unistr/u16-mbtouc-safe.
69388         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69389         * lib/unistr.h: Update.
69390         * lib/unistr/u16-to-u8.c: Update.
69391         * modules/unistr/u16-to-u8: Update.
69392         * lib/unistr/u16-to-u32.c: Update.
69393         * modules/unistr/u16-to-u32: Update.
69394
69395 2007-01-27  Bruno Haible  <bruno@clisp.org>
69396
69397         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69398         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69399         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69400         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69401         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69402         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69403         modules/unistr/u8-mbtouc.
69404         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69405         * lib/unistr.h: Update.
69406         * lib/striconveh.c: Update.
69407         * modules/striconveh: Update.
69408         * lib/linebreak.c: Update.
69409         * modules/linebreak: Update.
69410         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69411         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69412         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69413         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69414         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69415         * lib/unistr.h: Update.
69416         * lib/striconveh.c: Update.
69417         * modules/striconveh: Update.
69418         * lib/unistr/u8-to-u16.c: Update.
69419         * modules/unistr/u8-to-u16: Update.
69420         * lib/unistr/u8-to-u32.c: Update.
69421         * modules/unistr/u8-to-u32: Update.
69422
69423 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69424
69425         Sync from Libtool.
69426         * lib/argz.c: Do not include strings.h nor memory.h, include
69427         string.h unconditionally.  Patch by Simon Josefsson.
69428
69429 2007-01-27  Bruno Haible  <bruno@clisp.org>
69430
69431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69432         from gl_HEADER_STRING_H_BODY.
69433         (gl_HEADER_STRING_H_BODY): Require it.
69434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69435         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69436         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69437         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69439         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69441         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69442         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69444         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69445         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69446         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69447         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69449
69450 2007-01-27  Bruno Haible  <bruno@clisp.org>
69451
69452         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69453         check_PROGRAMS into noinst_PROGRAMS.
69454         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69455         check_PROGRAMS in this case.
69456         (func_import): Set for_test to false.
69457         (func_create_testdir): Set for_test to true.
69458
69459 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69460             Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69463         (Depends-on): Add string.
69464         (Includes): Use <string.h> instead of strcasestr.h.
69465         * modules/string (Makefile.am): Also substitute the value of
69466         REPLACE_STRCASESTR.
69467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69468         assume strcasestr is declared in <string.h> not <strings.h>. Also
69469         set REPLACE_STRCASESTR.
69470         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69471         REPLACE_STRCASESTR.
69472         * lib/strcasestr.h: Remove file.
69473         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69474         * lib/string_.h (strcasestr): New declaration.
69475
69476 2007-01-27  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/string_.h: Use 'extern'.
69479
69480 2007-01-27  Jim Meyering  <jim@meyering.net>
69481
69482         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69483         of set-but-not-used local, "q".
69484
69485         * lib/mempcpy.c: Include <config.h> before <string.h>.
69486         This fixes a compilation error on HP-UX, due to the system's
69487         "restrict"-using mempcpy prototype.
69488
69489 2007-01-26  Bruno Haible  <bruno@clisp.org>
69490
69491         Small optimization.
69492         * lib/javacomp.c: Include c-strstr.h.
69493          (is_envjavac_gcj): Use c_strstr instead of strstr.
69494         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69495
69496 2007-01-26  Bruno Haible  <bruno@clisp.org>
69497
69498         * MODULES.html.sh (Unicode string functions): Add the new modules.
69499
69500         * modules/uniconv/u32-strconv-to-locale: New file.
69501         * lib/uniconv/u32-strconv-to-locale.c: New file.
69502
69503         * modules/uniconv/u16-strconv-to-locale: New file.
69504         * lib/uniconv/u16-strconv-to-locale.c: New file.
69505
69506         * modules/uniconv/u8-strconv-to-locale: New file.
69507         * lib/uniconv/u8-strconv-to-locale.c: New file.
69508
69509         * modules/uniconv/u32-strconv-from-locale: New file.
69510         * lib/uniconv/u32-strconv-from-locale.c: New file.
69511
69512         * modules/uniconv/u16-strconv-from-locale: New file.
69513         * lib/uniconv/u16-strconv-from-locale.c: New file.
69514
69515         * modules/uniconv/u8-strconv-from-locale: New file.
69516         * lib/uniconv/u8-strconv-from-locale.c: New file.
69517
69518         * modules/uniconv/u32-strconv-to-enc: New file.
69519         * lib/uniconv/u32-strconv-to-enc.c: New file.
69520         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69521         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69522
69523         * modules/uniconv/u16-strconv-to-enc: New file.
69524         * lib/uniconv/u16-strconv-to-enc.c: New file.
69525         * lib/uniconv/u-strconv-to-enc.h: New file.
69526         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69527         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69528
69529         * modules/uniconv/u8-strconv-to-enc: New file.
69530         * lib/uniconv/u8-strconv-to-enc.c: New file.
69531         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69532         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69533
69534         * modules/uniconv/u32-strconv-from-enc: New file.
69535         * lib/uniconv/u32-strconv-from-enc.c: New file.
69536         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69537         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69538
69539         * modules/uniconv/u16-strconv-from-enc: New file.
69540         * lib/uniconv/u16-strconv-from-enc.c: New file.
69541         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69542         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69543
69544         * modules/uniconv/u8-strconv-from-enc: New file.
69545         * lib/uniconv/u8-strconv-from-enc.c: New file.
69546         * lib/uniconv/u-strconv-from-enc.h: New file.
69547         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69548         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69549
69550         * modules/uniconv/u32-conv-from-enc: New file.
69551         * lib/uniconv/u32-conv-from-enc.c: New file.
69552         * modules/uniconv/u32-conv-from-enc-tests: New file.
69553         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69554
69555         * modules/uniconv/u16-conv-from-enc: New file.
69556         * lib/uniconv/u16-conv-from-enc.c: New file.
69557         * lib/uniconv/u-conv-from-enc.h: New file.
69558         * modules/uniconv/u16-conv-from-enc-tests: New file.
69559         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69560
69561         * modules/uniconv/u8-conv-from-enc: New file.
69562         * lib/uniconv/u8-conv-from-enc.c: New file.
69563         * modules/uniconv/u8-conv-from-enc-tests: New file.
69564         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69565
69566         * modules/uniconv/base: New file.
69567         * lib/uniconv.h: New file.
69568
69569 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * doc/gnulib-tool.texi (Initial import): Update to match current
69572         behavior with strdup module.
69573         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69574         * lib/memmem.h: Remove; all uses removed.  This is now done
69575         by <string.h>.
69576         * lib/mempcpy.h: Likewise.
69577         * lib/memrchr.h: Likewise.
69578         * lib/stpcpy.h: Likewise.
69579         * lib/stpncpy.h: Likewise.
69580         * lib/strcase.h: Likewise.
69581         * lib/strchrnul.h: Likewise.
69582         * lib/strdup.h: Likewise.
69583         * lib/strndup.h: Likewise.
69584         * lib/strnlen.h: Likewise.
69585         * lib/strpbrk.h: Likewise.
69586         * lib/strsep.h: Likewise.
69587         * lib/strstr.h: Likewise.
69588         * lib/strtok_r.h: Likewise.
69589         * lib/string_.h: New file.
69590         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69591         Rely on <string.h> instead.
69592         * lib/canon-host.c: Likewise.
69593         * lib/chdir-long.c: Likewise.
69594         * lib/concatpath.c: Likewise.
69595         * lib/exclude.c: Likewise.
69596         * lib/fchdir.c: Likewise.
69597         * lib/getaddrinfo.c: Likewise.
69598         * lib/getcwd.c: Likewise.
69599         * lib/getsubopt.c: Likewise.
69600         * lib/glob.c: Likewise.
69601         * lib/hard-locale.c: Likewise.
69602         * lib/iconvme.c: Likewise.
69603         * lib/javacomp.c: Likewise.
69604         * lib/mempcpy.c: Likewise.
69605         * lib/memrchr.c: Likewise.
69606         * lib/regex_internal.h: Likewise.
69607         * lib/stpncpy.c: Likewise.
69608         * lib/strcasecmp.c: Likewise.
69609         * lib/strchrnul.c: Likewise.
69610         * lib/strdup.c: Likewise.
69611         * lib/striconv.c: Likewise.
69612         * lib/striconveh.c: Likewise.
69613         * lib/striconveha.c: Likewise.
69614         * lib/strncasecmp.c: Likewise.
69615         * lib/strndup.c: Likewise.
69616         * lib/strnlen.c: Likewise.
69617         * lib/strsep.c: Likewise.
69618         * lib/strstr.c: Likewise.
69619         * lib/strtok_r.c: Likewise.
69620         * lib/userspec.c: Likewise.
69621         * lib/w32spawn.h: Likewise.
69622         * lib/xstrndup.c: Likewise.
69623         * lib/mountlist.c (strstr): Remove decl.
69624         * m4/string_h.m4: New file.
69625         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69626         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69627         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69628         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69629         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69630         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69631         Set REPLACE_STRCASECMP if necessary.
69632         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69633         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69634         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69635         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69636         HAVE_DECL_STRDUP if necessary.
69637         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69638         since gl_FUNC_STRNDUP does that now.
69639         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69640         Check for decl here...
69641         (gl_PREREQ_STRNLEN): ... not here.
69642         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69643         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69644         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69645         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69646         necessary.
69647         * modules/string: New file.
69648         * modules/memmem (Files): Remove special-purpose include file.
69649         (Depends-on): Add string.
69650         (Include): Include <string.h>, not the removed file.
69651         * modules/mempcpy: Likewise.
69652         * modules/memrchr: Likewise.
69653         * modules/stpcpy: Likewise.
69654         * modules/stpncpy: Likewise.
69655         * modules/strcase: Likewise.
69656         * modules/strchrnul: Likewise.
69657         * modules/strdup: Likewise.
69658         * modules/strndup: Likewise.
69659         * modules/strnlen: Likewise.
69660         * modules/strpbrk: Likewise.
69661         * modules/strsep: Likewise.
69662         * modules/strstr: Likewise.
69663         * modules/strtok_r: Likewise.
69664         * tests/test-dirname.c: Don't include "strdup.h", since
69665         <string.h> now suffices.
69666         * tests/test-memmem.c: Don't include "memmem.h", since
69667         <string.h> now suffices.
69668
69669 2007-01-25  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69672         *resultp is 0.
69673
69674         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69675         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69676         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69677         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69678
69679         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69680         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69681         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69682         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69683         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69684         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69685
69686 2007-01-24  Bruno Haible  <bruno@clisp.org>
69687
69688         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69689         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69690         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69691         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69692         gl_FUNC_FTS_CORE.
69693         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69694         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69695         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69696         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69697         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69698         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69699         gl_FUNC_FCHOWNAT.
69700         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69701         gl_FUNC_STRFTIME.
69702         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69703         Reported by Ralf Wildenhues.
69704
69705 2007-01-24  Bruno Haible  <bruno@clisp.org>
69706
69707         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69708         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69709         gl_GETADDRINFO.
69710         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69711         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69712         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69713
69714 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69717         Don't use 'exit'; just return from 'main'.
69718         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69719
69720         * lib/fnmatch_.h: Readjust white space and comments to match
69721         glibc, to avoid spurious diffs.
69722
69723 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69726         2004-12-01 change by Jakub Jelinek, since this code won't compile
69727         if !LIBC.  Problem reported by Bob Proulx.
69728
69729 2007-01-23  Bruno Haible  <bruno@clisp.org>
69730
69731         * lib/striconveh.c: Include c-strcaseeq.h.
69732         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69733         * modules/striconveh (Depends-on): Add c-strcaseeq.
69734
69735 2007-01-23  Bruno Haible  <bruno@clisp.org>
69736
69737         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69738
69739         * modules/c-strcaseeq: New file.
69740         * lib/c-strcaseeq.h: New file.
69741
69742         * modules/streq: New file.
69743         * lib/streq.h: New file.
69744
69745 2007-01-23  Bruno Haible  <bruno@clisp.org>
69746
69747         * modules/striconveha-tests: New file.
69748         * tests/test-striconveha.c: New file.
69749
69750         * lib/striconveha.h: Include <stdbool.h>.
69751         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69752         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69753         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69754         (mem_iconveha): New function.
69755         (str_iconveha_notranslit): Renamed from str_iconveha.
69756         (str_iconveha): New function.
69757         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69758         c-strcase.
69759
69760 2007-01-23  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69763         encodings without forgiving before trying any encoding with handler.
69764         (str_iconveha): Try all encodings without forgiving before trying any
69765         encoding with handler.
69766
69767 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         Import the following changes from libc.
69770
69771         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69772
69773         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69774
69775         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69776
69777         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69778         normal_bracket label.
69779
69780         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69781
69782         [BZ #361]
69783         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69784         to normal_bracket after fetching the next character.
69785
69786 2007-01-22  Bruno Haible  <bruno@clisp.org>
69787
69788         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69789         argument.
69790         * lib/striconveh.c (iconv_carefully_1): New function.
69791         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69792         argument.
69793         (str_cd_iconveh): Update.
69794         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69795         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69796         * tests/test-striconveh.c (MAGIC): New macro.
69797         (new_offsets): New function.
69798         (main): Test call with and without offsets.
69799
69800 2007-01-22  Bruno Haible  <bruno@clisp.org>
69801
69802         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69803         * modules/sys_select (Makefile.am): Likewise.
69804         * modules/sys_socket (Makefile.am): Likewise.
69805         * modules/sys_time (Makefile.am): Likewise.
69806
69807 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * modules/gettimeofday (License): Change from GPL to LGPL, since
69810         gettimeofday is a library function.
69811
69812 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69813
69814         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69815
69816 2007-01-21  Bruno Haible  <bruno@clisp.org>
69817
69818         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69819
69820 2007-01-21  Bruno Haible  <bruno@clisp.org>
69821
69822         * modules/striconveha: New file.
69823         * lib/striconveha.h: New file.
69824         * lib/striconveha.c: New file.
69825         * MODULES.html.sh (Internationalization functions): Add striconveha.
69826         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69827         string.
69828         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69829
69830 2007-01-21  Bruno Haible  <bruno@clisp.org>
69831
69832         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69833         * lib/striconveh.c (str_iconveh): Likewise.
69834
69835 2007-01-21  Bruno Haible  <bruno@clisp.org>
69836
69837         * lib/striconveh.h (mem_iconveh): New declaration.
69838         * lib/striconveh.c (mem_iconveh): New function.
69839         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69840
69841 2007-01-21  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69844
69845         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69846         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69847         original result buffer.
69848         (str_cd_iconveh): Update.
69849         * tests/test-striconveh.c (main): Update.
69850
69851         * lib/striconv.h (mem_cd_iconv): Change specification.
69852         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69853         result buffer.
69854         (str_cd_iconv): Update.
69855         * tests/test-striconv.c (main): Update.
69856
69857 2007-01-21  Bruno Haible  <bruno@clisp.org>
69858
69859         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69860
69861 2007-01-20  Jim Meyering  <jim@meyering.net>
69862
69863         * lib/userspec.c (parse_with_separator): If a user or group string
69864         starts with "+", skip the corresponding name-to-ID look-up, since
69865         such a look-up must fail: user and group names may not include "+".
69866
69867 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69870         since we now assume the sys_time module.
69871         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69872         check for sys/time.h; no longer needed.
69873         * modules/poll (Depends-on): Depend on sys_time.
69874
69875 2007-01-18  Bruno Haible  <bruno@clisp.org>
69876
69877         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69878         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69879
69880         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69881         gettimeofday.
69882
69883         * tests/test-gettimeofday.c: Include <time.h>.
69884         (dummy): Remove variable.
69885
69886         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69887         gl_HEADER_SYS_TIME_H.
69888         (gl_HEADER_SYS_TIME_H): New macro.
69889
69890         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69891         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69892         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69893         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69894         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69896         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69897         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69898         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69899         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69900         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69901
69902         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69903         last change; it caused a compilation error when cross-compiling to
69904         Cygwin.
69905
69906 2007-01-18  Jim Meyering  <jim@meyering.net>
69907
69908         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69909         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69910         than the race-prone "test -d sys || mkdir sys".
69911         (configure.ac): Use AC_PROG_MKDIR_P.
69912         * modules/sys_select: Likewise.
69913         * modules/sys_socket: Likewise.
69914         * modules/sys_time: Likewise.
69915
69916 2007-01-18  Eric Blake  <ebb9@byu.net>
69917
69918         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69919         replace gettimeofday.
69920         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69921         name, to avoid infinite recursion.
69922
69923 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69926         module sys_time.
69927         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69928         assume timespec.h defines struct timeval.
69929         * lib/settime.c: Likewise.
69930         * lib/utimens.c: Likewise.
69931         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69932         since we now assume the gettimeofday module.
69933         * lib/tempname.c (__gen_tempname): Likewise.
69934         * lib/gettimeofday.h: Remove.
69935         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69936         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69937         Include <time.h>, for 'time()'.
69938         (localtime_buffer_addr): Also use this workaround if
69939         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69940         to simplify the uses.  All uses changed.
69941         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69942         that #undef is inside {}, and 'const' follows type name consistently.
69943         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69944         (gettimeofday): Do not use the maximum possible value for
69945         tv->tv_usec, since that might break usages other than ls.c.
69946         Instead, we'll leave ls.c alone.  This undoes today's patch
69947         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69948         we've never observed the problem but might as well keep the
69949         canary.
69950         * lib/nanosleep.c: Include timespec.h first, for interface check.
69951         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69952         now assume the sys_time module.
69953         * lib/tempname.c: Likewise.
69954         * lib/timespec.h: Likewise.
69955         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69956         needed.
69957         * lib/strftime.c: Likewise.
69958         * lib/timespec.h: Likewise.
69959         * lib/posixtm.c: Include posixtm.h first, for interface check.
69960         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69961         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69962         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69963         * lib/sys_time_.h: New file.
69964         * lib/timespec.h (struct timespec): Use long int, not long.
69965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69966         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69967         Remove obsolescent call to AC_HEADER_TIME.
69968         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69970         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69971         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69972         Likewise.
69973         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69974         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69976         into the sys_time module.  Check for gettimeofday just once.
69977         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69978         for gettimeofday signature to just check the signature.  Merely
69979         compile it, since linking doesn't test signature.  Improve test for
69980         whether gettimeofday.o is actually needed.
69981         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69982         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69983         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69984         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69985         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69986         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69987         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69988         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69989         than worrying about sys/time.h.
69990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69991         Don't bother worrying about TIME_WITH_SYS_TIME.
69992         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69993         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69994         * m4/sys_time_h.m4: New file.
69995         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69996         Don't include sys/time.h.  Return from main rather than exiting.
69997         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69998         all uses changed.
69999         * modules/gethrxtime (Depends-on): Add sys_time.
70000         * modules/gettime (Depends-on): Likewise.
70001         * modules/gettimeofday (Depends-on): Likewise.
70002         * modules/nanosleep (Depends-on): Likewise.
70003         * modules/settime (Depends-on): Likewise.
70004         * modules/tempname (Depends-on): Likewise.
70005         * modules/utimens (Depends-on): Likewise.
70006         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70007         (Include): Change back to <sys/time.h>.
70008         (Maintainer): Add self.
70009         * modules/sys_time: New file.
70010         * modules/tempname (Depends-on): Add gettimeofday.
70011         * tests/test-gettimeofday.c: Include <sys/time.h>
70012         rather than gettimeofday.h.
70013
70014 2007-01-17  Bruno Haible  <bruno@clisp.org>
70015
70016         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70017         the license default to GPL.
70018         (func_create_testdir): Don't complain if a module is LGPL and its
70019         tests module depends on GPLed modules.
70020
70021 2007-01-17  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/gettimeofday.c (gettimeofday): Add code for the case
70024         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70025         maximum possible value for tv->tv_usec, rather than the minimum one.
70026
70027 2005-10-08  Martin Lambers  <marlam@marlam.de>
70028 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70029 2007-01-16  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70032         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70033         gl_FUNC_GETTIMEOFDAY.
70034         (Include): Add gettimeofday.h.
70035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70036         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70037         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70038         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70039         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70040         * lib/gettimeofday.h: New file.
70041         * lib/gettimeofday.c: Include <sys/timeb.h>.
70042         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70043         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70044         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70045         fall back on time().
70046
70047         * tests/test-gettimeofday.c: New file.
70048         * modules/gettimeofday-tests: New file.
70049
70050 2007-01-16  Eric Blake  <ebb9@byu.net>
70051
70052         * modules/fnmatch (Depends-on): Depend on wchar.
70053         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70054         * m4/fnmatch.m4: Likewise.
70055         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70056         * m4/mbchar.m4: Likewise.
70057         * modules/mbswidth (Depends-on): Depend on wchar.
70058         * lib/mbswidth.c: Assume <wchar.h>.
70059         * m4/mbswidth.m4: Likewise.
70060         * modules/quotearg (Depends-on): Depend on wchar.
70061         * lib/quotearg.c: Assume <wchar.h>.
70062         * m4/quotearg.m4: Likewise.
70063         * modules/regex (Depends-on): Depend on wchar.
70064         * lib/regex_internal.h: Assume <wchar.h>.
70065         * m4/regex.m4: Likewise.
70066         * modules/stdint (Depends-on): Depend on wchar.
70067         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70068         * m4/stdint.m4: Likewise.
70069         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70070         * modules/strftime (Depends-on): Depend on wchar.
70071         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70072         * modules/strtol (Depends-on): Depend on wchar.
70073         * lib/strtol.c: Assume <wchar.h>.
70074         * modules/wcwidth (Depends-on): Depend on wchar.
70075         * lib/wcwidth.h: Assume <wchar.h>.
70076         * m4/wcwidth.m4: Likewise.
70077
70078 2007-01-16  Bruno Haible  <bruno@clisp.org>
70079
70080         * modules/csharpexec-script: New, created from...
70081         * modules/csharpexec: ... this.
70082
70083 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70084
70085         * modules/javaexec-script: New, created from...
70086         * modules/javaexec: ... this.
70087
70088 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70089
70090         * modules/poll (Dependencies): Add sys_select.
70091
70092 2007-01-15  Jim Meyering  <jim@meyering.net>
70093
70094         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70095         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70096         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70097         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70098
70099 2007-01-15  Bruno Haible  <bruno@clisp.org>
70100
70101         * modules/striconveh: New file.
70102         * lib/striconveh.h: New file.
70103         * lib/striconveh.c: New file.
70104         * MODULES.html.sh (Internationalization functions): Add striconveh.
70105
70106         * modules/striconveh-tests: New file.
70107         * tests/test-striconveh.c: New file.
70108
70109 2007-01-15  Bruno Haible  <bruno@clisp.org>
70110
70111         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70112         not from GNU libiconv or GNU libc.
70113
70114 2007-01-15  Bruno Haible  <bruno@clisp.org>
70115
70116         * doc/gnulib-intro.texi (Copyright): Explain the different license
70117         terms for module descriptions, autoconf macros, tests, documentation.
70118
70119 2007-01-14  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/striconv-tests: New file.
70122         * tests/test-striconv.c: New file.
70123
70124 2007-01-14  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/iconv-tests: New file.
70127         * tests/test-iconv.c: New file.
70128
70129 2007-01-14  Bruno Haible  <bruno@clisp.org>
70130
70131         * gnulib-tool (func_get_license): For test modules, use the license of
70132         the main module.
70133
70134 2007-01-14  Bruno Haible  <bruno@clisp.org>
70135
70136         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70137         if iconv is found to exist.
70138
70139 2007-01-14  Bruno Haible  <bruno@clisp.org>
70140
70141         * modules/c-ctype-tests: New file.
70142         * tests/test-c-ctype.c: New file.
70143
70144 2007-01-14  Bruno Haible  <bruno@clisp.org>
70145
70146         * modules/binary-io-tests: New file.
70147         * tests/test-binary-io.sh: New file.
70148         * tests/test-binary-io.c: New file.
70149
70150 2007-01-14  Bruno Haible  <bruno@clisp.org>
70151
70152         * modules/array-oset-tests: New file.
70153         * tests/test-array_oset.c: New file.
70154
70155 2007-01-14  Bruno Haible  <bruno@clisp.org>
70156
70157         * modules/array-list-tests: New file.
70158         * tests/test-array_list.c: New file.
70159
70160 2007-01-14  Bruno Haible  <bruno@clisp.org>
70161
70162         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70163         and make.
70164         Reported by Simon Josefsson in
70165         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70166
70167 2007-01-14  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/allocsa-tests: New file.
70170         * tests/test-allocsa.c: New file.
70171
70172 2007-01-14  Bruno Haible  <bruno@clisp.org>
70173
70174         * modules/fchdir (Depends-on): Add absolute-header.
70175         * modules/unistd (Depends-on): Likewise.
70176
70177 2006-12-30  Bruno Haible  <bruno@clisp.org>
70178
70179         * modules/fchdir: New file.
70180         * modules/unistd (Files): Add lib/unistd_.h.
70181         (Makefile.am): Generate unistd.h from unistd_.h.
70182         * lib/fchdir.c: New file.
70183         * lib/dirent_.h: New file.
70184         * lib/unistd_.h: New file.
70185         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70186         * m4/fchdir.m4: New file.
70187         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70188         (gl_HEADER_UNISTD): Invoke it.
70189         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70190         function.
70191         * lib/backupfile.c (opendir, closedir): Undefine.
70192         * lib/chown.c (open, close): Undefine.
70193         * lib/clean-temp.c (open, close): Undefine.
70194         * lib/copy-file.c (open, close): Undefine.
70195         * lib/execute.c (open, close): Undefine.
70196         * lib/fsusage.c (open, close): Undefine.
70197         * lib/gc-gnulib.c (open, close): Undefine.
70198         * lib/getcwd.c (opendir, closedir): Undefine.
70199         * lib/glob.c (opendir, closedir): Undefine.
70200         * lib/javacomp.c (open, close): Undefine.
70201         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70202         * lib/openat-proc.c (open, close): Undefine.
70203         * lib/pagealign_alloc.c (open, close): Undefine.
70204         * lib/pipe.c (open, close): Undefine.
70205         * lib/progreloc.c (open, close): Undefine.
70206         * lib/savedir.c (opendir, closedir): Undefine.
70207         * lib/utime.c (open, close): Undefine.
70208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70209
70210 2007-01-10  Bruno Haible  <bruno@clisp.org>
70211
70212         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70213
70214 2007-01-12  Eric Blake  <ebb9@byu.net>
70215
70216         Provide a robust <wchar.h>.  Further simplifications are now
70217         possible in other modules, but not included here.
70218         * modules/wchar: New module.
70219         * m4/wchar.m4: New file.
70220         * lib/wchar_.h: Likewise.
70221         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70222         of the new module.
70223         * MODULES.html.sh (Extended multibyte and wide character utilities):
70224         New section.
70225
70226 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70229         to a reasonable default for memory allocation.
70230         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70231         file system that reports garbage st_size values for symlinks.
70232         Problem reported by Liyang Hu.
70233
70234 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70235
70236         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70237         Emacs .#* auto-save files).
70238
70239 2007-01-11  Bruno Haible  <bruno@clisp.org>
70240
70241         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70242         directory.
70243
70244 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70245
70246         Use @...@ consistently in lib/wctype_.h.
70247         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70248         on it being set to 1 or 0.
70249         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70250         go back to AC_SUBSTing it.
70251         * modules/wctype (Makefile.am): Undo previous change.
70252
70253 2007-01-10  Eric Blake  <ebb9@byu.net>
70254
70255         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70256         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70257         * modules/wctype (Makefile.am): Likewise.
70258         Reported by Chris McGuire.
70259
70260 2007-01-10  Jim Meyering  <jim@meyering.net>
70261
70262         fts.c: a small readability/maintainability improvement
70263         * lib/fts.c (fts_read): Make this code slightly more readable and
70264         maintainable by hoisting the "sp->fts_cur = p" assignments to
70265         immediately follow the statements that set P.  Derived from
70266         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70267
70268 2007-01-10  Eric Blake  <ebb9@byu.net>
70269
70270         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70271         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70273         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70274         Reported by Chris McGuire.
70275
70276 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70277
70278         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70279         in sed script.
70280
70281 2007-01-09  Bruno Haible  <bruno@clisp.org>
70282
70283         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70284         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70285         variables.
70286         (func_module): Use them.
70287
70288 2007-01-09  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/unistr/base: New file.
70291         * lib/unistr.h: New file.
70292
70293         * modules/unistr/u8-to-u16: New file.
70294         * lib/unistr/u8-to-u16.c: New file.
70295
70296         * modules/unistr/u8-to-u32: New file.
70297         * lib/unistr/u8-to-u32.c: New file.
70298
70299         * modules/unistr/u16-to-u8: New file.
70300         * lib/unistr/u16-to-u8.c: New file.
70301
70302         * modules/unistr/u16-to-u32: New file.
70303         * lib/unistr/u16-to-u32.c: New file.
70304
70305         * modules/unistr/u32-to-u8: New file.
70306         * lib/unistr/u32-to-u8.c: New file.
70307
70308         * modules/unistr/u32-to-u16: New file.
70309         * lib/unistr/u32-to-u16.c: New file.
70310
70311         * modules/unistr/u8-check: New file.
70312         * modules/unistr/u16-check: New file.
70313         * modules/unistr/u32-check: New file.
70314         * lib/unistr/u8-check.c: New file.
70315         * lib/unistr/u16-check.c: New file.
70316         * lib/unistr/u32-check.c: New file.
70317
70318         * modules/unistr/u8-chr: New file.
70319         * modules/unistr/u16-chr: New file.
70320         * modules/unistr/u32-chr: New file.
70321         * lib/unistr/u8-chr.c: New file.
70322         * lib/unistr/u16-chr.c: New file.
70323         * lib/unistr/u32-chr.c: New file.
70324
70325         * modules/unistr/u8-cmp: New file.
70326         * modules/unistr/u16-cmp: New file.
70327         * modules/unistr/u32-cmp: New file.
70328         * lib/unistr/u8-cmp.c: New file.
70329         * lib/unistr/u16-cmp.c: New file.
70330         * lib/unistr/u32-cmp.c: New file.
70331
70332         * modules/unistr/u8-cpy: New file.
70333         * modules/unistr/u16-cpy: New file.
70334         * modules/unistr/u32-cpy: New file.
70335         * lib/unistr/u8-cpy.c: New file.
70336         * lib/unistr/u16-cpy.c: New file.
70337         * lib/unistr/u32-cpy.c: New file.
70338         * lib/unistr/u-cpy.h: New file.
70339
70340         * modules/unistr/u8-cpy-alloc: New file.
70341         * modules/unistr/u16-cpy-alloc: New file.
70342         * modules/unistr/u32-cpy-alloc: New file.
70343         * lib/unistr/u8-cpy-alloc.c: New file.
70344         * lib/unistr/u16-cpy-alloc.c: New file.
70345         * lib/unistr/u32-cpy-alloc.c: New file.
70346         * lib/unistr/u-cpy-alloc.h: New file.
70347
70348         * modules/unistr/u8-endswith: New file.
70349         * modules/unistr/u16-endswith: New file.
70350         * modules/unistr/u32-endswith: New file.
70351         * lib/unistr/u8-endswith.c: New file.
70352         * lib/unistr/u16-endswith.c: New file.
70353         * lib/unistr/u32-endswith.c: New file.
70354         * lib/unistr/u-endswith.h: New file.
70355
70356         * modules/unistr/u8-mblen: New file.
70357         * modules/unistr/u16-mblen: New file.
70358         * modules/unistr/u32-mblen: New file.
70359         * lib/unistr/u8-mblen.c: New file.
70360         * lib/unistr/u16-mblen.c: New file.
70361         * lib/unistr/u32-mblen.c: New file.
70362
70363         * modules/unistr/u8-mbtouc: New file.
70364         * modules/unistr/u16-mbtouc: New file.
70365         * modules/unistr/u32-mbtouc: New file.
70366         * lib/unistr/u8-mbtouc.c: New file.
70367         * lib/unistr/u16-mbtouc.c: New file.
70368         * lib/unistr/u32-mbtouc.c: New file.
70369
70370         * modules/unistr/u8-mbtouc-safe: New file.
70371         * modules/unistr/u16-mbtouc-safe: New file.
70372         * modules/unistr/u32-mbtouc-safe: New file.
70373         * lib/unistr/u8-mbtouc-safe.c: New file.
70374         * lib/unistr/u16-mbtouc-safe.c: New file.
70375         * lib/unistr/u32-mbtouc-safe.c: New file.
70376
70377         * modules/unistr/u8-move: New file.
70378         * modules/unistr/u16-move: New file.
70379         * modules/unistr/u32-move: New file.
70380         * lib/unistr/u8-move.c: New file.
70381         * lib/unistr/u16-move.c: New file.
70382         * lib/unistr/u32-move.c: New file.
70383         * lib/unistr/u-move.h: New file.
70384
70385         * modules/unistr/u8-next: New file.
70386         * modules/unistr/u16-next: New file.
70387         * modules/unistr/u32-next: New file.
70388         * lib/unistr/u8-next.c: New file.
70389         * lib/unistr/u16-next.c: New file.
70390         * lib/unistr/u32-next.c: New file.
70391
70392         * modules/unistr/u8-prev: New file.
70393         * modules/unistr/u16-prev: New file.
70394         * modules/unistr/u32-prev: New file.
70395         * lib/unistr/u8-prev.c: New file.
70396         * lib/unistr/u16-prev.c: New file.
70397         * lib/unistr/u32-prev.c: New file.
70398
70399         * modules/unistr/u8-set: New file.
70400         * modules/unistr/u16-set: New file.
70401         * modules/unistr/u32-set: New file.
70402         * lib/unistr/u8-set.c: New file.
70403         * lib/unistr/u16-set.c: New file.
70404         * lib/unistr/u32-set.c: New file.
70405         * lib/unistr/u-set.h: New file.
70406
70407         * modules/unistr/u8-startswith: New file.
70408         * modules/unistr/u16-startswith: New file.
70409         * modules/unistr/u32-startswith: New file.
70410         * lib/unistr/u8-startswith.c: New file.
70411         * lib/unistr/u16-startswith.c: New file.
70412         * lib/unistr/u32-startswith.c: New file.
70413         * lib/unistr/u-startswith.h: New file.
70414
70415         * modules/unistr/u8-stpcpy: New file.
70416         * modules/unistr/u16-stpcpy: New file.
70417         * modules/unistr/u32-stpcpy: New file.
70418         * lib/unistr/u8-stpcpy.c: New file.
70419         * lib/unistr/u16-stpcpy.c: New file.
70420         * lib/unistr/u32-stpcpy.c: New file.
70421         * lib/unistr/u-stpcpy.h: New file.
70422
70423         * modules/unistr/u8-stpncpy: New file.
70424         * modules/unistr/u16-stpncpy: New file.
70425         * modules/unistr/u32-stpncpy: New file.
70426         * lib/unistr/u8-stpncpy.c: New file.
70427         * lib/unistr/u16-stpncpy.c: New file.
70428         * lib/unistr/u32-stpncpy.c: New file.
70429         * lib/unistr/u-stpncpy.h: New file.
70430
70431         * modules/unistr/u8-strcat: New file.
70432         * modules/unistr/u16-strcat: New file.
70433         * modules/unistr/u32-strcat: New file.
70434         * lib/unistr/u8-strcat.c: New file.
70435         * lib/unistr/u16-strcat.c: New file.
70436         * lib/unistr/u32-strcat.c: New file.
70437         * lib/unistr/u-strcat.h: New file.
70438
70439         * modules/unistr/u8-strchr: New file.
70440         * modules/unistr/u16-strchr: New file.
70441         * modules/unistr/u32-strchr: New file.
70442         * lib/unistr/u8-strchr.c: New file.
70443         * lib/unistr/u16-strchr.c: New file.
70444         * lib/unistr/u32-strchr.c: New file.
70445
70446         * modules/unistr/u8-strcmp: New file.
70447         * modules/unistr/u16-strcmp: New file.
70448         * modules/unistr/u32-strcmp: New file.
70449         * lib/unistr/u8-strcmp.c: New file.
70450         * lib/unistr/u16-strcmp.c: New file.
70451         * lib/unistr/u32-strcmp.c: New file.
70452
70453         * modules/unistr/u8-strcpy: New file.
70454         * modules/unistr/u16-strcpy: New file.
70455         * modules/unistr/u32-strcpy: New file.
70456         * lib/unistr/u8-strcpy.c: New file.
70457         * lib/unistr/u16-strcpy.c: New file.
70458         * lib/unistr/u32-strcpy.c: New file.
70459         * lib/unistr/u-strcpy.h: New file.
70460
70461         * modules/unistr/u8-strcspn: New file.
70462         * modules/unistr/u16-strcspn: New file.
70463         * modules/unistr/u32-strcspn: New file.
70464         * lib/unistr/u8-strcspn.c: New file.
70465         * lib/unistr/u16-strcspn.c: New file.
70466         * lib/unistr/u32-strcspn.c: New file.
70467         * lib/unistr/u-strcspn.h: New file.
70468
70469         * modules/unistr/u8-strdup: New file.
70470         * modules/unistr/u16-strdup: New file.
70471         * modules/unistr/u32-strdup: New file.
70472         * lib/unistr/u8-strdup.c: New file.
70473         * lib/unistr/u16-strdup.c: New file.
70474         * lib/unistr/u32-strdup.c: New file.
70475         * lib/unistr/u-strdup.h: New file.
70476
70477         * modules/unistr/u8-strlen: New file.
70478         * modules/unistr/u16-strlen: New file.
70479         * modules/unistr/u32-strlen: New file.
70480         * lib/unistr/u8-strlen.c: New file.
70481         * lib/unistr/u16-strlen.c: New file.
70482         * lib/unistr/u32-strlen.c: New file.
70483         * lib/unistr/u-strlen.h: New file.
70484
70485         * modules/unistr/u8-strmblen: New file.
70486         * modules/unistr/u16-strmblen: New file.
70487         * modules/unistr/u32-strmblen: New file.
70488         * lib/unistr/u8-strmblen.c: New file.
70489         * lib/unistr/u16-strmblen.c: New file.
70490         * lib/unistr/u32-strmblen.c: New file.
70491
70492         * modules/unistr/u8-strmbtouc: New file.
70493         * modules/unistr/u16-strmbtouc: New file.
70494         * modules/unistr/u32-strmbtouc: New file.
70495         * lib/unistr/u8-strmbtouc.c: New file.
70496         * lib/unistr/u16-strmbtouc.c: New file.
70497         * lib/unistr/u32-strmbtouc.c: New file.
70498
70499         * modules/unistr/u8-strncat: New file.
70500         * modules/unistr/u16-strncat: New file.
70501         * modules/unistr/u32-strncat: New file.
70502         * lib/unistr/u8-strncat.c: New file.
70503         * lib/unistr/u16-strncat.c: New file.
70504         * lib/unistr/u32-strncat.c: New file.
70505         * lib/unistr/u-strncat.h: New file.
70506
70507         * modules/unistr/u8-strncmp: New file.
70508         * modules/unistr/u16-strncmp: New file.
70509         * modules/unistr/u32-strncmp: New file.
70510         * lib/unistr/u8-strncmp.c: New file.
70511         * lib/unistr/u16-strncmp.c: New file.
70512         * lib/unistr/u32-strncmp.c: New file.
70513
70514         * modules/unistr/u8-strncpy: New file.
70515         * modules/unistr/u16-strncpy: New file.
70516         * modules/unistr/u32-strncpy: New file.
70517         * lib/unistr/u8-strncpy.c: New file.
70518         * lib/unistr/u16-strncpy.c: New file.
70519         * lib/unistr/u32-strncpy.c: New file.
70520         * lib/unistr/u-strncpy.h: New file.
70521
70522         * modules/unistr/u8-strnlen: New file.
70523         * modules/unistr/u16-strnlen: New file.
70524         * modules/unistr/u32-strnlen: New file.
70525         * lib/unistr/u8-strnlen.c: New file.
70526         * lib/unistr/u16-strnlen.c: New file.
70527         * lib/unistr/u32-strnlen.c: New file.
70528         * lib/unistr/u-strnlen.h: New file.
70529
70530         * modules/unistr/u8-strpbrk: New file.
70531         * modules/unistr/u16-strpbrk: New file.
70532         * modules/unistr/u32-strpbrk: New file.
70533         * lib/unistr/u8-strpbrk.c: New file.
70534         * lib/unistr/u16-strpbrk.c: New file.
70535         * lib/unistr/u32-strpbrk.c: New file.
70536         * lib/unistr/u-strpbrk.h: New file.
70537
70538         * modules/unistr/u8-strrchr: New file.
70539         * modules/unistr/u16-strrchr: New file.
70540         * modules/unistr/u32-strrchr: New file.
70541         * lib/unistr/u8-strrchr.c: New file.
70542         * lib/unistr/u16-strrchr.c: New file.
70543         * lib/unistr/u32-strrchr.c: New file.
70544
70545         * modules/unistr/u8-strspn: New file.
70546         * modules/unistr/u16-strspn: New file.
70547         * modules/unistr/u32-strspn: New file.
70548         * lib/unistr/u8-strspn.c: New file.
70549         * lib/unistr/u16-strspn.c: New file.
70550         * lib/unistr/u32-strspn.c: New file.
70551         * lib/unistr/u-strspn.h: New file.
70552
70553         * modules/unistr/u8-strstr: New file.
70554         * modules/unistr/u16-strstr: New file.
70555         * modules/unistr/u32-strstr: New file.
70556         * lib/unistr/u8-strstr.c: New file.
70557         * lib/unistr/u16-strstr.c: New file.
70558         * lib/unistr/u32-strstr.c: New file.
70559         * lib/unistr/u-strstr.h: New file.
70560
70561         * modules/unistr/u8-strtok: New file.
70562         * modules/unistr/u16-strtok: New file.
70563         * modules/unistr/u32-strtok: New file.
70564         * lib/unistr/u8-strtok.c: New file.
70565         * lib/unistr/u16-strtok.c: New file.
70566         * lib/unistr/u32-strtok.c: New file.
70567         * lib/unistr/u-strtok.h: New file.
70568
70569         * modules/unistr/u8-uctomb: New file.
70570         * modules/unistr/u16-uctomb: New file.
70571         * modules/unistr/u32-uctomb: New file.
70572         * lib/unistr/u8-uctomb.c: New file.
70573         * lib/unistr/u16-uctomb.c: New file.
70574         * lib/unistr/u32-uctomb.c: New file.
70575
70576         * MODULES.html.sh (Unicode string functions): Add the new modules.
70577
70578 2007-01-08  Bruno Haible  <bruno@clisp.org>
70579
70580         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70581         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70582         subdirectories.
70583
70584 2007-01-08  Karl Berry  <karl@gnu.org>
70585
70586         * doc/error.texi: mention that main() fns must set program_name
70587         when progname is used.
70588
70589 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70592         WCTYPE_H is empty, for the benefit of builds from non-distclean
70593         directories.  Problem reported by Eric Blake in
70594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70595
70596 2007-01-08  Bruno Haible  <bruno@clisp.org>
70597
70598         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70599         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70600         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70601         PROVIDE_CANONICALIZE_FILENAME_MODE.
70602         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70603
70604 2007-01-08  Bruno Haible  <bruno@clisp.org>
70605
70606         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70607         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70608         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70609         * lib/fts.c: Likewise.
70610         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70611
70612 2006-12-25  Bruno Haible  <bruno@clisp.org>
70613
70614         * modules/utf8-ucs4-safe: New file.
70615         * lib/utf8-ucs4-safe.h: New file.
70616         * lib/unistr/utf8-ucs4-safe.c: New file.
70617
70618         * modules/utf16-ucs4-safe: New file.
70619         * lib/utf16-ucs4-safe.h: New file.
70620         * lib/unistr/utf16-ucs4-safe.c: New file.
70621
70622         * MODULES.html.sh (Unicode string functions): Add the new modules.
70623
70624 2007-01-08  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70627         (Depends-on): Add unitypes.
70628         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70629         (u8_mbtouc_aux): Move out to separate file.
70630         (u8_mbtouc): Use ucs4_t, uint8_t types.
70631         * lib/unistr/utf8-ucs4.c: New file.
70632
70633         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70634         (Depends-on): Add unitypes.
70635         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70636         (u16_mbtouc_aux): Move out to separate file.
70637         (u16_mbtouc): Use ucs4_t, uint16_t types.
70638         * lib/unistr/utf16-ucs4.c: New file.
70639
70640         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70641         (Depends-on): Add unitypes.
70642         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70643         (u8_uctomb_aux): Move out to separate file.
70644         (u8_uctomb): Use ucs4_t, uint8_t types.
70645         * lib/unistr/ucs4-utf8.c: New file.
70646
70647         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70648         (Depends-on): Add unitypes.
70649         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70650         (u16_uctomb_aux): Move out to separate file.
70651         (u16_uctomb): Use ucs4_t, uint16_t types.
70652         * lib/unistr/ucs4-utf16.c: New file.
70653
70654 2006-12-25  Bruno Haible  <bruno@clisp.org>
70655
70656         * modules/unitypes: New file.
70657         * lib/unitypes.h: New file.
70658         * MODULES.html.sh (func_all_modules): New section "Unicode string
70659         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70660         this section. Add unitypes.
70661
70662 2007-01-08  Bruno Haible  <bruno@clisp.org>
70663
70664         Avoid variable names that conflict with those from libtool.
70665         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70666         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70667         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70668         library_names_spec to acl_library_names_spec, hardcode_* to
70669         acl_hardcode_*.
70670         Reported by Ralf Wildenhues.
70671
70672 2007-01-08  Bruno Haible  <bruno@clisp.org>
70673
70674         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70675         definition.
70676         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70677         definition.
70678         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70679         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70680         definition.
70681         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70682         definition.
70683         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70684         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70685         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70686         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70687         definition.
70688         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70689         definition.
70690         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70691         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70692         GC_USE_<algorithm>.
70693         * lib/gc-libgcrypt.c: Likewise.
70694         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70695         * modules/gc-arctwo (configure.ac): Likewise.
70696         * modules/gc-des (configure.ac): Likewise.
70697         * modules/gc-hmac-md5 (configure.ac): Likewise.
70698         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70699         * modules/gc-md2 (configure.ac): Likewise.
70700         * modules/gc-md4 (configure.ac): Likewise.
70701         * modules/gc-md5 (configure.ac): Likewise.
70702         * modules/gc-random (configure.ac): Likewise.
70703         * modules/gc-rijndael (configure.ac): Likewise.
70704         * modules/gc-sha1 (configure.ac): Likewise.
70705
70706 2007-01-08  Bruno Haible  <bruno@clisp.org>
70707
70708         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70709         macro definition.
70710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70711         definition.
70712         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70713         definition.
70714         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70715         * modules/fcntl-safer (configure.ac): Likewise.
70716         * modules/fopen-safer (configure.ac): Likewise.
70717         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70718         GNULIB_FWRITEERROR macro definition.
70719
70720 2007-01-08  Bruno Haible  <bruno@clisp.org>
70721
70722         * m4/gnulib-common.m4: New file.
70723         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70724         (func_get_filelist): Add m4/gnulib-common.m4.
70725
70726 2007-01-08  Bruno Haible  <bruno@clisp.org>
70727
70728         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70729         command.
70730
70731 2007-01-08  Jim Meyering  <jim@meyering.net>
70732
70733         Use a more robust test for a "can't happen" condition.
70734         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70735         narrowed the st_size value.  Presuming the "can't happen" condition
70736         is true, that narrowing could conceivably convert an invalid st_size
70737         value into a valid one.  Instead, use a change based on Matthew
70738         Woehlke's original patch.
70739
70740         Slight readability improvement: use an assert-like macro
70741         in place of literal "abort ()" uses.
70742         * lib/fts.c (fts_assert): Define.
70743         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70744         Use this macro instead of a bare 'abort'.
70745
70746 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70749         simply work around them.
70750         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70751         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70752         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70753         declaring.
70754         Don't bother to define as macros, since the standard doesn't require it.
70755         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70756         longer worry about IRIX 5.3.
70757         (HAVE_WCTYPE_CTMP_BUG): Remove.
70758
70759 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70762         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70763         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70764         Problems reported by Georg Schwarz for IRIX 5.3.
70765
70766         * gnulib-tool (autoconf_minversion): Take the maximum version number
70767         found, not the minimum.  Problem reported by James Youngman.
70768
70769 2007-01-03  Karl Berry  <karl@gnu.org>
70770
70771         * doc/error.texi: new file, explaining interaction with progname.
70772         * doc/gnulib.texi: include it.  Update copyright.
70773
70774 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70775
70776         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70777         AC_CANONICAL_HOST, to improve autobuild outputs.
70778
70779 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70780             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70781
70782         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70783         sockets, server sockets, and other file descriptors.  Count errors
70784         to compute the return value.  Reorder the code a bit to be easier
70785         to follow.  Don't set event bits that were not requested (except
70786         POLLERR and POLLHUP).
70787
70788 2007-01-01  Bruno Haible  <bruno@clisp.org>
70789
70790         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70791
70792 2007-01-03  Jim Meyering  <jim@meyering.net>
70793
70794         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70795
70796 2007-01-02  Bruno Haible  <bruno@clisp.org>
70797
70798         * modules/settime (Include): Require timespec.h.
70799         * modules/nanosleep (Include): Likewise.
70800
70801 2007-01-01  Bruno Haible  <bruno@clisp.org>
70802
70803         * gnulib-tool (func_emit_copyright_notice): Bump year.
70804         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70805
70806 2007-01-01  Bruno Haible  <bruno@clisp.org>
70807
70808         Improve support for OpenBSD.
70809         * build-aux/config.rpath (libname_spec): Export.
70810         (library_names_spec): New variable. Export.
70811         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70812         library_names_spec from the config.rpath output. Locate shared library
70813         through the name pattern in library_names_spec.
70814
70815 2007-01-01  Eric Blake  <ebb9@byu.net>
70816
70817         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70818
70819 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70822         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70823         assume the C locale, and avoid an "eval" that could cause trouble.
70824         Problem with SORT reported by Bob Proulx.
70825
70826         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70827         Define.  Trivial patch from Henning Nielsen Lund, originally
70828         sent to bug-grep@gnu.org today.
70829
70830 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70833         struct stat.  Problem reported by Henning Nielsen Lund.
70834         * lib/acl.c: Include acl.h first, to check interface.  Don't
70835         bother to include sys/types.h and sys/stat.h again.
70836
70837 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         Import the following change from libc; problem reported by
70840         Sven Verdoolaege.
70841
70842         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70843
70844         [BZ #1373]
70845         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70846
70847 2006-12-28  Jim Meyering  <jim@meyering.net>
70848
70849         * build-aux/announce-gen: Do not assume that the package
70850         builds any of tar.gz, tar.bz2, and .xdelta files.
70851         Suggestion from Simon Josefsson.
70852
70853 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70854
70855         * modules/announce-gen: New file.
70856
70857 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70860         handles its gotchas now.
70861         * lib/mbswidth.c: Likewise.
70862         * lib/wcwidth.h: Likewise.
70863         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70864         and iswcntrl; the wctype module does this stuff now.
70865         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70867         * modules/mbchar (Depends-on): Add wctype.
70868         * modules/mbswidth (Depends-on): Likewise.
70869         * modules/wcwidth (Depends-on): Likewise.
70870
70871 2006-12-27  Eric Blake  <ebb9@byu.net>
70872
70873         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70874         module uses more than what <wctype.h> is required to provide.
70875
70876 2006-12-26  Eric Blake  <ebb9@byu.net>
70877
70878         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70879
70880 2006-12-26  Eric Blake  <ebb9@byu.net>
70881
70882         * modules/absolute-header: New module.
70883         * modules/fcntl (Depends-on): Depend on it.
70884         * modules/inttypes (Depends-on): Likewise.
70885         * modules/stdint (Depends-on): Likewise.
70886         * modules/sys_stat (Depends-on): Likewise.
70887         * modules/wctype (Depends-on): Likewise.
70888         * MODULES.html.sh (Support for building libraries and
70889         executables): Document it.
70890
70891 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * gnulib-tool (SED): Remove, undoing previous change.
70894         The problem was that it broke coreutils on Solaris, because
70895         "sed --posix" leaked into a makefile.
70896         (sed): New alias, if 'alias' and GNU sed.
70897
70898 2006-12-24  Jim Meyering  <jim@meyering.net>
70899
70900         Work around an fchownat bug in glibc-2.4:
70901         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70902         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70903         in spite of the -P option.
70904         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70905         New macros.
70906         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70907         * modules/openat (Files): Add lib/fchownat.c.
70908         * lib/openat.c (fchownat): Don't define here.  Move to...
70909         * lib/fchownat.c: ...this new file.
70910
70911 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         Fix bug reported by Bruno Haible in
70914         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70915         where quotearg.c didn't compile on Mac OS X 10.2 because it
70916         lacks <wchar.h> and wint_t.
70917         * lib/wctype_.h (__wctype_wint_t): New type.
70918         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70919         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70920         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70921         Arg is now of type __wctype_wint_t, not wint_t.
70922         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70923         substitute HAVE_WINT_T.
70924         * modules/wctype (Files): Add m4/wint_t.m4.
70925         (wctype.h): Substitute HAVE_WINT_T.
70926
70927 2006-12-23  Bruno Haible  <bruno@clisp.org>
70928
70929         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70930
70931 2006-12-23  Bruno Haible  <bruno@clisp.org>
70932
70933         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70934         S_ISLNK.
70935         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70936         mingw.
70937
70938 2006-12-22  Bruno Haible  <bruno@clisp.org>
70939
70940         * lib/copy-file.c: Include acl.h.
70941         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70942         Close the file descriptors only after being done with copy_acl.
70943         * modules/copy-file (Depends-on): Add acl.
70944
70945 2006-12-22  Bruno Haible  <bruno@clisp.org>
70946
70947         * gnulib-tool (SED): New variable.
70948         Use $SED instead of sed everywhere.
70949
70950 2006-12-22  Bruno Haible  <bruno@clisp.org>
70951
70952         * modules/no-c++: New file.
70953         * m4/no-c++.m4: New file.
70954         * MODULES.html.sh (Support for building libraries and executables):
70955         Add no-c++.
70956
70957 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70958
70959         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70960         Include <limits.h>, and use its INT_MAX to rewrite the
70961         j loop so that it does not overflow 'int'.  Problem reported by
70962         Ralf Wildenhues in
70963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70964         Play it safe by shifting left by 1 rather than multiplying by 2,
70965         as GCC is less likely to optimize this away when the value
70966         is signed (when it assumes overflow leads to undefined behavior).
70967         Also, don't assume time_t uses two's complement.
70968
70969 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * MODULES.html.sh: New module wctype.
70972         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70973         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70974         <wctype.h>, since the new wctype module should fix this.
70975         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70976         the wctype module should arrange for it.
70977         * lib/regex_internal.h: Likewise.
70978         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70979         since the wctype module should handle this now.
70980         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70981         * modules/fnmatch (Depends-on): Add wctype.
70982         * modules/quotearg (Depends-on): Likewise.
70983         * modules/regex (Depends-on): Likewise.
70984
70985 2006-12-19  Bruno Haible  <bruno@clisp.org>
70986
70987         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70988         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70989
70990 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70991
70992         * modules/savewd (Depends-on): Fix dependency on fcntl.
70993
70994 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70997         conforms to C99, rather than relying on the user's environment
70998         setting of STDINT_H.
70999
71000 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71001         and Eric Blake  <ebb9@byu.net>
71002
71003         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71004         This is more consistent with the other defines here.
71005         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71006         Port to z/OS.  Problem reported by Paul Gilmartin.
71007         Change local vars to use gl_ prefix rather than ac_.
71008         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71009         with other defines.
71010         * modules/double-slash-root: New module.
71011         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71012         (Depends-on): Add double-slash-root.
71013         * MODULES.html.sh (File system functions): Mention new module.
71014
71015 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71018         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71019         This is for the benefit of gzip, which doesn't do i18n.
71020
71021 2006-12-12  Jim Meyering  <jim@meyering.net>
71022
71023         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71024         Reported by Andreas Schwab <schwab@suse.de>.
71025
71026 2006-12-12  Bruno Haible  <bruno@clisp.org>
71027
71028         Merge these changes.
71029         2006-09-05  Bruno Haible  <bruno@clisp.org>
71030         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71031         iconv_alloc succeeded.
71032         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71033         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71034         test for " && dest " at the end - dest is always != NULL there. Call
71035         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71036         with 2xNULL arguments, also to flush the state storage. Handle the
71037         IRIX iconv behaviour. Realloc the final result, to throw away unused
71038         memory.
71039
71040 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71043         and fchmodat unconditionally, since glibc 2.4 has them.
71044         Problem reported by Arkadiusz Miskiewicz.
71045
71046 2006-12-10  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_import): Show the include files only for those
71049         modules that are copied and specified.
71050         Reported by Karl Berry.
71051
71052 2006-12-08  Jim Meyering  <jim@meyering.net>
71053
71054         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71055         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71056
71057         * build-aux/announce-gen: Add two new options, both optional:
71058         --bootstrap-tools=TOOL_LIST
71059               a comma-separated list of tools, e.g.,
71060               autoconf,automake,bison,gnulib
71061         --gnulib-snapshot-date=DATE
71062               if gnulib is in the bootstrap tool list,
71063               then report this as the snapshot date.
71064               If not specified, use the current date/time.
71065               If you specify a date here, be sure it's UTC.
71066
71067 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71068
71069         * tests/test-argp-2.sh: Fix test to match actual output.
71070         (func_compare): Fix sed script to be portable.
71071
71072 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71075         workaround for this case.  It is not autoconfigured now; offhand
71076         it's hard to see how to autoconfigure it.
71077
71078 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71079
71080         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71081         a directory that is about to be chowned.  Such a directory's
71082         initial file permissions should permit the owner only and this
71083         should not be changed until after the chown, since the group and
71084         other bits would be incorrect if they granted permission before
71085         the chown.
71086
71087         Fix porting problem for iswctype reported by Georg Schwarz in:
71088         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71089         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71090         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71092         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71093
71094 2006-12-03  Jim Meyering  <jim@meyering.net>
71095
71096         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71097         p->fts_statp may not yet be defined.
71098         (fts_read): Instead, set it in the caller, once p->fts_statp is
71099         sure to be defined, and corresponds to a top-level directory.
71100         This bug made du -x fail.  Here's the coreutils test case:
71101         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71102         Reported by Mike Frysinger.
71103
71104 2006-12-01  Jim Meyering  <jim@meyering.net>
71105
71106         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71107         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71108         Reported by Simon Josefsson.
71109
71110 2006-11-30  Jim Meyering  <jim@meyering.net>
71111
71112         * m4/warning.m4: Use the all-permissive copyright notice
71113         recommended by RMS (rather than LGPL).
71114         * m4/vararrays.m4: Likewise.
71115         * m4/flexmember.m4: Likewise.
71116
71117 2006-11-29  Bruno Haible  <bruno@clisp.org>
71118
71119         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71120         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71121         using +=.
71122         Reported by Simon Josefsson <simon@josefsson.org>.
71123
71124 2006-11-28  James Youngman <jay@gnu.org>
71125
71126         * README: Advise users that they might find the bug-gnulib@gnu.org
71127         and autotools-announce@gnu.org mailing lists useful.
71128
71129 2006-11-28  Bruno Haible  <bruno@clisp.org>
71130
71131         * m4/ptrdiff_max.m4: Remove file.
71132
71133 2006-11-21  Bruno Haible  <bruno@clisp.org>
71134
71135         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71136         _AC_COMPUTE_INT.
71137         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71138         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71139         _AC_COMPUTE_INT.
71140         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71141         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71142         _AC_COMPUTE_INT.
71143         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71144
71145 2006-11-28  Jim Meyering  <jim@meyering.net>
71146
71147         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71148         warning from "gcc -Wshadow" about shadowing the builtin.
71149
71150 2006-11-27  Bruno Haible  <bruno@clisp.org>
71151
71152         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71153         _AC_COMPUTE_INT.
71154         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71155
71156 2006-11-27  Bruno Haible  <bruno@clisp.org>
71157             Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71160
71161 2006-11-26  Bruno Haible  <bruno@clisp.org>
71162
71163         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71164         noinst_LTLIBRARIES.
71165
71166 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71167             Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71170         if compiling with "gcc -ansi".
71171
71172 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         Fix some incompatibilities with gcc -ansi -pedantic.
71175         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71176         if compiling pedantically with GCC, unless it's C99 or later.
71177         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71178         it mishandles gcc -ansi -pedantic as well.
71179         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71180         if gcc -pedantic.
71181         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71182         initializers for struct if -pedantic, unless it's C99 or later.
71183
71184 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71185
71186         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71187         Don't close an fd more than once. Identical atimes indicate
71188         success, not failure.
71189
71190 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71191
71192         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71193
71194 2006-11-23  Jim Meyering  <jim@meyering.net>
71195
71196         * build-aux/announce-gen: New file.  From coreutils.
71197
71198 2006-11-22  Jim Meyering  <jim@meyering.net>
71199
71200         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71201         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71202         (fts_read): Use a temporary to narrow the overused st_size member
71203         before using it in a switch statement.  Reported by Matthew Woehlke.
71204
71205         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71206         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71207
71208 2006-11-20  Bruno Haible  <bruno@clisp.org>
71209
71210         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71211         changequote instead of pairs of brackets.
71212         Reported by Andreas Schwab <schwab@suse.de>.
71213
71214 2006-11-21  Jim Meyering  <jim@meyering.net>
71215
71216         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71217         so as to remain compatible with older compilers.
71218         Patch from Michael Deutschmann.
71219
71220 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * MODULES.html.sh (File system functions): Add openat.
71223
71224         * lib/openat.h (rpl_fstatat): New macro, if
71225         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71226         (fstatat): Define to rpl_fstatat under the same conditions,
71227         unless COMPILING_FSTATAT.
71228         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71229         seems to have the bug.
71230         * lib/fstatat.c: New file.
71231         * modules/openat (Files): Add it.
71232
71233 2006-11-20  Bruno Haible  <bruno@clisp.org>
71234
71235         * Makefile: New file.
71236
71237 2006-11-20  Jim Meyering  <jim@meyering.net>
71238
71239         The beginnings of syntax-related checks for gnulib.
71240         * lib/Makefile: New file.
71241         * lib/t-idcache: New script.  Ensure that the two halves of
71242         idcache.c stay in sync.
71243
71244         * lib/idcache.c: Adjust comments in user- and group- portions to
71245         be more accurate, and to be consistent with one another.
71246
71247 2006-11-20  Jim Meyering  <jim@meyering.net>
71248
71249         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71250         continue using the flexible array member (thus, this module performs
71251         half as many malloc calls), with the addition that...
71252         (getgroup, getuser): Consistently record a non-match via an empty
71253         "name" string, and map an empty string match to a NULL return value.
71254         * modules/idcache (Depends-on): Re-add flexmember.
71255
71256         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71257         (getuidbyname, getgroup, getgidbyname): Likewise.
71258
71259         Use cleaner syntax: NULL rather than 0.
71260         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71261
71262 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71265         It mishandled the case where the group was missing.
71266         Problem reported by Greg Schafer.
71267         * modules/idcache: Likewise.
71268
71269 2006-11-18  Jim Meyering  <jim@meyering.net>
71270
71271         * check-module (%exempt_header): Add exception for some
71272         conditionally-included headers.
71273
71274         * modules/i-ring (Depends-on): Add verify.
71275         (License): Change to LGPL.
71276
71277 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71280         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71281         and inttostr.h.  Use snprintf rather than uinttostr, so that
71282         LGPLed code doesn't depend on GPLed.
71283
71284 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * modules/inline (License): Change from GPL to LGPL.
71287
71288 2006-11-17  Jim Meyering  <jim@meyering.net>
71289
71290         * modules/d-type (License): Switch to LGPL.
71291
71292 2006-11-15  Bruno Haible  <bruno@clisp.org>
71293
71294         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71295
71296 2006-11-15  Eric Blake  <ebb9@byu.net>
71297
71298         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71299         the module dependency.
71300
71301 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71302             Bruno Haible  <bruno@clisp.org>
71303
71304         * gnulib-tool (func_create_testdir): Add license consistency check.
71305
71306 2006-11-15  Eric Blake  <ebb9@byu.net>
71307
71308         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71309         random "(cached)" in configure output.
71310
71311 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71312
71313         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71314         test for conforming inttypes.h is both announced and cached.
71315
71316         * MODULES.html.sh (seen_modules, seen_files): New variables.
71317         (func_module): Rewrite to use a few less gnulib-tool and sed
71318         invocations.  Avoid a couple of quadratic algorithms for ...
71319         (missed_modules, missed_files): ... these, with ...
71320         (func_append, func_tmpdir): ... these new functions, from
71321         gnulib-tool.  Analogously, install traps for cleanup.
71322
71323         * tests/test-gc.c (main): Remove unused variables.
71324         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71325
71326 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * modules/inttostr (License): Change to LGPL.
71329
71330 2006-11-14  Eric Blake  <ebb9@byu.net>
71331
71332         * modules/tempname (License): Change to LGPL.
71333
71334 2006-11-14  Eric Blake  <ebb9@byu.net>
71335
71336         * doc/functions.texi (Function Portability): *printf functions on
71337         Cygwin now understand all POSIX size specifiers.
71338
71339 2006-11-14  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/c-ctype (License): Change to LGPL.
71342
71343 2006-11-12  Bruno Haible  <bruno@clisp.org>
71344
71345         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71346         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71347         for GNOME libraries, for which the include files are installed in
71348         subdirectories of $prefix/include.
71349
71350 2006-11-12  Bruno Haible  <bruno@clisp.org>
71351
71352         * m4/lib-link.m4: Require at least autoconf-2.54.
71353         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71354         name to underscores for the --with option.
71355
71356 2006-11-13  Bruno Haible  <bruno@clisp.org>
71357
71358         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71359         the tests directory.
71360         Reported by Ralf Wildenhues.
71361
71362 2006-11-13  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71365         (func_emit_initmacro_end): Undo the override here.
71366         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71367         Works around the famous automake error in coreutils.
71368
71369 2006-11-13  Eric Blake  <ebb9@byu.net>
71370
71371         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71372         element, not its node.
71373
71374 2006-11-12  Bruno Haible  <bruno@clisp.org>
71375
71376         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71377         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71378
71379 2006-11-12  Bruno Haible  <bruno@clisp.org>
71380
71381         * gnulib-tool: New option --local-symlink.
71382         (func_usage): Document it.
71383         (lsymbolic): New variable.
71384         (func_import, func_create_testdir): If --symlink was not specified,
71385         test whether --local-symlink was specified and the file comes from
71386         the local_gnulib_dir.
71387
71388 2006-11-12  Bruno Haible  <bruno@clisp.org>
71389
71390         * gnulib-tool (func_ln): New function.
71391         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71392
71393 2006-11-12  Bruno Haible  <bruno@clisp.org>
71394
71395         Finish support for source files in subdirectories.
71396         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71397         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71398         AUTOMAKE_OPTIONS.
71399         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71400
71401 2006-11-12  Bruno Haible  <bruno@clisp.org>
71402
71403         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71404         EXTRA_lib_SOURCES augmentation.
71405         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71406
71407 2006-11-12  Jim Meyering  <jim@meyering.net>
71408
71409         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71410         file descriptors.  This also averts a failure on systems with
71411         native openat support when a traversed directory lacks "x" access.
71412         * lib/fts_.h: Include "i-ring.h"
71413         (struct FTS) [fts_fd_ring]: New member.
71414         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71415         (FCHDIR): Add parentheses.
71416         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71417         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71418         When descending, rather than simply closing the previous
71419         fts_cwd_fd value, push that file descriptor onto the ring.
71420         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71421         (fts_open): Initialize the new fd_ring member.
71422         (fts_close): Clear the ring.
71423         (fts_safe_changedir): When possible, use our new fd_ring to skip
71424         the diropen and fstat and dev/ino comparison that would normally
71425         accompany a virtual `chdir ("..")'.
71426
71427         * modules/fts (Depends-on): Add i-ring.
71428         * modules/i-ring: New module.
71429         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71430         * m4/i-ring.m4: New file.
71431
71432 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433
71434         * gnulib-tool (func_create_testdir): Fix replacement of
71435         `build-aux' in configure.ac.  Run autotools in gltests
71436         subdirectory.
71437         (func_create_testdir, func_create_megatestdir, test): There is
71438         no need for '--force' in most autotool invocations in a new
71439         tree.  Actually fail the whole test if any of the tools, or the
71440         configure or make stages fail.
71441
71442         Sync from Automake.
71443         * build-aux/gnupload: Revert last change.  Add pointer to upload
71444         instructions of the GNU Maintenance Instructions.
71445         Suggestion by Karl Berry.
71446
71447 2006-11-10  Jim Meyering  <jim@meyering.net>
71448
71449         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71450
71451 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71454         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71455         (bind_textdomain_codeset) [! ENABLE_NLS]:
71456         Evaluate all the arguments.  That way, callers get compatible behavior
71457         if the arguments have side effects.  Also, it avoids some GCC
71458         diagnostics in some cases; Joel E. Denny reported problems when Bison
71459         was configured with --enable-gcc-warnigs.
71460
71461 2006-11-10  Jim Meyering  <jim@meyering.net>
71462
71463         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71464         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71465         account.
71466
71467 2006-11-10  Jim Meyering  <jim@meyering.net>
71468
71469         * modules/inline: New file/module.
71470         * modules/xalloc (Files): Remove m4/inline.m4.
71471         (Depends-on): Add inline, instead.
71472         * modules/oset: Likewise.
71473         * modules/list: Likewise.
71474
71475 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71478         Problem reported by Matthew Woehlke.
71479
71480 2006-11-09  Bruno Haible  <bruno@clisp.org>
71481
71482         * lib/tempname.c (gen_tempname): Remove variant that invokes
71483         __gen_tempname.
71484         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71485         __gen_tempname.
71486
71487 2006-11-08  Bruno Haible  <bruno@clisp.org>
71488
71489         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71490         to 'yes' instead of 'cross-compiling'.
71491
71492 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * lib/quotearg.h (quotearg_free): New decl.
71495         * lib/quotearg.c (quotearg_free): New function.
71496         (slot0, nslots, slotvec0, slotvec):
71497         Now file-scope so that quotearg_free can get at them.
71498
71499 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71500
71501         Sync from Automake.
71502         * build-aux/gnupload: Add missing 'gnu' to example URL.
71503         Report by Karl Berry.
71504
71505 2006-11-08  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71508         Suggested by Paul Eggert.
71509
71510 2006-11-08  Jim Meyering  <jim@meyering.net>
71511
71512         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71513         It's already included if !_LIBC.
71514         (fts_safe_changedir): Add a comment.
71515
71516 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71519         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71520         Matthew Woehlke.
71521
71522         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71523         definitions up, to avoid colliding with change below.
71524         (static_inline) [HAVE_INLINE]: New macro.
71525         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71526         Provide extern decls when !HAVE_INLINE.  Do not define unless
71527         static_inline is defined, either by us or by xmalloc.c.  Use
71528         static_inline rather than static inline.
71529         (XCALLOC): Optimize sizeof(T) = 1 case.
71530         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71531
71532 2006-11-07  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71535         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71536         AC_C_INLINE.
71537         * modules/xalloc (Files): Add m4/inline.m4.
71538
71539 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71540
71541         * README: Fix typo.
71542         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71543         (Miscellanous Notes): ...from this.
71544
71545 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71548         Mention that offsetof should be used instead of sizeof.
71549         From Bruno Haible.
71550
71551 2006-11-07  Bruno Haible  <bruno@clisp.org>
71552
71553         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71554
71555 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71558         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71559         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71560         (gl_tree_add_before, gl_tree_add_after):
71561         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71562         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71563         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71564         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71565         (gl_linked_add_after, gl_linked_add_at): Likewise.
71566         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71567         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71568         (gl_tree_add_before, gl_tree_add_after): Likewise.
71569         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71570         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71571         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71572
71573 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71574
71575         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71576
71577 2006-11-06  Bruno Haible  <bruno@clisp.org>
71578
71579         * m4/inline.m4: New file.
71580         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71581         * modules/list (Files): Add m4/inline.m4.
71582         * modules/oset (Files): Likewise.
71583
71584 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * lib/idcache.c: Include <stddef.h>, for offsetof.
71587         (struct userid.name): Change from char * to a flexible array member.
71588         All uses changed.
71589         * modules/idcache (Depends-on): Add flexmember.
71590
71591         * MODULES.html.sh (Core language properties): New module flexmember.
71592         * modules/flexmember, m4/flexmember.m4: New files.
71593
71594         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71595         inline functions that are identical with the old xnmalloc_inline,
71596         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71597         that we can avoid some unnecessary integer multiplications and
71598         divisions in the common case where the element size is known at
71599         compile time.
71600         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71601         needed.
71602         (xnboundedmalloc): Remove.
71603         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71604         arguments, for consistency with rest of this header.
71605         (xcharalloc): Rewrite using XNMALLOC.
71606         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71607         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71608         versions have been moved to lib/xalloc.h and renamed to be the
71609         non-*_inline versions.
71610         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71611         and xnrealloc functions, since those functions are now inline and
71612         now call us.
71613         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71614         renaming described above.
71615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71616         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71617         captures the dependency in AC_C_INLINE.
71618
71619         New module canonicalize-lgpl, proposed by Charles Wilson in
71620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71621         with a few small changes afterwards.
71622         * MODULES.html.sh (File system functions): New module
71623         canonicalize-lgpl.
71624         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71625         and canonicalize_file_name.
71626         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71627         * modules/canonicalize-lgpl: New files.
71628
71629 2006-11-05  Bruno Haible  <bruno@clisp.org>
71630
71631         * gnulib-tool (func_import, func_create_testdir): Create directories
71632         also for files in subdirectories of lib/.
71633
71634 2006-11-05  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71637         ANSI C compliant.
71638
71639 2006-11-03  Bruno Haible  <bruno@clisp.org>
71640
71641         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71642         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71643         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71644         (xnboundedmalloc): New inline function.
71645         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71646         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71647         xmalloc.
71648         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71649         xmalloc.
71650         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71651         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71652         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71653         xmalloc.
71654         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71655         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71656         xmalloc.
71657         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71658         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71659         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71660         xmalloc.
71661         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71662         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71663         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71664         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71665         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71666         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71667         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71668
71669 2006-11-03  Bruno Haible  <bruno@clisp.org>
71670
71671         * lib/c-ctype.h [C++]: Define functions without name mangling.
71672         * lib/fwriteerror.h [C++]: Likewise.
71673         * lib/gcd.h [C++]: Likewise.
71674         * lib/linebreak.h [C++]: Likewise.
71675
71676 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71679         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71680         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71681         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71682         Check for functions and headers just once.
71683         Check for declaration of canonicalize_file_name.
71684         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71685
71686 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71687
71688         * gnulib-tool (func_import): Fix typo in actioncmd.
71689
71690 2006-11-02  Bruno Haible  <bruno@clisp.org>
71691
71692         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71693         newline sequence in the Makefile.am snippet as a space, like "make"
71694         does.
71695         Reported by Roger Persson <perrog@gmail.com>.
71696
71697 2006-11-01  Bruno Haible  <bruno@clisp.org>
71698
71699         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71700         already declared in <string.h>.
71701         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71702
71703 2006-11-01  Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71706         * lib/strcase.h: Include <string.h>.
71707         (strcasecmp): Define to rpl_strcasecmp here.
71708
71709 2006-11-01  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71712
71713 2006-11-01  Eric Blake  <ebb9@byu.net>
71714
71715         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71716
71717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71718
71719 2006-10-29  Bruno Haible  <bruno@clisp.org>
71720
71721         Make it compile in C++ mode.
71722         * lib/full-write.c (full_rw): Add a cast.
71723
71724 2006-11-01  Bruno Haible  <bruno@clisp.org>
71725
71726         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71727         be POSIX compliant.
71728         Reported by Roger Persson <perrog@gmail.com>.
71729
71730 2006-11-01  Eric Blake  <ebb9@byu.net>
71731
71732         * lib/getopt_.h: Fix comments.
71733
71734 2006-10-31  Eric Blake  <ebb9@byu.net>
71735
71736         * modules/tmpdir (Depends-on): Add sys_stat.
71737         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71738         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71739         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71740         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71741         tempname.
71742
71743 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         Avoid some C++ diagnostics reported by Bruno Haible.
71746         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71747         xmalloc.
71748         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71749         (struct slotvec): Move to top level.
71750         (quotearg_n_options): Rewrite to avoid xmalloc.
71751         * lib/xalloc.h (xcharalloc): New function.
71752         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71753         [defined __cplusplus]: Add function template that provides result
71754         type propagation.  This part of the change is from Bruno Haible.
71755
71756 2006-10-29  Bruno Haible  <bruno@clisp.org>
71757
71758         Make it compile in C++ mode.
71759         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71760         * lib/strnlen1.c (strnlen1): Cast memchr result.
71761         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71762         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71763         (create_temp_dir): Rename local variable 'template'.
71764         (compile_csharp_using_sscli): Add cast.
71765         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71766         * lib/findprog.c (find_in_path): Likewise.
71767         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71768         * lib/wait-process.c (register_slave_subprocess): Likewise.
71769
71770 2006-10-22  Bruno Haible  <bruno@clisp.org>
71771
71772         * modules/tsearch: New file.
71773         * lib/tsearch.h: New file.
71774         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71775         * m4/tsearch.m4: New file.
71776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71777
71778 2006-10-29  Eric Blake  <ebb9@byu.net>
71779
71780         * lib/arcfour.c: Assume config.h.
71781         * lib/arctwo.c: Likewise.
71782         * lib/base64.c: Likewise.
71783         * lib/check-version.c: Likewise.
71784         * lib/crc.c: Likewise.
71785         * lib/des.c: Likewise.
71786         * lib/gc-gnulib.c: Likewise.
71787         * lib/gc-libgcrypt.c: Likewise.
71788         * lib/gc-pbkdf2-sha1.c: Likewise.
71789         * lib/getaddrinfo.c: Likewise.
71790         * lib/getdelim.c: Likewise.
71791         * lib/getline.c: Likewise.
71792         * lib/hmac-md5.c: Likewise.
71793         * lib/hmac-sha1.c: Likewise.
71794         * lib/iconvme.c: Likewise.
71795         * lib/md2.c: Likewise.
71796         * lib/md4.c: Likewise.
71797         * lib/memxor.c: Likewise.
71798         * lib/read-file.c: Likewise.
71799         * lib/readline.c: Likewise.
71800         * lib/rijndael-alg-fst.c: Likewise.
71801         * lib/rijndael-api-fst.c: Likewise.
71802         * lib/xgetdomainname.c: Likewise.
71803
71804 2006-10-28  Eric Blake  <ebb9@byu.net>
71805
71806         * lib/xstrndup.c: Assume config.h.
71807
71808 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71811         stat-macros.h is now for our own macros, whereas stat_h is for
71812         macros in the <sys/stat.h> name space.
71813         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71814         (STAT_MACROS_H): Remove.
71815         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71816         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71817         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71818         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71819         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71820         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71821         Move these macros to ...
71822         * lib/stat_.h: here.  Don't include stat-macros.h.
71823         * lib/canonicalize.c: Don't include stat-macros.h.
71824         * lib/chown.c: Likewise.
71825         * lib/euidaccess.c: Likewise.
71826         * lib/file-type.c: Likewise.
71827         * lib/filemode.c: Likewise.
71828         * lib/glob.c: Likewise.
71829         * lib/isapipe.c: Likewise.
71830         * lib/lchown.c: Likewise.
71831         * lib/lstat.c: Likewise.
71832         * lib/mkdir-p.c: Likewise.
71833         * lib/rmdir.c: Likewise.
71834         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71836         unless mkdir isn't declared, to speed up 'configure'.
71837         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71838         would define all the S_* symbols.
71839         * modules/canonicalize (Depends-on):
71840         Depend on sys_stat, not stat-macros.
71841         * modules/chown: Likewise.
71842         * modules/euidaccess: Likewise.
71843         * modules/filemode: Likewise.
71844         * modules/file-type: Likewise.
71845         * modules/glob: Likewise.
71846         * modules/isapipe: Likewise.
71847         * modules/lchown: Likewise.
71848         * modules/lstat: Likewise.
71849         * modules/mkancesdirs: Likewise.
71850         * modules/rmdir: Likewise.
71851         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71852         * modules/modechange: Likewise.
71853         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71854         (configure.ac): Remove gl_STAT_MACROS.
71855         * modules/sys_stat (Depends-on): Remove stat-macros.
71856
71857 2006-10-27  Bruno Haible  <bruno@clisp.org>
71858
71859         * m4/signed.m4: Remove file.
71860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71861         invocation.
71862         * modules/vasnprintf (Files): Remove m4/signed.m4.
71863
71864 2006-10-27  Bruno Haible  <bruno@clisp.org>
71865
71866         Update to GNU gettext 0.16.
71867         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71868         m4/inttypes-h.m4, m4/signed.m4.
71869         * m4/gettext.m4: Update to GNU gettext 0.16.
71870         * m4/intl.m4: New file, from GNU gettext.
71871         * m4/intldir.m4: New file, from GNU gettext.
71872         * config/srclist.txt: Update
71873
71874 2006-10-27  Eric Blake  <ebb9@byu.net>
71875
71876         * MODULES.html.sh: Document tempname.
71877         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71878         dependencies.
71879         (Files): Move lib/tempname.c...
71880         * modules/tempname: ...to this new module.
71881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71882         (gl_PREREQ_TEMPNAME): Move...
71883         * m4/tempname.m4: ...to this new file.
71884         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71885         * modules/sys_stat (Depends-on): Add stat-macros.
71886         * lib/stat_.h (includes): Pick up stat macros.
71887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71888         if stat macros are broken.
71889         * lib/tempname.c (includes): No need to include "stat-macros.h".
71890         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71891         (direxists, __path_search) [!_LIBC]: Don't compile these in
71892         gnulib; the tmpdir module covers that.
71893         * lib/tempname.h: New file.
71894
71895 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         * COPYING: Explain how gnulib-tool converts licence headers.
71898         Almost all wording by Eric Blake.
71899
71900 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * lib/mbchar.h (is_basic_table): Make read-only.
71903         * lib/mbchar.c (is_basic_table): Likewise.
71904         Reported by John Darrington.
71905
71906 2006-10-25  Bruno Haible  <bruno@clisp.org>
71907
71908         * lib/progname.h (set_program_name): Undefine before defining.
71909
71910 2006-10-25  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71913         false for non-gcc C++ compilers.
71914         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71915
71916 2006-10-24  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71919         iconv implementations like Irix iconv.
71920
71921 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71922
71923         * modules/vararrays: New file.
71924         * m4/vararrays.m4: New file, taken from diffutils.
71925         * MODULES.html.sh: New module vararrays.
71926
71927 2006-10-24  Karl Berry  <karl@gnu.org>
71928
71929         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71930         Don't call GNU Unix.
71931
71932 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71933
71934         * users.txt: Add Libtool.
71935
71936         Sync from Libtool:
71937
71938         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71941         to gnulib's policy of including config.h unconditionally.
71942
71943 2006-10-24  Bruno Haible  <bruno@clisp.org>
71944
71945         * modules/wcwidth (Files): Add m4/wint_t.m4.
71946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71947         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71948
71949 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71952         to pacify GCC with some -W flags enabled.  Problem reported by
71953         Bruno Haible.
71954
71955 2006-10-24  Jim Meyering  <jim@meyering.net>
71956
71957         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71958         Reported by Karl Berry.
71959
71960 2006-10-23  Bruno Haible  <bruno@clisp.org>
71961
71962         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71963
71964 2006-10-24  Bruno Haible  <bruno@clisp.org>
71965
71966         * lib/gl_list.h: Use C comment style, not C++ comment style.
71967
71968 2006-10-23  Eric Blake  <ebb9@byu.net>
71969
71970         * lib/getaddrinfo.c (includes): Add missing include.
71971
71972 2006-10-23  Bruno Haible  <bruno@clisp.org>
71973             Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         Ability to rename obstack_free.
71976         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71977         obstack_free.
71978         (obstack_free): Invoke the __obstack_free macro.
71979         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71980
71981 2006-10-23  Bruno Haible  <bruno@clisp.org>
71982             Paul Eggert  <eggert@cs.ucla.edu>
71983
71984         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71985         __argc, __argv from the declaration. (They are defined as macros on
71986         mingw.)
71987
71988 2006-10-22  Bruno Haible  <bruno@clisp.org>
71989
71990         * doc/gnulib-intro.texi: New file.
71991         * doc/gnulib.texi: Include it.
71992
71993 2006-10-21  Bruno Haible  <bruno@clisp.org>
71994
71995         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71996         "Introduction", "Miscellanous Notes", "Particular Modules".
71997
71998 2006-10-21  Bruno Haible  <bruno@clisp.org>
71999
72000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72001         Change mostlyclean-local rule to avoid sh syntax error from bash
72002         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72003
72004 2006-10-23  Jim Meyering  <jim@meyering.net>
72005
72006         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72007         in place of snprintf.
72008
72009         * modules/inttostr (Files): Add lib/uinttostr.c.
72010         * lib/uinttostr.c (inttostr): New file/function.
72011         * lib/inttostr.h (uinttostr): Declare.
72012         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72013         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72014         Add uinttostr.
72015         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72016
72017 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * lib/canonicalize.c (ELOOP): Define if not already defined.
72020         Problem reported by Bruno Haible in
72021         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72022
72023 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72026         Problem reported by Perry Smith and Ville Laurikari.
72027
72028         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72029         uses.
72030
72031 2006-10-19  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72034         for mingw.
72035
72036 2006-10-19  Bruno Haible  <bruno@clisp.org>
72037
72038         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72039         Needed for mingw.
72040
72041 2006-10-19  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72044
72045 2006-10-19  Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72048         it.
72049
72050 2006-10-19  Bruno Haible  <bruno@clisp.org>
72051
72052         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72053         invocation.
72054
72055 2006-10-19  Bruno Haible  <bruno@clisp.org>
72056
72057         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72058         mountlist by default.
72059
72060 2006-10-16  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/c-strstr.c: Include c-strstr.h.
72063
72064 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72065
72066         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72067         in a slash.
72068
72069 2006-10-18  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/lock.h [C++]: Wrap definitions in extern "C".
72072
72073 2006-10-18  Bruno Haible  <bruno@clisp.org>
72074
72075         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72076         gl_LIBOBJS list.
72077
72078 2006-10-18  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72081
72082 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * lib/xstrtol.h: Include gettext.h.
72085         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72086         Problem reported by Eric Blake.
72087         * modules/xstrtol (Depends-on): Add gettext-h.
72088
72089 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72090
72091         * lib/strftime.c (advance): New macro.
72092         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72093         incomplete type, so you can't add 0 to it.  Problem and patch
72094         reported by Eelco Dolstra for dietlibc.
72095
72096 2006-10-18  Jim Meyering  <jim@meyering.net>
72097
72098         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72099         type for a local, and rename it: s/up/user_proc/.
72100
72101 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72102
72103         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72104         READ_UTMP_USER_PROCESS.
72105         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72106
72107 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72110         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72111
72112 2006-10-17  Eric Blake  <ebb9@byu.net>
72113
72114         * lib/sigprocmask.c (sigprocmask): Fix typo.
72115
72116         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72117
72118         * modules/clean-temp (Makefile.am): Don't add to make output...
72119         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72120         config.h.
72121
72122 2006-10-17  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72125         differently if DEFAULT_TEXT_DOMAIN is set.
72126
72127 2006-10-16  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/clean-temp.c: Include fwriteerror.h.
72130
72131 2006-10-16  Bruno Haible  <bruno@clisp.org>
72132
72133         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72134
72135 2006-10-16  Bruno Haible  <bruno@clisp.org>
72136
72137         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72138         * lib/sigprocmask.h: Include <sys/types.h>.
72139         (sigset_t): Use the system's definition if present.
72140
72141 2006-10-17  Eric Blake  <ebb9@byu.net>
72142
72143         * lib/xvasprintf.c (includes): Assume config.h.
72144         * lib/xasprintf.c (includes): Likewise.
72145
72146 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72149         at least as wide as intmax_t.
72150
72151 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72152
72153         (Imported from Automake.)
72154         * build-aux/gnupload: Update to version 1.1 of directive file.
72155
72156 2006-10-16  Eric Blake  <ebb9@byu.net>
72157
72158         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72159         match Automake 1.10a.
72160
72161 2006-10-14  Bruno Haible  <bruno@clisp.org>
72162
72163         * modules/sigprocmask: New file.
72164         * lib/sigprocmask.h: New file.
72165         * lib/sigprocmask.c: New file.
72166         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72167         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72168         request sigprocmask.o.
72169         (gl_PREREQ_SIGPROCMASK): New macro.
72170         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72171         (Depends-on): Add sigprocmask.
72172         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72173         gt_SIGNALBLOCKING. Test for 'raise' only once.
72174         * lib/fatal-signal.c: Include sigprocmask.h.
72175         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72176         unblock_fatal_signals): Define always.
72177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72178         sigprocmask.
72179
72180 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72181
72182         Sync from Automake.
72183         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72184         which incorrectly sets the mode of an existing destination
72185         directory.  In some cases the unpatched install-sh could do the
72186         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72187         system.  We hope this is rare in practice, but it's clearly worth
72188         fixing.  Problem reported by Alex Unleashed in
72189         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72190         Also, don't bother to check for -m bugs unless we're using -m;
72191         suggested by Stepan Kasal.
72192
72193 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72194
72195         Sync from Automake.
72196         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72197         `-c' flag, so they appear at the same position as in %FASTDEP%
72198         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72199         which ignores unknown options only after the first non-option.
72200         Bug report against M4 by Nelson H. F. Beebe.
72201
72202 2006-10-13  Jim Meyering  <jim@meyering.net>
72203
72204         Fix a bug in yesterday's change.
72205         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72206         p->fts_statp->st_dev would be used uninitialized.
72207         Ensures that we always call fts_stat on the very first entry.
72208         Miklos Szeredi reported that find -xdev stopped working.
72209
72210 2006-10-12  Bruno Haible  <bruno@clisp.org>
72211
72212         * gnulib-tool (func_get_automake_snippet): Append an automatically
72213         computed EXTRA_DIST augmentation.
72214         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72215         * modules/alloca-opt (Makefile.am): Likewise.
72216         * modules/allocsa (Makefile.am): Likewise.
72217         * modules/arcfour (Makefile.am): Likewise.
72218         * modules/arctwo (Makefile.am): Likewise.
72219         * modules/argmatch (Makefile.am): Likewise.
72220         * modules/argz (Makefile.am): Likewise.
72221         * modules/atexit (Makefile.am): Likewise.
72222         * modules/backupfile (Makefile.am): Likewise.
72223         * modules/byteswap (Makefile.am): Likewise.
72224         * modules/c-strtod (Makefile.am): Likewise.
72225         * modules/c-strtold (Makefile.am): Likewise.
72226         * modules/calloc (Makefile.am): Likewise.
72227         * modules/canon-host (Makefile.am): Likewise.
72228         * modules/canonicalize (Makefile.am): Likewise.
72229         * modules/chdir-long (Makefile.am): Likewise.
72230         * modules/chdir-safer (Makefile.am): Likewise.
72231         * modules/check-version (Makefile.am): Likewise.
72232         * modules/chown (Makefile.am): Likewise.
72233         * modules/cloexec (Makefile.am): Likewise.
72234         * modules/close-stream (Makefile.am): Likewise.
72235         * modules/closeout (Makefile.am): Likewise.
72236         * modules/crc (Makefile.am): Likewise.
72237         * modules/csharpexec (Makefile.am): Likewise.
72238         * modules/cycle-check (Makefile.am): Likewise.
72239         * modules/des (Makefile.am): Likewise.
72240         * modules/dev-ino (Makefile.am): Likewise.
72241         * modules/dirfd (Makefile.am): Likewise.
72242         * modules/dirname (Makefile.am): Likewise.
72243         * modules/dup2 (Makefile.am): Likewise.
72244         * modules/eealloc (Makefile.am): Likewise.
72245         * modules/error (Makefile.am): Likewise.
72246         * modules/euidaccess (Makefile.am): Likewise.
72247         * modules/exclude (Makefile.am): Likewise.
72248         * modules/exitfail (Makefile.am): Likewise.
72249         * modules/fcntl-safer (Makefile.am): Likewise.
72250         * modules/fcntl (Makefile.am): Likewise.
72251         * modules/file-type (Makefile.am): Likewise.
72252         * modules/fileblocks (Makefile.am): Likewise.
72253         * modules/filemode (Makefile.am): Likewise.
72254         * modules/filenamecat (Makefile.am): Likewise.
72255         * modules/fnmatch (Makefile.am): Likewise.
72256         * modules/fopen-safer (Makefile.am): Likewise.
72257         * modules/fpending (Makefile.am): Likewise.
72258         * modules/fprintftime (Makefile.am): Likewise.
72259         * modules/free (Makefile.am): Likewise.
72260         * modules/fsusage (Makefile.am): Likewise.
72261         * modules/ftruncate (Makefile.am): Likewise.
72262         * modules/fts (Makefile.am): Likewise.
72263         * modules/gc-arcfour (Makefile.am): Likewise.
72264         * modules/gc-des (Makefile.am): Likewise.
72265         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72266         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72267         * modules/gc-md4 (Makefile.am): Likewise.
72268         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72269         * modules/gc-sha1 (Makefile.am): Likewise.
72270         * modules/gc (Makefile.am): Likewise.
72271         * modules/getaddrinfo (Makefile.am): Likewise.
72272         * modules/getcwd (Makefile.am): Likewise.
72273         * modules/getdelim (Makefile.am): Likewise.
72274         * modules/getdomainname (Makefile.am): Likewise.
72275         * modules/getgroups (Makefile.am): Likewise.
72276         * modules/gethostname (Makefile.am): Likewise.
72277         * modules/gethrxtime (Makefile.am): Likewise.
72278         * modules/getline (Makefile.am): Likewise.
72279         * modules/getloadavg (Makefile.am): Likewise.
72280         * modules/getlogin_r (Makefile.am): Likewise.
72281         * modules/getndelim2 (Makefile.am): Likewise.
72282         * modules/getopt (Makefile.am): Likewise.
72283         * modules/getpagesize (Makefile.am): Likewise.
72284         * modules/getpass-gnu (Makefile.am): Likewise.
72285         * modules/getpass (Makefile.am): Likewise.
72286         * modules/getsubopt (Makefile.am): Likewise.
72287         * modules/gettime (Makefile.am): Likewise.
72288         * modules/gettimeofday (Makefile.am): Likewise.
72289         * modules/getugroups (Makefile.am): Likewise.
72290         * modules/getusershell (Makefile.am): Likewise.
72291         * modules/glob (Makefile.am): Likewise.
72292         * modules/group-member (Makefile.am): Likewise.
72293         * modules/hard-locale (Makefile.am): Likewise.
72294         * modules/hash (Makefile.am): Likewise.
72295         * modules/hmac-md5 (Makefile.am): Likewise.
72296         * modules/hmac-sha1 (Makefile.am): Likewise.
72297         * modules/human (Makefile.am): Likewise.
72298         * modules/idcache (Makefile.am): Likewise.
72299         * modules/imaxabs (Makefile.am): Likewise.
72300         * modules/imaxdiv (Makefile.am): Likewise.
72301         * modules/inet_ntop (Makefile.am): Likewise.
72302         * modules/inet_pton (Makefile.am): Likewise.
72303         * modules/intprops (Makefile.am): Likewise.
72304         * modules/inttostr (Makefile.am): Likewise.
72305         * modules/inttypes (Makefile.am): Likewise.
72306         * modules/isapipe (Makefile.am): Likewise.
72307         * modules/javaversion (Makefile.am): Likewise.
72308         * modules/lchmod (Makefile.am): Likewise.
72309         * modules/lchown (Makefile.am): Likewise.
72310         * modules/localcharset (Makefile.am): Likewise.
72311         * modules/long-options (Makefile.am): Likewise.
72312         * modules/lstat (Makefile.am): Likewise.
72313         * modules/malloc (Makefile.am): Likewise.
72314         * modules/mathl (Makefile.am): Likewise.
72315         * modules/mbchar (Makefile.am): Likewise.
72316         * modules/md2 (Makefile.am): Likewise.
72317         * modules/md4 (Makefile.am): Likewise.
72318         * modules/md5 (Makefile.am): Likewise.
72319         * modules/memcasecmp (Makefile.am): Likewise.
72320         * modules/memchr (Makefile.am): Likewise.
72321         * modules/memcmp (Makefile.am): Likewise.
72322         * modules/memcoll (Makefile.am): Likewise.
72323         * modules/memcpy (Makefile.am): Likewise.
72324         * modules/memmem (Makefile.am): Likewise.
72325         * modules/memmove (Makefile.am): Likewise.
72326         * modules/mempcpy (Makefile.am): Likewise.
72327         * modules/memrchr (Makefile.am): Likewise.
72328         * modules/memset (Makefile.am): Likewise.
72329         * modules/memxor (Makefile.am): Likewise.
72330         * modules/mkancesdirs (Makefile.am): Likewise.
72331         * modules/mkdir-p (Makefile.am): Likewise.
72332         * modules/mkdir (Makefile.am): Likewise.
72333         * modules/mkdtemp (Makefile.am): Likewise.
72334         * modules/mkstemp (Makefile.am): Likewise.
72335         * modules/mktime (Makefile.am): Likewise.
72336         * modules/modechange (Makefile.am): Likewise.
72337         * modules/mountlist (Makefile.am): Likewise.
72338         * modules/nanosleep (Makefile.am): Likewise.
72339         * modules/obstack (Makefile.am): Likewise.
72340         * modules/openat (Makefile.am): Likewise.
72341         * modules/pagealign_alloc (Makefile.am): Likewise.
72342         * modules/pathmax (Makefile.am): Likewise.
72343         * modules/physmem (Makefile.am): Likewise.
72344         * modules/poll (Makefile.am): Likewise.
72345         * modules/posixtm (Makefile.am): Likewise.
72346         * modules/posixver (Makefile.am): Likewise.
72347         * modules/putenv (Makefile.am): Likewise.
72348         * modules/quote (Makefile.am): Likewise.
72349         * modules/quotearg (Makefile.am): Likewise.
72350         * modules/raise (Makefile.am): Likewise.
72351         * modules/read-file (Makefile.am): Likewise.
72352         * modules/readline (Makefile.am): Likewise.
72353         * modules/readlink (Makefile.am): Likewise.
72354         * modules/readtokens (Makefile.am): Likewise.
72355         * modules/readutmp (Makefile.am): Likewise.
72356         * modules/realloc (Makefile.am): Likewise.
72357         * modules/regex (Makefile.am): Likewise.
72358         * modules/rename-dest-slash (Makefile.am): Likewise.
72359         * modules/rename (Makefile.am): Likewise.
72360         * modules/rijndael (Makefile.am): Likewise.
72361         * modules/rmdir (Makefile.am): Likewise.
72362         * modules/rpmatch (Makefile.am): Likewise.
72363         * modules/safe-read (Makefile.am): Likewise.
72364         * modules/safe-write (Makefile.am): Likewise.
72365         * modules/same-inode (Makefile.am): Likewise.
72366         * modules/same (Makefile.am): Likewise.
72367         * modules/save-cwd (Makefile.am): Likewise.
72368         * modules/savedir (Makefile.am): Likewise.
72369         * modules/setenv (Makefile.am): Likewise.
72370         * modules/settime (Makefile.am): Likewise.
72371         * modules/sha1 (Makefile.am): Likewise.
72372         * modules/sig2str (Makefile.am): Likewise.
72373         * modules/snprintf (Makefile.am): Likewise.
72374         * modules/stat-macros (Makefile.am): Likewise.
72375         * modules/stat-time (Makefile.am): Likewise.
72376         * modules/stdbool (Makefile.am): Likewise.
72377         * modules/stdint (Makefile.am): Likewise.
72378         * modules/stdlib-safer (Makefile.am): Likewise.
72379         * modules/stpcpy (Makefile.am): Likewise.
72380         * modules/stpncpy (Makefile.am): Likewise.
72381         * modules/strcase (Makefile.am): Likewise.
72382         * modules/strcasestr (Makefile.am): Likewise.
72383         * modules/strchrnul (Makefile.am): Likewise.
72384         * modules/strcspn (Makefile.am): Likewise.
72385         * modules/strdup (Makefile.am): Likewise.
72386         * modules/strerror (Makefile.am): Likewise.
72387         * modules/strftime (Makefile.am): Likewise.
72388         * modules/strndup (Makefile.am): Likewise.
72389         * modules/strnlen (Makefile.am): Likewise.
72390         * modules/strpbrk (Makefile.am): Likewise.
72391         * modules/strsep (Makefile.am): Likewise.
72392         * modules/strstr (Makefile.am): Likewise.
72393         * modules/strtod (Makefile.am): Likewise.
72394         * modules/strtoimax (Makefile.am): Likewise.
72395         * modules/strtok_r (Makefile.am): Likewise.
72396         * modules/strtol (Makefile.am): Likewise.
72397         * modules/strtoll (Makefile.am): Likewise.
72398         * modules/strtoul (Makefile.am): Likewise.
72399         * modules/strtoull (Makefile.am): Likewise.
72400         * modules/strtoumax (Makefile.am): Likewise.
72401         * modules/strverscmp (Makefile.am): Likewise.
72402         * modules/sys_socket (Makefile.am): Likewise.
72403         * modules/sys_stat (Makefile.am): Likewise.
72404         * modules/sysexits (Makefile.am): Likewise.
72405         * modules/time_r (Makefile.am): Likewise.
72406         * modules/timegm (Makefile.am): Likewise.
72407         * modules/timespec (Makefile.am): Likewise.
72408         * modules/tmpfile-safer (Makefile.am): Likewise.
72409         * modules/trim (Makefile.am): Likewise.
72410         * modules/unistd-safer (Makefile.am): Likewise.
72411         * modules/unlinkdir (Makefile.am): Likewise.
72412         * modules/unlocked-io (Makefile.am): Likewise.
72413         * modules/userspec (Makefile.am): Likewise.
72414         * modules/utime (Makefile.am): Likewise.
72415         * modules/utimecmp (Makefile.am): Likewise.
72416         * modules/utimens (Makefile.am): Likewise.
72417         * modules/vasnprintf (Makefile.am): Likewise.
72418         * modules/vasprintf (Makefile.am): Likewise.
72419         * modules/vsnprintf (Makefile.am): Likewise.
72420         * modules/xalloc (Makefile.am): Likewise.
72421         * modules/xgetcwd (Makefile.am): Likewise.
72422         * modules/xnanosleep (Makefile.am): Likewise.
72423         * modules/xreadlink (Makefile.am): Likewise.
72424         * modules/xstrtod (Makefile.am): Likewise.
72425         * modules/xstrtol (Makefile.am): Likewise.
72426         * modules/xstrtold (Makefile.am): Likewise.
72427         * modules/yesno (Makefile.am): Likewise.
72428         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72429
72430 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * modules/error (Makefile.am): Distribute files through
72433         EXTRA_DIST, not lib_SOURCES.
72434
72435 2006-10-12  Eric Blake  <ebb9@byu.net>
72436
72437         * modules/error (Makefile.am): Distribute files in /lib.
72438         * modules/obstack (Makefile.am): Likewise.
72439
72440 2006-10-12  Bruno Haible  <bruno@clisp.org>
72441
72442         * modules/acl (Makefile.am): Distribute all files in lib/ through
72443         EXTRA_DIST.
72444         * modules/arcfour (Makefile.am): Likewise.
72445         * modules/arctwo (Makefile.am): Likewise.
72446         * modules/argmatch (Makefile.am): Likewise.
72447         * modules/argz (Makefile.am): Likewise.
72448         * modules/atexit (Makefile.am): Likewise.
72449         * modules/backupfile (Makefile.am): Likewise.
72450         * modules/c-strtod (Makefile.am): Likewise.
72451         * modules/c-strtold (Makefile.am): Likewise.
72452         * modules/calloc (Makefile.am): Likewise.
72453         * modules/canon-host (Makefile.am): Likewise.
72454         * modules/canonicalize (Makefile.am): Likewise.
72455         * modules/chdir-long (Makefile.am): Likewise.
72456         * modules/chdir-safer (Makefile.am): Likewise.
72457         * modules/check-version (Makefile.am): Likewise.
72458         * modules/chown (Makefile.am): Likewise.
72459         * modules/cloexec (Makefile.am): Likewise.
72460         * modules/close-stream (Makefile.am): Likewise.
72461         * modules/closeout (Makefile.am): Likewise.
72462         * modules/crc (Makefile.am): Likewise.
72463         * modules/cycle-check (Makefile.am): Likewise.
72464         * modules/des (Makefile.am): Likewise.
72465         * modules/dirfd (Makefile.am): Likewise.
72466         * modules/dirname (Makefile.am): Likewise.
72467         * modules/dup2 (Makefile.am): Likewise.
72468         * modules/euidaccess (Makefile.am): Likewise.
72469         * modules/exclude (Makefile.am): Likewise.
72470         * modules/exitfail (Makefile.am): Likewise.
72471         * modules/fcntl-safer (Makefile.am): Likewise.
72472         * modules/file-type (Makefile.am): Likewise.
72473         * modules/fileblocks (Makefile.am): Likewise.
72474         * modules/filemode (Makefile.am): Likewise.
72475         * modules/filenamecat (Makefile.am): Likewise.
72476         * modules/fnmatch (Makefile.am): Likewise.
72477         * modules/fopen-safer (Makefile.am): Likewise.
72478         * modules/fpending (Makefile.am): Likewise.
72479         * modules/fprintftime (Makefile.am): Likewise.
72480         * modules/free (Makefile.am): Likewise.
72481         * modules/fsusage (Makefile.am): Likewise.
72482         * modules/ftruncate (Makefile.am): Likewise.
72483         * modules/fts (Makefile.am): Likewise.
72484         * modules/gc (Makefile.am): Likewise.
72485         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72486         * modules/getaddrinfo (Makefile.am): Likewise.
72487         * modules/getcwd (Makefile.am): Likewise.
72488         * modules/getdelim (Makefile.am): Likewise.
72489         * modules/getdomainname (Makefile.am): Likewise.
72490         * modules/getgroups (Makefile.am): Likewise.
72491         * modules/gethostname (Makefile.am): Likewise.
72492         * modules/gethrxtime (Makefile.am): Likewise.
72493         * modules/getline (Makefile.am): Likewise.
72494         * modules/getloadavg (Makefile.am): Likewise.
72495         * modules/getlogin_r (Makefile.am): Likewise.
72496         * modules/getopt (Makefile.am): Likewise.
72497         * modules/getpass (Makefile.am): Likewise.
72498         * modules/getpass-gnu (Makefile.am): Likewise.
72499         * modules/getsubopt (Makefile.am): Likewise.
72500         * modules/gettime (Makefile.am): Likewise.
72501         * modules/gettimeofday (Makefile.am): Likewise.
72502         * modules/getugroups (Makefile.am): Likewise.
72503         * modules/getusershell (Makefile.am): Likewise.
72504         * modules/glob (Makefile.am): Likewise.
72505         * modules/group-member (Makefile.am): Likewise.
72506         * modules/hard-locale (Makefile.am): Likewise.
72507         * modules/hash (Makefile.am): Likewise.
72508         * modules/hmac-md5 (Makefile.am): Likewise.
72509         * modules/hmac-sha1 (Makefile.am): Likewise.
72510         * modules/human (Makefile.am): Likewise.
72511         * modules/idcache (Makefile.am): Likewise.
72512         * modules/imaxabs (Makefile.am): Likewise.
72513         * modules/imaxdiv (Makefile.am): Likewise.
72514         * modules/inet_ntop (Makefile.am): Likewise.
72515         * modules/inet_pton (Makefile.am): Likewise.
72516         * modules/inttostr (Makefile.am): Likewise.
72517         * modules/isapipe (Makefile.am): Likewise.
72518         * modules/lchown (Makefile.am): Likewise.
72519         * modules/long-options (Makefile.am): Likewise.
72520         * modules/lstat (Makefile.am): Likewise.
72521         * modules/malloc (Makefile.am): Likewise.
72522         * modules/mathl (Makefile.am): Likewise.
72523         * modules/mbchar (Makefile.am): Likewise.
72524         * modules/md2 (Makefile.am): Likewise.
72525         * modules/md4 (Makefile.am): Likewise.
72526         * modules/md5 (Makefile.am): Likewise.
72527         * modules/memcasecmp (Makefile.am): Likewise.
72528         * modules/memchr (Makefile.am): Likewise.
72529         * modules/memcmp (Makefile.am): Likewise.
72530         * modules/memcoll (Makefile.am): Likewise.
72531         * modules/memcpy (Makefile.am): Likewise.
72532         * modules/memmem (Makefile.am): Likewise.
72533         * modules/memmove (Makefile.am): Likewise.
72534         * modules/mempcpy (Makefile.am): Likewise.
72535         * modules/memrchr (Makefile.am): Likewise.
72536         * modules/memset (Makefile.am): Likewise.
72537         * modules/memxor (Makefile.am): Likewise.
72538         * modules/mkancesdirs (Makefile.am): Likewise.
72539         * modules/mkdir (Makefile.am): Likewise.
72540         * modules/mkdir-p (Makefile.am): Likewise.
72541         * modules/mkdtemp (Makefile.am): Likewise.
72542         * modules/mkstemp (Makefile.am): Likewise.
72543         * modules/mktime (Makefile.am): Likewise.
72544         * modules/modechange (Makefile.am): Likewise.
72545         * modules/mountlist (Makefile.am): Likewise.
72546         * modules/nanosleep (Makefile.am): Likewise.
72547         * modules/openat (Makefile.am): Likewise.
72548         * modules/pagealign_alloc (Makefile.am): Likewise.
72549         * modules/physmem (Makefile.am): Likewise.
72550         * modules/poll (Makefile.am): Likewise.
72551         * modules/posixtm (Makefile.am): Likewise.
72552         * modules/posixver (Makefile.am): Likewise.
72553         * modules/putenv (Makefile.am): Likewise.
72554         * modules/quote (Makefile.am): Likewise.
72555         * modules/quotearg (Makefile.am): Likewise.
72556         * modules/raise (Makefile.am): Likewise.
72557         * modules/read-file (Makefile.am): Likewise.
72558         * modules/readline (Makefile.am): Likewise.
72559         * modules/readlink (Makefile.am): Likewise.
72560         * modules/readtokens (Makefile.am): Likewise.
72561         * modules/readutmp (Makefile.am): Likewise.
72562         * modules/realloc (Makefile.am): Likewise.
72563         * modules/regex (Makefile.am): Likewise.
72564         * modules/rename (Makefile.am): Likewise.
72565         * modules/rename-dest-slash (Makefile.am): Likewise.
72566         * modules/rijndael (Makefile.am): Likewise.
72567         * modules/rmdir (Makefile.am): Likewise.
72568         * modules/rpmatch (Makefile.am): Likewise.
72569         * modules/safe-read (Makefile.am): Likewise.
72570         * modules/safe-write (Makefile.am): Likewise.
72571         * modules/same (Makefile.am): Likewise.
72572         * modules/save-cwd (Makefile.am): Likewise.
72573         * modules/savedir (Makefile.am): Likewise.
72574         * modules/setenv (Makefile.am): Likewise.
72575         * modules/settime (Makefile.am): Likewise.
72576         * modules/sha1 (Makefile.am): Likewise.
72577         * modules/sig2str (Makefile.am): Likewise.
72578         * modules/snprintf (Makefile.am): Likewise.
72579         * modules/stdlib-safer (Makefile.am): Likewise.
72580         * modules/stpcpy (Makefile.am): Likewise.
72581         * modules/stpncpy (Makefile.am): Likewise.
72582         * modules/strcase (Makefile.am): Likewise.
72583         * modules/strcasestr (Makefile.am): Likewise.
72584         * modules/strchrnul (Makefile.am): Likewise.
72585         * modules/strcspn (Makefile.am): Likewise.
72586         * modules/strdup (Makefile.am): Likewise.
72587         * modules/strerror (Makefile.am): Likewise.
72588         * modules/strftime (Makefile.am): Likewise.
72589         * modules/strndup (Makefile.am): Likewise.
72590         * modules/strnlen (Makefile.am): Likewise.
72591         * modules/strpbrk (Makefile.am): Likewise.
72592         * modules/strsep (Makefile.am): Likewise.
72593         * modules/strstr (Makefile.am): Likewise.
72594         * modules/strtod (Makefile.am): Likewise.
72595         * modules/strtoimax (Makefile.am): Likewise.
72596         * modules/strtok_r (Makefile.am): Likewise.
72597         * modules/strtol (Makefile.am): Likewise.
72598         * modules/strtoll (Makefile.am): Likewise.
72599         * modules/strtoul (Makefile.am): Likewise.
72600         * modules/strtoull (Makefile.am): Likewise.
72601         * modules/strtoumax (Makefile.am): Likewise.
72602         * modules/strverscmp (Makefile.am): Likewise.
72603         * modules/time_r (Makefile.am): Likewise.
72604         * modules/timegm (Makefile.am): Likewise.
72605         * modules/tmpfile-safer (Makefile.am): Likewise.
72606         * modules/unistd-safer (Makefile.am): Likewise.
72607         * modules/unlinkdir (Makefile.am): Likewise.
72608         * modules/userspec (Makefile.am): Likewise.
72609         * modules/utime (Makefile.am): Likewise.
72610         * modules/utimecmp (Makefile.am): Likewise.
72611         * modules/utimens (Makefile.am): Likewise.
72612         * modules/vasnprintf (Makefile.am): Likewise.
72613         * modules/vasprintf (Makefile.am): Likewise.
72614         * modules/vsnprintf (Makefile.am): Likewise.
72615         * modules/xalloc (Makefile.am): Likewise.
72616         * modules/xgetcwd (Makefile.am): Likewise.
72617         * modules/xnanosleep (Makefile.am): Likewise.
72618         * modules/xreadlink (Makefile.am): Likewise.
72619         * modules/xstrtod (Makefile.am): Likewise.
72620         * modules/xstrtol (Makefile.am): Likewise.
72621         * modules/xstrtold (Makefile.am): Likewise.
72622         * modules/yesno (Makefile.am): Likewise.
72623
72624 2006-10-12  Jim Meyering  <jim@meyering.net>
72625
72626         * m4/getloadavg.m4: Revert the change below.
72627
72628         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72629         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72630         fail with a symlink, which is what coreutils' ./bootstrap now
72631         creates by default.
72632
72633 2006-10-12  Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72636         mingw.
72637         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72638         MSVC and mingw explicitly.
72639
72640 2006-10-11  Simon Josefsson  <jas@extundo.com>
72641             Bruno Haible  <bruno@clisp.org>
72642
72643         Add support for multiple gnulib-tool invocations in the scope of a
72644         single configure.ac file.
72645         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72646         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72647         with the same contents as the _LIBADD variable.
72648         (func_emit_initmacro_start, func_emit_initmacro_end,
72649         func_emit_initmacro_done): New functions.
72650         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72651         gl_LIBOBJS and gl_LTLIBOBJS.
72652
72653 2006-10-11  Bruno Haible  <bruno@clisp.org>
72654
72655         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72656         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72657         autoreconf. Instead, invoke autopoint explicitly but move back the
72658         *.m4 files from gnulib.
72659
72660 2006-10-11  Bruno Haible  <bruno@clisp.org>
72661
72662         * gnulib-tool (func_usage): Make module names after --create-testdir
72663         optional.
72664         (func_create_testdir): If no module was specified, use nearly all
72665         modules.
72666
72667 2006-10-12  Jim Meyering  <jim@meyering.net>
72668
72669         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72670         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72671         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72672         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72673         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72674         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72675         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72676         (fts_set_stat_required): New function.
72677         (fts_open): Defer the calls to fts_stat, if possible or requested.
72678         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72679         into fts_stat itself.
72680         (fts_read): Perform any required (deferred) fts_stat call.
72681         (fts_build): Likewise, for the directory we're about to open and read.
72682         In the readdir loop, carefully decide whether each entry will require
72683         an eventual call to fts_stat, using dirent.d_type info if available.
72684         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72685         a command line argument into this function.  Update all callers.
72686         Map a return value of FTS_DOT to FTS_D for a command line argument.
72687         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72688         Thanks to Miklos Szeredi for his tenacity and for the initial
72689         bug report about "find" failing on a FUSE-based file system.
72690
72691         * lib/fts.c (fts_open): Use consistent indentation.
72692
72693 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72696         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72697         reported by Jim Meyering.  All uses of cache variables renamed
72698         to match Autoconf's.
72699         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72700         the other one.
72701
72702         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72703         Fix misspelling in diagnostic.
72704
72705 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72708         defined.  Problem reported by Matthew Woehlke.
72709
72710         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72711         Add support for Tandem NonStop R series.
72712         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72713         Use new macro.
72714
72715         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72716         (has_trailing_slash): Omit size arg; all callers changed.
72717         Omit 'inline', since it doesn't help performance and we'd
72718         need to configure it.
72719         Don't count //, ///, etc. as having a trailing slash.
72720         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72721         (rpl_rename_dest_slash): On failure, use rename's errno rather
72722         than (in some cases) an incorrect or junk errno.
72723         Simplify code by removing need to compute length; this does
72724         cause it to make two passes instead of one over the file name,
72725         but it's worth it.
72726
72727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72728         change, since Autoconf's version may no longer be appropriate now
72729         that we are using CVS Autoconf's version.  Add support for Tandem.
72730
72731 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72732             Bruno Haible  <bruno@clisp.org>
72733
72734         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72735         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72736         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72737         gl_AC_TYPE_LONG_LONG.
72738
72739         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72740         instead of HAVE_LONG_LONG.
72741         * lib/printf-args.c (printf_fetchargs): Likewise.
72742         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72743         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72744         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72745         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72746         gl_AC_TYPE_LONG_LONG.
72747
72748 2006-10-11  Bruno Haible  <bruno@clisp.org>
72749
72750         * m4/longlong.m4: Add comments.
72751         * m4/ulonglong.m4: Likewise.
72752
72753 2006-10-10  Bruno Haible  <bruno@clisp.org>
72754
72755         Make it possible to #define stpcpy, strdup to aliases.
72756         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72757         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72758
72759 2006-10-10  Bruno Haible  <bruno@clisp.org>
72760
72761         Make it possible to #define gcd to an alias.
72762         * lib/gcd.c: Include config.h.
72763
72764 2006-10-10  Bruno Haible  <bruno@clisp.org>
72765
72766         Make it possible to #define c_isascii to an alias.
72767         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72768         defined. Undefine the macros before defining them, to avoid gcc
72769         warnings.
72770         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72771         define NO_C_CTYPE_MACROS early.
72772
72773 2006-10-10  Bruno Haible  <bruno@clisp.org>
72774
72775         Make it possible to #define set_program_name to an alias.
72776         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72777         ENABLE_RELOCATABLE early.
72778
72779 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72782         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72783         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72784         More generally, don't assume that 64-bit signed int is available
72785         if unsigned int is, and vice versa.
72786         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72787         unsigned symbols, not on their signed counterparts.
72788         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72789         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72790         (UINT64_C, UINTMAX_C):
72791         Likewise.
72792         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72793         unsigned counterparts.
72794         (Have_long_long, Unsigned): New macros.
72795         (Int): Renamed from INT.
72796         (strtoimax): Use the new macros.
72797         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72798         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72799         * modules/inttypes (inttypes.h): Substitute
72800         HAVE_UNSIGNED_LONG_LONG_INT.
72801         * modules/stdint (stdint.h): Likewise.
72802         (Files): Add m4/ulonglong.m4.
72803
72804 2006-10-10  Bruno Haible  <bruno@clisp.org>
72805
72806         Fix a gcc -Wshadow warning.
72807         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72808         to 'bucket'.
72809         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72810         gl_linked_indexof_from_to): Likewise.
72811         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72812         Likewise.
72813         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72814         Likewise.
72815         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72816         Reported by Eric Blake.
72817
72818 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72821         for NetBSD.  Problem reported by Bruno Haible.
72822
72823 2006-10-09  Jim Meyering  <jim@meyering.net>
72824
72825         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72826         Patch from Bruno Haible.
72827
72828 2006-10-09  Jim Meyering  <jim@meyering.net>
72829
72830         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72831         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72832         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72833
72834 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         Don't include <config.h> twice; this doesn't work in some cases,
72837         e.g., when config.h has "#define intmax_t long long int" and
72838         we include <config.h>, <inttypes.h>, <config.h> in that order.
72839         Problem reported by Matthew Woehlke in:
72840         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72841         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72842         * lib/fts-cycle.c: Don't include config.h.
72843         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72844         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72845         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72846         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72847         inttypes.h.
72848         * lib/xstrtoumax.c: Likewise.
72849         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72850         __strtol and the like, so that this module is more like its siblings.
72851         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72852         Remove; no longer needed now that we assume gnulib inttypes.h.
72853
72854 2006-10-08  Bruno Haible  <bruno@clisp.org>
72855
72856         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72857         option.
72858
72859 2006-10-07  Jim Meyering  <jim@meyering.net>
72860
72861         * modules/inttypes (inttypes.h): Revert what seems to have been
72862         an inadvertent part of today's change: use "|", not "/" in the
72863         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72864
72865 2006-10-07  Bruno Haible  <bruno@clisp.org>
72866
72867         * modules/sublist: New file.
72868
72869 2006-10-07  Bruno Haible  <bruno@clisp.org>
72870
72871         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72872         * modules/argz (argz.h): Likewise.
72873         * modules/arpa_inet (arpa/inet.h): Likewise.
72874         * modules/byteswap (byteswap.h): Likewise.
72875         * modules/configmake (configmake.h): Likewise.
72876         * modules/fcntl (fcntl.h): Likewise.
72877         * modules/fnmatch (fnmatch.h): Likewise.
72878         * modules/getopt (getopt.h): Likewise.
72879         * modules/glob (glob.h): Likewise.
72880         * modules/inttypes (inttypes.h): Likewise.
72881         * modules/netinet_in (netinet/in.h): Likewise.
72882         * modules/poll (poll.h): Likewise.
72883         * modules/stdbool (stdbool.h): Likewise.
72884         * modules/stdint (stdint.h): Likewise.
72885         * modules/sys_select (sys/select.h): Likewise.
72886         * modules/sys_socket (sys/socket.h): Likewise.
72887         * modules/sys_stat (sys/stat.h): Likewise.
72888         * modules/sysexits (sysexits.h): Likewise.
72889         * modules/unistd (unistd.h): Likewise.
72890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72891         Add a "DO NOT EDIT" comment to the generated file.
72892         (func_import): Likewise for gnulib-comp.m4.
72893
72894 2006-10-07  Bruno Haible  <bruno@clisp.org>
72895
72896         * lib/gl_sublist.h: New file.
72897         * lib/gl_sublist.c: New file.
72898
72899 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72902         name (relative to the original working directory) and the file
72903         name component (relative to the temporary working directory).  All
72904         callers changed.
72905         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72906         * lib/mkdir-p.c (make_dir_parents): Likewise.
72907         * lib/mkdir-p.h (make_dir_parents): Likewise.
72908
72909 2006-10-06  Eric Blake  <ebb9@byu.net>
72910
72911         Define several macros for use by the clean-temp module.
72912         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72913         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72914         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72915
72916         * lib/clean-temp.h (close_stream_temp): New declaration.
72917         * lib/clean-temp.c (includes): Pull in headers according to what
72918         other modules are in use.
72919         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72920
72921 2006-10-06  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72924         instead of fopen, fwriteerror.
72925
72926 2006-10-06  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72929         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72930         int.
72931         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72932         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72933         Return an error indicator.
72934         Suggested by Eric Blake.
72935
72936 2006-10-06  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72939         Reported by Eric Blake.
72940
72941 2006-10-06  Bruno Haible  <bruno@clisp.org>
72942
72943         * modules/closeout (Description): Mention stderr too.
72944
72945 2006-10-06  Bruno Haible  <bruno@clisp.org>
72946         and Paul Eggert  <eggert@cs.ucla.edu>
72947
72948         * lib/closeout.c (close_stdout): Also close stderr.
72949         * lib/closeout.h: Update comment.
72950
72951 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72954         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72955         * lib/dirchownmod.c: Include lchown.h.
72956         * lib/lchown.c: Don't include files that lchown.h now includes.
72957         Don't declare chown, since lchown.h now does that.
72958         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72959         (lchown): Define to rpl_chown if lchown is declared but
72960         does not exist.  Declare using a prototype if lchown is not
72961         declared.  Add a copyright notice.
72962         * lib/mkstemp.h: Include <unistd.h>.
72963         * lib/openat.c: Include lchown.h.
72964
72965         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72966         we now test for that separately.
72967         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72968         rather than O_NOFOLLOW, when testing whether it's possible to
72969         avoid a race condition reliably.
72970         * lib/savewd.c (savewd_chdir): Likewise.
72971
72972         Remove macros that are no longer needed now that stdint.h is
72973         reliable.
72974         * lib/fsusage.c (UINTMAX_MAX): Remove.
72975         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72976         * lib/utimecmp.c (SIZE_MAX): Remove.
72977
72978         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72979
72980         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72981         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72982         O_NOATIME works.
72983
72984 2006-10-05  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/gl_list.h (gl_sortedlist_search_from_to,
72987         gl_sortedlist_indexof_from_to): New declarations.
72988         (gl_list_implementation): New fields sortedlist_search_from_to,
72989         sortedlist_indexof_from_to.
72990         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72991         inline functions.
72992         * lib/gl_list.c (gl_sortedlist_search_from_to,
72993         gl_sortedlist_indexof_from_to): New functions.
72994         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72995         function.
72996         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72997         (gl_array_sortedlist_search_from_to): New function.
72998         (gl_array_list_implementation): Update.
72999         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73000         function.
73001         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73002         (gl_carray_sortedlist_search_from_to): New function.
73003         (gl_carray_list_implementation): Update.
73004         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73005         gl_linked_sortedlist_indexof_from_to): New functions.
73006         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73007         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73008         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73009         gl_tree_sortedlist_indexof_from_to): New functions.
73010         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73011         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73012         Update.
73013         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73014         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73015         Update.
73016
73017 2006-10-05  Bruno Haible  <bruno@clisp.org>
73018
73019         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73020         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73021         (struct gl_list_implementation): Add fields search_from_to,
73022         indexof_from_to. Remove fields search, indexof.
73023         (gl_list_search): Use the search_from_to method.
73024         (gl_list_search_from, gl_list_search_from_to): New functions.
73025         (gl_list_indexof): Use the indexof_from_to method.
73026         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73027         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73028         (gl_list_search_from, gl_list_search_from_to): New functions.
73029         (gl_list_indexof): Use the indexof_from_to method.
73030         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73031         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73032         gl_array_indexof. Add start_index, end_index arguments.
73033         (gl_array_search_from_to): Renamed from gl_array_search. Add
73034         start_index, end_index arguments.
73035         (gl_array_remove, gl_array_list_implementation): Update.
73036         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73037         gl_carray_indexof. Add start_index, end_index arguments.
73038         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73039         start_index, end_index arguments.
73040         (gl_carray_remove, gl_carray_list_implementation): Update.
73041         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73042         gl_linked_search. Add start_index, end_index arguments.
73043         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73044         start_index, end_index arguments.
73045         (gl_linked_remove): Update.
73046         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73047         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73048         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73049         field to 'size_t'.
73050         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73051         gl_tree_search. Add start_index, end_index arguments.
73052         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73053         start_index, end_index arguments.
73054         (gl_tree_remove): Update.
73055         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73056         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73057         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73058         function.
73059         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73060         gl_tree_search. Add start_index, end_index arguments.
73061         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73062         start_index, end_index arguments.
73063         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73064         Update.
73065         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73066
73067 2006-10-05  Bruno Haible  <bruno@clisp.org>
73068
73069         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73070
73071         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73072         fwriteerror_temp): New declarations.
73073         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73074         (descriptors): New variable.
73075         (cleanup): First, close the descriptors.
73076         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73077         fclose_temp, fwriteerror_temp): New functions.
73078
73079 2006-10-04  Jim Meyering  <jim@meyering.net>
73080
73081         * lib/fts.c (fts_open): Tiny comment change.
73082
73083 2006-10-04  Bruno Haible  <bruno@clisp.org>
73084
73085         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73086         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73087         gl_LOCK_BODY.
73088         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73089         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73090         gl_LOCK_EARLY_BODY.
73091         (gl_LOCK): Require gl_LOCK_BODY.
73092
73093 2006-10-04  Bruno Haible  <bruno@clisp.org>
73094
73095         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73096         (gl_oset_search_atleast): New declaration.
73097         (struct gl_oset_implementation): Add field 'search_atleast'.
73098         (gl_oset_search_atleast): New inline function.
73099         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73100         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73101         (gl_array_oset_implementation): Update.
73102         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73103         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73104         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73105
73106 2006-10-04  Bruno Haible  <bruno@clisp.org>
73107
73108         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73109
73110 2006-10-03  Bruno Haible  <bruno@clisp.org>
73111
73112         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73113         from gl_avltreehash_list_implementation.
73114
73115 2006-10-03  Bruno Haible  <bruno@clisp.org>
73116
73117         * lib/gl_oset.c (gl_oset_add): Fix return type.
73118
73119 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73120
73121         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73122
73123 2006-10-02  Eric Blake  <ebb9@byu.net>
73124
73125         * modules/strnlen (Depends-on): Add extensions.
73126
73127 2006-10-02  Eric Blake  <ebb9@byu.net>
73128
73129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73130         definition in 2.60+.
73131
73132 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73133
73134         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73135         checks.
73136
73137 2006-10-02  Bruno Haible  <bruno@clisp.org>
73138
73139         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73140         to the AUTOMAKE_OPTIONS.
73141         Reported by Jim Meyering.
73142
73143 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         Work around bug in Solaris 10 /proc file system:
73146         /proc/self/fd/NNN/.. isn't the parent directory of
73147         the directory whose file descriptor is NNN.  This needs to
73148         be worked around at run time, not compile time, since a
73149         program might be built on Solaris 8, where things work, and
73150         run on Solaris 10.
73151         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73152         to use the following interface instead:
73153         (OPENAT_BUFFER_SIZE): New macro.
73154         (openat_proc_name): New function.
73155         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73156         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73157         Likewise.
73158         * lib/openat-proc.c: New file.
73159         * modules/openat (Files): Add lib/openat-proc.c.
73160         (Depends-on): Add same-inode, stdbool.
73161         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73162
73163 2006-09-29  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73166         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73167         argument. Set stdout_closed before testing for ferror, not after.
73168         (fwriteerror, fwriteerror_no_ebadf): New functions.
73169
73170 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73171
73172         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73173
73174 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73175
73176         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73177         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73178
73179 2006-09-28  Jim Meyering  <jim@meyering.net>
73180
73181         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73182         Include <unistd.h>.
73183
73184 2006-09-28  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73187         * modules/linkedhash-list (Depends-on): Likewise.
73188         * modules/rbtreehash-list (Depends-on): Likewise.
73189
73190 2006-09-28  Bruno Haible  <bruno@clisp.org>
73191
73192         * lib/strndup.h: Simplify the redefinition of strndup.
73193         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73195
73196 2006-09-28  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73199         * lib/gl_linkedhash_list.c: Likewise.
73200         * lib/gl_rbtreehash_list.c: Likewise.
73201
73202 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73205         getaddrinfo.
73206
73207         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73208         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73209         it causes <stdio_ext.h> to cause a compile-time error.
73210         Problem reported by Nelson H. F. Beebe.
73211         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73212         of HAVE_DECL___PENDING.
73213
73214         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73215         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73216         declaration.
73217
73218 2006-09-27  Jim Meyering  <jim@meyering.net>
73219
73220         This file could end up with a definition for a function
73221         named __strndup, rather than rpl_strndup on a system with
73222         incomplete weak_alias support.
73223         * lib/strndup.c (strndup): Rename from __strndup.
73224         Remove #defines that used to map __strndup to strndup.
73225         Don't use K&R prototypes.
73226         Remove LIBC-related code, since this file is not sync'd with glibc.
73227         * lib/strndup.h: Revamp, accordingly.
73228         * m4/strndup.m4: Modernize.
73229
73230 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * modules/savewd (Depends-on): Add 'raise'.
73233         * lib/savewd.c: Include <signal.h>, for 'raise'.
73234
73235 2006-09-26  Jim Meyering  <jim@meyering.net>
73236
73237         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73238         when we detect Darwin 8.7.0's acl_get_file bug.
73239         Rearrange to perform the new (below) run-test while $LIBS
73240         contains any acl-related library.  Set USE_ACL at the end.
73241         (gl_ACL_GET_FILE): New function.
73242
73243 2006-09-26  Eric Blake  <ebb9@byu.net>
73244
73245         * lib/verror.c: Include <config.h> unconditionally.
73246
73247 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * modules/clock-time (Maintainer): Add self.
73250         * modules/getlogin_r (Depends-on): Add extensions.
73251
73252 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73253
73254         * modules/clock-time: New module.
73255         * modules/nanosleep (Depends-on): Add clock-time.
73256         * modules/gethrxtime (Depends-on): Likewise.
73257         * modules/gettime (Depends-on): Likewise.
73258         * modules/settime (Depends-on): Likewise.
73259
73260         * modules/fts-lgpl: Depend on openat.
73261         * modules/mkancesdirs: Depend on savewd.
73262         * modules/mkdir-p: Likewise.
73263
73264 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73265
73266         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73267
73268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73269         `gl_have_arbitrary_file_name_length_limit' to
73270         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73271         actually works between configure runs.
73272
73273 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73274             Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73277
73278 2006-09-25  Jim Meyering  <jim@meyering.net>
73279
73280         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73281         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73282
73283 2006-09-25  Eric Blake  <ebb9@byu.net>
73284
73285         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73286         exec's in 2006-09-18 patch when shuffling fds.
73287
73288 2006-09-25  Bruno Haible  <bruno@clisp.org>
73289
73290         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73291         Reported by Jim Meyering.
73292
73293 2006-09-24  Jim Meyering  <jim@meyering.net>
73294
73295         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73296         compare a pointer against a literal "0".  That caused failures with
73297         at least HP-UX's hpcc.
73298
73299 2006-09-22  Simon Josefsson  <jas@extundo.com>
73300
73301         * modules/gc-sha1:
73302         * modules/gc-md4:
73303         * modules/gc-hmac-sha1:
73304         * modules/gc-hmac-md5:
73305         * modules/gc-des:
73306         * modules/gc-arcfour: Distribute more files.
73307
73308 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73309
73310         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73311         (gl_linked_iterator_from_to): Initialize struct completely.
73312         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73313         (gl_tree_iterator_from_to): Likewise
73314         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73315         * lib/gl_array_list.c [lint] (gl_array_iterator)
73316         (gl_array_iterator_from_to): Likewise.
73317         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73318         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73319         (gl_carray_iterator_from_to): Likewise.
73320
73321         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73322         * lib/md4.c (md4_process_block): Remove unused variable.
73323         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73324         parentheses for clarity.
73325
73326 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73327
73328         * modules/bison-i18n (Depends-on): Add gettext.
73329
73330 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73331
73332         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73333         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73334         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73335         also add missing comma that caused broken test.
73336         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73337         stdlib.h, for `abort'.
73338         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73339         variables.
73340         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73341         include unistd.h if present, for `rmdir'.
73342         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73343         variables.
73344         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73345         in the process include standard headers for prototypes.
73346         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73347         gets declared on GNU/Linux.
73348         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73349         unistd.h, for `rmdir'.
73350         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73351
73352         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73353         always true.
73354         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73355
73356         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73357
73358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73359
73360         * gnulib-tool (func_version): Create output all at once.  This
73361         may help avoid triggering unnecessary SIGPIPEs, and at any
73362         rate it doesn't hurt.
73363
73364 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73365             Bruno Haible  <bruno@clisp.org>
73366
73367         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73368         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73369         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73370
73371         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73372         (gl_FUNC_VASPRINTF): Invoke it.
73373
73374 2006-09-22  Bruno Haible  <bruno@clisp.org>
73375
73376         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73377         getloadavg.c as first argument.
73378
73379 2006-09-22  Bruno Haible  <bruno@clisp.org>
73380
73381         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73382         at the beginning of the gl_INIT macro.
73383         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73384         gl_GETLOADAVG.
73385
73386 2006-09-22  Bruno Haible  <bruno@clisp.org>
73387
73388         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73389         module.
73390         Suggested by Ralf Wildenhues.
73391
73392 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         Import this patch from libc:
73395
73396         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73397
73398         * lib/regex_internal.c (re_string_reconstruct): Handle
73399         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73400         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73401         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73402         re_string_context_at.
73403
73404         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73405         now requires it.
73406         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73407         gl_REGEX now does it for us.
73408         (gl_REGEX): Add test taken from
73409         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73410
73411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73412         Check that large offsets work.  Modernize Autoconf usages.
73413         Prefer "yes" to mean a good thing rather than a bad.
73414         Don't put "#define mkstemp" in config.h, as this might interfere
73415         with standard system headers that "#define mkstemp mkstemp64".
73416
73417         * modules/mkstemp (Depends-on): Add extensions, so that
73418         mkstemp is visible on some platforms.
73419         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73420         (Include): Change to "mkstemp.h" from <stdlib.h>.
73421         (Files): Add mkstemp.h.
73422
73423         * lib/mkstemp.h: New file, since some standard headers
73424         #define mkstemp.
73425         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73426         Include "mkstemp.h".
73427         Make the _LIBC code resemble glibc original more,
73428         e.g., use K&R style.
73429         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73430         (mkstemp): Remove, since mkstemp.h does this for us.
73431         * lib/stdlib--.h: Include mkstemp.h.
73432
73433         Import this patch from libc:
73434
73435         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73436
73437         * lib/tempname.c (__gen_tempname): Change attempts_min
73438         into a macro.  Use preprocessor to decide how to initialize
73439         attempts [Coverity CID 67].
73440
73441 2006-09-20  Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/mkdtemp.c: Import from libc.
73444         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73445                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73446                 attempts_min into a macro.  Use preprocessor to decide how to
73447                 initialize attempts [Coverity CID 67].
73448         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73449                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73450                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73451
73452 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73453
73454         * gnulib-tool (func_exit): New function, to allow to pass the
73455         exit status portably through the trap.  Use everywhere.
73456         (--help, --version): Signal a write error.
73457         (trap): catch SIGPIPE, for write errors.
73458         Exit at the end of the trap, with the correct exit status.
73459
73460 2006-09-19  Karl Berry  <karl@gnu.org>
73461
73462         * doc/gnulib.texi: note about the license texinfo files.
73463
73464 2006-09-19  Eric Blake  <ebb9@byu.net>
73465
73466         * gnulib-tool: Avoid space-tab.
73467
73468 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73471         that prevented coreutils 6.1 from building.  Problem reported
73472         by Petter Reinholdtsen.
73473
73474 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73475
73476         * gnulib-tool (avoidlist): Fix typo that broke options like
73477         --avoid=lock that are used by coreutils bootstrap.
73478
73479 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73480
73481         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73482         more systematically.
73483
73484 2006-09-18  Jim Meyering  <jim@meyering.net>
73485
73486         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73487
73488 2006-09-18  Bruno Haible  <bruno@clisp.org>
73489
73490         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73491
73492 2006-09-18  Bruno Haible  <bruno@clisp.org>
73493
73494         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73495         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73496         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73497         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73498         * m4/gettext.m4: Require autoconf >= 2.52.
73499         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73500         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73501         of gl_cv_header_inttypes_h.
73502
73503 2006-09-18  Bruno Haible  <bruno@clisp.org>
73504
73505         * lib/javaversion.c: Include configmake.h.
73506
73507 2006-09-18  Bruno Haible  <bruno@clisp.org>
73508
73509         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73510         avoid that the while loops be executed in a subshell.
73511
73512 2006-09-18  Bruno Haible  <bruno@clisp.org>
73513
73514         * MODULES.html.sh (func_module): Break long lines.
73515         Suggested by Bruce Korb <bkorb@gnu.org>.
73516
73517 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73518
73519         Speed up by a factor of 1.12.
73520         * gnulib-tool (nl): New variable.
73521         (func_import): Rewrite include directive extraction to only read each
73522         directive once.
73523
73524 2006-09-17  Bruno Haible  <bruno@clisp.org>
73525
73526         * modules/javaversion (Makefile.am): Remove DEFS setting.
73527         (Depends-on): Add configmake, for PKGDATADIR definition.
73528
73529 2006-09-17  Bruno Haible  <bruno@clisp.org>
73530
73531         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73532
73533 2006-09-17  Bruno Haible  <bruno@clisp.org>
73534
73535         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73536         (func_modules_transitive_closure, func_modules_add_dummy,
73537         func_modules_to_filelist, func_import, func_create_testdir,
73538         func_create_megatestdir, ...): Use it wherever possible.
73539         Suggested by Ralf Wildenhues.
73540
73541 2006-09-16  Karl Berry  <karl@gnu.org>
73542
73543         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73544         to avoid sectioning errors.
73545         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73546         [ifinfo]: blank line after @center-ed titles.
73547         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73548         Spell FSF address consistently with others.
73549         (These changes approved by rms.)
73550
73551 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73552
73553         Speed up by a factor of 1.61.
73554         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73555         already checked module names again.
73556
73557 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73558
73559         Speed up by a factor of 1.13.
73560         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73561         for new_files, and the input to func_add_or_update.
73562
73563 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73564
73565         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73566         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73567
73568 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * modules/mkancesdirs (Depends-on): Add fcntl.
73571         * modules/savewd: New file.
73572         * MODULES.html.sh (File system functions): Add savewd.
73573
73574         * modules/configmake (Makefile.am): Add support for the
73575         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73576
73577 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * m4/savewd.m4: New file.
73580
73581 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73584         (dirchownmod): New arg FD.  All callers changed.
73585         Use FD rather than opening the directory ourself, as opening is
73586         now the caller's responsibility.
73587         * lib/dirchownmod.h: Likewise.
73588         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73589         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73590         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73591         (test_dir): Remove.
73592         (mkancesdirs): Return length of prefix of FILE that has already
73593         been made, or -2 if there is a child doing the work.  Redo
73594         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73595         ".", and treat ".." specially since it might stray back into
73596         already-created areas.  Use a subprocess if necessary.  New arg
73597         WD; all users changed.  MAKE_DIR function should now return 1
73598         if it creates a directory that is not readable.  Return -2 if
73599         a child process is spun off.
73600         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73601         Adjust signature to match code.
73602         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73603         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73604         all users changed.
73605         * lib/savewd.c, lib/savewd.h: New files.
73606
73607 2006-09-15  Jim Meyering  <jim@meyering.net>
73608
73609         * modules/rename-dest-slash: New module.
73610         * MODULES.html.sh (posix_compat): Add it here.
73611
73612         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73613
73614 2006-09-15  Jim Meyering  <jim@meyering.net>
73615
73616         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73617         file.
73618
73619         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73620
73621 2006-09-15  Jim Meyering  <jim@meyering.net>
73622
73623         * lib/rename-dest-slash.c (has_trailing_slash): Use
73624         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73625         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73626         test before testing whether SRC is a directory.
73627         Suggestions from Bruno Haible.
73628
73629         Avoid a warning about an unused variable.
73630         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73631         into the #ifdef block where it's used.
73632
73633         * lib/rename-dest-slash.c: New file.
73634
73635 2006-09-14  Bruno Haible  <bruno@clisp.org>
73636
73637         * lib/allocsa.c: Include <config.h> unconditionally.
73638         * lib/asnprintf.c: Likewise.
73639         * lib/asprintf.c: Likewise.
73640         * lib/c-strcasecmp.c: Likewise.
73641         * lib/c-strcasestr.c: Likewise.
73642         * lib/c-strncasecmp.c: Likewise.
73643         * lib/c-strstr.c: Likewise.
73644         * lib/classpath.c: Likewise.
73645         * lib/clean-temp.c: Likewise.
73646         * lib/concatpath.c: Likewise.
73647         * lib/copy-file.c: Likewise.
73648         * lib/csharpcomp.c: Likewise.
73649         * lib/csharpexec.c: Likewise.
73650         * lib/execute.c: Likewise.
73651         * lib/fatal-signal.c: Likewise.
73652         * lib/findprog.c: Likewise.
73653         * lib/fwriteerror.c: Likewise.
73654         * lib/gl_array_list.c: Likewise.
73655         * lib/gl_array_oset.c: Likewise.
73656         * lib/gl_avltree_list.c: Likewise.
73657         * lib/gl_avltree_oset.c: Likewise.
73658         * lib/gl_avltreehash_list.c: Likewise.
73659         * lib/gl_carray_list.c: Likewise.
73660         * lib/gl_linked_list.c: Likewise.
73661         * lib/gl_linkedhash_list.c: Likewise.
73662         * lib/gl_list.c: Likewise.
73663         * lib/gl_oset.c: Likewise.
73664         * lib/gl_rbtree_list.c: Likewise.
73665         * lib/gl_rbtree_oset.c: Likewise.
73666         * lib/gl_rbtreehash_list.c: Likewise.
73667         * lib/imaxabs.c: Likewise.
73668         * lib/imaxdiv.c: Likewise.
73669         * lib/javacomp.c: Likewise.
73670         * lib/javaexec.c: Likewise.
73671         * lib/javaversion.c: Likewise.
73672         * lib/linebreak.c: Likewise.
73673         * lib/localcharset.c: Likewise.
73674         * lib/lock.c: Likewise.
73675         * lib/mbchar.c: Likewise.
73676         * lib/mbswidth.c: Likewise.
73677         * lib/mkdtemp.c: Likewise.
73678         * lib/pipe.c: Likewise.
73679         * lib/printf-args.c: Likewise.
73680         * lib/printf-parse.c: Likewise.
73681         * lib/progname.c: Likewise.
73682         * lib/progreloc.c: Likewise.
73683         * lib/readlink.c: Likewise.
73684         * lib/sh-quote.c: Likewise.
73685         * lib/stpcpy.c: Likewise.
73686         * lib/stpncpy.c: Likewise.
73687         * lib/strcasecmp.c: Likewise.
73688         * lib/strcasestr.c: Likewise.
73689         * lib/strcspn.c: Likewise.
73690         * lib/striconv.c: Likewise.
73691         * lib/strncasecmp.c: Likewise.
73692         * lib/strnlen1.c: Likewise.
73693         * lib/strstr.c: Likewise.
73694         * lib/strtok_r.c: Likewise.
73695         * lib/tls.c: Likewise.
73696         * lib/tmpdir.c: Likewise.
73697         * lib/unicodeio.c: Likewise.
73698         * lib/unsetenv.c: Likewise.
73699         * lib/vasnprintf.c: Likewise.
73700         * lib/vasprintf.c: Likewise.
73701         * lib/wait-process.c: Likewise.
73702         * lib/xallocsa.c: Likewise.
73703         * lib/xsetenv.c: Likewise.
73704         * lib/xstriconv.c: Likewise.
73705
73706 2006-09-13  Simon Josefsson  <jas@extundo.com>
73707
73708         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73709         that internally, suggested by Ralf Wildenhues
73710         <Ralf.Wildenhues@gmx.de>.
73711
73712 2006-09-13  Simon Josefsson  <jas@extundo.com>
73713
73714         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73715         @LIBOBJS@.
73716         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73717
73718 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73721         longer worry about uses that don't define HAVE_CONFIG_H.
73722         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73723         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73724         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73725         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73726         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73727         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73728         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73729         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73730         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73731         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73732         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73733         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73734         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73735         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73736         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73737         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73738         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73739         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73740         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73741         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73742         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73743         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73744         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73745         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73746         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73747         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73748         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73749         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73750         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73751         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73752         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73753         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73754         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73755         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73756         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73757         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73758         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73759         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73760         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73761         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73762         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73763         Likewise.
73764
73765 2006-09-13  Eric Blake  <ebb9@byu.net>
73766
73767         * lib/getopt.c: Fix typo in last commit.
73768
73769 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73770
73771         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73772         dgettext.
73773
73774 2006-09-12  Jim Meyering  <jim@meyering.net>
73775
73776         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73777         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73778         Reported by Nelson H. F. Beebe.
73779
73780 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73781
73782         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73783         program_invocation_name and program_invocation_short_name are
73784         initialized.
73785         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73786         and program_invocation_short_name to argp.h, so they are visible
73787         to user programs.
73788         * lib/argp.h: Likewise
73789
73790 2006-09-10  Bruno Haible  <bruno@clisp.org>
73791
73792         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73793         m4/inttypes_h.m4, m4/uintmax_t.m4.
73794
73795 2006-09-10  Bruno Haible  <bruno@clisp.org>
73796
73797         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73798         gl_AC_TYPE_UINTMAX_T.
73799
73800 2006-09-10  Bruno Haible  <bruno@clisp.org>
73801
73802         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73803
73804 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73805
73806         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73807         convention.  Text proposed by Bruno Haible.
73808         (struct argp_option): Document the use of N_() wrappers.
73809
73810         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73811         '\v', and translate the two parts separately, instead of feeding
73812         the whole string to gettext.  This allows to exclude
73813         '\v' from the strings visible to the translator by writing doc
73814         strings as N_("..") "\v" N_("..").
73815
73816 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         * config/srclist.txt: Undo latest change; the bug was fixed.
73819
73820 2006-09-09  Bruno Haible  <bruno@clisp.org>
73821
73822         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73823         assignments if building a library without libtool.
73824         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73825         in func_emit_lib_Makefile_am.
73826         (func_import): When building a static library libfoo.a, arrange to
73827         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73828         (func_create_testdir): Likewise.
73829         * modules/gc (configure.ac, Makefile.am): If building statically,
73830         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73831         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73832         * modules/striconv (configure.ac, Makefile.am): Likewise.
73833         Based on a suggestion by Ralf Wildenhues.
73834
73835 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73838         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73839         Also:
73840
73841         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73842         Add year_2050_test to catch glibc bug 2821
73843         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73844
73845         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73846         Prefer #ifdef to #if.
73847
73848         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73849         Return from 'main' instead of calling 'exit'.
73850
73851 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73854         returned the maximum time_t value rather than (time_t) -1.
73855         Problem originally reported by William Bardwell
73856         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73857
73858         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73859         Moved to here ...
73860         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73861         ... from here.
73862
73863 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73866         2821 is fixed.
73867
73868 2006-09-08  Jim Meyering  <jim@meyering.net>
73869
73870         Don't make generated files read-only.  That would bother too many
73871         people.  However, do retain the ability to work when targets are
73872         read-only: remove the destination and temporary files before writing
73873         them (when generated via sed or echo), or by using the -f option for
73874         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73875         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73876         * modules/byteswap, modules/configmake, modules/fcntl:
73877         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73878         * modules/localcharset, modules/netinet_in, modules/poll:
73879         * modules/stdbool, modules/stdint, modules/sys_select:
73880         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73881
73882 2006-09-08  Jim Meyering  <jim@meyering.net>
73883
73884         Avoid new build failure on FreeBSD 6.0.
73885         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73886         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73887         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73888
73889 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73890
73891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73892
73893 2006-09-07  Jim Meyering  <jim@meyering.net>
73894
73895         Fix global typo in last change: use chmod u-w, not chmod u-x.
73896         Spotted by Paul Eggert and Bruce Korb.
73897         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73898         * modules/byteswap, modules/configmake, modules/fcntl:
73899         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73900         * modules/localcharset, modules/netinet_in, modules/poll:
73901         * modules/stdbool, modules/stdint, modules/sys_select:
73902         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73903
73904 2006-09-06  Jim Meyering  <jim@meyering.net>
73905
73906         Make generated files be read-only.
73907         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73908         Ensure that each generated file is now read-only.
73909         * modules/argz: Likewise.
73910         * modules/arpa_inet: Likewise.
73911         * modules/byteswap: Likewise.
73912         * modules/configmake: Likewise.
73913         * modules/fcntl: Likewise.
73914         * modules/fnmatch: Likewise.
73915         * modules/getopt: Likewise.
73916         * modules/glob: Likewise.
73917         * modules/inttypes: Likewise.
73918         * modules/netinet_in: Likewise.
73919         * modules/poll: Likewise.
73920         * modules/stdbool: Likewise.
73921         * modules/stdint: Likewise.
73922         * modules/sys_select: Likewise.
73923         * modules/sys_socket: Likewise.
73924         * modules/sys_stat: Likewise.
73925         * modules/sysexits: Likewise.
73926         * modules/localcharset: Same as above, but continue using temporary
73927         file named "t-$@" (why different?) rather than the "$@-t" used
73928         everywhere else.
73929
73930         * modules/sysexits (Makefile.am): Replace literal occurrences
73931         of "sysexit.h" more readable, and more consistent, "$@".
73932
73933 2006-09-06  Bruno Haible  <bruno@clisp.org>
73934
73935         * modules/striconv: New file.
73936         * modules/xstriconv: New file.
73937         * MODULES.html.sh (Internationalization functions): Add striconv,
73938         xstriconv.
73939
73940 2006-09-06  Bruno Haible  <bruno@clisp.org>
73941
73942         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73943         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73944         not using libtool correctly.
73945
73946 2006-09-06  Bruno Haible  <bruno@clisp.org>
73947
73948         * lib/striconv.h: New file.
73949         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73950         iconvstring.c.
73951         * lib/xstriconv.h: New file.
73952         * lib/xstriconv.c: New file.
73953
73954 2006-09-06  Bruno Haible  <bruno@clisp.org>
73955
73956         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73957         lib_..._LDFLAGS.
73958
73959 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73960
73961         * lib/argz_.h: Sync from Libtool.
73962
73963         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73964                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73965
73966         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73967
73968 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73969
73970         * modules/trim: New file.
73971
73972 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73973
73974         * lib/trim.h: New file.
73975         * lib/trim.c: New file.
73976
73977 2006-09-05  Bruno Haible  <bruno@clisp.org>
73978
73979         * MODULES.html.sh (String handling): Add trim.
73980
73981 2006-09-04  Karl Berry  <karl@gnu.org>
73982
73983         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73984         until next release.
73985
73986 2006-09-03  Bruno Haible  <bruno@clisp.org>
73987
73988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73989         correctly.
73990
73991 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73994         not gl_GETLOADAVG.  Omit unneeded semicolons.
73995         Problems reported by Ralf Wildenhues in
73996         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73997         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73998         at the end, which is the usual gnulib style.
73999
74000         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74001         of doing all the work ourselves.
74002         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74003         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74004
74005 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74008         Problem reported by Ralf Wildenhues in
74009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74010
74011         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74012         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74013
74014 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74017         yesterday's patch by changing test -n to test -z.
74018
74019 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74022         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74023         the former is now obsolescent.
74024
74025         * modules/chdir-long (Depends-on): Add fcntl.
74026
74027 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74030         obsolescent, and programs should use gnulib instead.
74031         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74032         but with prefixes changed.
74033
74034 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74037         or stdbool.h, because they might not exist while configuring.
74038
74039         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74040         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74041         does that for us.
74042         (O_DIRECTORY): Remove.
74043
74044 2006-08-31  Eric Blake  <ebb9@byu.net>
74045
74046         * gnulib-tool: Don't let emacs change spaces to TAB.
74047
74048 2006-08-31  Bruno Haible  <bruno@clisp.org>
74049
74050         * gnulib-tool: When calling func_import more than once, do it in a
74051         subshell.
74052         Reported by Eric Blake <ebb9@byu.net>.
74053
74054 2006-08-31  Bruno Haible  <bruno@clisp.org>
74055
74056         * gnulib-tool (nl): Remove variable.
74057         (sed_transform_lib_file): Use more robust test for config-h module.
74058         (func_import): Fix typo in 2006-08-25 patch.
74059
74060 2006-08-31  Bruno Haible  <bruno@clisp.org>
74061
74062         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74063         specified, augment Makefile.am variables instead of assigning them.
74064
74065 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         Work around a bug in both the Linux and SunOS 64-bit kernels:
74068         nanosleep mishandles sleeps for longer than 2**31 seconds.
74069         Problem reported by Frank v Waveren in
74070         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74072         Check for nanosleep bug.
74073         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74074
74075 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         Work around a bug in both the Linux and SunOS 64-bit kernels:
74078         nanosleep mishandles sleeps for longer than 2**31 seconds.
74079         Problem reported by Frank v Waveren in
74080         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74081         * lib/nanosleep.c (BILLION): New constant.
74082         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74083         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74084         implementation.
74085
74086 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         * modules/nanosleep (Depends-on): Add gettime.
74089
74090 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74091         and Simon Josefsson  <jas@extundo.com>
74092         and Oskar Liljeblad  <oskar@osk.mine.nu>
74093
74094         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74095         * gnulib-tool (func_import): New license type 'unmodifiable license
74096         text'.
74097         * modules/fdl: Use it.  Longer description.
74098         * module/gpl, module/lgpl: New files.
74099
74100 2006-08-30  Jim Meyering  <jim@meyering.net>
74101
74102         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74103         shadowing the parameter.
74104
74105 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74106
74107         Sync from Libtool:
74108
74109         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74110
74111         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74112         sharing with gnulib.  Report by Eric Blake.
74113
74114 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * modules/isapipe: New file.
74117         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74118
74119 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         * modules/configmake (Makefile.am): Add a comment, and omit
74122         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74123         by Bruno Haible.
74124
74125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74126
74127         * m4/isapipe.m4: New file.
74128
74129 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74130
74131         * lib/isapipe.c, lib/isapipe.h: New files.
74132
74133 2006-08-29  Jim Meyering  <jim@meyering.net>
74134
74135         * modules/configmake (Makefile.am): Make configmake.h depend on
74136         Makefile.  Otherwise, a stale configmake.h could hang around.
74137
74138 2006-08-29  Eric Blake  <ebb9@byu.net>
74139
74140         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74141         resolution of upstream bug 3044.
74142
74143 2006-08-29  Bruno Haible  <bruno@clisp.org>
74144
74145         * modules/localcharset (Depends-on): Add configmake.
74146         (Makefile.am): Remove setting of LIBDIR through DEFS.
74147
74148 2006-08-29  Bruno Haible  <bruno@clisp.org>
74149
74150         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74151         defined.
74152
74153 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         * modules/fcntl: New file.
74156         * modules/chdir-safer (Depends-on): Add fcntl.
74157         * modules/fts: Likewise.
74158         * modules/mkdir-p: Likewise.
74159
74160         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74161         This undoes the most recent change, since we're now addressing the
74162         problem in a different way.
74163
74164         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74165         into output, since the output might be called Makefile.am even
74166         if $makefile_name is something different.
74167         (func_import): Use $makefile_am rather than
74168         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74169         empty.
74170
74171         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74172
74173 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74176         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74177         recent change to stdint.m4, since we're now addressing the problem in a
74178         different way.
74179
74180 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         * m4/fcntl_h.m4: New file.
74183
74184 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * lib/fcntl_.h: New file.
74187         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74188         the fcntl module.
74189         * lib/dirchownmod.c: Likewise.
74190         * lib/fts.c: Likewise.
74191
74192         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74193         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74194         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74195         just before including <inttypes.h>, to avoid circular inclusion.
74196
74197 2006-08-28  Jim Meyering  <jim@meyering.net>
74198
74199         * doc/visibility.texi: Actually read and correct the grammar of the
74200         sentence affected by yesterday's change.
74201
74202 2006-08-28  Eric Blake  <ebb9@byu.net>
74203
74204         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74205         needs wrapper.
74206
74207 2006-08-28  Eric Blake  <ebb9@byu.net>
74208
74209         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74210
74211 2006-08-28  Eric Blake  <ebb9@byu.net>
74212
74213         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74214
74215 2006-08-28  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/c-strstr: New file, from GNU gettext.
74218         * MODULES.html.sh (String handling): Add c-strstr.
74219
74220 2006-08-28  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74223         macros.
74224         Reported by Eric Blake.
74225
74226 2006-08-28  Bruno Haible  <bruno@clisp.org>
74227
74228         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74229         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74230         * lib/vasprintf.c: Include errno.h, limits.h.
74231         (EOVERFLOW): New fallback definition.
74232         (vasprintf): Test here whether the string length is > INT_MAX.
74233         * lib/vsnprintf.c: Include errno.h, limits.h.
74234         (EOVERFLOW): New fallback definition.
74235         (vsnprintf): Fix bug when generated string was too long for the buffer.
74236         Test here whether the string length is > INT_MAX.
74237
74238 2006-08-28  Bruno Haible  <bruno@clisp.org>
74239
74240         * lib/inttypes_.h (SCNX*): Remove definitions.
74241         Reported by Eric Blake.
74242
74243 2006-08-28  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/c-strstr.h: New file, from GNU gettext.
74246         * lib/c-strstr.c: New file, from GNU gettext.
74247
74248 2006-08-28  Bruno Haible  <bruno@clisp.org>
74249
74250         * gnulib-tool: Reorder some statements.
74251
74252 2006-08-28  Bruno Haible  <bruno@clisp.org>
74253
74254         * gnulib-tool: New option --makefile-name.
74255         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74256         $makefile_name.
74257         (func_import): Write $makefile_name to the cache file, and read it from
74258         there unless explicitly specified. Use $makefile_name as file name
74259         instead of Makefile.am. Adjust the recommendations accordingly.
74260
74261 2006-08-28  Bruno Haible  <bruno@clisp.org>
74262
74263         * gnulib-tool (func_verify_module): Check against misapplying patch.
74264
74265 2006-08-28  Bruno Haible  <bruno@clisp.org>
74266
74267         * gnulib-tool (func_relativize, func_relconcat): New functions.
74268         Give an error if --local-dir is given with --update.
74269         Remove trailing slashes from $local_gnulib_dir.
74270         (func_import): Store the relativized $local_gnulib_dir in
74271         gnulib-cache.m4, and read it from there if not specified explicitly.
74272
74273 2006-08-28  Bruno Haible  <bruno@clisp.org>
74274
74275         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74276         is the current directory. Respect also $local_gnulib_dir.
74277
74278 2006-08-28  Bruno Haible  <bruno@clisp.org>
74279             Simon Josefsson  <jas@extundo.com>
74280
74281         BeOS portability.
74282         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74283
74284 2006-08-27  Jim Meyering  <jim@meyering.net>
74285
74286         * doc/visibility.texi: Remove duplicate word: "pointer".
74287
74288 2006-08-26  Bruno Haible  <bruno@clisp.org>
74289
74290         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74291         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74292         (Makefile.am): Create inttypes.h from inttypes_.h.
74293         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74294
74295         * modules/imaxabs: New file.
74296
74297         * modules/imaxdiv: New file.
74298
74299 2006-08-26  Bruno Haible  <bruno@clisp.org>
74300
74301         * m4/inttypes.m4: New file.
74302         * m4/_inttypes_h.m4: Remove file.
74303         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74304         PRI_MACROS_BROKEN.
74305         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74306
74307         * m4/imaxabs.m4: New file.
74308
74309         * m4/imaxdiv.m4: New file.
74310
74311 2006-08-26  Bruno Haible  <bruno@clisp.org>
74312
74313         * lib/inttypes_.h: New file.
74314         * lib/inttypes.h: Remove file.
74315         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74316
74317         * lib/imaxabs.c: New file.
74318
74319         * lib/imaxdiv.c: New file.
74320
74321 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         New config-h module, so that "make" output needn't be cluttered
74324         by -DHAVE_CONFIG_H.
74325         * MODULES.html.sh (Support for building libraries and executables):
74326         Add config-h.
74327         * modules/config-h: New file.
74328         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74329         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74330         the config-h module is used.
74331
74332         New configmake module, so that "make" output needn't be cluttered
74333         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74334         * MODULES.html.sh (Support for building libraries and executables):
74335         Add configmake.
74336         * modules/configmake: New file.
74337
74338 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * m4/config-h.m4: New file.
74341
74342 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74343
74344         * config/srclist.txt: Add elisp-comp.
74345
74346 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * MODULES.html.sh (Support for building libraries and executables):
74349         Add elisp-comp.
74350         * build-aux/elisp-comp: New file.
74351         * modules/elisp-comp: New file.
74352
74353 2006-08-24  Bruno Haible  <bruno@clisp.org>
74354
74355         * gnulib-tool (func_create_testdir): Use non-default values of
74356         sourcebase and m4base.
74357
74358 2006-08-24  Bruno Haible  <bruno@clisp.org>
74359
74360         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74361         HTML structure.
74362
74363 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74364
74365         * modules/openat (Depends-on): Add lchown.
74366
74367 2006-08-23  Bruno Haible  <bruno@clisp.org>
74368
74369         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74370         of gl_LOCK_EARLY instead of gl_LOCK.
74371
74372 2006-08-23  Bruno Haible  <bruno@clisp.org>
74373
74374         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74375         on OSF/1 to no.
74376         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74377
74378 2006-08-23  Bruno Haible  <bruno@clisp.org>
74379
74380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74381         as unusable.
74382
74383         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74384         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74385         (gl_LOCK): New macro.
74386
74387 2006-08-22  Simon Josefsson  <jas@extundo.com>
74388
74389         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74390         to md5 module.
74391
74392 2006-08-22  Simon Josefsson  <jas@extundo.com>
74393
74394         * MODULES.html.sh: Add "Support for maintaining and release
74395         projects".
74396
74397         * build-aux/gnupload: New file, from coreutils.
74398
74399 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         Avoid the need for AC_LIBSOURCES in m4 macros.
74402         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74403         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74404         * modules/check-version (EXTRA_DIST): Add check-version.h.
74405         * modules/crc (EXTRA_DIST): Add crc.h.
74406         * modules/des (EXTRA_DIST): Add des.h.
74407         * modules/gc (EXTRA_DIST): Add gc.h.
74408         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74409         * modules/getline (EXTRA_DIST): Add getline.h.
74410         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74411         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74412         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74413         * modules/md2 (EXTRA_DIST): Add md2.h.
74414         * modules/md4 (EXTRA_DIST): Add md4.h.
74415         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74416         * modules/read-file (EXTRA_DIST): Add read-file.h.
74417         * modules/readline (EXTRA_DIST): Add readline.h.
74418         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74419         rijndael-api-fst.h.
74420
74421 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74422
74423         * m4/rijndael.m4 (gl_ARCFOUR):
74424         * m4/arctwo.m4 (gl_ARCTWO):
74425         * m4/check-version.m4 (gl_CHECK_VERSION):
74426         * m4/crc.m4 (gl_CRC):
74427         * m4/des.m4 (gl_DES):
74428         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74429         * m4/gc.m4 (gl_GC):
74430         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74431         * m4/getline.m4 (gl_FUNC_GETLINE):
74432         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74433         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74434         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74435         * m4/md2.m4 (gl_MD2):
74436         * m4/md4.m4 (gl_MD4):
74437         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74438         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74439         * m4/readline.m4 (gl_FUNC_READLINE):
74440         * m4/rijndael.m4 (gl_RIJNDAEL):
74441         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74442         to get the necessary .h files and whatnot.
74443
74444 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74447         gnulib rather than the other way around.
74448         * config/srclistvars.sh (COREUTILS): Remove.
74449
74450 2006-08-22  Jim Meyering  <jim@meyering.net>
74451
74452         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74453
74454         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74455
74456 2006-08-22  Eric Blake  <ebb9@byu.net>
74457
74458         * modules/regexprops-generic: New file.
74459         * MODULES.html.sh (Support for building documentation): List it.
74460
74461 2006-08-22  Eric Blake  <ebb9@byu.net>
74462
74463         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74464         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74465         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74466         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74467
74468 2006-08-22  Bruno Haible  <bruno@clisp.org>
74469
74470         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74471         and lib_LTLIBRARIES like the other lib_* variables.
74472
74473 2006-08-22  Bruno Haible  <bruno@clisp.org>
74474
74475         * build-aux/x-to-1.in: New file, from GNU gettext.
74476
74477 2006-08-22  Bruno Haible  <bruno@clisp.org>
74478
74479         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74480         <utmpx.h> exists.
74481
74482 2006-08-22  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74485         <utmpx.h> exists.
74486
74487 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         BeOS portability.
74490         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74491         exist.
74492         Problem reported by Bruno Haible.
74493
74494 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         Avoid the need for AC_LIBSOURCES in m4 macros.
74497         * modules/acl (EXTRA_DIST): Add acl.h.
74498         * modules/argmatch (Files): Add m4/argmatch.m4.
74499         (configure.ac): Add gl_ARGMATCH.
74500         (EXTRA_DIST): Renamed from lib_SOURCES, for
74501         consistency with the other modules.  Remove argmatch.c.
74502         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74503         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74504         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74505         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74506         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74507         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74508         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74509         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74510         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74511         * modules/closeout (EXTRA_DIST): Add closeout.h.
74512         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74513         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74514         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74515         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74516         dirname.h; remove basename.c and stripslash.c.
74517         * modules/exclude (EXTRA_DIST): Add exclude.h.
74518         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74519         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74520         * modules/file-type (EXTRA_DIST): Add file-type.h.
74521         * modules/filemode (EXTRA_DIST): Add filemode.h.
74522         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74523         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74524         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74525         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74526         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74527         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74528         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74529         * modules/getdate (EXTRA_DIST): Add getdate.c.
74530         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74531         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74532         * modules/getpass (EXTRA_DIST): Add getpass.h.
74533         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74534         * modules/group-member (EXTRA_DIST): Add group-member.h.
74535         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74536         * modules/hash (EXTRA_DIST): Add hash.h.
74537         * modules/human (EXTRA_DIST): Add human.h.
74538         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74539         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74540         * modules/lchown (EXTRA_DIST): Add lchown.h.
74541         * modules/long-options (EXTRA_DIST): Add long-options.h.
74542         * modules/lstat (EXTRA_DIST): Add lstat.h.
74543         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74544         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74545         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74546         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74547         * modules/memxor (EXTRA_DIST): Add memxor.h.
74548         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74549         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74550         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74551         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74552         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74553         * modules/physmem (EXTRA_DIST): Add physmem.h.
74554         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74555         * modules/posixver (EXTRA_DIST): Add posixver.h.
74556         * modules/quote (EXTRA_DIST): Add quote.h.
74557         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74558         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74559         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74560         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74561         regex_internal.h regexec.c.
74562         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74563         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74564         * modules/same (EXTRA_DIST): Add same.h.
74565         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74566         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74567         * modules/savedir (EXTRA_DIST): Add savedir.h.
74568         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74569         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74570         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74571         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74572         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74573         * modules/strdup (EXTRA_DIST): Add strdup.h.
74574         * modules/strftime (EXTRA_DIST): Add strftime.h.
74575         * modules/strndup (EXTRA_DIST): Add strndup.h.
74576         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74577         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74578         * modules/time_r (EXTRA_DIST): Add time_r.h.
74579         * modules/timespec (EXTRA_DIST): Add timespec.h.
74580         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74581         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74582         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74583         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74584         * modules/userspec (EXTRA_DIST): Add userspec.h.
74585         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74586         * modules/utimens (EXTRA_DIST): Add utimens.h.
74587         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74588         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74589         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74590         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74591         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74592         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74593         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74594         * modules/yesno (EXTRA_DIST): Add yesno.h.
74595
74596 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74599
74600         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74601         * m4/dev-ino.m4, same-inode.m4: Remove.
74602
74603         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74604         * m4/acl.m4 (AC_FUNC_ACL):
74605         * m4/backupfile.m4 (gl_BACKUPFILE):
74606         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74607         * m4/canon-host.m4 (gl_CANON_HOST):
74608         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74609         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74610         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74611         * m4/cloexec.m4 (gl_CLOEXEC):
74612         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74613         * m4/closeout.m4 (gl_CLOSEOUT):
74614         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74615         * m4/dirname.m4 (gl_DIRNAME):
74616         * m4/exclude.m4 (gl_EXCLUDE):
74617         * m4/exitfail.m4 (gl_EXITFAIL):
74618         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74619         * m4/file-type.m4 (gl_FILE_TYPE):
74620         * m4/filemode.m4 (gl_FILEMODE):
74621         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74622         * m4/fpending.m4 (gl_FUNC_FPENDING):
74623         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74624         * m4/fts.m4 (gl_FUNC_FTS):
74625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74626         * m4/getdate.m4 (gl_GETDATE):
74627         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74628         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74629         * m4/getpass.m4 (gl_FUNC_GETPASS):
74630         * m4/gettime.m4 (gl_GETTIME):
74631         * m4/getugroups.m4 (gl_GETUGROUPS):
74632         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74633         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74634         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74635         * m4/hash.m4 (gl_HASH):
74636         * m4/idcache.m4 (gl_IDCACHE):
74637         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74638         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74639         * m4/long-options.m4 (gl_LONG_OPTIONS):
74640         * m4/lstat.m4 (gl_FUNC_LSTAT):
74641         * m4/md5.m4 (gl_MD5):
74642         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74643         * m4/memcoll.m4 (gl_MEMCOLL):
74644         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74645         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74646         * m4/memxor.m4 (gl_MEMXOR):
74647         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74649         * m4/modechange.m4 (gl_MODECHANGE):
74650         * m4/mountlist.m4 (gl_MOUNTLIST):
74651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74652         * m4/openat.m4 (gl_FUNC_OPENAT):
74653         * m4/pathmax.m4 (gl_PATHMAX):
74654         * m4/physmem.m4 (gl_PHYSMEM):
74655         * m4/posixtm.m4 (gl_POSIXTM):
74656         * m4/posixver.m4 (gl_POSIXVER):
74657         * m4/quote.m4 (gl_QUOTE):
74658         * m4/quotearg.m4 (gl_QUOTEARG):
74659         * m4/readtokens.m4 (gl_READTOKENS):
74660         * m4/readutmp.m4 (gl_READUTMP):
74661         * m4/regex.m4 (gl_REGEX):
74662         * m4/safe-read.m4 (gl_SAFE_READ):
74663         * m4/safe-write.m4 (gl_SAFE_WRITE):
74664         * m4/same.m4 (gl_SAME):
74665         * m4/save-cwd.m4 (gl_SAVE_CWD):
74666         * m4/savedir.m4 (gl_SAVEDIR):
74667         * m4/settime.m4 (gl_SETTIME):
74668         * m4/sha1.m4 (gl_SHA1):
74669         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74670         * m4/stat-macros.m4 (gl_STAT_MACROS):
74671         * m4/stat-time.m4 (gl_STAT_TIME):
74672         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74673         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74674         * m4/strdup.m4 (gl_FUNC_STRDUP):
74675         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74676         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74677         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74678         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74679         * m4/time_r.m4 (gl_TIME_R):
74680         * m4/timespec.m4 (gl_TIMESPEC):
74681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74682         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74683         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74684         * m4/userspec.m4 (gl_USERSPEC):
74685         * m4/utimecmp.m4 (gl_UTIMECMP):
74686         * m4/utimens.m4 (gl_UTIMENS):
74687         * m4/xalloc.m4 (gl_XALLOC):
74688         * m4/xgetcwd.m4 (gl_XGETCWD):
74689         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74690         * m4/xreadlink.m4 (gl_XREADLINK):
74691         * m4/xstrtod.m4 (gl_XSTRTOD):
74692         * m4/yesno.m4 (gl_YESNO):
74693         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74694         to get the necessary .h files and whatnot.
74695
74696 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74697             Bruno Haible  <bruno@clisp.org>
74698
74699         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74700         /bin/sh understanding of '!' conditional negation.
74701
74702 2006-08-21  Jim Meyering  <jim@meyering.net>
74703
74704         * modules/openat (Depends-on): Really alphabetize.
74705
74706         * modules/acl (Depends-on): Add error and quote.
74707
74708         * check-module (find_included_lib_files): Add at-func.c to the
74709         ok-to-include-more-than-once white list.
74710
74711         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74712
74713 2006-08-21  Bruno Haible  <bruno@clisp.org>
74714
74715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74716         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74717         Reported by Martin Lambers <marlam@marlam.de>.
74718
74719 2006-08-21  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74722         specify an installation location, don't emit a noinst_LIBRARIES or
74723         noinst_LTLIBRARIES assignment.
74724
74725 2006-08-21  Bruno Haible  <bruno@clisp.org>
74726
74727         BeOS portability.
74728         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74729         BeOS has mbrtowc() but no <wctype.h>.
74730
74731 2006-08-21  Bruno Haible  <bruno@clisp.org>
74732
74733         BeOS portability.
74734         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74735         exist.
74736
74737 2006-08-21  Bruno Haible  <bruno@clisp.org>
74738
74739         BeOS portability.
74740         * lib/mbchar.h: Include <wctype.h> only if it exists.
74741
74742 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74743
74744         Remove files that are no longer needed by their respective modules.
74745         * m4/obstack.m4: Remove.
74746         * m4/strerror_r.m4: Remove.
74747         * m4/uint32_t.m4: Remove.
74748         * m4/uintptr_t.m4: Remove.
74749         * m4/ullong_max.m4: Remove.
74750         * m4/xstrtoimax.m4: Remove.
74751         * m4/xstrtoumax.m4: Remove.
74752
74753         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74754         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74755         dependencies now capture this.
74756
74757         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74758         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74759         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74760         * m4/human.m4 (gl_HUMAN): Likewise.
74761         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74762         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74763
74764         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74765
74766         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74767         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74768         stdint.
74769         * m4/human.m4 (gl_HUMAN): Likewise.
74770         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74771         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74772         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74773         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74774         * m4/xstrtol (gl_XSTRTOL): Likewise.
74775
74776         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74777         AC_TYPE_LONG_LONG_INT.
74778         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74779         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74780         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74782
74783         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74784         on stdbool.
74785
74786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74787         (gl_PREREQ_XSTRTOUL): Remove.
74788
74789         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74790
74791         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74792         mode.
74793
74794 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         Add and change modules to make it easier for coreutils to use
74797         gnulib-tool.
74798         * modules/backupfile (Files): Remove m4/d-ino.m4.
74799         (Depends-on): Add d-ino.
74800         * modules/cycle-check (Depends-on): Add stdint.
74801         (lib_SOURCES): Add cycle-check.h.
74802         * modules/d-ino: New module.
74803         * modules/d-type: New module.
74804         * modules/error (Files): Remove m4/strerror_r.m4.
74805         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74806         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74807         m4/inttypes_h.m4, m4/uintmax_t.m4.
74808         (Depends-on): Add stdint.
74809         (lib_SOURCES): Add fsusage.h.
74810         * modules/getcwd (Files): Remove d-ino.m4.
74811         (Depends-on): Add d-ino.
74812         * modules/getndelim2 (Depends-on): Add stdint.
74813         * modules/glob (Files): Remove m4/d-type.m4.
74814         (Depends-on): Add d-type.
74815         * modules/host-os: New module.
74816         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74817         m4/inttypes_h.m4, m4/uintmax_t.m4.
74818         * Depends-on: Add stdint.
74819         (lib_SOURCES): Add human.h.
74820         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74821         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74822         m4/uintmax_t.m4, m4/ulonglong.m4.
74823         (Depends-on): Add stdint.
74824         (EXTRA_DIST): Add inttostr.h.
74825         * modules/lchmod: New module.
74826         * modules/link-follow: New module.
74827         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74828         (Depends-on): Add lchmod.
74829         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74830         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74831         (Depends-on): Add stdint.
74832         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74833         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74834         (Depends-on): Add stdint.
74835         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74836         * modules/perl: New module.
74837         * modules/regex (Depends-on): Add stdint.
74838         * modules/rmdir-errno: New module.
74839         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74840         m4/intmax_t.m4.
74841         (Depends-on): Add stdint.
74842         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74843         m4/uintmax_t.m4.
74844         (Depends-on): Add stdint.
74845         * modules/unlink-busy: New module.
74846         * modules/utimecmp (Depends-on): Add stdint.
74847         * modules/uptime: New module.
74848         * modules/winsz-ioctl: New module.
74849         * modules/winsz-termios: New module.
74850         * modules/xnanosleep (Depends-on): Add nanosleep.
74851         * modules/ullong_max: Remove.
74852         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74853         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74854         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74855         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74856         (Depends-on): Add inttypes.
74857         (lib_SOURCES): Add xstrtol.h.
74858         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74859         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74860         * MODULES.html.sh: Move 'assert' into the assert section.
74861         Move 'dummy' into the linking section.
74862         Remove ullong_max.
74863         Add section for compatibility checks for POSIX:2001 functions,
74864         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74865         winsz-ioctl, and winsz-termios into it.
74866         Add lchmod.
74867         Add top-level Misc section and put host-os, perl, and uptime
74868         into it.
74869
74870 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74873         now assume the stdint module.  Do not include inttypes.h.
74874         * lib/fsusage.h: Likewise.
74875         * lib/getndelim2.c: Likewise.
74876         * lib/human.h: Likewise.
74877         * lib/inttostr.h: Likewise.
74878         * lib/obstack.c: Likewise.
74879         * lib/regex_internal.h: Likewise.
74880         * lib/tempname.c: Likewise.
74881         * lib/utimecmp.c: Likewise.
74882         * lib/xstrtol.h: Likewise.
74883
74884         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74885
74886         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74887         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74888         * lib/xtime.h: Likewise.
74889
74890 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * modules/openat (Files): Add lib/fchmodat.c.
74893         Fixes problem reported by Jay Youngman.
74894
74895 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74898         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74899
74900 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74901             Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74904         and is a script that invokes bison. Tighten the code. Add comments.
74905
74906 2006-08-18  Jim Meyering  <jim@meyering.net>
74907
74908         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74909         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74910         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74911         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74912
74913 2006-08-18  Bruno Haible  <bruno@clisp.org>
74914
74915         * modules/bison-i18n: New file.
74916         * MODULES.html.sh (Internationalization functions): Add it.
74917
74918 2006-08-18  Bruno Haible  <bruno@clisp.org>
74919
74920         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74921         sys/statvfs.h. When getmntinfo was found, check its declaration and
74922         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74923
74924 2006-08-18  Bruno Haible  <bruno@clisp.org>
74925
74926         * m4/bison-i18n.m4: New file, from bison.
74927
74928 2006-08-18  Bruno Haible  <bruno@clisp.org>
74929
74930         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74931         (ME_DUMMY): Treat "kernfs" as a dummy.
74932         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74933
74934 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         Update from coreutils.
74937
74938         2006-08-15  Jim Meyering  <jim@meyering.net>
74939
74940         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74941
74942         2006-01-17  Jim Meyering  <jim@meyering.net>
74943
74944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74945
74946         2006-01-11  Jim Meyering  <jim@meyering.net>
74947
74948         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74949         Check for the lchmod function.
74950
74951 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         Update from coreutils.
74954
74955         * lib/__fpending.h: Add copyright notice.
74956         * lib/fprintftime.h: Likewise.
74957         * lib/savedir.c: Use (C) in copyright notice.
74958         * lib/savedir.h: Likewise.
74959
74960         2006-08-15  Jim Meyering  <jim@meyering.net>
74961
74962         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74963         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74964         in support of the EXPECTED_ERRNO macro.
74965         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74966         definitions.  Instead, define the appropriate symbols and include
74967         "at-func.c".
74968         * lib/mkdirat.c (mkdirat): Likewise.
74969         * lib/fchmodat.c (fchmodat): Likewise.
74970         (ENOSYS): Remove definition.
74971         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74972         it.  Don't include "unistd--.h" -- it wasn't ever used.
74973
74974         2006-01-17  Jim Meyering  <jim@meyering.net>
74975
74976         Rewrite fts.c not to change the current working directory,
74977         by using openat, fstatat, fdopendir, etc..
74978
74979         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74980         (HAVE_OPENAT_SUPPORT): Define.
74981         [_LIBC] (fchdir): Don't undef or define; no longer used.
74982         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74983         Now, this `function' always succeeds, and consumes its file descriptor
74984         parameter -- so callers must not close such FDs.  Update callers.
74985         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74986         (diropen): Add parameter, SP.  Adjust all callers.
74987         Implement using diropen_fd, rather than open.
74988         (fts_open): Initialize new member, fts_cwd_fd.
74989         Remove fts_rft-setting code.
74990         (fts_close): Close fts_cwd_fd, if necessary.
74991         (__opendir2): Define in terms of opendir or opendirat,
74992         depending on whether the FST_NOCHDIR flag is set.
74993         (fts_build): Since fts_safe_changedir consumes its FD, and since
74994         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74995         and close the dup'd file descriptor upon failure.
74996         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74997         (fts_safe_changedir): Tweak semantics to reflect that this function
74998         now calls cwd_advance_fd and hence consumes its FD argument.
74999         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75000         [struct FTS] (fts_rft): Remove now-unused member.
75001         [struct FTS] (fts_cycle.state): Improve comment.
75002
75003         * lib/openat.c (openat_needs_fchdir): New function.
75004         * lib/openat.h (openat_needs_fchdir): Declare it.
75005
75006 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75007
75008         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75009         Problem and fix reported by Pádraig Brady in
75010         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75011
75012 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75015
75016 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * lib/memcoll.c (memcoll): Optimize for the common case where the
75019         arguments are bytewise equal.
75020
75021 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * doc/regexprops-generic.texi: Add a copyright notice.
75024
75025 2006-08-15  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/tmpdir (License): Change to LGPL.
75028
75029 2006-08-15  Bruno Haible  <bruno@clisp.org>
75030
75031         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75032         module.
75033
75034 2006-08-14  Simon Josefsson  <jas@extundo.com>
75035
75036         * config/srclist.txt: Add gnupload.
75037
75038 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         Change copyright notice from LGPL 2 to GPL 2, since that's the
75041         standard form used in the gnulib repository.
75042         * tests/test-lock.c: Likewise.
75043         * tests/test-stdint.c: Likewise.
75044         * tests/test-tls.c: Likewise.
75045
75046         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75047         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75048         Add copyright notice.
75049
75050         * check-module: Add copyright notice.  Output a copyright
75051         notice if "--version" is specified.
75052         * modules/COPYING: New file.
75053         * tests/test-getaddrinfo.c: Add copyright notice.
75054         * tests/test-verify.c: Likewise.
75055
75056 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         Change copyright notice from LGPL 2 to GPL 2, since that's the
75059         standard form used in the gnulib repository.
75060         * lib/lock.c: LGPL -> GPL.
75061         * lib/lock.h: Likewise.
75062         * lib/strnlen1.c: Likewise.
75063         * lib/strnlen1.h: Likewise.
75064         * lib/tls.c: Likewise.
75065         * lib/tls.h: Likewise.
75066         * lib/tmpdir.c: Likewise.
75067
75068         * lib/TODO: Remove; this belongs only in coreutils.
75069
75070 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         Add copyright notices to long-enough files that lack them, since
75073         otherwise the files aren't clearly free.  Use the same notice that
75074         getdate.texi already uses.
75075         * doc/alloca-opt.texi: Add copyright notice.
75076         * doc/alloca.texi: Likewise.
75077         * doc/ctime.texi: Likewise.
75078         * doc/functions.texi: Likewise.
75079         * doc/gcd.texi: Likewise.
75080         * doc/gnulib-tool.texi: Likewise.
75081         * doc/inet_ntoa.texi: Likewise.
75082         * doc/visibility.texi: Likewise.
75083
75084         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75085         * doc/quote.texi: Add copyright notice.
75086
75087         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75088         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75089         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75090         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75091         is now obsolete, and give a pointer to the Sun list.
75092         Add copyright notice.
75093
75094 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75095
75096         * config/srclistvars.sh: Add copyright notice.
75097
75098 2006-08-14  Eric Blake  <ebb9@byu.net>
75099
75100         Import the following change from libc:
75101
75102         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75103
75104         Upstream bug 2997.
75105         * lib/misc/error.c: Add space between program name and message if file
75106         name is missing.
75107
75108 2006-08-12  Karl Berry  <karl@gnu.org>
75109
75110         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75111         remove, these originate in gnulib now.
75112
75113 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75114
75115         * doc/Makefile (standards.info standards.html standards.dvi):
75116         Also depend on make-stds.texi.
75117
75118 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75121         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75122
75123         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75124         in wchar_t.  Problem reported by Eric Blake.
75125
75126         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75127         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75128         Also, help the compiler to keep LEN in a register.
75129
75130 2006-08-11  Eric Blake  <ebb9@byu.net>
75131
75132         * users.txt: Sort.  Add tar.
75133
75134 2006-08-11  Bruno Haible  <bruno@clisp.org>
75135
75136         * users.txt: New file.
75137
75138 2006-08-11  Bruno Haible  <bruno@clisp.org>
75139
75140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75141         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75142
75143 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * modules/snprintf (Depends-on): Remove minmax.
75146         (Maintainer): Add self and Bruno.
75147
75148 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75151         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75152         (EOVERFLOW): Define if the system does not.
75153         Do not include "minmax.h"; it wasn't used.
75154         (snprintf): Don't assume size_t promotes to an unsigned type.
75155         Fix bug when generated string was too long for the buffer: the
75156         buffer's contents are supposed to be the initial prefix of the
75157         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75158         exceeds INT_MAX; do the check ourselves.
75159
75160         Import the following changes from libc:
75161
75162         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75163
75164         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75165         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75166         set wc to the byte which couldn't be converted.
75167         (re_string_reconstruct): Don't clear valid_raw_len before calling
75168         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75169         tip_context using re_string_context_at.
75170
75171         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75172
75173         * lib/posix/regex.h: g++ still cannot handled [restrict].
75174
75175         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75176
75177         * lib/posix/regex.h: Remove special handling for VMS.
75178
75179 2006-08-10  Jim Meyering  <jim@meyering.net>
75180
75181         * modules/same-inode: New module.
75182         * modules/dev-ino: New module.
75183         * modules/cycle-check: Depend on these modules, rather than simply
75184         including their .h files.
75185         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75186         required via m4/cycle-check.m4.
75187         * modules/same: Depend on new same-inode module, rather than
75188         including same-inode.h.
75189         * modules/chdir-safer: New file.
75190
75191         * modules/chown (Depends-on): Add stat-macros.
75192
75193 2006-08-10  Jim Meyering  <jim@meyering.net>
75194
75195         * m4/cycle-check.m4: New file.
75196         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75197         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75198
75199 2006-08-10  Eric Blake  <ebb9@byu.net>
75200
75201         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75202         in from original proposal.
75203
75204 2006-08-10  Eric Blake  <ebb9@byu.net>
75205         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75206
75207         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75208         namespace.
75209
75210 2006-08-10  Bruno Haible  <bruno@clisp.org>
75211
75212         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75213         as well.
75214
75215 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         Sync from coreutils.
75218
75219         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75220
75221         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75222         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75223
75224 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         * modules/restrict: Remove; no longer needed now that we assume
75227         Autoconf 2.59 or later.
75228         * MODULES.html.sh: Remove 'restrict'.
75229         * modules/argp (Depends-on): Remove 'restrict'.
75230         * modules/base64 (Depends-on): Likewise.
75231         * modules/gc (Depends-on): Likewise.
75232         * modules/getaddrinfo (Depends-on): Likewise.
75233         * modules/glob (Depends-on): Likewise.
75234         * modules/inet_ntop (Depends-on): Likewise.
75235         * modules/inet_pton (Depends-on): Likewise.
75236         * modules/memxor (Depends-on): Likewise.
75237         * modules/regex (Depends-on): Likewise.
75238         * modules/strtok_r (Depends-on): Likewise.
75239         * modules/time_r (Depends-on): Likewise.
75240
75241 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75244         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75245         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75246         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75247         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75248         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75249         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75250         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75251
75252         Merge from coreutils.
75253         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75254         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75255         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75256         * m4/time_r.m4 (gl_TIME_R): Likewise.
75257
75258 2006-08-09  Karl Berry  <karl@gnu.org>
75259
75260         * config/srclist.txt: no more gettext-tools, per Bruno.
75261
75262 2006-08-08  Eric Blake  <ebb9@byu.net>
75263
75264         * modules/verror: New module.
75265         * MODULES.html.sh: Document it.
75266
75267 2006-08-08  Eric Blake  <ebb9@byu.net>
75268
75269         * lib/verror.h, lib/verror.c: New files.
75270
75271 2006-08-08  Eric Blake  <ebb9@byu.net>
75272
75273         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75274         verror_at_line output complies with GNU Coding Standards even when
75275         file is NULL.
75276
75277 2006-08-07  Bruno Haible  <bruno@clisp.org>
75278
75279         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75280         versions of AIX.
75281         Reported by Ralf Wildenhues.
75282
75283 2006-08-07  Bruno Haible  <bruno@clisp.org>
75284
75285         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75286         in an AC_DEFUN. Needed so that the autoconf snippets can use
75287         AC_REQUIRE.
75288
75289 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75290
75291         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75292         Initialize pkgdata_DATA.
75293         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75294         overriding it.
75295
75296 2006-08-06  Eric Blake  <ebb9@byu.net>
75297
75298         * lib/error.h: Fold in some upstream changes from glibc.
75299         * lib/error.c: Likewise.
75300
75301 2006-08-04  Bruno Haible  <bruno@clisp.org>
75302
75303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75304         Make the mostlyclean-local rule depend on mostlyclean-generic.
75305         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75306
75307 2006-07-31  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75310         <stdlib.h>, <string.h>.
75311
75312 2006-07-30  Bruno Haible  <bruno@clisp.org>
75313
75314         * modules/readlink (License): Change to LGPL.
75315
75316 2006-07-30  Bruno Haible  <bruno@clisp.org>
75317
75318         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75319         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75320         set PKGDATADIR to point to it.
75321
75322 2006-07-30  Bruno Haible  <bruno@clisp.org>
75323
75324         * modules/csharpexec (configure.ac): Comment out macro invocation.
75325         * modules/javaexec (configure.ac): Likewise.
75326         * modules/javacomp-script (configure.ac): Likewise.
75327
75328         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75329
75330 2006-07-30  Bruno Haible  <bruno@clisp.org>
75331
75332         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75333         linked-list.
75334
75335 2006-07-30  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75338
75339 2006-07-30  Bruno Haible  <bruno@clisp.org>
75340
75341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75342         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75343         get removed.
75344
75345 2006-07-29  Bruno Haible  <bruno@clisp.org>
75346
75347         Make it possible for gnulib-tool to work with locally modified or
75348         augmented gnulib repositories.
75349         * gnulib-tool (func_usage): Document --local-dir option.
75350         (local_gnulib_dir): New variable.
75351         Handle --local-dir option.
75352         (func_lookup_file): New function.
75353         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75354         (func_get_description, func_get_filelist, func_get_description,
75355         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75356         func_get_automake_snippet, func_get_include_directive,
75357         func_get_license, func_get_maintainer): Use func_lookup_file.
75358         (func_import, func_create_testdir): Use func_lookup_file.
75359
75360 2006-07-29  Bruno Haible  <bruno@clisp.org>
75361
75362         * modules/setenv (Depends-on): Add unistd.
75363
75364 2006-07-29  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75367
75368 2006-07-29  Bruno Haible  <bruno@clisp.org>
75369
75370         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75371
75372 2006-07-29  Bruno Haible  <bruno@clisp.org>
75373
75374         * gnulib-tool (import, update): If there is no Makefile.am, look at
75375         aclocal.m4, instead of bailing out.
75376
75377 2006-07-29  Bruno Haible  <bruno@clisp.org>
75378
75379         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75380         Categorize the options by when they are useful.
75381
75382 2006-07-29  Bruno Haible  <bruno@clisp.org>
75383
75384         * gnulib-tool (func_usage): Document option --no-libtool.
75385         Handle option --no-libtool.
75386         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75387         for changed semantics of $libtool variable.
75388         (func_import): Likewise. If libtool is not used, show this through
75389         an option --no-libtool.
75390         (func_create_testdir): Update.
75391
75392 2006-07-29  Bruno Haible  <bruno@clisp.org>
75393
75394         * gnulib-tool (func_import): Extend error message about missing
75395         --doc-base.
75396
75397 2006-07-29  Bruno Haible  <bruno@clisp.org>
75398
75399         * gnulib-tool (func_import): Don't create the $docbase directory if
75400         there is no file to store there.
75401
75402 2006-07-29  Bruno Haible  <bruno@clisp.org>
75403
75404         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75405         relevant, look for configure.ac there, not in the current directory.
75406         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75407
75408 2006-07-29  Bruno Haible  <bruno@clisp.org>
75409
75410         * gnulib-tool (SORT): New variable.
75411         (func_usage): Undocument --assume-autoconf option.
75412         Remove --assume-autoconf option handling.
75413         (autoconf_minversion): Determine from the contents of configure.ac.
75414         (func_import): Remove autoconf_minversion handling.
75415         Suggested by Eric Blake.
75416
75417 2006-07-29  Bruno Haible  <bruno@clisp.org>
75418
75419         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75420
75421 2006-07-29  Bruno Haible  <bruno@clisp.org>
75422
75423         * config/srclist.txt (*setenv.[ch]): Remove rules.
75424
75425 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75426
75427         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75428
75429 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75430
75431         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75432         arpa/inet.h.
75433
75434 2006-07-28  Simon Josefsson  <jas@extundo.com>
75435
75436         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75437         * modules/inet_pton (Depends-on): Likewise.
75438
75439 2006-07-28  Simon Josefsson  <jas@extundo.com>
75440
75441         * m4/netinet_in_h.m4: New file.
75442
75443 2006-07-28  Simon Josefsson  <jas@extundo.com>
75444
75445         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75446         #include's.
75447
75448 2006-07-28  Simon Josefsson  <jas@extundo.com>
75449
75450         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75451         #include's.
75452
75453 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75454
75455         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75456         setgid on directories only if they set these bits.
75457         * lib/modechange.h: Remove obsolete comment about masks.
75458
75459 2006-07-28  Eric Blake  <ebb9@byu.net>
75460
75461         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75462         macro expansion.
75463
75464 2006-07-28  Bruno Haible  <bruno@clisp.org>
75465
75466         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75467
75468 2006-07-28  Bruno Haible  <bruno@clisp.org>
75469
75470         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75471
75472 2006-07-28  Bruno Haible  <bruno@clisp.org>
75473
75474         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75475         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75476         Define fallbacks.
75477         Avoids link error on FreeBSD 4.x.
75478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75479
75480         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75481         encoding.
75482         * lib/mbswidth.c (iswcntrl): Likewise.
75483
75484 2006-07-27  Bruno Haible  <bruno@clisp.org>
75485
75486         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75487         test.
75488
75489 2006-07-27  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75492         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75493         defined.
75494
75495 2006-07-26  Eric Blake  <ebb9@byu.net>
75496
75497         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75498
75499 2006-07-26  Eric Blake  <ebb9@byu.net>
75500
75501         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75502         like mingw that lack mkstemp.
75503         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75504         avoid compilation warning on mingw.
75505
75506 2006-07-26  Bruno Haible  <bruno@clisp.org>
75507
75508         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75509         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75510         INT_FAST*_MIN, INTPTR_MIN.
75511
75512 2006-07-25  Bruno Haible  <bruno@clisp.org>
75513
75514         * modules/version-etc (Depends-on): Add stdarg.
75515
75516 2006-07-25  Bruno Haible  <bruno@clisp.org>
75517
75518         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75519         complex commands.
75520
75521 2006-07-25  Bruno Haible  <bruno@clisp.org>
75522
75523         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75524         defined in <stdarg.h> or config.h.
75525
75526 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75529         (gl_STDIO_SAFER): Remove.
75530
75531 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * MODULES.html.sh (File stream based Input/Output):
75534         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75535         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75536         * modules/fopen-safer, modules/tmpfile-safer: New files.
75537         * modules/stdio-safer: Remove.
75538
75539 2006-07-24  Bruno Haible  <bruno@clisp.org>
75540
75541         * modules/tmpdir: New file.
75542         * MODULES.html.sh (File system functions): Add it.
75543
75544 2006-07-24  Bruno Haible  <bruno@clisp.org>
75545
75546         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75547         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75548
75549 2006-07-24  Bruno Haible  <bruno@clisp.org>
75550
75551         * modules/clean-temp: New file.
75552
75553 2006-07-24  Bruno Haible  <bruno@clisp.org>
75554
75555         * m4/tmpdir.m4: New file, from GNU gettext.
75556
75557 2006-07-24  Bruno Haible  <bruno@clisp.org>
75558
75559         * lib/tmpdir.h: New file, from GNU gettext.
75560         * lib/tmpdir.c: New file, from GNU gettext.
75561
75562 2006-07-24  Bruno Haible  <bruno@clisp.org>
75563
75564         * lib/clean-temp.h: New file, from GNU gettext.
75565         * lib/clean-temp.c: New file, from GNU gettext.
75566
75567 2006-07-23  Eric Blake  <ebb9@byu.net>
75568
75569         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75570         (Depends-on): Add binary-io.
75571
75572 2006-07-23  Eric Blake  <ebb9@byu.net>
75573
75574         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75575
75576 2006-07-23  Eric Blake  <ebb9@byu.net>
75577
75578         * lib/tmpfile-safer.c: New file.
75579         * lib/stdio-safer.h (fopen_safer): Add prototype.
75580         * lib/stdio--.h (tmpfile): Make safer.
75581
75582 2006-07-23  Bruno Haible  <bruno@clisp.org>
75583
75584         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75585         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75586         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75587         gl_linked_remove_at): Use it.
75588
75589 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75590         and Simon Josefsson <jas@extundo.com>
75591
75592         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75593
75594         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75595
75596 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * modules/close-stream: New file.
75599         * modules/closeout (Description): Make it clear that it exits
75600         with a diagnostic on error.
75601         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75602         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75603
75604 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         * m4/close-stream.m4: New file.
75607
75608 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * lib/close-stream.c, lib/close-stream.h: New files.
75611
75612 2006-07-22  Bruno Haible  <bruno@clisp.org>
75613
75614         Merge from GNU gettext 0.15.
75615
75616         2006-05-01  Bruno Haible  <bruno@clisp.org>
75617
75618                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75619
75620         2006-07-22  Bruno Haible  <bruno@clisp.org>
75621
75622                 * modules/javaversion: New file.
75623                 * MODULES.html.sh (Java): Add javaversion.
75624
75625         2006-03-12  Bruno Haible  <bruno@clisp.org>
75626
75627                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75628
75629         2005-12-04  Bruno Haible  <bruno@clisp.org>
75630
75631                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75632                 (untested).
75633
75634         2006-06-21  Bruno Haible  <bruno@clisp.org>
75635
75636                 Avoid warnings from recent versions of mcs.
75637                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75638                 -o, -L, -r any more. Use options documented since mcs-1.0
75639                 instead. Similarly for -g.
75640
75641         2005-12-04  Bruno Haible  <bruno@clisp.org>
75642
75643                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75644                 .resources, not .resource.
75645
75646         2005-07-09  Bruno Haible  <bruno@clisp.org>
75647
75648                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75649                 add a .dll suffix.
75650                 Reported by Mark Junker <mjscod@gmx.de>.
75651
75652         2006-07-22  Bruno Haible  <bruno@clisp.org>
75653
75654                 * modules/gettext: Upgrade to gettext-0.15.
75655                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75656                 m4/visibility.m4.
75657                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75658
75659 2006-07-22  Bruno Haible  <bruno@clisp.org>
75660
75661         Merge from GNU gettext 0.15.
75662
75663         2006-03-25  Bruno Haible  <bruno@clisp.org>
75664
75665                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75666
75667         2006-07-21  Bruno Haible  <bruno@clisp.org>
75668
75669                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75670                 "1.1".
75671
75672         2006-05-09  Bruno Haible  <bruno@clisp.org>
75673
75674                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75675                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75676                 for the conftestver execution.
75677
75678         2006-05-01  Bruno Haible  <bruno@clisp.org>
75679
75680                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75681                 optional target-version argument. Verify that the compiler
75682                 groks source of the specified source-version, or add -source
75683                 option as necessary. Verify that the compiler produces
75684                 bytecode in the specified target-version, or add -target and
75685                 -source options as necessary. Make the result of the test
75686                 available as variable CONF_JAVAC. Also log error output in
75687                 config.log.
75688
75689         2006-03-11  Bruno Haible  <bruno@clisp.org>
75690
75691                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75692
75693         2006-05-09  Bruno Haible  <bruno@clisp.org>
75694
75695                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75696                 CLASSPATH_SEPARATOR to a semicolon.
75697
75698         2006-03-12  Bruno Haible  <bruno@clisp.org>
75699
75700                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75701                 available as variable CONF_JAVA, for subsequent autoconf
75702                 tests. Also log error output in config.log.
75703
75704         2006-07-19  Bruno Haible  <bruno@clisp.org>
75705
75706                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75707                 that getline works on glibc2 systems. Needed to avoid trouble
75708                 in relocatable.c.
75709                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75710
75711         2005-12-04  Bruno Haible  <bruno@clisp.org>
75712
75713                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75714                 launcher (untested).
75715
75716         2005-12-04  Bruno Haible  <bruno@clisp.org>
75717
75718                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75719
75720         2006-07-22  Bruno Haible  <bruno@clisp.org>
75721
75722                 * gettext.m4: Update from GNU gettext-0.15.
75723                 * nls.m4: Likewise.
75724                 * po.m4: Likewise.
75725                 * inttypes-pri.m4: Likewise.
75726                 * inttypes-h.m4: Renamed from inttypes.m4.
75727                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75728
75729 2006-07-22  Bruno Haible  <bruno@clisp.org>
75730
75731         Merge from GNU gettext 0.15.
75732
75733         2005-07-05  Bruno Haible  <bruno@clisp.org>
75734
75735                 * printf-args.c (printf_fetchargs): Work around broken
75736                 definition of wint_t on mingw.
75737
75738         2005-02-12  Bruno Haible  <bruno@clisp.org>
75739
75740                 * xallocsa.h: Add extern "C" for C++.
75741
75742         2006-05-17  Bruno Haible  <bruno@clisp.org>
75743
75744                 Cygwin portability.
75745                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75746
75747         2006-04-30  Bruno Haible  <bruno@clisp.org>
75748
75749                 * progreloc.c: Include <mach-o/dyld.h> if available.
75750                 (find_executable): Use _NSGetExecutablePath when possible.
75751
75752         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75753
75754                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75755                 function.
75756
75757         2005-12-29  Bruno Haible  <bruno@clisp.org>
75758
75759                 * progreloc.c (set_program_name_and_installdir): Fix
75760                 compilation error.
75761
75762         2005-12-04  Bruno Haible  <bruno@clisp.org>
75763
75764                 Cygwin portability.
75765                 * progreloc.c: Include <windows.h> also on Cygwin.
75766                 (find_executable): Add support for Cygwin.
75767                 (set_program_name_and_installdir): Handle also platforms with
75768                 nonempty EXEEXT.
75769
75770         2006-07-11  Bruno Haible  <bruno@clisp.org>
75771
75772                 * javacomp.c: Fix a comment.
75773                 Reported by Jim Meyering.
75774
75775         2006-04-30  Bruno Haible  <bruno@clisp.org>
75776
75777                 * javacomp.h (compile_java_class): Add source_version,
75778                 target_version arguments.
75779                 * javacomp.c: Rewritten to choose only a compiler that
75780                 respects the specified source_version and target_version.
75781
75782         2006-06-27  Bruno Haible  <bruno@clisp.org>
75783
75784                 Assume correct S_ISDIR macro.
75785                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75786
75787         2006-07-22  Bruno Haible  <bruno@clisp.org>
75788
75789                 * javaversion.h: New file, from GNU gettext.
75790                 * javaversion.c: New file, from GNU gettext.
75791                 * javaversion.java: New file, from GNU gettext.
75792                 * javaversion.class: New file, from GNU gettext.
75793
75794         2006-05-17  Bruno Haible  <bruno@clisp.org>
75795
75796                 Cygwin portability.
75797                 * javaexec.c (execute_java_class): Test for jview program
75798                 also on Cygwin.
75799
75800         2006-04-09  Bruno Haible  <bruno@clisp.org>
75801
75802                 * fatal-signal.c: Don't include string.h.
75803                 (at_fatal_signal): Use a copying loop instead of memcpy.
75804
75805         2005-12-04  Bruno Haible  <bruno@clisp.org>
75806
75807                 * csharpexec.c: Add support for 'clix' launcher (untested).
75808                 (execute_csharp_using_sscli): New function.
75809                 (execute_csharp_program): Call it.
75810
75811         2006-06-21  Bruno Haible  <bruno@clisp.org>
75812
75813                 Avoid warnings from recent versions of mcs.
75814                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75815                 -o, -L, -r any more. Use options documented since mcs-1.0
75816                 instead. Similarly for -g.
75817
75818         2005-07-09  Bruno Haible  <bruno@clisp.org>
75819
75820                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75821                 add a .dll suffix.
75822                 Reported by Mark Junker <mjscod@gmx.de>.
75823
75824         2006-06-17  Bruno Haible  <bruno@clisp.org>
75825
75826                 * config.charset: Update for NetBSD 3.0.
75827
75828         2006-05-17  Bruno Haible  <bruno@clisp.org>
75829
75830                 Cygwin portability.
75831                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75832
75833         2006-05-16  Bruno Haible  <bruno@clisp.org>
75834
75835                 * localcharset.c [CYGWIN]: Include <windows.h>.
75836                 (get_charset_aliases): For Cygwin, return the same CPxxx
75837                 aliases list as under WIN32.
75838                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75839                 the environment variables. Fall back to GetACP().
75840
75841         2006-04-05  Bruno Haible  <bruno@clisp.org>
75842
75843                 * config.charset: Update Juan Manuel Guerrero's address.
75844
75845         2005-02-12  Bruno Haible  <bruno@clisp.org>
75846
75847                 * allocsa.h: Add extern "C" for C++.
75848
75849         2005-02-10  Bruno Haible  <bruno@clisp.org>
75850
75851                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75852                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75853
75854         2006-07-22  Bruno Haible  <bruno@clisp.org>
75855
75856                 * gettext.h: Update to GNU gettext-0.15.
75857
75858 2006-07-22  Bruno Haible  <bruno@clisp.org>
75859
75860         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75861         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75862         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75863
75864 2006-07-21  Eric Blake  <ebb9@byu.net>
75865
75866         * modules/stdlib-safer: New file.
75867         * MODULES.html.sh (File stream based Input/Output): Add
75868         stdlib-safer.
75869
75870 2006-07-21  Eric Blake  <ebb9@byu.net>
75871
75872         * lib/stdlib-safer.h: New file from coreutils, required by
75873         stdlib--.h.
75874
75875 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75878
75879 2006-07-20  Bruno Haible  <bruno@clisp.org>
75880
75881         * gnulib-tool: Recognize new option --assume-autoconf.
75882         (autoconf_minversion): New variable.
75883         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75884
75885 2006-07-20  Bruno Haible  <bruno@clisp.org>
75886
75887         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75888
75889 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75890
75891         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75892         Reindent and repaginate.
75893
75894 2006-07-19  Derek Price  <derek@ximbiot.com>
75895
75896         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75897         Correct grammar.
75898
75899 2006-07-17  Bruno Haible  <bruno@clisp.org>
75900
75901         * modules/list: New file.
75902         * modules/array-list: New file.
75903         * modules/carray-list, modules/carray-list-tests: New files.
75904         * modules/linked-list, modules/linked-list-tests: New files.
75905         * modules/avltree-list, modules/avltree-list-tests: New files.
75906         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75907         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75908         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75909         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75910         * modules/oset: New file.
75911         * modules/array-oset: New file.
75912         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75913         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75914         * tests/test-carray_list.c: New file.
75915         * tests/test-linked_list.c: New file.
75916         * tests/test-avltree_list.c: New file.
75917         * tests/test-rbtree_list.c: New file.
75918         * tests/test-linkedhash_list.c: New file.
75919         * tests/test-avltreehash_list.c: New file.
75920         * tests/test-rbtreehash_list.c: New file.
75921         * tests/test-avltree_oset.c: New file.
75922         * tests/test-rbtree_oset.c: New file.
75923         * MODULES.html.sh (Container data structures): New section.
75924
75925 2006-07-17  Bruno Haible  <bruno@clisp.org>
75926
75927         * m4/gl_list.m4: New file.
75928
75929 2006-07-17  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/gl_list.h: New file.
75932         * lib/gl_list.c: New file.
75933         * lib/gl_array_list.h: New file.
75934         * lib/gl_array_list.c: New file.
75935         * lib/gl_carray_list.h: New file.
75936         * lib/gl_carray_list.c: New file.
75937         * lib/gl_linked_list.h: New file.
75938         * lib/gl_linked_list.c: New file.
75939         * lib/gl_anylinked_list1.h: New file.
75940         * lib/gl_anylinked_list2.h: New file.
75941         * lib/gl_avltree_list.h: New file.
75942         * lib/gl_avltree_list.c: New file.
75943         * lib/gl_anyavltree_list1.h: New file.
75944         * lib/gl_anyavltree_list2.h: New file.
75945         * lib/gl_rbtree_list.h: New file.
75946         * lib/gl_rbtree_list.c: New file.
75947         * lib/gl_anyrbtree_list1.h: New file.
75948         * lib/gl_anyrbtree_list2.h: New file.
75949         * lib/gl_anytree_list1.h: New file.
75950         * lib/gl_anytree_list2.h: New file.
75951         * lib/gl_linkedhash_list.h: New file.
75952         * lib/gl_linkedhash_list.c: New file.
75953         * lib/gl_anyhash_list1.h: New file.
75954         * lib/gl_anyhash_list2.h: New file.
75955         * lib/gl_avltreehash_list.h: New file.
75956         * lib/gl_avltreehash_list.c: New file.
75957         * lib/gl_rbtreehash_list.h: New file.
75958         * lib/gl_rbtreehash_list.c: New file.
75959         * lib/gl_anytreehash_list1.h: New file.
75960         * lib/gl_anytreehash_list2.h: New file.
75961
75962         * lib/gl_oset.h: New file.
75963         * lib/gl_oset.c: New file.
75964         * lib/gl_array_oset.h: New file.
75965         * lib/gl_array_oset.c: New file.
75966         * lib/gl_avltree_oset.h: New file.
75967         * lib/gl_avltree_oset.c: New file.
75968         * lib/gl_rbtree_oset.h: New file.
75969         * lib/gl_rbtree_oset.c: New file.
75970         * lib/gl_anytree_oset.h: New file.
75971
75972 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * m4/mkancesdirs.m4: New file.
75975         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75976         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75977         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75978         it.
75979
75980 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75983         * lib/mkancesdirs.h: New files.
75984         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75985         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75986         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75987         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75988         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75989         callers changed.  Revamp internals significantly, by not
75990         attempting to create directories that are temporarily more
75991         permissive than the final results.  Do not attempt to use
75992         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75993         This removes some race conditions, fixes some bugs, and simplifies
75994         things.  Use new dirchownmod function to do owner and mode changes.
75995         * lib/mkdir-p.h: Likewise.
75996         * lib/modechange.c (octal_to_mode): New function.
75997         (struct mode_change): New member mentioned.
75998         (make_node_op_equals): New arg mentioned.  All callers changed.
75999         (mode_compile): Keep track of which mode bits the user has explicitly
76000         mentioned.
76001         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76002         New arg PMODE_BITS, to keep track of which mode bits the user
76003         mentioned; it treats S_ISUID and S_ISGID speciall.
76004         All callers changed.
76005         * lib/modechange.h: Likewise.
76006
76007 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * MODULES.html.sh: Add mkancestors.
76010         * modules/mkancesdirs: New module.
76011         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76012         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76013         The chdir-safer and afs files are now orphans; I'll remove them
76014         unless someone speaks up.
76015         Add lib/dirchownmod.c, lib/dirchownmod.h.
76016         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76017         Add lchown, mkancesdirs.
76018         (Maintainer): Add self.
76019
76020 2006-07-15  Karl Berry  <karl@gnu.org>
76021
76022         * gnulib-tool: help message wording/arrangement.
76023
76024 2006-07-14  Simon Josefsson  <jas@extundo.com>
76025
76026         * doc/gnulib.texi (Libtool and Windows): New section.
76027
76028 2006-07-12  Simon Josefsson  <jas@extundo.com>
76029
76030         * modules/gendocs (License): Fix license, approved by Karl.
76031
76032 2006-07-12  Eric Blake  <ebb9@byu.net>
76033
76034         * MODULES.html.sh: Add gendocs.
76035
76036 2006-07-11  Eric Blake  <ebb9@byu.net>
76037
76038         * modules/fdl: New module, to install doc/fdl.texi.
76039         * MODULES.html.sh: Add new section for documentation modules.
76040         * gnulib-tool: Avoid space-tab.
76041         (--doc-base): New option, to manage files from doc.
76042
76043 2006-07-11  Eric Blake  <ebb9@byu.net>
76044
76045         * m4/absolute-header.m4: Fix comments to match recent change.
76046
76047 2006-07-11  Eric Blake  <ebb9@byu.net>
76048
76049         * gnulib-tool: List --doc-base before --tests-base.
76050
76051 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76052
76053         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76054
76055 2006-07-11  Bruno Haible  <bruno@clisp.org>
76056
76057         * README: Mention where to put documentation.
76058
76059 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76060
76061         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76062
76063 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76066         to stdint.m4.
76067
76068 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76069
76070         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76071         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76072         "no/such/file/stdint.h" when there is no such file, so that
76073         the resulting C code can be parsed by dodgy compilers.
76074         Problems reported by Bob Proulx.
76075
76076 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76077
76078         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76079         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76080         macros into the GNU _D_EXACT_NAMLEN.
76081         * lib/savedir.c:  Likewise.
76082         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76083
76084 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76085         and Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76088         * m4/savedir.m4:
76089         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76090         macros into the GNU _D_EXACT_NAMLEN.
76091
76092 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76095         around the absolute name, to work around a problem with the HP-UX
76096         11.23 native C compiler, reported by Bob Proulx.
76097
76098 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * doc/maintain.texi, make-stds.texi: Sync from
76101         <http://savannah.gnu.org/projects/gnustandards>.
76102
76103 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76106
76107 2006-07-09  Jim Meyering  <jim@meyering.net>
76108
76109         * m4/glob.m4: Remove a doubled word in a comment.
76110
76111 2006-07-09  Jim Meyering  <jim@meyering.net>
76112
76113         * lib/argp-pv.c: Remove a doubled word in a comment.
76114         * lib/check-version.c (check_version): Likewise.
76115         * lib/javacomp.c (compile_java_class): Likewise.
76116
76117 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76120         for the benefit of people using Autoconf 2.60.  If you want to
76121         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76122         (or m4/onceonly.m4, if pre-2.57) manually.
76123
76124 2006-07-08  Jim Meyering  <jim@meyering.net>
76125
76126         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76127         comment.
76128         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76129         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76130         comment.
76131
76132 2006-07-08  Jim Meyering  <jim@meyering.net>
76133
76134         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76135
76136 2006-07-07  Simon Josefsson  <jas@extundo.com>
76137
76138         * tests/test-crc.c: Change expected crc value, the test vector
76139         were probably computed using the old broken crc.c?
76140
76141 2006-07-06  Simon Josefsson  <jas@extundo.com>
76142
76143         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76144         now the canonical place for the M4 file).
76145
76146         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76147         from the sys_socket dependency now.
76148
76149         * modules/inet_pton (Files): Ditto.
76150
76151         * modules/inet_ntop (Files): Ditto.
76152
76153 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76154
76155         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76156         not gl_PREREQ_GETUSERSHELL.
76157
76158 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76159
76160         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76161         with only one argument, for Autoconf 2.60.
76162         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76163         expand to nothing, so add a shell command to avoid syntax error.
76164         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76165
76166 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76167
76168         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76169
76170 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76173         no longer needed.  Check for isblank decl.
76174         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76175         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76176         of existence.
76177
76178 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/getloadavg.c: Use __VMS, not VMS.
76181         * lib/getopt.c: Likewise.
76182         * lib/getpagesize.h: Likewise.
76183         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76184         and probably does not work.
76185
76186 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * lib/.cppi-disable: Add wcwidth.
76189         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76190         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76191         (ISGRAPH): Remove.  All uses changed to isgraph.
76192         (FOLD) [!defined _LIBC]: Remove special case.
76193         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76194         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76195         HAVE_ISBLANK.
76196         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76197         case.
76198
76199 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76200
76201         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76202         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76203         brackets.  Other minor changes to suppress some compiler
76204         warnings.
76205
76206 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76207         and Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76210         of invoking obsolescent AC_HEADER_DIRENT macro.
76211         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76212         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76213         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76214         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76215         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76216         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76217         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76218         * m4/readdir.m4: Remove; no longer needed.
76219
76220 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76221         and Paul Eggert  <eggert@cs.ucla.edu>
76222
76223         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76224         Don't worry about this obsolete case any more.
76225         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76226         directories.
76227         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76228         worry about this obsolete case any more.
76229         * lib/fts.c: Likewise.
76230         * lib/getcwd.c: Likewise.
76231         * lib/glob.h: Likewise.
76232         * lib/savedir.c: Likewise.
76233
76234 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76237         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76238         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76239         needed.
76240         All uses removed.
76241         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76242         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76243         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76244         needed.
76245         * m4/getdate.m4 (gl_GETDATE): Likewise.
76246         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76247         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76248         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76249         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76250         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76251         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76252         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76253         needed.
76254
76255 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * lib/memcasecmp.c: Include <limits.h>.
76258         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76259         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76260         Don't assume isdigit succeeds only on '0' through '9'.
76261
76262 2006-07-05  Eric Blake  <ebb9@byu.net>
76263
76264         * modules/getaddrinfo (Depends-on): Add snprintf.
76265
76266 2006-07-05  Eric Blake  <ebb9@byu.net>
76267
76268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76269         to avoid 'header present but could not be compiled' on cygwin.
76270
76271 2006-07-05  Eric Blake  <ebb9@byu.net>
76272
76273         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76274         missing from netdb.h.
76275         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76276
76277 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76278
76279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76280         no longer needed.
76281         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76282         * m4/getdate.m4 (gl_GETDATE): Likewise.
76283         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76284         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76285         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76286         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76287         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76288
76289 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76290
76291         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76292         All uses of is_space replaced by isspace.
76293         * lib/exit.h: Don't talk about STDC_HEADERS.
76294         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76295         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76296         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76297         replaced by isprint etc.
76298         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76299         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76300         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76301         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76302         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76303         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76304
76305 2006-07-05  Bruno Haible  <bruno@clisp.org>
76306
76307         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76308         the function exists, before testing against AIX.
76309         Reported by Martin Lambers <marlam@marlam.de>.
76310
76311 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76314         From Mark D. Baushke.
76315
76316 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76317
76318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76319         to the absolute name, not just one, to bypass Sun C 5.8's
76320         "warning: #include of /usr/include/... may be non-portable".
76321
76322 2006-07-04  Eric Blake  <ebb9@byu.net>
76323
76324         * modules/dirname-tests: New test module.
76325         * tests/test-dirname.c: New file, replacing dirname.c
76326         TEST_DIRNAME section that was recently deleted.
76327
76328 2006-07-04  Bruno Haible  <bruno@clisp.org>
76329
76330         Assume ANSI C header files and <ctype.h> functions.
76331         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76332         (mbsnwidth): Use isprint, iscntrl instead.
76333
76334 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         Merge from coreutils.
76337         * MODULES.html.sh: Add xstrtold.
76338         * modules/xstrtold: New file.
76339         * modules/cycle-check (Files): Add lib/same-inode.h.
76340         * modules/dirname (Files): Add m4/double-slash-root.m4.
76341         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76342         * modules/mkdir-p (Files): Add lib/same-inode.h.
76343         * modules/same (Files): Add lib/same-inode.h.
76344
76345 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76348         This is to keep the terminology clean; POSIX talks about
76349         "absolute pathnames", not "full pathnames", but the GNU
76350         Coding Standards say to use "path" for something else;
76351         so use "absolute" to keep both sides happy.
76352         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76353         Set gl_absolute_header, not gl_full_header_path.
76354         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76355         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76356         All uses changed.
76357
76358         Merge from coreutils.
76359
76360         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76361
76362         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76363         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76364         want to require the building of c-strtod.o.
76365         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76366         needs -lm directly.
76367         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76368
76369         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76372         --as-needed option if available.  Problem reported by Albert Chin in
76373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76374         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76375         cc merely issues a bunch of annoying warnings for --as-needed
76376         (this problem was reported by Bob Proulx).  Also, try linking with
76377         -lm to detect a bug in binutils 2.16 (this problem was reported
76378         by Ralf Wildenhues).
76379
76380         2006-06-18  Jim Meyering  <jim@meyering.net>
76381
76382         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76383         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76384         macro.
76385         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76386         also check for glibc-2.4's abort-inducing bug.
76387
76388         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76389         Low-probability clean-up should be to use rmdir to get rid of
76390         the just-created directory, not unlink.
76391
76392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76393         configure fail, and request a bug report to inform us about it.
76394         Add a comment that, barring reports to the contrary, in 2007 we'll
76395         assume ftruncate is universally available.
76396
76397         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76400
76401         2006-03-12  Jim Meyering  <jim@meyering.net>
76402
76403         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76404         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76405         * m4/same.m4 (gl_SAME): Likewise.
76406         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76407
76408         2006-03-11  Eric Blake  <ebb9@byu.net>
76409
76410         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76411         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76412         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76413         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76414
76415 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76418         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76419         reported by Mark D. Baushke, one in
76420         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76421
76422         Merge from coreutils.
76423
76424         * lib/.cppi-disable: Add stdint_.h.
76425         * lib/.cvsignore: Add stdint.h.
76426
76427         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76430         both double and long double versions.
76431         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76432         * lib/xstrtold.c: New file.
76433         * lib/xstrtod.h (xstrtold): New decl.
76434
76435         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * lib/filemode.c (setst): Remove.
76438         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76439         (arguably) clearer, and the generated code is a bit smaller on my
76440         Debian GNU/Linux stable x86 host.
76441
76442         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76443
76444         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76445         Assume that filemode.h includes sys/types.h and sys/stat.h.
76446         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76447         (ftypelet): Reorder to put common cases first, for efficiency.
76448         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76449         to do 'M'.
76450         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76451         of 10, for compatibility with FreeBSD.  All callers changed.
76452         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76453         types that can't be deduced solely from st_mode.  First arg is now a
76454         const pointer.
76455         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76456         (strmode): Renamed from mode_string.
76457         (filemodestring): New decl.
76458         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76459         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76460         needed.
76461         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76462
76463         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76466         fsusage.h now does that.  Include fsusage.h first, to test interface.
76467         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76468         at most one method (the old code could have generated decls that
76469         didn't conform to C89, not that this was ever exercised).
76470         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76471
76472         2006-03-19  Jim Meyering  <jim@meyering.net>
76473
76474         Work even in a chroot where d_ino values for entries in "/"
76475         don't match the stat.st_ino values for the same names.
76476         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76477         number, iterate through all entries again, using lstat instead.
76478         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76479         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76480
76481         * lib/getcwd.c (__getcwd): Clarify a comment.
76482         Use memcpy in place of a call to strcpy.
76483
76484         2006-03-12  Jim Meyering  <jim@meyering.net>
76485
76486         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76487         matches that of the current directory (which we're about to chdir ".."
76488         out of), then save the dev-ino of the parent, instead.
76489
76490         * lib/same-inode.h (SAME_INODE): New file/macro.
76491         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76492         Include "same-inode.h", instead.
76493         * lib/same.c: Likewise.
76494         * lib/cycle-check.h: Include "same-inode.h".
76495         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76496         * lib/cycle-check.c (SAME_INODE): Remove definition.
76497         * lib/root-dev-ino.h: Include "same-inode.h".
76498
76499         2006-03-11  Eric Blake  <ebb9@byu.net>
76500
76501         * lib/same.c (same_name): s/base_name/last_component/
76502         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76503         * lib/filenamecat.c (file_name_concat): Likewise.
76504
76505         2006-03-11  Eric Blake  <ebb9@byu.net>,
76506                     Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76509         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76510         drive prefix.
76511         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76512         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76513         (last_component): New method.
76514         * lib/dirname.c (dir_len): Determine when drive letters need a
76515         subsequent slash.  Preserve // when it is special.
76516         (dir_name): Don't append dot when drive letter is absolute.
76517         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76518         * lib/basename.c (base_name): New semantics - malloc the result.
76519         Preserve // when it is special.  Preserve relative files that look
76520         like drive letters.
76521         (base_len): Preserve // when it is special.
76522         (last_component): New method, similar to old base_name semantics.
76523         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76524         base_name.  Strip redundant slashes from ///.
76525
76526 2006-07-03  Jim Meyering  <jim@meyering.net>
76527
76528         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76529         macro is used before the first cycle_check call.
76530
76531 2006-07-03  Eric Blake  <ebb9@byu.net>
76532
76533         * modules/dirname (Depends-on): Add xstrndup.
76534
76535 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76538         test cases, so that config.log is a bit easier to follow.
76539
76540 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76543         both are 64 bits, since this seems to be the tradition, and this
76544         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76545         we ever run into a host that prefers long long to long in this
76546         case, we'll need another configure-time test.  Problem reported by
76547         Jim Meyering.
76548
76549 2006-07-02  Eric Blake  <ebb9@byu.net>
76550
76551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76552
76553 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * modules/inttypes (Depends-on): No longer depends on stdint.
76556         * modules/stdint (Description): Say more about assumptions.
76557         Say that the fast types might differ.  Say macros are used.
76558         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76559         (Makefile.am): Revise list of substituted symbols to match
76560         new stdint.m4.
76561         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76562         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76563         * tests/test-stdint.c (verify_same_types)
76564         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76565         the code conforms to C99/C89.
76566         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76567         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76568
76569 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76572         but fix a bug, by requiring at least 64 bits.
76573         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76574         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76575         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76576         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76577
76578         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76579         changes.  Make 2.59 a prerequisite.  Check and substitute for
76580         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76581         inttypes.h.  Do not use special include files; just use the
76582         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76583         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76584         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76585         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76586         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76587         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76588         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76589         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76590         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76591         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76592         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76593         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76594         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76595         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76596         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76597         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76598         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76599         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76600         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76601         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76602         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76603         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76604         not check for things that C99 does not require, e.g., int8_t.  If
76605         a test isn't needed unless <stdint.h> isn't working, and is
76606         unlikely to be needed for any other reason, then don't do it
76607         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76608         size_t, since we assume C89 freestanding at least.  Do not check
76609         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76610         the right thing even if the types are not defined.  Instead use:
76611         (gl_STDINT_TYPE_PROPERTIES): New macro.
76612         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76613         testing whether <sys/types.h> clashes, as Autoconf does this for
76614         us now.  All uses removed.
76615         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76616         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76617         (gl_CHECK_TYPE_SAME):
76618         Remove; no longer needed.
76619         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76620         exists, since we'll return 0 anyway in that case.
76621         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76622
76623 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76626         possible collision with system files.
76627         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76628         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76629         WCHAR_MIN and WCHAR_MAX in this case.
76630         (<stddef.h>): Do not include; no longer needed.
76631         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76632         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76633         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76634         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76635         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76636         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76637         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76638         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76639         !defined(__c99))]: Include in this case too, since it's harmless
76640         now.
76641         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76642         dangerous to do so.
76643         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76644         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76645         (_STDINT_MIN, _STDINT_MAX): New macros.
76646         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76647         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76648         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76649         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76650         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76651         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76652         macros, not typedefs; this simplifies things quite a bit.
76653         Use long int for all types narrower than int64_t.
76654         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76655         Define in terms of long long int or int64_t or long int,
76656         not int64_t or int32_t.  This saves some compile-time testing.
76657         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76658         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76659         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76660         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76661         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76662         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76663         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76664         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76665         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76666         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76667         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76668         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76669         undef any previous version and define our own version, for
76670         simplicity and consistency with the new macros for types.
76671         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76672         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76673         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76674         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76675         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76676         @WINT_T_SUFFIX@ to keep things simple here.
76677         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76678         Simplify by assuming typical 8/16/32/64 host, since we're
76679         already doing that elsewhere anyway.
76680         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76681         and assume long long int is 64 bits if available.  This
76682         speeds up 'configure'.
76683
76684 2006-07-01  Eric Blake  <ebb9@byu.net>
76685
76686         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76687         Reported by Andreas Buening.
76688
76689 2006-07-01  Eric Blake  <ebb9@byu.net>
76690
76691         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76692
76693 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76694
76695         * lib/getaddrinfo.c: fixed typo
76696
76697 2006-06-29  Jim Meyering  <jim@meyering.net>
76698
76699         * modules/strftime (Maintainer): Add my name, since with the
76700         FPRINTFTIME changes strftime.c has forked from glibc.
76701
76702 2006-06-29  Eric Blake  <ebb9@byu.net>
76703
76704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76705
76706 2006-06-29  Eric Blake  <ebb9@byu.net>
76707
76708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76709
76710 2006-06-29  Eric Blake  <ebb9@byu.net>
76711
76712         * lib/stat_.h: New file.
76713
76714 2006-06-29  Eric Blake  <ebb9@byu.net>
76715
76716         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76717         unused static function.
76718
76719 2006-06-29  Eric Blake  <ebb9@byu.net>
76720
76721         * doc/functions.texi (Function Portability): Document missing lstat
76722         on mingw.
76723
76724 2006-06-29  Eric Blake  <ebb9@byu.net>
76725
76726         * MODULES.html.sh: Add sys_stat.
76727         * modules/sys_stat: New module.
76728         * modules/mkstemp (Depends-on): Add sys_stat.
76729
76730 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76731
76732         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76733
76734 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76735
76736         * m4/c-bs-a.m4: Removed.
76737
76738 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76739
76740         * lib/strftime.c: Assume strftime() exists.
76741
76742 2006-06-29  Derek Price  <derek@ximbiot.com>
76743
76744         * modules/c-bs-a: Removed - \a is C89.
76745         * MODULES.html.sh: Remove c-bs-a.
76746
76747 2006-06-29  Bruno Haible  <bruno@clisp.org>
76748
76749         * modules/wcwidth (License): Change to LGPL.
76750
76751 2006-06-28  Simon Josefsson  <jas@extundo.com>
76752
76753         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76754         on _WIN32.
76755
76756         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76757         getnameinfo.
76758
76759 2006-06-28  Simon Josefsson  <jas@extundo.com>
76760
76761         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76762
76763 2006-06-28  Simon Josefsson  <jas@extundo.com>
76764
76765         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76766         functions there.  It will succeed on Windows XP, but on Windows
76767         2000 and (presumably) earlier, it will fail, and use the internal
76768         re-implementation.
76769         (use_win32_p): New function.
76770         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76771         Support AI_NUMERICSERV to disable getservbyname.
76772         (getnameinfo): New function, only supports
76773         NI_NUMERICHOST|NI_NUMERICSERV for now.
76774
76775         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76776         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76777         getnameinfo.
76778
76779 2006-06-28  Eric Blake  <ebb9@byu.net>
76780
76781         * modules/wcwidth: New file.
76782         * modules/mbchar (Depends-on): Add wcwidth.
76783         * modules/mbswidth (Depends-on): Add wcwidth.
76784         * MODULES.html.sh: Add wcwidth.
76785
76786 2006-06-28  Eric Blake  <ebb9@byu.net>
76787
76788         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76790
76791 2006-06-28  Eric Blake  <ebb9@byu.net>
76792
76793         * lib/xvasprintf.h: Fix comments.
76794
76795 2006-06-28  Eric Blake  <ebb9@byu.net>
76796
76797         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76798         * lib/mbswidth.c (wcwidth): Move from here...
76799         * lib/wcwidth.h: ...to this new file.
76800
76801 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76802
76803         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76804
76805         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76806         it's obsolete.
76807         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76808
76809 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76810
76811         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76812         Autoconf 2.60 says this stuff was obsolete.
76813
76814 2006-06-28  Bruno Haible  <bruno@clisp.org>
76815
76816         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76817
76818 2006-06-28  Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76821         gt_TYPE_WCHAR_T.
76822
76823 2006-06-28  Bruno Haible  <bruno@clisp.org>
76824
76825         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76826         declaration for wcwidth.
76827         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76828
76829 2006-06-28  Bruno Haible  <bruno@clisp.org>
76830
76831         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76832         (mkdir): Define using _mkdir.
76833
76834 2006-06-28  Bruno Haible  <bruno@clisp.org>
76835
76836         * lib/getaddrinfo.h: Fix POSIX URL.
76837         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76838         _WIN32.
76839         (use_win32_p): Make static.
76840         (getaddrinfo): Reject service name if it is empty or does not consist
76841         solely of decimal digits, or if its value is > 65535.
76842         (getnameinfo): Remove useless casts.
76843
76844 2006-06-27  Simon Josefsson  <jas@extundo.com>
76845
76846         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76847         Eggert and Martin Lambers.
76848
76849 2006-06-27  Simon Josefsson  <jas@extundo.com>
76850
76851         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76852         Eggert and Martin Lambers.
76853
76854 2006-06-27  Bruno Haible  <bruno@clisp.org>
76855
76856         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76857         result to 0, not to empty.
76858         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76859
76860 2006-06-27  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76863
76864 2006-06-26  Simon Josefsson  <jas@extundo.com>
76865
76866         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76867         present.
76868
76869 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76872         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76874
76875 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76876
76877         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76878
76879 2006-06-26  Bruno Haible  <bruno@clisp.org>
76880
76881         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76882
76883 2006-06-26  Bruno Haible  <bruno@clisp.org>
76884
76885         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76886
76887 2006-06-26  Bruno Haible  <bruno@clisp.org>
76888
76889         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76890         SGI C compiler in pre-C99 mode.
76891         Suggested by Mark D. Baushke and Larry Jones.
76892
76893 2006-06-26  Bruno Haible  <bruno@clisp.org>
76894
76895         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76896         WCHAR_MAX.
76897         Reported by Mark D. Baushke and Larry Jones.
76898
76899 2006-06-26  Bruno Haible  <bruno@clisp.org>
76900
76901         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76902         in pre-C99 mode.
76903         Suggested by Mark D. Baushke and Larry Jones.
76904
76905 2006-06-23  Simon Josefsson  <jas@extundo.com>
76906             Bruno Haible  <bruno@clisp.org>
76907
76908         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76909         Emit mostlyclean-local rule.
76910         (func_emit_tests_Makefile_am): Likewise.
76911         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76912
76913 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76914
76915         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76916
76917 2006-06-23  Bruno Haible  <bruno@clisp.org>
76918
76919         * tests/test-stdint.c: Update to match ISO C 99 Technical
76920         Corrigendum 1.
76921
76922 2006-06-23  Bruno Haible  <bruno@clisp.org>
76923
76924         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76925
76926 2006-06-23  Bruno Haible  <bruno@clisp.org>
76927
76928         * lib/stdint_.h: Treat IRIX like OpenBSD.
76929
76930 2006-06-23  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76933         ISO C 99 Technical Corrigendum 1.
76934
76935 2006-06-22  Simon Josefsson  <jas@extundo.com>
76936
76937         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76938         MinGW.
76939
76940 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76943         needed.  Some compiler complained about some of them.  Problem reported
76944         by Larry Jones in
76945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76946
76947 2006-06-21  Simon Josefsson  <jas@extundo.com>
76948
76949         * tests/test-getaddrinfo.c: New file.
76950
76951         * modules/getaddrinfo-tests: New file.
76952
76953         * MODULES.html.sh: Add inet_pton.
76954
76955         * modules/inet_pton: New file.
76956
76957 2006-06-21  Simon Josefsson  <jas@extundo.com>
76958
76959         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76960         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76961         of using the (limited) gnulib implementation on Windows XP.
76962
76963         * m4/inet_pton.m4: New file.
76964
76965 2006-06-21  Simon Josefsson  <jas@extundo.com>
76966
76967         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76968         variable.
76969
76970         * lib/socket_.h: Don't define WINVER.
76971
76972         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76973         slightly modified to work in gnulib.
76974
76975 2006-06-21  Simon Josefsson  <jas@extundo.com>
76976
76977         * doc/gnulib.texi (Windows sockets): Add.
76978
76979 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * lib/read-file.c (fread_file): Start with buffer allocation of
76982         0 bytes rather than 1 byte; this simplifies the code.
76983         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76984         code to free buffer and save/restore errno.
76985         (internal_read_file): Remove unused local.
76986
76987 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76990         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76991         Problem reported by Denis Excoffier in
76992         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76993
76994 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76995
76996         * modules/sys_socket, modules/socklen: Include sys/types since
76997         FreeBSD 4.x's sys/socket.h needs it.
76998
76999 2006-06-19  Simon Josefsson  <jas@extundo.com>
77000
77001         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77002
77003 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77006
77007 2006-06-19  Bruno Haible  <bruno@clisp.org>
77008
77009         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77010         and FULL_PATH_INTTYPES_H in angle brackets.
77011         Reported by Mark D. Baushke <mdb@gnu.org>.
77012
77013 2006-06-17  Eric Blake  <ebb9@byu.net>
77014
77015         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77016         errno.
77017
77018 2006-06-17  Bruno Haible  <bruno@clisp.org>
77019
77020         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77021         <sys/inttypes.h>.
77022
77023 2006-06-17  Bruno Haible  <bruno@clisp.org>
77024
77025         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77026         whether errno is declared. Assume <errno.h> declares errno.
77027
77028 2006-06-17  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77031
77032 2006-06-17  Bruno Haible  <bruno@clisp.org>
77033
77034         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77035         problem on Solaris 2.5.1.
77036
77037 2006-06-16  Eric Blake  <ebb9@byu.net>
77038
77039         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77040         * lib/unicodeio.c [!defined errno]: Likewise.
77041         * lib/strtol.c [!defined errno]: Likewise.
77042         * lib/strtod.c [!defined errno]: Likewise.
77043
77044 2006-06-15  Eric Blake  <ebb9@byu.net>
77045
77046         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77047
77048 2006-06-15  Eric Blake  <ebb9@byu.net>
77049
77050         * config/srclist.txt (ssize_t.m4): Lose sync.
77051
77052 2006-06-15  Bruno Haible  <bruno@clisp.org>
77053
77054         * modules/stdint (Files): Include m4/full-header-path.m4,
77055         m4/size_max.m4, m4/wchar_t.m4.
77056         (Makefile.am): Many more substitutions.
77057         * modules/stdint-tests: New file.
77058         * tests/test-stdint.c: New file.
77059
77060 2006-06-15  Bruno Haible  <bruno@clisp.org>
77061
77062         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77063         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77064         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77065         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77066         gl_CHECK_TYPE_SAME): New macros.
77067
77068 2006-06-15  Bruno Haible  <bruno@clisp.org>
77069
77070         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77071
77072 2006-06-15  Bruno Haible  <bruno@clisp.org>
77073
77074         * lib/stdint_.h: Rewritten to be fully auto-configured.
77075         Fixes bug on HP-UX/IA64.
77076
77077 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * lib/getdate.y (__attribute__): Don't define if already defined.
77080         Problem reported by Larry Jones.
77081         * lib/utimens.c (__attribute__): Likewise.
77082
77083 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77086         reported by Andreas Schwab.
77087
77088 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77089             Bruno Haible  <bruno@clisp.org>
77090
77091         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77092         check for the declaration of strnlen and a run test that exposes the
77093         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77094         rpl_strndup.
77095
77096 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77097             Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77100
77101 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77102
77103         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77104         compile test, for Tru64 4.0D.
77105
77106 2006-05-28  Karl Berry  <karl@gnu.org>
77107
77108         * config/srclist.txt (printf-args.c): lose sync.
77109
77110 2006-05-26  Martin Lambers  <marlam@marlam.de>
77111
77112         * lib/getpass.c: Updates the test for the native W32 API, and adds
77113         missing includes, thus fixing compilation warnings.
77114
77115 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77116
77117         * lib/exclude.c (exclude_fnmatch): New function.
77118         (excluded_file_name): Call exclude_fnmatch.
77119         * lib/exclude.h (excluded_file_name): New prototype
77120
77121 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * lib/tempname.c (small_open, large_open): New macros.
77124         (__open, __open64) [!_LIBC]: Remove.
77125         (__gen_tempname): Use small_open and large_open instead of __open
77126         and __open64.  This fixes a portability bug on HP-UX 11.11i
77127         reported by Simon Wing-Tang in
77128         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77129
77130 2006-05-24  Bruno Haible  <bruno@clisp.org>
77131
77132         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77133         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77134         Reported by Thorsten Maerz <torte@netztorte.de> via
77135         Aaron Stone <aaron@serendipity.cx>.
77136
77137 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77140         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77141         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77142         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77143         not really conditional on the cache.
77144         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77145
77146 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77149         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77150         (my_usleep): Don't mishandle maximum value.
77151
77152 2006-05-19  Jim Meyering  <jim@meyering.net>
77153
77154         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77155
77156 2006-05-17  Bruno Haible  <bruno@clisp.org>
77157
77158         Cygwin portability.
77159         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77160
77161 2006-05-17  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/stdint_.h: Fix recognition of Cygwin.
77164
77165 2006-05-15  Bruno Haible  <bruno@clisp.org>
77166
77167         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77168         on libtool patch by Ralf Wildenhues.
77169
77170 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77171
77172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77173         test for C99 conformance; (bool) 0.5 is an integer constant
77174         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77175         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77176
77177 2006-05-11  Simon Josefsson  <jas@extundo.com>
77178
77179         * m4/xvasprintf.m4: Fix obvious typo.
77180
77181 2006-05-11  Jim Meyering  <jim@meyering.net>
77182
77183         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77184         James Lemley.
77185
77186 2006-05-10  Simon Josefsson  <jas@extundo.com>
77187
77188         * lib/md4.c: Typo fix, update copyright years.
77189         (K1, K2): Don't use L because it turn computations into 64-bit on
77190         64-bit platforms.
77191
77192 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77195         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77196         unwanted sign propagation, e.g., on hosts with 64-bit int.
77197         There still are some problems with reeelly weird theoretical hosts
77198         (e.g., 33-bit int) but it's not worth worrying about now.
77199         * lib/sha1.c (rol): Likewise.
77200         (K1, K2, K3, K4): Remove unnecessary L suffix.
77201
77202 2006-05-10  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/des.c: Cast to avoid warnings.
77205
77206 2006-05-09  Bruno Haible  <bruno@clisp.org>
77207
77208         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77209         (Depends-on): Depend also on xsize, stdarg.
77210         (configure.ac): Add gl_XVASPRINTF.
77211
77212 2006-05-09  Bruno Haible  <bruno@clisp.org>
77213
77214         * m4/xvasprintf.m4: New file.
77215
77216 2006-05-09  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77219         (EOVERFLOW): Define fallback value.
77220         (xstrcat): New function.
77221         (xvasprintf): Recognize the special case of a string concatenation.
77222
77223 2006-05-08  Eric Blake  <ebb9@byu.net>
77224
77225         * gnulib-tool (func_version): Base copyright year on CVS date.
77226         (func_emit_copyright_notice): New function.
77227         (func_emit_lib_Makefile_am): Use it.
77228         (func_emit_tests_Makefile_am): Likewise.
77229         (func_import): Likewise.
77230
77231 2006-05-08  Bruno Haible  <bruno@clisp.org>
77232
77233         * modules/stdarg: New file.
77234         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77235
77236 2006-05-08  Bruno Haible  <bruno@clisp.org>
77237
77238         * m4/stdarg.m4: New file, from GNU gettext.
77239
77240 2006-05-08  Bruno Haible  <bruno@clisp.org>
77241
77242         * config/srclist.txt (build-aux/config.rpath): different from latest
77243         release.
77244
77245 2006-05-08  Bruno Haible  <bruno@clisp.org>
77246
77247         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77248
77249 2006-05-05  Jim Meyering  <jim@meyering.net>
77250
77251         * m4/warning.m4: New file, derived from bison's file by the same name.
77252
77253 2006-05-03  Bruno Haible  <bruno@clisp.org>
77254
77255         * lib/stdint_.h: Shorter URL.
77256         * lib/inttypes.h: Likewise.
77257
77258 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77259
77260         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77261
77262 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/verify.h: Document the internals better.  Most of this change
77265         was written by Bruno Haible.
77266
77267 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * doc/verify.texi: New file, partly based on a proposal by
77270         Bruno Haible.
77271
77272 2006-05-02  Bruno Haible  <bruno@clisp.org>
77273
77274         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77275         test from here...
77276         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77277
77278 2006-04-29  Bruno Haible  <bruno@clisp.org>
77279
77280         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77281         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77282
77283 2006-04-29  Bruno Haible  <bruno@clisp.org>
77284
77285         * gnulib-tool: Make --update option actually work.
77286
77287 2006-04-29  Bruno Haible  <bruno@clisp.org>
77288
77289         * doc/gcd.texi: New file.
77290         * doc/gnulib.texi: Include it.
77291
77292 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77293
77294         * lib/getdate.y (get_date): When adding relative date, start with the
77295         initial time, not with the result of the first mktime call.
77296
77297 2006-04-25  Bruno Haible  <bruno@clisp.org>
77298
77299         * gnulib-tool (func_import): Output the include directives in three
77300         blocks, sorted separately.
77301         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77302
77303 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77306         to define main with arguments, for C++.  Reported by Eric Blake.
77307         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77308         Prefer 'int main ()' to 'int main (void)', for C++.
77309         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77310         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77311         for 'main', for C99 and C++.
77312
77313 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77314
77315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77316         Don't assume that exit status -1 is valid.
77317         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77318         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77319         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77320         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77321         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77322         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77323         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77324         functions can be used without declaring them, or that you can
77325         exit with status -1.
77326         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77327
77328 2006-04-24  Karl Berry  <karl@gnu.org>
77329
77330         * config/srclist.txt (longdouble.m4): sync lost.
77331
77332 2006-04-24  Eric Blake  <ebb9@byu.net>
77333
77334         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77335
77336 2006-04-24  Bruno Haible  <bruno@clisp.org>
77337
77338         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77339         poll() implementation in AIX.
77340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77341
77342 2006-04-24  Bruno Haible  <bruno@clisp.org>
77343
77344         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77345         assigned exactly once.
77346
77347 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77348             Bruno Haible  <bruno@clisp.org>
77349
77350         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77351         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77352         for AM_CPPFLAGS.
77353
77354 2006-04-23  Bruno Haible  <bruno@clisp.org>
77355
77356         * modules/copy-file: Depend on unistd.
77357         * modules/execute: Likewise.
77358         * modules/fatal-signal: Likewise.
77359         * modules/findprog: Likewise.
77360         * modules/mkdtemp : Likewise.
77361         * modules/pipe: Likewise.
77362         * modules/wait-process: Likewise.
77363
77364 2006-04-23  Bruno Haible  <bruno@clisp.org>
77365
77366         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77367         condition was already detected.
77368         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77369
77370 2006-04-23  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/copy-file.c: Include <unistd.h> unconditionally.
77373         * lib/execute.c: Likewise.
77374         * lib/fatal-signal.c: Likewise.
77375         * lib/findprog.c: Likewise.
77376         * lib/mkdtemp.c: Likewise.
77377         * lib/pipe.h: Likewise.
77378         * lib/pipe.c: Likewise.
77379         * lib/wait-process.h: Likewise.
77380
77381 2006-04-23  Bruno Haible  <bruno@clisp.org>
77382
77383         * gnulib-tool (func_usage): Fix --import description. Document
77384         --update.
77385         (func_import): Create temporary file in a temporary directory, if
77386         --dry-run is specified. Silence errors from 'grep' when there are no
77387         m4 files in $m4dir.
77388         (func_create_testdir): Silence errors from 'grep' when there are no
77389         m4 files in $m4dir.
77390         Reported by Karl Berry <karl@freefriends.org>.
77391
77392 2006-04-20  Bruno Haible  <bruno@clisp.org>
77393
77394         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77395         one argument, so that the code will be portable to Autoconf 2.60.
77396         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77397         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77398         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77399
77400 2006-04-19  Derek Price  <derek@ximbiot.com>
77401             Eric Blake  <ebb9@byu.net>
77402
77403         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77404         rather than "/full/path.h".  Update comment to match.  Shorten &
77405         generalize m4_translit call via AS_TR_CPP.
77406
77407 2006-04-19  Derek Price  <derek@ximbiot.com>
77408             Eric Blake  <ebb9@byu.net>
77409
77410         * lib/inttypes.h: Correct grammar in comment.
77411
77412 2006-04-18  Derek Price  <derek@ximbiot.com>
77413             Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * modules/inttypes: New file.
77416         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77417
77418 2006-04-18  Derek Price  <derek@ximbiot.com>
77419             Paul Eggert  <eggert@cs.ucla.edu>
77420
77421         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77422         New files.
77423
77424 2006-04-18  Derek Price  <derek@ximbiot.com>
77425             Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * lib/inttypes.h: New file.
77428         * lib/strtoimax.c: Assume <inttypes.h>.
77429
77430 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77431
77432         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77433         isn't mounted.  Problem reported by Kir Kolyshkin.
77434
77435 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77436
77437         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77438         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77439         Derek R. Price.
77440         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77441         implementation.
77442
77443 2006-04-12  Eric Blake  <ebb9@byu.net>
77444
77445         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77446         is now done automatically by the corresponding Autoconf macro.
77447
77448 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77451         time_r.h.
77452
77453 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         Merge regex changes from libc, removing some of our
77456         POSIX-conformance changes that were rejected and redoing them in a
77457         less-intrusive way.
77458
77459         * lib/regcomp.c (re_compile_internal, init_dfa):
77460         Length arg is now size_t, not Idx.  All uses changed.
77461         (peek_token): Forward decl now says internal_function.
77462         (__re_error_msgid, __re_error_msgid_idx):
77463         Now static rather than extern with attribute_hidden.
77464         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77465         For some reason libc prefers K&R style defns for external functions.
77466         (regerror) [!defined _LIBC]: Likewise.
77467         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77468         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77469         (build_range_exp, build_collating_symbol):
77470         Use K&R-style defn.
77471         (re_compile_fastmap): Use '\0' to memset, not 0.
77472         (utf8_sb_map): Make the calculations more obvious.
77473         (init_dfa, parse_bracket_exp, build_charclass_op):
77474         Call calloc and cast result, as glibc does.
77475         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77476         (build_range_exp, build_collating_symbol):
77477         Now internal functions.
77478
77479         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77480
77481         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77482         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77483         Don't depend on VMS; depend on __VMS instead, for POSIX
77484         namespace cleanness.
77485         (regoff_t): Define to ssize_t, not long int.
77486
77487         Remove the REG_ macros named below.  Instead, make the old names
77488         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77489         __USE_GNU_REGEX.
77490         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77491         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77492         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77493         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77494         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77495         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77496         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77497         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77498         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77499         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77500         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77501         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77502         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77503         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77504         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77505         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77506         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77507         (REG_NREGS):
77508         Remove.  All uses replaced by the old RE_* names.
77509         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77510         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77511         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77512         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77513         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77514         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77515         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77516         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77517         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77518         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77519         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77520         Don't bother having these macros be independent of each others'
77521         values, since they no longer exist in the POSIX name space.
77522
77523         Rename the following member names back to their old names,
77524         unless !__USE_GNU_REGEX.  All uses changed back.
77525         (buffer): Renamed from re_buffer.
77526         (allocated): Renamed from re_allocated.
77527         (used): Renamed from re_used.
77528         (syntax): Renamed from re_syntax.
77529         (fastmap): Renamed from re_fastmap.
77530         (translate): Renamed from re_translate.
77531         (can_be_null): Renamed from re_can_be_null.
77532         (regs_allocated): Renamed from re_regs_allocated.
77533         (fastmap_accurate): Renamed from re_fastmap_accurate.
77534         (no_sub): Renamed from re_no_sub.
77535         (not_bol): Renamed from re_not_bol.
77536         (not_eol): Renamed from re_not_eol.
77537         (newline_anchor): Renamed from re_newline_anchor.
77538         (num_regs): Renamed from rm_num_regs.
77539         (start): Renamed from rm_start.
77540         (end): Renamed from rm_end.
77541
77542         (free_state): Move up a bit.
77543
77544         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77545         #define to be empty.
77546         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77547         when that is what is intended.
77548         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77549         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77550         (MAX): New macro.
77551         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77552         All uses changed back to re_malloc, etc.  It's now the caller's
77553         responsibility to check for overflow; all callers changed.
77554         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77555         (re_x2nrealloc): Remove.
77556         (free_state): Remove decl.
77557
77558         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77559         (re_set_registers, re_exec):
77560         Use K&R-style defn.
77561
77562         2006-01-31  Roland McGrath  <roland@redhat.com>
77563
77564         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77565         Reported by Mike Frysinger <vapier@gentoo.org>.
77566
77567         2006-01-15  Andreas Jaeger  <aj@suse.de>
77568
77569         [BZ #1950]
77570         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77571         build_wcs_upper_buffer change.
77572         (build_wcs_upper_buffer): Change return type.
77573
77574         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77575
77576         * lib/regex_internal.h: Include <stdint.h> if available.
77577
77578         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77579
77580         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77581
77582         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77583
77584         * lib/regcomp.c: Adjust for changed secondary hash function.
77585
77586         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77587
77588         * lib/regex.h: Pretty printing.
77589         Clean up namespace a bit.
77590
77591         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77592
77593         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77594         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77595
77596         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77597                     Ulrich Drepper  <drepper@redhat.com>
77598
77599         [BZ #1302]
77600         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77601         changed.
77602         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77603
77604         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77605
77606         [BZ #281]
77607         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77608         * lib/regcomp.c: Remove unnecessary uses of
77609         unsigned RE_TRANSLATE_TYPE.
77610         * lib/regex_internal.h: Likewise.
77611         * lib/regex_internal.c: Likewise.
77612         * lib/regexec.c: Likewise.
77613         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77614
77615         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77616
77617         * lib/regexec.c (find_recover_state): Remove unnecessary
77618         initialization.
77619         (transit_state_bkref): Make DFA a const pointer.
77620         (get_subexp): Likewise.
77621         (check_arrival): Likewise.
77622         (update_cur_sifted_state): Likewise.
77623         (re_search_internal): Likewise.
77624         (prune_impossible_nodes): Likewise.
77625         (acquire_init_state_context): Likewise.
77626         (proceed_next_node): Likewise.
77627         (set_regs): Likewise.
77628         (free_fail_stack_return): Likewise.
77629         (check_arrival_expand_ecl): Mark DFA parameter as const.
77630         (check_arrival_expand_ecl_sub): Likewise.
77631         (check_subexp_limits): Likewise.
77632         (sub_epsilon_src_nodes):  Likewise.
77633         (add_epsilon_src_nodes):  Likewise.
77634         (merge_state_array): Likewise.
77635         (update_regs): Likewise.
77636         (build_trtable): Likewise.
77637         (sift_states_backward): Mark MCTX parameter as const.
77638         (build_sifted_states): Likewise.
77639         (update_cur_sifted_state): Likewise.
77640         (sift_states_mkref): Likewise.
77641         (check_arrival_expand_ecl): Mark eclosure as const.
77642         (check_dst_limits_calc_pos_1): Likewise.
77643         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77644         pointer.
77645
77646         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77647
77648         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77649         (transit_state_sb): Likewise.
77650         (transit_state_mb): Likewise.
77651         (sift_states_iter_mb): Likewise.
77652         (check_arrival_add_next_nodes): Likewise.
77653         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77654         [_LIBC] (re_search_2_stub): Use mempcpy.
77655
77656         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77657         mbrtowc for very simple UTF-8 case.
77658
77659         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77660         a pointer-to-const.
77661         (re_acquire_state_context): Likewise.
77662         * lib/regex_internal.h: Adjust prototypes.
77663
77664         * lib/regex.c: Prevent using C++ compilers.
77665
77666         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77667         (re_acquire_state_context): Likewise.
77668
77669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * modules/regex (Depends-on): Add ssize_t.
77672
77673 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77676         translation table.
77677
77678 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77681
77682 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77683             Bruno Haible  <bruno@clisp.org>
77684
77685         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77686         <sys/types.h> and <inttypes.h>.
77687
77688 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77689
77690         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77691         `__error_t_defined', so argp.h will not typedef the former.
77692
77693 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77696         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77697         glibc names.  Even if glibc is changed to conform to POSIX, the
77698         traditional names will be available anyway, since regex depends on
77699         the extensions module.  Also, fix a longstanding typo in the
77700         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77701         reported by Emanuele Giaquinta.  Also, change sense of cached
77702         variable, so that the message makes sense.
77703
77704 2006-03-24  Simon Josefsson  <jas@extundo.com>
77705
77706         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77707         including some doc fixes.
77708         (base64_encode_alloc): Fix +1 bug on allocation failures.
77709
77710 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77711
77712         * lib/base64.c (base64_encode): Do not read past end of array with
77713         unsanitized input on systems with CHAR_BIT > 8.
77714
77715 2006-03-24  Eric Blake  <ebb9@byu.net>
77716
77717         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77718
77719 2006-03-22  Karl Berry  <karl@gnu.org>
77720
77721         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77722         * config/srclistvars.sh (COREUTILS): new var.
77723
77724 2006-03-17  Jim Meyering  <jim@meyering.net>
77725
77726         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77727         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77728
77729 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77732         no longer needs it.  Instead, check that regoff_t is as least
77733         as wide as ptrdiff_t.
77734
77735         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77736         so that our regex.h stays compatible with the installed regex.
77737         This is helpful for installers who configure --without-included-regex.
77738         Problem reported by Emanuele Giaquinta.
77739
77740 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77743         Typedef to long int, not to off_, as POSIX will likely change
77744         in that direction.
77745
77746 2006-03-15  Eric Blake  <ebb9@byu.net>
77747
77748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77749
77750 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77751
77752         * lib/argp-help.c (validate_uparams): Fix typo
77753         * lib/argp-parse.c (argp_default_options): Consistently begin help
77754         messages with a lowercase letter.
77755
77756 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77759         overrun buffers and shouldn't be used (much as gets shouldn't be
77760         used).
77761         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77762
77763 2006-03-08  Simon Josefsson  <jas@extundo.com>
77764
77765         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77766         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77767
77768 2006-03-08  Simon Josefsson  <jas@extundo.com>
77769
77770         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77771         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77772
77773 2006-03-08  Simon Josefsson  <jas@extundo.com>
77774
77775         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77776         signal that configure disabled the device.
77777
77778 2006-03-08  Simon Josefsson  <jas@extundo.com>
77779
77780         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77781         languages.
77782
77783 2006-03-07  Simon Josefsson  <jas@extundo.com>
77784
77785         * modules/getopt (Depends-on): Add unistd.
77786
77787         * modules/unistd: New file.
77788
77789 2006-03-07  Simon Josefsson  <jas@extundo.com>
77790
77791         * modules/gc-random: New file.
77792
77793 2006-03-07  Simon Josefsson  <jas@extundo.com>
77794
77795         * m4/unistd_h.m4: New file.
77796
77797 2006-03-07  Simon Josefsson  <jas@extundo.com>
77798
77799         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77800         test to be side-effect free by storing the result in the cache
77801         variable gl_cv_lib_readline, and moving the assignment of
77802         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77803         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77804
77805 2006-03-07  Simon Josefsson  <jas@extundo.com>
77806
77807         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77808         error on missing devices (the functions will return an error).
77809
77810         * m4/gc.m4: Move random stuff to gc-random.m4
77811
77812 2006-03-07  Simon Josefsson  <jas@extundo.com>
77813
77814         * lib/unistd_.h: New file.
77815
77816 2006-03-07  Simon Josefsson  <jas@extundo.com>
77817
77818         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77819
77820 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77823         Problem reported by Juan Manuel Guerrero.
77824
77825 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77826
77827         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77828         the unistd module.
77829         * lib/getlogin_r.c: Likewise.
77830         * lib/getlogin_r.h: Likewise.
77831         * lib/glob.c: Likewise.
77832         * lib/pagealign_alloc.c: Likewise.
77833         * lib/unistd_.h: Remove; no longer needed.
77834
77835 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77838         Add unistd.
77839         * modules/c-stack (Depends-on): Add unistd.
77840         * modules/getlogin_r: Likewise.
77841         * modules/glob: Likewise.
77842         * modules/pagealign_alloc: Likewise.
77843         * modules/unistd (Files): Remove lib/unistd_.h.
77844         (EXTRA_DIST): Remove.
77845         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77846         need unistd_.h.
77847         (MOSTLYCLEANFILES): Remove unistd.h-t.
77848
77849 2006-03-03  Simon Josefsson  <jas@extundo.com>
77850
77851         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77852
77853 2006-03-03  Simon Josefsson  <jas@extundo.com>
77854
77855         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77856         libidn and bison.
77857
77858 2006-03-03  Simon Josefsson  <jas@extundo.com>
77859
77860         * build-aux/maint.mk: Add indent target.
77861
77862 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77863
77864         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77865         our replacement poll.h in any case, to avoid a differing
77866         declaration from a system header.  Seen on AIX.
77867
77868 2006-03-01  Simon Josefsson  <jas@extundo.com>
77869
77870         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77871         <kasal@ucw.cz>.
77872
77873 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * modules/gettime (Depends-on): Add extensions module.
77876         * modules/nanosleep (Depends-on): Likewise.
77877         * modules/settime (Depends-on): Likewise.
77878
77879 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77882         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77883         pedantically.
77884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77885         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77886
77887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77888         not "==".  Reported by Ralf Wildenhues.
77889
77890 2006-03-01  Karl Berry  <karl@gnu.org>
77891
77892         * doc/Copyright/request-*: new files, synced from gnuorg.
77893
77894 2006-03-01  Karl Berry  <karl@gnu.org>
77895
77896         * config/srclist.txt (Copyright/*): new entries.
77897
77898 2006-02-28  Simon Josefsson  <jas@extundo.com>
77899
77900         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77901
77902 2006-02-27  Simon Josefsson  <jas@extundo.com>
77903
77904         * lib/base64.h: Indent #define's.  From Jim Meyering
77905         <jim@meyering.net>.
77906
77907 2006-02-27  Jim Meyering  <jim@meyering.net>
77908
77909         Revert the change of 2006-02-24, so these files can continue
77910         to be sync'd from gettext.
77911         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77912         of `config.h'.
77913
77914 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * modules/intprops: New file.
77917         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77918         Add intprops.
77919         * modules/getloadavg (Files): Remove lib/intprops.h.
77920         (Depends-on): Add intprops.
77921         * modules/human: Likewise.
77922         * modules/inttostr: Likewise.
77923         * modules/openat: Likewise.
77924         * modules/sig2str: Likewise.
77925         * modules/userspec: Likewise.
77926         * modules/utimecmp: Likewise.
77927         * modules/xnanosleep: Likewise.
77928         * modules/xstrtol: Likewise.
77929
77930 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77931
77932         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77933         * modules/lock-tests (TESTS): Use $(EXEEXT).
77934         * modules/tls-tests: Likewise.
77935         * modules/argp-tests: Likewise.
77936         (check_PROGRAMS): New var, replacing...
77937         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77938
77939 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77940
77941         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77942         `config.h'.
77943
77944 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77947
77948 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77949
77950         Sync from coreutils.
77951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77952         gl_CHDIR_SAFER.
77953
77954 2006-02-22  Jim Meyering  <jim@meyering.net>
77955
77956         Sync from coreutils.
77957         * m4/chdir-safer.m4: New file.
77958
77959 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77962         AT_FDCWD exceeds INT_MAX.
77963         * lib/openat.h (AT_FDCWD): Likewise.
77964
77965 2006-02-17  Eric Blake  <address@hidden>
77966
77967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77968
77969 2006-02-16  Simon Josefsson  <jas@extundo.com>
77970
77971         * modules/getaddrinfo (Depends-on): Add sys_socket.
77972
77973 2006-02-15  Simon Josefsson  <jas@extundo.com>
77974
77975         * build-aux/maint.mk: Add dsyntax-check rule.
77976
77977 2006-02-15  Eric Blake  <ebb9@byu.net>
77978
77979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77980         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77981         'present but cannot compile' warnings on cygwin.
77982         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77983         use ws2tcpip.h if sys/socket.h works.
77984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77985         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77986
77987 2006-02-14  Simon Josefsson  <jas@extundo.com>
77988
77989         * modules/maintainer-makefile (Files): Rename.
77990
77991         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77992         and (the local) Makefile.cfg to maint-cfg.mk.
77993
77994         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77995         to the latter.
77996
77997         * modules/maintainer-makefile: New module.
77998
77999         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78000         severaly stripped to make it possible to build it up from scratch
78001         with reliable tests.
78002
78003         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78004         fixes to permit overriding the default actions when configure and
78005         makefile are not available.
78006
78007 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         Sync from coreutils.
78010         * modules/lstat (Depends-on): Don't depend on xalloc.
78011         (License): Change from GPL to LGPL, since this is now simply a
78012         replacement for a libc function.
78013
78014 2006-02-14  Jim Meyering  <jim@meyering.net>
78015
78016         Sync from coreutils.
78017
78018         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78019         failure on deficient systems, and simplify gnulib lgpl dependencies.
78020         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78021         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78022
78023         * lib/xalloc-die.c: Remove unused definition of N_.
78024
78025 2006-02-14  Jim Meyering  <jim@meyering.net>
78026
78027         Sync from coreutils.
78028         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78029         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78030         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78031         double-quote uses of that variable, to accommodate the rare case in
78032         which getmntent is available in none of the libraries checked.  This
78033         happens at least on FreeBSD 5.0.
78034
78035 2006-02-13  Simon Josefsson  <jas@extundo.com>
78036
78037         * gnulib-tool (Usage): Fix --import, from
78038         karl@freefriends.org (Karl Berry).
78039
78040 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78041
78042         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78043
78044 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78045
78046         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78047         "autoupdate" on 2005-12-12.
78048
78049 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78050
78051         * modules/closeout (Depends-on): Remove atexit.
78052
78053 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78056         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78057
78058 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78059
78060         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78061         __EXTENSIONS__ if this causes compilation to fail.  Problem
78062         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78063         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78064
78065 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78068         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78070         All uses changed.
78071
78072 2006-01-26  Simon Josefsson  <jas@extundo.com>
78073
78074         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78075         prototype is visible on mingw32.
78076
78077         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78078         for mingw32.
78079
78080         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78081         mingw32).
78082
78083 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78086         attempt to open for write; this always fails, at least on POSIX
78087         hosts.  This reinstates the 2006-01-09 change, which was
78088         inadvertently removed.
78089
78090 2006-01-26  Bruno Haible  <bruno@clisp.org>
78091
78092         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78093         Reported by Paul Eggert.
78094
78095 2006-01-26  Bruno Haible  <bruno@clisp.org>
78096             Paul Eggert  <eggert@cs.ucla.edu>
78097
78098         * lib/stdbool_.h (_Bool)
78099         [(! (defined __cplusplus || defined __BEOS__)
78100           && !defined __GNUC__
78101           && !(defined __HP_cc || defined __xlc__
78102                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78103                || defined __sgi))]:
78104         #define to signed char in these cases too; this simplifies
78105         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78106         etc., separately) and makes it more conservative.
78107
78108 2006-01-25  Simon Josefsson  <jas@extundo.com>
78109
78110         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78111         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78112         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78113
78114 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78115
78116         * lib/argp-namefrob.h: Bugfix. Remove stray #
78117
78118 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78121         so that we test the test.
78122         Check for yet another HP-UX cc bug involving *bool |= bool.
78123
78124 2006-01-25  Karl Berry  <karl@gnu.org>
78125
78126         * config/srclist.txt (vasnprintf.c): sync lost.
78127
78128 2006-01-25  Jim Meyering  <jim@meyering.net>
78129
78130         Sync from the stable (b5) branch of coreutils:
78131
78132         * lib/fts.c (fts_children): Don't let close() clobber errno from
78133         failed fchdir().
78134
78135         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78136         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78137         a dangling symlink.  That can also happen at least for ELOOP.
78138         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78139         FYI, this bug predates the inclusion of fts.c in coreutils.
78140
78141         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78142         in their own block, so pre-c99 compilers don't object.
78143
78144         Avoid the double-free (first in fts_read, second in fts_close) that
78145         would occur when an `active' directory is made inaccessible (e.g.,
78146         via chmod a-x) during a traversal.
78147         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78148         before returning.  Reproduce this failure by
78149         mkdir -p a/b; cd a; chmod a-x . b
78150         Reported by Stavros Passas.
78151
78152 2006-01-25  Jim Meyering  <jim@meyering.net>
78153
78154         * lib/fileblocks.c: Remove more useless parentheses.
78155         * lib/readutmp.h: Likewise.
78156
78157 2006-01-25  Bruno Haible  <bruno@clisp.org>
78158
78159         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78160         warnings.
78161         Reported by Paul Eggert.
78162
78163 2006-01-25  Bruno Haible  <bruno@clisp.org>
78164
78165         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78166         rid of a trap command. For Solaris sh.
78167         Reported by Mark D. Baushke <mdb@gnu.org>.
78168
78169 2006-01-24  Simon Josefsson  <jas@extundo.com>
78170
78171         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78172         Bruno.
78173
78174 2006-01-24  Karl Berry  <karl@gnu.org>
78175
78176         * config/srclist.txt (argp-namefrob.h): sync lost.
78177
78178 2006-01-24  Jim Meyering  <jim@meyering.net>
78179
78180         * modules/openat (Files): Add lib/intprops.h.
78181         From Mark D. Baushke.
78182
78183 2006-01-24  Jim Meyering  <jim@meyering.net>
78184
78185         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78186         Reported by Mark D. Baushke.
78187
78188 2006-01-24  Jim Meyering  <jim@meyering.net>
78189
78190         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78191
78192 2006-01-24  Bruno Haible  <bruno@clisp.org>
78193
78194         * modules/strnlen (Maintainer): Change from glibc to all.
78195
78196 2006-01-24  Bruno Haible  <bruno@clisp.org>
78197
78198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78199         Patch by Paul Eggert.
78200
78201 2006-01-24  Bruno Haible  <bruno@clisp.org>
78202
78203         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78204         already has it.
78205         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78206         2005-11-26.
78207
78208         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78209         'signed char' to avoid problems with the built-in _Bool type.
78210         Reported by Paul Eggert on 2005-11-26.
78211
78212 2006-01-24  Bruno Haible  <bruno@clisp.org>
78213
78214         * gnulib-tool (func_import): Avoid constructing complicated sed
78215         expressions inside backquote.
78216         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78217
78218 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78219
78220         These changes imported from libc.
78221         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78222         test and two separate function calls.
78223         * lib/strndup.c (__strndup): Add libc_hidden_def.
78224
78225 2006-01-23  Simon Josefsson  <jas@extundo.com>
78226
78227         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78228         Remove the test_*_SOURCES variable: automake infers it by default.
78229         * modules/tls-tests: Likewise.
78230
78231 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         Work around porting bugs reported by Dieter in
78234         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78235         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78236         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78237         Include "getopt.h" first, to check interface.
78238         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78239         !HAVE_DECL_GETENV.
78240         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78241         (__strndup): Revert to K&R-style function dfns, the glibc style.
78242         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78243         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78244         Include strnlen.h first, to get prototype properly.
78245         (strnlen): Renamed from __strnlen.
78246         Remove weak alias.
78247
78248 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78251
78252 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * config/srclist.txt: Adjust to reflect glibc reorganization.
78255         This affects only comments.
78256
78257 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78258
78259          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78260          Reported by Bruce Korb <bkorb@gnu.org>.
78261
78262 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78265         to pacify gcc -Wswitch-default.
78266
78267 2006-01-22  Bruno Haible  <bruno@clisp.org>
78268
78269         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78270         temporary buffer for sprintf, take into account the precision also
78271         for 'd', 'i', 'u', 'o', 'x', 'X'.
78272
78273 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78274
78275         * modules/argp-tests: New module
78276         * tests/test-argp.c: New file
78277         * tests/test-argp-2.sh: New file
78278
78279 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78280
78281         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78282         (__argp_base_name): Removed
78283         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78284         typo.
78285         (__argp_base_name): Provide macro definition or extern declaration
78286         depending on the configuration
78287
78288 2006-01-20  Simon Josefsson  <jas@extundo.com>
78289
78290         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78291
78292 2006-01-20  Simon Josefsson  <jas@extundo.com>
78293
78294         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78295
78296 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78299         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78300         Suggested by Bruno Haible.
78301
78302 2006-01-20  Karl Berry  <karl@gnu.org>
78303
78304         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78305         until changes propagate, I guess.
78306
78307 2006-01-19  Simon Josefsson  <jas@extundo.com>
78308
78309         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78310
78311 2006-01-19  Simon Josefsson  <jas@extundo.com>
78312
78313         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78314
78315 2006-01-19  Simon Josefsson  <jas@extundo.com>
78316
78317         * gnulib-tool: Set check_PROGRAMS.
78318
78319         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78320         modules/des-tests, modules/gc-arcfour-tests,
78321         modules/gc-arctwo-tests, modules/gc-des-tests,
78322         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78323         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78324         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78325         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78326         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78327         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78328         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78329         test_*_SOURCES.
78330
78331 2006-01-18  Simon Josefsson  <jas@extundo.com>
78332
78333         * modules/socklen (Depends-on): Depend on sys_socket.
78334
78335 2006-01-18  Simon Josefsson  <jas@extundo.com>
78336
78337         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78338         modules/des-tests, modules/gc-arcfour-tests,
78339         modules/gc-arctwo-tests, modules/gc-des-tests,
78340         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78341         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78342         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78343         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78344         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78345         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78346         $(EXEEXT) to automake TESTS variable, for mingw32.
78347
78348 2006-01-17  Simon Josefsson  <jas@extundo.com>
78349
78350         * modules/socklen (Include): Need sys/socket.h.
78351
78352 2006-01-17  Bruno Haible  <bruno@clisp.org>
78353
78354         * modules/ssize_t (Include): Add <sys/types.h>.
78355
78356 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78359         it's not portable and it doesn't work with cross-compiles.
78360         Problem reported by Bruno Haible.  Fix missing-$ typo in
78361         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78362         -zignore from being used with Sun's C compiler.
78363
78364 2006-01-12  Simon Josefsson  <jas@extundo.com>
78365
78366         * lib/base64.c: Fix warning, reported by Bruno Haible
78367         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78368
78369 2006-01-12  Bruno Haible  <bruno@clisp.org>
78370
78371         * modules/ldd: New file.
78372         * build-aux/ldd.sh.in: New file.
78373         * MODULES.html.sh (Support for building libraries and executables): Add
78374         ldd.
78375
78376 2006-01-12  Bruno Haible  <bruno@clisp.org>
78377
78378         * m4/ldd.m4: New file.
78379
78380 2006-01-12  Bruno Haible  <bruno@clisp.org>
78381
78382         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78383         endless loop while replacing $auxdir with build-aux.
78384
78385 2006-01-11  Simon Josefsson  <jas@extundo.com>
78386
78387         * lib/stdint_.h (SIZE_MAX): Add missing (.
78388
78389 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         Sync from coreutils.
78392         * lib/md5.c: Fix commentary typos.
78393         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78394         * lib/md5.h (__attribute__): Remove; unused.
78395         * lib/sha1.c: Fix commentary to match md5 better.
78396         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78397         so that we don't need to worry about alignment.  All uses changed.
78398         This merges the 2005-10-28 md5 change into sha1.
78399
78400 2006-01-11  Jim Meyering  <jim@meyering.net>
78401
78402         Sync from coreutils.
78403         * lib/md5.c (OP): Fix spacing.
78404
78405 2006-01-11  Bruno Haible  <bruno@clisp.org>
78406
78407         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78408         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78409         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78410
78411 2006-01-11  Bruno Haible  <bruno@clisp.org>
78412
78413         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78414         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78415         the "early" section as well.
78416
78417 2006-01-11  Bruno Haible  <bruno@clisp.org>
78418
78419         Avoid "ar: no archive members specified" error on MacOS X.
78420         * gnulib-tool (func_modules_add_dummy): New function.
78421         (func_import, func_create_testdir): Invoke it.
78422
78423 2006-01-11  Bruno Haible  <bruno@clisp.org>
78424
78425         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78426         with $auxdir in AC_CONFIG_FILES statements.
78427
78428 2006-01-11  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78431         Initialize also noinst_HEADERS to empty.
78432
78433 2006-01-11  Bruno Haible  <bruno@clisp.org>
78434
78435         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78436         variables.
78437         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78438         autoreconf.
78439
78440 2006-01-11  Bruno Haible  <bruno@clisp.org>
78441
78442         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78443         overridable by the user.
78444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78445
78446 2006-01-10  Simon Josefsson  <jas@extundo.com>
78447
78448         * modules/sys_socket: New file.
78449
78450 2006-01-10  Simon Josefsson  <jas@extundo.com>
78451
78452         * m4/sys_socket_h.m4: New file.
78453
78454 2006-01-10  Simon Josefsson  <jas@extundo.com>
78455
78456         * lib/socket_.h: New file.
78457
78458 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         * modules/readutmp (Maintainer): Add myself.
78461
78462 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78465         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78466         People who are still concerned with buggy memcmp implementations
78467         can invoke gl_FUNC_MEMCMP themselves.
78468
78469 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * lib/regex_internal.h (BITSET_WORD_BITS):
78472         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78473         preprocessor mishandles large unsigned values as if they were signed.
78474         Problem reported by Claudio Fontana in
78475         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78476
78477 2006-01-10  Jim Meyering  <jim@meyering.net>
78478
78479         Avoid the double-free (first in fts_read, second in fts_close) that
78480         would occur when an `active' directory is made inaccessible (e.g.,
78481         via chmod a-x) during a traversal.
78482         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78483         before returning.  Reproduce this failure by
78484         mkdir -p a/b; cd a; chmod a-x . b
78485         Reported by Stavros Passas.
78486
78487         Sync from coreutils.
78488         * lib/sha1.c: Tweak grammar in a comment.
78489
78490 2006-01-10  Jim Meyering  <jim@meyering.net>
78491
78492         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78493         Patch by Joerg Sonnenberger.
78494
78495 2006-01-10  Bruno Haible  <bruno@clisp.org>
78496
78497         * modules/readutmp: Depend on module free.
78498         * modules/strtok_r: Depend on module restrict.
78499
78500 2006-01-10  Bruno Haible  <bruno@clisp.org>
78501
78502         * modules/gettext (configure.ac): Add an invocation of
78503         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78504
78505 2006-01-10  Bruno Haible  <bruno@clisp.org>
78506
78507         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78508         Reported by Werner Lemberg <wl@gnu.org>.
78509
78510 2006-01-10  Bruno Haible  <bruno@clisp.org>
78511
78512         * lib/localcharset.c: Update from GNU gettext.
78513
78514 2006-01-10  Bruno Haible  <bruno@clisp.org>
78515
78516         * lib/argp.h (__const): Remove macro. Use const instead.
78517         * lib/argp-fmtstream.h (__const): Likewise.
78518         * lib/glob_.h (__const): Remove macro.
78519         * lib/glob-libc.h: Use const instead of __const.
78520
78521 2006-01-10  Bruno Haible  <bruno@clisp.org>
78522
78523         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78524         variable.
78525         Needed to avoid an automake error regarding the 'gettext' module.
78526
78527 2006-01-09  Simon Josefsson  <jas@extundo.com>
78528
78529         * modules/inet_ntop (Depends-on): Add restrict.
78530
78531 2006-01-09  Simon Josefsson  <jas@extundo.com>
78532
78533         * modules/gc-rijndael-tests (License): Put under LGPL.
78534
78535         * modules/gc-des-tests (License): Likewise.
78536
78537         * modules/gc-arcfour-tests (License): Likewise.
78538
78539         * modules/gc-arctwo-tests (License): Likewise.
78540
78541         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78542
78543         * modules/gc-hmac-sha1-tests (Files): Likewise.
78544
78545         * modules/gc-hmac-md5-tests (License): Likewise.
78546
78547         * modules/gc-sha1-tests (License): Likewise.
78548
78549         * modules/gc-md5-tests (License): Likewise.
78550
78551         * modules/gc-md4-tests (License): Likewise.
78552
78553         * modules/gc-md2-tests (License): Likewise.
78554
78555         * modules/gc-tests (License): Likewise.
78556
78557         * modules/des-tests (License): Likewise.
78558
78559         * modules/md4-tests (License): Likewise.
78560
78561         * modules/md2-tests (License): Likewise.
78562
78563 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         Sync from coreutils:
78566
78567         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78568         * modules/lib-ignore: New file.
78569         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78570         chdir-safer.m4, lchmod.m4.
78571         * modules/openat: Add mkdirat.c, openat-priv.h.
78572
78573 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         Sync from coreutils.
78576         * m4/lib-ignore.m4: New file.
78577         * m4/lchmod.m4: New file.
78578
78579 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78580
78581         Sync from coreutils.
78582         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78583         for write access: POSIX says that must fail.
78584         * lib/fts.c (diropen): Likewise.
78585         * lib/save-cwd.c (save_cwd): Likewise.
78586         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78587         well, for minor improvements on hosts that lack O_DIRECTORY.
78588         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78589         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78590         Fall back on chown if open failed with EACCES.
78591
78592         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78593         Report an error at compile-time if only a 1-second nominal clock
78594         resolution is found.
78595
78596         * lib/lchmod.h: New file.
78597         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78598         (make_dir_parents): Use lchown rather than chown, and
78599         lchmod rather than chmod.
78600
78601         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78602         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78603         "proc" reported by n0dalus.
78604
78605         * lib/mountlist.c: Include <limits.h>.
78606         (dev_from_mount_options)
78607         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78608         New function.  It no longer assumes "dev=" has the System V meaning
78609         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78610         (read_file_system_list)
78611         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78612         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78613         dev= in that case.
78614
78615         * lib/posixtm.h (PDS_PRE_2000): New macro.
78616         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78617         allow_century.  All usages changed.  Reject dates outside the range
78618         1969-1999 if PDS_PRE_2000 is used.
78619
78620 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         Sync from coreutils.
78623         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78624         (Time of day items): Mention the possibility of leap seconds.
78625         Problem reported by Dr. David Alan Gilbert.
78626
78627 2006-01-09  Jim Meyering  <jim@meyering.net>
78628
78629         Sync from coreutils.
78630
78631         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78632
78633         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78634
78635         * lib/modechange.c (mode_compile): Reject an invalid mode string
78636         that starts with an octal digit.  From Andreas Gruenbacher.
78637
78638         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78639         and dup to open_safer and dup_safer, respectively.
78640         (openat_permissive): Fix typo in comment.
78641
78642         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78643         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78644         (_): Remove; no longer needed.
78645         (openat): Renamed from rpl_openat; no need for rpl_openat
78646         since openat.h renames openat for us.
78647         Replace most of the body with a call to openat_permissive,
78648         to avoid duplicate code.
78649         Port to (probably hypothetical) environments were mode_t is
78650         wider than int.
78651         (openat_permissive): Require mode arg, so that we can check
78652         types better.  Put it just after flags.  Change cwd failure
78653         indicator from pointer-to-bool to pointer-to-errno-value.
78654         All callers changed.
78655         Invoke openat_save_fail and/or openat_restore_fail if
78656         cwd_errno is null, so that openat can call us.
78657         (openat_permissive, fdopendir, fstatat, unlinkat):
78658         Simplify errno handling to avoid some duplicate code,
78659         as it's OK to set errno on success.
78660         * lib/openat.h: Revamp code so that function macros depend on
78661         __OPENAT_PREFIX only, not also on AT_FDCWD.
78662         (openat_ro): Remove.  Caller changed to use openat_permissive.
78663         (openat_permissive): Now a macro, if not a function.
78664         (openat_restore_fail, openat_save_fail): Now always functions,
78665         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78666
78667         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78668         and openat.c.
78669         * lib/mkdirat.c: Include openat-priv.h.
78670         Remove definitions of macros defined therein.
78671         * lib/openat.c: Likewise.
78672
78673         * lib/mkdirat.c (mkdirat): New file and function.
78674         * lib/openat.h (mkdirat): Declare.
78675
78676         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78677
78678         * lib/openat.h (openat_permissive): Declare.
78679         (openat_ro): Define.
78680
78681         * lib/openat.c (EXPECTED_ERRNO): New macro.
78682         (openat_permissive): New function -- used in remove.c rewrite.
78683         (all functions): Set errno just before returning, only if there
78684         was an actual failure.
78685         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78686
78687         Emulate openat-family functions using Linux's procfs, if possible.
78688         Idea and some code based on Ulrich Drepper's glibc changes.
78689
78690         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78691         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78692         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78693         before falling back on save_cwd and restore_cwd.
78694         (fdopendir, fstatat, unlinkat): Likewise.
78695
78696         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78697         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78698
78699         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78700         as second argument to va_arg.  Otherwise, some versions of gcc
78701         warn that `if this code is reached, the program will abort'.
78702
78703 2006-01-09  Jim Meyering  <jim@meyering.net>
78704
78705         Sync from coreutils.
78706         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78707         Require openat-priv.h.
78708
78709 2006-01-09  Bruno Haible  <bruno@clisp.org>
78710
78711         * modules/strnlen (Include): Use strnlen.h.
78712
78713 2006-01-09  Bruno Haible  <bruno@clisp.org>
78714
78715         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78716
78717 2006-01-09  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/sysexit_.h (EX_OK): New macro.
78720         Suggested by Martin Lambers <marlam@marlam.de>.
78721
78722 2006-01-09  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78725         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78726
78727 2006-01-09  Bruno Haible  <bruno@clisp.org>
78728
78729         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78730         numbers.
78731
78732 2006-01-09  Bruno Haible  <bruno@clisp.org>
78733
78734         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78735         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78736         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78737         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78738
78739 2006-01-09  Bruno Haible  <bruno@clisp.org>
78740
78741         * build-aux/javacomp.sh.in: New file, moved from lib/.
78742         * modules/javacomp-script (Files): Update.
78743         (configure.ac): Add AC_CONFIG_FILES invocation.
78744         (EXTRA_DIST): Remove variable.
78745
78746         * build-aux/javaexec.sh.in: New file, moved from lib/.
78747         * modules/javaexec (Files): Update.
78748         (configure.ac): Add AC_CONFIG_FILES invocation.
78749         (EXTRA_DIST): Remove javaexec.sh.in.
78750
78751         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78752         * modules/csharpcomp-script (Files): Update.
78753         (configure.ac): Add AC_CONFIG_FILES invocation.
78754         (EXTRA_DIST): Remove variable.
78755
78756         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78757         * modules/csharpexec (Files): Update.
78758         (configure.ac): Add AC_CONFIG_FILES invocation.
78759         (EXTRA_DIST): Remove csharpexec.sh.in.
78760
78761 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78762
78763         Sync from coreutils.
78764
78765         Add POSIX ACL support
78766         * lib/acl.h (copy_acl, set_acl): Add declarations.
78767         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78768         systems other than Linux.
78769         (chmod_or_fchmod): New function: use fchmod when possible,
78770         and chmod otherwise.
78771         (file_has_acl): Add a POSIX ACL implementation, with a
78772         Linux-specific subcase.
78773         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78774         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78775         acls are unsupported.
78776         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78777         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78778         are unsupported.
78779
78780 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78781
78782         Sync from coreutils.
78783         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78784
78785 2006-01-07  Bruno Haible  <bruno@clisp.org>
78786
78787         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78788         gl_EARLY.
78789
78790 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78793         Problem reported for Mingw by Mark Junker.
78794
78795 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78796
78797         * README: Gnulib normally doesn't generate a tarball.
78798
78799 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78802         long int, not int, for nanosecond counts, so that people who are
78803         used to POSIX struct timespec won't be surprised.  Reported by Jim
78804         Meyering.
78805
78806 2005-12-28  Bruno Haible  <bruno@clisp.org>
78807
78808         * build-aux/config.rpath: Update from GNU gettext.
78809
78810 2005-12-16  Jim Meyering  <jim@meyering.net>
78811
78812         * modules/fprintftime: New module.
78813         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78814
78815 2005-12-16  Jim Meyering  <jim@meyering.net>
78816
78817         * m4/fprintftime.m4: New file.
78818
78819 2005-12-16  Jim Meyering  <jim@meyering.net>
78820
78821         * lib/fprintftime.c, lib/fprintftime.h: New files.
78822
78823 2005-12-15  Simon Josefsson  <jas@extundo.com>
78824
78825         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78826         new m4/socklen.m4.
78827
78828 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78829
78830         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78831         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78832
78833 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78834
78835         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78836         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78837         struct uparams is valid. Fall back to the default values if it is
78838         not.
78839
78840 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78841
78842         * modules/argp (Files): Add argp-pin.c
78843         (Depends-on): dirname
78844         (lib_SOURCES): Add argp-pin.c
78845
78846 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78847
78848         * m4/argp.m4:  Check if program_invocation_name and
78849         program_invocation_short_name are declared and define appropriate
78850         macros if they are not.
78851
78852 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78853
78854         * lib/argp-help.c (__argp_base_name): New function
78855         (__argp_short_program_name): Rewrite using __argp_base_name
78856         * lib/argp-namefrob.h: Define program_invocation_name and
78857         program_invocation_short_name if requested
78858         (__argp_base_name): Add prototype
78859         * lib/argp-parse.c (argp_def): Use gettext wrappers
78860         (argp_default_parser): Use __argp_base_name
78861         * lib/argp-pin.c: New file. Defines program_invocation_name and
78862         program_invocation_short_name on systems that lack them.
78863
78864 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78867         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78868         porting problem reported by Georg Schwarz in
78869         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78870
78871 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78874         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78875         porting problem reported by Georg Schwarz in
78876         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78877
78878 2005-12-05  Bruno Haible  <bruno@clisp.org>
78879
78880         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78881         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78882         Reported by Mark Junker <mjscod@gmx.de>.
78883
78884 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78887         Use implementation from Albert Chin, with some
78888         comments/corrections by Stepan Kasal and myself.
78889
78890 2005-12-02  Bruno Haible  <bruno@clisp.org>
78891
78892         * gnulib-tool (func_import): Accept GPLed build tool modules when
78893         --lgpl is given.
78894         * modules/csharpcomp-script: New file.
78895         * modules/csharpcomp: Depend on it.
78896         * modules/javacomp-script: New file.
78897         * modules/javacomp: Depend on it.
78898         Suggested by Simon Josefsson.
78899
78900 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78903         statement, to work around an HP-UX 10.20 compiler bug reported by
78904         Peter O'Gorman.
78905
78906 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * modules/savedir (Depends-on): Add openat.
78909
78910 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78913         (uintmax_t) [defined uintmax_t]: Do not declare.
78914         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78915         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78916         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78917         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78918         sake of portability to weird hosts that C allows (though we don't
78919         know of any practical examples).
78920
78921         * lib/savedir.h (fdsavedir): New decl.
78922         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78923         contains most of the former guts of savedir.
78924         (savedir): Use savedirstream.
78925         Include "openat.h".
78926
78927 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * modules/obstack (Files): Add m4/ulonglong.m4.
78930         Problem reported by Davide Angelocola.
78931
78932 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78935         coreutils no longer futzes with rounding modes.
78936
78937 2005-11-14  Jim Meyering  <jim@meyering.net>
78938
78939         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78940         replacement of mkstemp.
78941
78942 2005-11-10  Simon Josefsson  <jas@extundo.com>
78943
78944         * lib/readline.c: Remove EOL.
78945
78946 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * modules/gethrxtime (Depends-on): Add gettime.
78949
78950 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78951
78952         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78953         or gettimeofday; no longer needed.
78954
78955 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78958         time business.
78959         (gethrxtime) [! (HAVE_NANOUPTIME
78960         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78961         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78962         our own approximation.
78963
78964 2005-11-08  Eric Blake  <ebb9@byu.net>
78965
78966         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78967
78968 2005-11-08  Eric Blake  <ebb9@byu.net>
78969
78970         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78971
78972 2005-11-04  Bruno Haible  <bruno@clisp.org>
78973
78974         * gnulib-tool: Implement --update mode.
78975
78976 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         Fix porting problem reported by Theodoros V. Kalamatianos.
78979         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78980         Don't assume that futimes failing means we must fail.
78981
78982 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78985         variables to suggest the intended function of the PATH_MAX check.
78986
78987 2005-10-30  Kean Johnston  <jkj@sco.com>
78988
78989         Trivial changes to support SCO systems.
78990         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78991         as PATH_MAX.
78992         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78993         where __ptr is null when no I/O is pending.
78994
78995 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78998         leave errno alone.  Problem reported by Dmitry V. Levin.
78999
79000 2005-10-28  Simon Josefsson  <jas@extundo.com>
79001
79002         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79003         Test more.
79004
79005         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79006
79007         * modules/md2, modules/md2-tests: New files.
79008
79009 2005-10-28  Simon Josefsson  <jas@extundo.com>
79010
79011         * m4/inet_ntop.m4: More tests.
79012
79013         * m4/gc-md2.m4, md2.m4: New file.
79014
79015 2005-10-28  Simon Josefsson  <jas@extundo.com>
79016
79017         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79018         "restrict" keywords, as per POSIX.  Protect the function
79019         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79020         Don't use K&R prototypes.  Check the sprintf return values.
79021         Re-define EAFNOSUPPORT if not present.  Indent.
79022
79023         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79024         suggested by Bruno Haible <bruno@clisp.org>.
79025
79026         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79027
79028         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79029
79030         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79031         libgcrypt).
79032
79033         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79034
79035         * lib/md2.h, lib/md2.c: New files.
79036
79037 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79040         errno alone.  Problem reported by Frederic Jolliton.
79041
79042 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * modules/verify (License): Change from GPL to LGPL.  This is a
79045         tiny module and there are apparently near-equivalents that are
79046         under the BSD license.
79047
79048 2005-10-24  Simon Josefsson  <jas@extundo.com>
79049
79050         * modules/sha1: Relicense to LGPL.
79051
79052 2005-10-24  Simon Josefsson  <jas@extundo.com>
79053
79054         * lib/md4.h: Shrink buffer size, now that we changed the type.
79055
79056 2005-10-23  Simon Josefsson  <jas@extundo.com>
79057
79058         * gnulib-tool (func_import): Fix --tests-base.
79059
79060 2005-10-22  Simon Josefsson  <jas@extundo.com>
79061
79062         * modules/arcfour (Depends-on): Need stdint.
79063
79064 2005-10-22  Simon Josefsson  <jas@extundo.com>
79065
79066         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79067         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79068
79069 2005-10-22  Simon Josefsson  <jas@extundo.com>
79070
79071         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79072         suggested by Bruno Haible <bruno@clisp.org>.
79073
79074 2005-10-22  Simon Josefsson  <jas@extundo.com>
79075
79076         * lib/crc.h: Include stddef.h, for size_t.
79077
79078 2005-10-22  Simon Josefsson  <jas@extundo.com>
79079
79080         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79081         arcfour_context struct (simplify test vector testing in GNU
79082         Shishi).
79083
79084 2005-10-21  Simon Josefsson  <jas@extundo.com>
79085
79086         * modules/des, modules/des-tests: New files.
79087
79088         * modules/gc-des, modules/gc-des-tests: New files.
79089
79090         * tests/test-des.c, tests/test-gc-des.c: New file.
79091
79092 2005-10-21  Simon Josefsson  <jas@extundo.com>
79093
79094         * modules/arctwo, modules/arctwo-tests: New files.
79095
79096         * tests/test-arctwo.c: New file.
79097
79098         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79099
79100         * tests/test-gc-arctwo.c: New file.
79101
79102 2005-10-21  Simon Josefsson  <jas@extundo.com>
79103
79104         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79105         Bruno Haible <bruno@clisp.org>.
79106
79107         * m4/gc-des.m4: New file.
79108
79109 2005-10-21  Simon Josefsson  <jas@extundo.com>
79110
79111         * m4/arctwo.m4: New file.
79112
79113         * m4/gc-arctwo.m4: New file.
79114
79115 2005-10-21  Simon Josefsson  <jas@extundo.com>
79116
79117         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79118         block.
79119
79120 2005-10-21  Simon Josefsson  <jas@extundo.com>
79121
79122         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79123         <bruno@clisp.org>.
79124
79125         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79126
79127         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79128         Bruno Haible <bruno@clisp.org>.
79129
79130         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79131         <bruno@clisp.org>.
79132
79133 2005-10-21  Simon Josefsson  <jas@extundo.com>
79134
79135         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79136
79137 2005-10-21  Simon Josefsson  <jas@extundo.com>
79138
79139         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79140
79141 2005-10-21  Simon Josefsson  <jas@extundo.com>
79142
79143         * lib/des.h, lib/des.c: New files.
79144
79145         * lib/gc-gnulib.c: Support DES.c
79146
79147 2005-10-21  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/arctwo.h, lib/arctwo.c: New files.
79150
79151         * lib/gc-gnulib.c: Support ARCTWO.
79152
79153 2005-10-21  Simon Josefsson  <jas@extundo.com>
79154
79155         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79156         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79157
79158 2005-10-21  Simon Josefsson  <jas@extundo.com>
79159
79160         * gnulib-tool (func_import, func_create_testdir): Define automake
79161         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79162         Makefile.am snippet),
79163         suggested by Bruno Haible <bruno@clisp.org>.
79164
79165         * modules/gc (Makefile.am): Use it.
79166
79167 2005-10-21  Bruno Haible  <bruno@clisp.org>
79168
79169         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79170         patch.
79171
79172 2005-10-19  Simon Josefsson  <jas@extundo.com>
79173
79174         * tests/test-gc-rijndael.c: New file.
79175
79176         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79177
79178 2005-10-19  Simon Josefsson  <jas@extundo.com>
79179
79180         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79181         interface too.
79182
79183 2005-10-19  Simon Josefsson  <jas@extundo.com>
79184
79185         * tests/test-gc-arcfour.c: New file.
79186
79187         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79188
79189 2005-10-19  Simon Josefsson  <jas@extundo.com>
79190
79191         * modules/gc-md4, modules/gc-md4-tests: New file.
79192
79193         * tests/test-gc-md4.c: New file.
79194
79195 2005-10-19  Simon Josefsson  <jas@extundo.com>
79196
79197         * m4/gc-md4.m4: New file.
79198
79199 2005-10-19  Simon Josefsson  <jas@extundo.com>
79200
79201         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79202         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79203         <kasal@ucw.cz>.
79204
79205 2005-10-19  Simon Josefsson  <jas@extundo.com>
79206
79207         * m4/gc-arcfour.m4: New file.
79208
79209         * m4/gc-rijndael.m4: New file.
79210
79211 2005-10-19  Simon Josefsson  <jas@extundo.com>
79212
79213         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79214
79215 2005-10-19  Simon Josefsson  <jas@extundo.com>
79216
79217         * lib/gc-gnulib.c: Support ARCFOUR.
79218
79219 2005-10-19  Simon Josefsson  <jas@extundo.com>
79220
79221         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79222         support.
79223
79224         * lib/gc.h: Add ECB enum type.
79225
79226         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79227
79228 2005-10-18  Simon Josefsson  <jas@extundo.com>
79229
79230         * tests/test-md5.c: New file.
79231
79232         * modules/md5-tests: New file.
79233
79234 2005-10-18  Simon Josefsson  <jas@extundo.com>
79235
79236         * tests/test-md4.c: New file.
79237
79238         * modules/md4, modules/md4-tests: New files.
79239
79240 2005-10-18  Simon Josefsson  <jas@extundo.com>
79241
79242         * m4/md4.m4: New file.
79243
79244 2005-10-18  Simon Josefsson  <jas@extundo.com>
79245
79246         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79247
79248 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79249
79250         * gnulib-tool (func_create_testdir): Omit the second check whether
79251         BUILT_SOURCES in nonempty.
79252
79253 2005-10-17  Simon Josefsson  <jas@extundo.com>
79254
79255         * tests/test-rijndael.c: New file.
79256
79257 2005-10-17  Simon Josefsson  <jas@extundo.com>
79258
79259         * modules/sha1: Depend on stdint instead of md5.
79260
79261         * modules/md5: Depend on stdint, remove uint32_t.
79262
79263 2005-10-17  Simon Josefsson  <jas@extundo.com>
79264
79265         * modules/gc-sha1-tests: New file.
79266
79267         * tests/test-gc-sha1.c: New file.
79268
79269 2005-10-17  Simon Josefsson  <jas@extundo.com>
79270
79271         * m4/md5.m4: Remove call to uint32_t.m4.
79272
79273 2005-10-17  Simon Josefsson  <jas@extundo.com>
79274
79275         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79276
79277         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79278         md5.h.
79279
79280         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79281
79282         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79283
79284 2005-10-17  Simon Josefsson  <jas@extundo.com>
79285
79286         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79287
79288 2005-10-17  Simon Josefsson  <jas@extundo.com>
79289
79290         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79291
79292 2005-10-17  Simon Josefsson  <jas@extundo.com>
79293
79294         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79295
79296         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79297
79298 2005-10-17  Bruno Haible  <bruno@clisp.org>
79299
79300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79301         that it can also be used in a test.
79302
79303 2005-10-16  Bruno Haible  <bruno@clisp.org>
79304
79305         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79306         TESTS_ENVIRONMENT, so that individual tests can augment it.
79307
79308         * gnulib-tool (func_create_testdir): Use an intermediate target for
79309         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79310         macros, like $(ALLOCA_H), which cannot be passed through the command
79311         line.
79312
79313 2005-10-15  Simon Josefsson  <jas@extundo.com>
79314
79315         * modules/rijndael-tests: New file.
79316
79317         * modules/rijndael: New file.
79318
79319 2005-10-15  Simon Josefsson  <jas@extundo.com>
79320
79321         * m4/rijndael.m4: New file.
79322
79323 2005-10-15  Simon Josefsson  <jas@extundo.com>
79324
79325         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79326
79327         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79328
79329 2005-10-14  Simon Josefsson  <jas@extundo.com>
79330
79331         * tests/test-arcfour.c: New file.
79332
79333         * modules/arcfour, modules/arcfour-tests: New files.
79334
79335 2005-10-14  Simon Josefsson  <jas@extundo.com>
79336
79337         * m4/arcfour.m4: New file.
79338
79339 2005-10-14  Simon Josefsson  <jas@extundo.com>
79340
79341         * lib/arcfour.h, lib/arcfour.c: New files.
79342
79343 2005-10-14  Roland McGrath  <roland@redhat.com>
79344
79345         Import from libc.  [BZ #1331]
79346         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79347         macro argument.
79348         Reported by Matej Vela <vela@debian.org>.
79349
79350 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79351
79352         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79353         include <wchar.h>; no longer needed.
79354
79355 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79356
79357         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79358
79359 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79360         and  Ulrich Drepper  <drepper@redhat.com>
79361
79362         Import from libc.
79363         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79364         instead of inline stream orientation test and two separate
79365         function calls.  Pay no attention to USE_IN_LIBIO.
79366
79367 2005-10-13  Simon Josefsson  <jas@extundo.com>
79368
79369         * modules/gc-hmac-md5-tests: New file.
79370
79371         * tests/test-gc-hmac-sha1.c: New file.
79372
79373         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79374
79375         * modules/gc-hmac-md5-tests: New file.
79376
79377         * tests/test-gc-md5.c: New file.
79378
79379         * modules/gc-md5-tests: New file.
79380
79381 2005-10-13  Simon Josefsson  <jas@extundo.com>
79382
79383         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79384         Move memory allocation outside of loop.
79385
79386 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79389         intermediate directory is in a read-only file system.  Problem
79390         reported by Eric Blake.
79391
79392 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79393
79394         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79395
79396 2005-10-12  Simon Josefsson  <jas@extundo.com>
79397
79398         * tests/test-hmac-sha1.c: New file.
79399
79400         * modules/hmac-sha1-tests: New file.
79401
79402         * modules/hmac-sha1: New file.
79403
79404 2005-10-12  Simon Josefsson  <jas@extundo.com>
79405
79406         * modules/gc-sha1: New file.
79407
79408 2005-10-12  Simon Josefsson  <jas@extundo.com>
79409
79410         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79411
79412         * tests/test-gc-pbkdf2-sha1.c: New file.
79413
79414 2005-10-12  Simon Josefsson  <jas@extundo.com>
79415
79416         * modules/gc-md5, modules/gc-hmac-md5: New files.
79417
79418         * modules/gc (Files): Remove md5, memxor and hmac files.
79419
79420 2005-10-12  Simon Josefsson  <jas@extundo.com>
79421
79422         * m4/gc-pbkdf2-sha1.m4: New file.
79423
79424         * m4/gc-hmac-sha1.m4: New file.
79425
79426         * m4/gc-sha1: New file.
79427
79428         * m4/hmac-sha1.m4: New file.
79429
79430 2005-10-12  Simon Josefsson  <jas@extundo.com>
79431
79432         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79433
79434         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79435
79436 2005-10-12  Simon Josefsson  <jas@extundo.com>
79437
79438         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79439         suggested by Bruno Haible <bruno@clisp.org>.
79440
79441 2005-10-12  Simon Josefsson  <jas@extundo.com>
79442
79443         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79444
79445 2005-10-12  Simon Josefsson  <jas@extundo.com>
79446
79447         * lib/gc-pbkdf2-sha1.c: New file.
79448
79449         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79450
79451 2005-10-12  Simon Josefsson  <jas@extundo.com>
79452
79453         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79454
79455         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79456
79457 2005-10-12  Simon Josefsson  <jas@extundo.com>
79458
79459         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79460         GC_USE_HMAC_MD5, respectively.
79461
79462         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79463         (gc_md5): Fix typo.
79464
79465         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79466
79467         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79468
79469         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79470
79471 2005-10-12  Bruno Haible  <bruno@clisp.org>
79472
79473         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79474         Reported by Stepan Kasal <kasal@ucw.cz>.
79475
79476 2005-10-11  Simon Josefsson  <jas@extundo.com>
79477
79478         * tests/test-crc.c: New file.
79479
79480         * modules/crc, modules/crc-tests: New files.
79481
79482 2005-10-11  Simon Josefsson  <jas@extundo.com>
79483
79484         * m4/crc.m4: New file.
79485
79486 2005-10-11  Simon Josefsson  <jas@extundo.com>
79487
79488         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79489
79490         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79491
79492         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79493
79494 2005-10-11  Simon Josefsson  <jas@extundo.com>
79495
79496         * lib/crc.h, lib/crc.c: New files.
79497
79498         * lib/gc.h (gc_hash_buffer): Add doc.
79499
79500 2005-10-11  Bruno Haible  <bruno@clisp.org>
79501
79502         * modules/c-strcasestr: New file.
79503         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79504
79505 2005-10-11  Bruno Haible  <bruno@clisp.org>
79506
79507         * modules/c-strcase: New file.
79508         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79509
79510 2005-10-11  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/strcasecmp.c: Include limits.h.
79513         (strcasecmp): Avoid integer overflow on exotic platforms.
79514         * lib/strncasecmp.c: Include limits.h.
79515         (strncasecmp): Avoid integer overflow on exotic platforms.
79516         Reported by Paul Eggert.
79517
79518 2005-10-11  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/c-strcasestr.h: New file, from GNU gettext.
79521         * lib/c-strcasestr.c: New file, from GNU gettext.
79522
79523 2005-10-11  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/c-strcase.h: New file, from GNU gettext.
79526         * lib/c-strcasecmp.c: New file, from GNU gettext.
79527         * lib/c-strncasecmp.c: New file, from GNU gettext.
79528
79529 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * modules/mempcpy (License): GPL -> LGPL.
79532         * modules/strchrnul (License): Likewise.
79533         * modules/sysexits (License): Likewise.
79534
79535 2005-10-08  Simon Josefsson  <jas@extundo.com>
79536
79537         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79538
79539 2005-10-07  Simon Josefsson  <jas@extundo.com>
79540
79541         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79542
79543 2005-10-06  Simon Josefsson  <jas@extundo.com>
79544
79545         * tests/test-hmac-md5.c: New file.
79546
79547         * modules/hmac-md5-tests: New file.
79548
79549         * modules/hmac-md5: New file.
79550
79551 2005-10-06  Simon Josefsson  <jas@extundo.com>
79552
79553         * m4/hmac-md5.m4: New file.
79554
79555         * m4/memxor.m4: Require gl_C_RESTRICT.
79556
79557 2005-10-06  Simon Josefsson  <jas@extundo.com>
79558
79559         * lib/memxor.c (memxor): Avoid casts and warnings.
79560
79561 2005-10-06  Simon Josefsson  <jas@extundo.com>
79562
79563         * lib/hmac-md5.c: New file.
79564
79565         * lib/hmac.h: New file.
79566
79567 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79570         promotes to int, not unsigned int, to catch the AIX 5.3
79571         compiler bug.
79572
79573 2005-10-05  Simon Josefsson  <jas@extundo.com>
79574
79575         * modules/memxor: New file.
79576
79577         * modules/iconv (Files): Move config.rpath to havelib, it is used
79578         there.
79579
79580         * modules/havelib (Files): Add config.rpath.
79581
79582 2005-10-05  Simon Josefsson  <jas@extundo.com>
79583
79584         * m4/memxor.m4: New file.
79585
79586 2005-10-05  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/memxor.c (memxor): Fix compiler error.
79589
79590         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79591         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79592
79593         * lib/memxor.h, lib/memxor.c: New files.
79594
79595         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79596         we assume all systems have it, suggested by Jim Meyering
79597         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79598         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79599         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79600         same reasons.
79601
79602 2005-10-05  Simon Josefsson  <jas@extundo.com>
79603
79604         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79605
79606 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79609         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79610         needed, since the source code now assumes these .h files.
79611
79612 2005-10-05  Derek Price  <derek@ximbiot.com>
79613
79614         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79615
79616 2005-10-05  Bruno Haible  <bruno@clisp.org>
79617
79618         * modules/stdint (License): Change to LGPL.
79619
79620 2005-10-04  Simon Josefsson  <jas@extundo.com>
79621
79622         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79623         D. Baushke" <mdb@gnu.org>.
79624
79625 2005-10-04  Bruno Haible  <bruno@clisp.org>
79626
79627         * lib/verify.h (verify_true): Provide alternative definition for C++.
79628
79629 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79632         (SSIZE_MAX): New macro, if not already defined.
79633         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79634         than 2 GiB.
79635
79636 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         Sync from coreutils.
79639         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79640         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79641         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79642         ULLONG_MAX doesn't work with 2.7.2.1.
79643
79644 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79647         From Ben Pfaff.
79648
79649         * modules/exclude (Depends-on): Depend on verify.
79650         * modules/strtoimax (Depends-on): Likewise.
79651         * modules/utimecmp (Depends-on): Likewise.
79652
79653 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/exclude.c: Include verify.h.
79656         (verify): Remove.  All callers changed to use verify.h's version.
79657         * lib/strtoimax.c: Likewise.
79658         * lib/utimecmp.c: Likewis.e
79659
79660         Sync from coreutils.
79661         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79662         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79663         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79664         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79665         bother returning ENOSYS if settimeofday or stime fails; just let
79666         them return whatever errno they want to return.
79667         * lib/utimens.c: Include unistd.h, for dup2.
79668         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79669         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79670
79671 2005-10-02  Jim Meyering  <jim@meyering.net>
79672
79673         Sync from coreutils.
79674         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79675         from glibc-2.2.5 that fails for read-only files.
79676
79677 2005-10-02  Jim Meyering  <jim@meyering.net>
79678
79679         Sync from coreutils.
79680         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79681         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79682         `#if HAVE_CONFIG_H'.
79683         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79684         Remove AT_FDCWD test.
79685         Do not consume the fd unless successful.
79686         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79687         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79688         block, so that we don't even try to compile it if settimeofday is
79689         available.  This works around a compilation failure on OSF1 V5.1,
79690         due to stime requiring a `long int*' while tv_sec is `int'.
79691
79692 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79693
79694         Sync from coreutils.
79695         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79696         against `yes', rather than just testing for nonempty.
79697
79698 2005-10-01  Simon Josefsson  <jas@extundo.com>
79699
79700         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79701         and Darwin.
79702
79703         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79704         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79705         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79706         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79707         Check if struct addrinfo is declared.
79708
79709 2005-10-01  Simon Josefsson  <jas@extundo.com>
79710
79711         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79712         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79713         AI_* and EAI_* definitions.  Protect function declarations.
79714
79715 2005-10-01  Jim Meyering  <jim@meyering.net>
79716
79717         Sync from coreutils.
79718
79719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79720         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79721         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79723         in the inet and nsl libraries.  Required on Solaris 5.7.
79724
79725 2005-10-01  Jim Meyering  <jim@meyering.net>
79726
79727         Sync from coreutils.
79728         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79729         in the inet and nsl libraries.  Required on Solaris 5.7.
79730
79731 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79732
79733         * lib/getdelim.c (getdelim): Remove unused variables.
79734
79735 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79738         so that the code works even with ancient cpp.  Portability problem
79739         with GCC 2.7.2.1 reported by Thomas M.Ott.
79740
79741 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * modules/regex (Depends-on): Add strcase.
79744
79745         * modules/gethostname (Licence): Change from GPL to LGPL, since
79746         gethostname.c is a trivial implementation of a standard library
79747         function.
79748         * modules/poll (License): Change from GPL to LGPL, since it's
79749         derived from LGPL code.
79750
79751 2005-09-27  Jim Meyering  <jim@meyering.net>
79752
79753         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79754         HAVE_CONFIG_H.
79755
79756         * lib/intprops.h (signed_type_or_expr__): Define.
79757         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79758         for unsigned types.
79759
79760 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * lib/verify.h (verify_expr): Remove, replacing with:
79763         (verify_true): New macro that returns true instead of void.
79764         (verify_type__): Remove.
79765         (verify): Use verify_true rather than verify_type__.
79766
79767 2005-09-26  Bruno Haible  <bruno@clisp.org>
79768
79769         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79770         is necessary.
79771         (lib_SOURCES): Remove mbchar.c.
79772         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79773         (Files): Add m4/mbrtowc.m4.
79774         * modules/mbiter: Likewise.
79775         * modules/mbuiter: Likewise.
79776
79777 2005-09-26  Bruno Haible  <bruno@clisp.org>
79778
79779         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79780         compile mbchar.c if they are not both present.
79781         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79782         * m4/mbiter.m4 (gl_MBITER): Likewise.
79783         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79784         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79785         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79786
79787 2005-09-25  Jim Meyering  <jim@meyering.net>
79788
79789         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79790         also uses socklen_t.
79791
79792 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * lib/utimens.c (ENOSYS): Define if not already defined.
79795         (futimens): Support having a null PATH if the file descriptor
79796         is nonnegative.
79797
79798         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79799         Remove.
79800         (__attribute): Define to empty unless GCC 3.1 or later.
79801         This works around a core dump on OpenBSD 3.4, which has GCC
79802         2.95.3, which dumps core when given __attribute__(()).  It also
79803         simplifies other tests, since we really don't want to bother with
79804         worrying about which ancient version of GCC supported what.
79805         Original problem reported by Yoann Vandoorselaere, with part of
79806         the fix suggested by Derek Price.
79807
79808 2005-09-24  Jim Meyering  <jim@meyering.net>
79809
79810         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79811         so we can once again use a positive bitfield width of 1 -- now we
79812         don't have to explain why we were using a bitfield width of 2.
79813
79814 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79817         and similarly for the other external symbols.  Problem reported
79818         by James Gallager.
79819
79820         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79821         bug reported by Jim Meyering.
79822
79823         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79825         not needed, since socklen is a prerequisite module.
79826
79827 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79830         Problem reported by Eric Blake.
79831         (getaddrinfo): Initialize se so that it's not garbage.
79832         Redo internal storage allocation so that it doesn't make unportable
79833         assumptions about alignment.
79834         Fix a memory leak.
79835
79836         * lib/utimens.c (futimens): Use futimesat if available.
79837         Prefer it to futimes since it doesn't have the futimes bug.
79838
79839         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79840         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79841         Instead, declare a function that returns a pointer to an array,
79842         and use verify_type__ to declare the size of the array.
79843         Problem and germ of a solution reported by Bruno Haible.
79844         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79845         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79846
79847 2005-09-23  Jim Meyering  <jim@meyering.net>
79848
79849         Sync from coreutils.
79850         Correct build failure (socklen_t not defined) on at least
79851         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79853
79854 2005-09-23  Jim Meyering  <jim@meyering.net>
79855
79856         * modules/getaddrinfo (Depends-on): Add socklen.
79857
79858 2005-09-23  Bruno Haible  <bruno@clisp.org>
79859
79860         * tests/test-verify.c: New file.
79861
79862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         Sync from coreutils.
79865
79866         * modules/argmatch (Depends-on): Add verify.
79867         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79868         unistd-safer.
79869         * modules/save-cwd (Depends-on): Likewise.
79870
79871         * modules/openat (Files): Add lib/openat-die.c.
79872         (Depends-on): Remove error, exitfail.
79873         Add dirname.
79874
79875         * modules/verify: New file.
79876         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79877         with "verify" module.
79878
79879 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         Sync from coreutils.
79882
79883         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79884         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79885         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79886         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79887         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79888         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79889         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79890         Don't bother checking for string.h, stdlib.h, unistd.h.
79891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79892         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79893         module's job.
79894         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79895         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79896
79897         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79898         (gl_GETDATE): Use it.
79899
79900         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79901
79902 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         Sync from coreutils.
79905
79906         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79907         stat-time.h.
79908         * lib/argmatch.h: Include verify.h
79909         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79910         (ARGMATCH_ASSERT): Remove; unused.
79911         * lib/canonicalize.c: Assume STDC_HEADERS.
79912         * lib/exclude.c: Include "strcase.h".
79913         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79914         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79915         and stdio-safer.h.
79916         (getusershell): Call fopen, not fopen_safer.
79917         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79918         Do not include unistd-safer.h.
79919         (save_cwd): Don't call fd_safer; no longer needed
79920         now that we include fcntl--.h.
79921
79922         * lib/getdate.y (relative_time): New type.
79923         (RELATIVE_TIME_0): New constant.
79924         (parser_control): Use relative_time instead of doing it ourselves.
79925         (%union): Add new relative_time rel member.
79926         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79927         Now typeless.
79928         (relunit, relunit_snumber): Now of type rel.
79929         (zone, rel, relunit, get_date): Adjust to above changes.
79930
79931         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79932         Do not include unistd-safer.h.
79933         (getloadavg): Don't call fd_safer; no longer needed
79934         now that we include fcntl--.h.
79935
79936         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79937         (make_dir_parents): Treat ENOSYS like EEXIST.
79938
79939         Improve quality of diagnostics on restore_cwd failure.
79940         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79941         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79942         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79943         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79944         each time through the loop.  Do not diagnose restore_cwd failure;
79945         that is the caller's job (and perhaps the caller does not care).
79946
79947         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79948         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79949         If the file already exists but is not a directory, don't bother
79950         to try to make its parents.
79951         Close potential file descriptor leak if we can't chdir("/") (!).
79952         Don't always return true if chdir($PWD) fails; return true only
79953         if the requested action was done successfully (except for the
79954         chdir($PWD)).
79955         Don't log final directory unless we actually made it.
79956         Refactor to avoid duplicate code to fix up permissions.
79957         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79958
79959         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79960         to make it a bit faster and (I hope) clearer.
79961         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79962         Fix bug in formats like %2N.
79963
79964         * lib/verify.h: New file.
79965
79966 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79967
79968         Sync from coreutils.
79969         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79970
79971 2005-09-22  Jim Meyering  <jim@meyering.net>
79972
79973         Sync from coreutils.
79974
79975         * m4/lstat.m4 (gl_FUNC_LSTAT):
79976         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79977         Remove obsolete comment.
79978         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79979         * m4/xstrtod.m4: Likewise.
79980
79981         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79982
79983 2005-09-22  Jim Meyering  <jim@meyering.net>
79984
79985         Sync from coreutils.
79986
79987         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79988
79989         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79990         the .tm_year member, since otherwise gcc-4.0 would now warn about
79991         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79992
79993         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79994         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79995
79996         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79997         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79998         when run in a time zone for which daylight savings time is in effect
79999         for the starting date.
80000
80001         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80002         stop us from restricting permissions of just-created absolute-named
80003         directories.
80004         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80005         to restore initial working directory.
80006         * lib/mkdir-p.c (make_dir_parents): New parameter:
80007         different_working_dir, to tell caller if/when we change the working
80008         directory and are unable to return to the initial one.
80009         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80010         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80011         `return false'.  This fixes a bug introduced on 2004-07-30.
80012
80013         * lib/openat.c (fdopendir): Be sure to close the supplied
80014         file descriptor before returning.  This makes our replacement
80015         implementation a little closer to Solaris's, where fdopendir
80016         ties the file descriptor to the returned DIR* pointer.
80017         * lib/openat.c (unlinkat): New function.
80018         * lib/openat.h (unlinkat): Add prototype.
80019         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80020         (openat_restore_fail): Rename from openat_restore_die.
80021         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80022
80023         Provide an alternative to exiting immediately upon save_cwd or
80024         restore_cwd failure.  Now, an application can arrange e.g.,
80025         to perform a longjump in that case.
80026         * lib/openat.c: Include dirname.h.
80027         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80028         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80029         and openat_restore_die rather than calling error directly.
80030         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80031
80032         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80033         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80034         define.
80035
80036         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80037         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80038                             int utc, int nanoseconds);
80039         Background:
80040         date should not have to allocate a megabyte of virtual memory to
80041         handle a format argument like +%1048575T.  When implemented with
80042         strftime, it must allocate such a buffer, use strftime to fill it
80043         in, print it, then free it.
80044         With fprintftime, it simply prints everything and exits.
80045         With no need for memory allocation, that's one fewer way to fail.
80046         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80047         optional field width, not before, so we accept %9:z, not %:9z.
80048         (my_strftime): Be sure to use L_('x') for literals.
80049
80050         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80051         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80052         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80053         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80054         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80055         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80056         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80057         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80058         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80059         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80060         * lib/xgethostname.c, lib/xreadlink.c:
80061         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80062
80063         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80064         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80065         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80066         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80067         and don't include <sys/file.h>).
80068
80069 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80070
80071         Sync from coreutils.
80072
80073         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80074         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80075         [!LDAV_DONE]: Avoid unused variable warning.
80076
80077 2005-09-21  Bruno Haible  <bruno@clisp.org>
80078
80079         * lib/unicodeio.h (unicode_to_mb): New declaration.
80080
80081 2005-09-20  Derek Price  <derek@ximbiot.com>
80082
80083         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80084         getaddrinfo.h.
80085
80086 2005-09-20  Bruno Haible  <bruno@clisp.org>
80087
80088         * gnulib-tool: Remove trailing slashes from the values specified for
80089         --source-base, --m4-base, --tests-base, --aux-dir.
80090         Suggested by Simon Josefsson <jas@extundo.com>.
80091
80092 2005-09-20  Bruno Haible  <bruno@clisp.org>
80093
80094         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80095         func_modules_to_filelist, func_import, func_create_testdir): Make all
80096         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80097         change when gnulib-tool is invoked in a different locale.
80098
80099 2005-09-19  Simon Josefsson  <jas@extundo.com>
80100
80101         * m4/socklen.m4: Fix typo.
80102
80103 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80104
80105         Use a consistent style for including <config.h>.
80106         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80107         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80108         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80109         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80110         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80111         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80112         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80113         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80114         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80115         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80116         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80117         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80118         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80119         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80120         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80121         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80122         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80123         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80124         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80125         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80126         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80127         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80128         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80129         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80130         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80131         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80132         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80133         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80134         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80135         lib/xstrtoumax.c, lib/yesno.c:
80136         Standardize inclusion of config.h.
80137         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80138         lib/inttostr.h:  Removed inclusion of config.h from header files.
80139         * lib/inttostr.c:  Adjusted in-tree users.
80140         * lib/timespec.h: Remove superfluous warning to include config.h.
80141         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80142         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80143         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80144         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80145         config.h with HAVE_CONFIG_H.
80146
80147 2005-09-19  Jim Meyering  <jim@meyering.net>
80148
80149         * modules/pathmax (License): Change to LGPL.
80150
80151 2005-09-19  Derek Price  <derek@ximbiot.com>
80152
80153         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80154
80155 2005-09-19  Bruno Haible  <bruno@clisp.org>
80156
80157         * gnulib-tool (import): Provide default for --tests-base.
80158
80159 2005-09-19  Bruno Haible  <bruno@clisp.org>
80160
80161         * doc/quote.texi: New file, extracted from gnulib.texi.
80162         * doc/ctime.texi: New file, extracted from gnulib.texi.
80163         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80164         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80165         * doc/gnulib.texi: Include them.
80166
80167 2005-09-18  Bruno Haible  <bruno@clisp.org>
80168
80169         Portability fix.
80170         * gnulib-tool (func_readlink): New function.
80171         (func_ln_if_changed): Use it.
80172
80173 2005-09-18  Bruno Haible  <bruno@clisp.org>
80174
80175         * gnulib-tool: Support --with-tests also with --import.
80176         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80177         (func_import): Use variables $testsbase and $inctests. Emit a
80178         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80179         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80180         SUBDIRS += $testsdir.
80181         (func_create_testdir): Update.
80182
80183 2005-09-18  Bruno Haible  <bruno@clisp.org>
80184
80185         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80186         instead of $dry_run.
80187         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80188         (func_ln_if_changed): Don't handle dry-run here.
80189         (func_import): In dry-run mode, detect more precisely which actions
80190         would be performed, and don't use "...ing" verbs.
80191
80192 2005-09-18  Bruno Haible  <bruno@clisp.org>
80193
80194         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80195         (func_import): Use join on two temporary files instead of three nested
80196         loops, in order to determine which files are new or old.
80197
80198 2005-09-18  Bruno Haible  <bruno@clisp.org>
80199
80200         * gnulib-tool (func_import): Comment out code that spits out the
80201         new files with --dry-run.
80202
80203 2005-09-18  Bruno Haible  <bruno@clisp.org>
80204
80205         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80206
80207 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * lib/stat-time.h: New file.
80210         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80211         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80212         in a different way.
80213         (timespec_cmp): New function.
80214         * lib/utimecmp.c: Include stat-time.h.
80215         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80216         members exist, not on the obsolescent ST_MTIM_NSEC.
80217         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80218
80219 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80222
80223 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * MODULES.html.sh (File system functions): Add stat-time.
80226         * modules/stat-time: New file.
80227         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80228         is now done in a different way, by the stat-time module.
80229         * modules/utimecmp (Depends-on): Add stat-time.
80230
80231 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80232
80233         * m4/st_mtim.m4: Remove.  Superseded by...
80234         * m4/stat-time.m4: New file.
80235         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80236         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80237
80238 2005-09-15  Derek Price  <derek@ximbiot.com>
80239
80240         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80241
80242 2005-09-15  Derek Price  <derek@ximbiot.com>
80243
80244         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80245         * lib/regex_internal.c: Ditto, using this...
80246         (__GNUC_PREREQ): ...new macro.
80247         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80248         using...
80249         (__GNUC_PREREQ): ...this new macro.
80250
80251         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80252
80253 2005-09-15  Derek Price  <derek@ximbiot.com>
80254             Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80257         changes, consolidating in...
80258         * lib/regex_internal.h: ...this file.
80259
80260 2005-09-13  Jim Meyering  <jim@meyering.net>
80261
80262         * lib/canon-host.c: Filter through gnu indent and reword comments
80263         slightly.
80264         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80265
80266 2005-09-13  Derek Price  <derek@ximbiot.com>
80267
80268         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80269         failure.
80270         Reported by Jim Meyering  <jim@meyering.net>.
80271
80272 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80273
80274         * lib/base64.c: Typo.
80275         (base64_encode): Put b64str in initialized data section.
80276
80277 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         Merge glibc and coreutils changes into gnulib, plus a few
80280         extra fixes.
80281         * lib/md5.c: Use #error rather than a string.
80282         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80283         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80284         (__attribute__): Define to empty for non recent-GCC.
80285         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80286         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80287         Renamed from their non-__ counterparts, with new macros replacing
80288         them if not _LIBC.  Add __THROW attribute.
80289         (rol): Remove.
80290         (struct md5_ctx): Align buffer if using GCC.
80291         * lib/sha1.h (struct sha1_ctx): Likewise.
80292         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80293         The old name was backwards.
80294         (NOTSWAP): Remove; not used.
80295         (rol): New macro, moved here from md5.h.
80296         (sha1_process_block): Remove a FIXME that doesn't make sense.
80297
80298 2005-09-12  Derek Price  <derek@ximbiot.com>
80299
80300         Return usable errors from canon-host.
80301         * lib/canon-host.h: New file.
80302         * lib/canon-host.c (canon_host): Wrap...
80303         (canon_host_r): ...this new function, which now relies exclusively on
80304         getaddrinfo.
80305         (ch_strerror): New function.
80306         (last_cherror): New global.
80307         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80308         interface.
80309         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80310         void *.
80311         (freeaddrinfo): Free ai->ai_canonname when set.
80312
80313 2005-09-12  Derek Price  <derek@ximbiot.com>
80314
80315         Make canon-host require getaddrinfo.
80316         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80317         AC_LIBSOURCE canon-host.h.  Call...
80318         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80319         gl_GETADDRINFO.
80320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80321
80322 2005-09-12  Derek Price  <derek@ximbiot.com>
80323
80324         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80325         LGPL.
80326         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80327
80328 2005-09-12  Derek Price  <derek@ximbiot.com>
80329
80330         * lib/gai_strerror.c: Include config.h when available.  Include
80331         getaddrinfo.h before other headers to test interface.
80332         Reported by Larry Jones <lawrence.jones@ugs.com>.
80333
80334 2005-09-12  Derek Price  <derek@ximbiot.com>
80335             Paul Eggert  <eggert@cs.ucla.edu>
80336
80337         * modules/glob (Files): Add glob-libc.h.
80338
80339 2005-09-12  Derek Price  <derek@ximbiot.com>
80340             Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80343         glob_.h, glob-libc.h.
80344         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80345
80346 2005-09-12  Derek Price  <derek@ximbiot.com>
80347             Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80350         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80351         protecting things that should be done only in gnulib contexts.
80352         * lib/glob_.h: New file, containing only the glob things needed for
80353         gnulib.
80354         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80355         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80356         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80357         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80358         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80359         and to respect the namespace rules better.
80360
80361 2005-09-08  Simon Josefsson  <jas@extundo.com>
80362
80363         * modules/socklen: New file.
80364
80365 2005-09-08  Simon Josefsson  <jas@extundo.com>
80366
80367         * m4/socklen.m4: New file.
80368
80369 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80370
80371         * modules/utimens (Files): Add m4/utimbuf.m4, since
80372         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80373         Reported by Sergey Poznyakoff.
80374
80375 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80378         definitions, since that's the preferred style in glibc.
80379         Fix a minor spacing issue, and update copyright notice to match
80380         glibc's.
80381
80382 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80385
80386 2005-09-06  Simon Josefsson  <jas@extundo.com>
80387
80388         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80389         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80390
80391 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80392
80393         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80394         warning.
80395
80396 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * config/srclist.txt: Add glibc bug 1302.
80399
80400 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         Change bitset word type from unsigned int to unsigned long int,
80403         as this has better performance on typical 64-bit hosts.
80404         Port bitset code to hosts with unusual word sizes.
80405         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80406         (build_collating_symbol):
80407         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80408         argument is a bitset.  This is merely a style issue, but it makes
80409         it clearer that an entire array is expected.
80410         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80411         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80412         Port to the case where bitset_word is not the same as unsigned int.
80413         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80414         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80415         Likewise.
80416         * lib/regexec.c (check_dst_limits_calc_pos_1,
80417         check_subexp_matching_top):
80418         (build_trtable, group_nodes_into_DFAstates):
80419         Likewise.
80420         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80421         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80422         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80423         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80424         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80425         * lib/regcomp.c (optimize_subexps, lower_subexp):
80426         Work even if bitset_word has holes in its bitwise representation.
80427         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80428         * lib/regexec.c (check_dst_limits_calc_pos_1,
80429         check_subexp_matching_top):
80430         Likewise.
80431         * lib/regex_internal.c (re_string_reconstruct):
80432         Don't assume UCHAR_MAX == 255.
80433         * lib/regex_internal.h (bitset_set_all): Likewise.
80434         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80435         All uses changed.
80436         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80437         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80438         All uses changed.
80439         (BITSET_WORD_MAX): New macro.
80440         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80441         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80442         (bitset_empty, bitset_copy):
80443         Prefer sizeof (bitset) to multiplying it out ourselves.
80444         (bitset_not_merge): Remove; unused.
80445         (bitset_contain): Return bool, not unsigned int with one bit on.
80446         All callers changed.
80447         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80448         alignment than re_node_set; do this by defining a new internal
80449         type struct dests_alloc and using it to allocate memory.
80450
80451 2005-09-05  Bruno Haible  <bruno@clisp.org>
80452
80453         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80454         links.
80455
80456 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80457
80458         * modules/size_max (Makefile.am): Add size_max.h
80459
80460 2005-09-04  Derek Price  <derek@ximbiot.com>
80461
80462         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80463
80464 2005-09-03  Simon Josefsson  <jas@extundo.com>
80465
80466         * gnulib-tool: Fix typo.
80467
80468 2005-09-03  Simon Josefsson  <jas@extundo.com>
80469
80470         * config/srclist.txt: Add glibc bug 1293.
80471
80472 2005-09-03  Derek Price  <derek@ximbiot.com>
80473
80474         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80475         From Larry Jones <lawrence.jones@ugs.com>.
80476
80477 2005-09-02  Simon Josefsson  <jas@extundo.com>
80478
80479         * modules/socklen: New file.
80480
80481 2005-09-02  Simon Josefsson  <jas@extundo.com>
80482
80483         * modules/havelib: New module.
80484
80485         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80486         Use havelib.
80487
80488 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         Check for arithmetic overflow when calculating sizes, to prevent
80491         some buffer-overflow issues.  These patches are conservative, in the
80492         sense that when I couldn't determine whether an overflow was possible,
80493         I inserted a run-time check.
80494         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80495         macros.
80496         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80497         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80498         (re_xnrealloc, re_x2nrealloc): New inline functions.
80499         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80500         parse_bracket_exp):
80501         (build_equiv_class, build_charclass): Check for arithmetic overflow
80502         in size expression calculations.
80503         * lib/regex_internal.c (re_string_realloc_buffers):
80504         (build_wcs_upper_buffer, re_node_set_add_intersect):
80505         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80506         (re_dfa_add_node, register_state): Likewise.
80507         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80508         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80509         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80510         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80511
80512 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80513
80514         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80515         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80516
80517 2005-09-02  Bruno Haible  <bruno@clisp.org>
80518
80519         Support for lib vs. lib64 distinction on biarch platforms.
80520         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80521         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80523
80524 2005-09-02  Bruno Haible  <bruno@clisp.org>
80525
80526         * gnulib-tool (import): In the other first-use case, provide defaults
80527         as well.
80528
80529 2005-09-02  Bruno Haible  <bruno@clisp.org>
80530
80531         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80532         patches not yet found in the latest gettext release.
80533
80534 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80537         to avoid a collision with bits/local_lim.h in glibc.
80538         All uses changed.  Problem reported by Dmitry V. Levin in
80539         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80540
80541         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80542         bugs in int versus size_t comparisons.
80543         (re_string_context_at): Fix bug where the code assumed that
80544         Idx is signed.
80545
80546         Use bool where appropriate.
80547         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80548         All callers changed.
80549         (calc_eclosure_iter): Likewise, for ROOT arg.
80550         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80551         (build_charclass_op): Likewise, for NON_MATCH arg.
80552         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80553         (re_string_construct_common): Likewise, for ICASE arg.
80554         * lib/regexec.c (re_search_2_stub, re_search_stub):
80555         Likewise, for RET_LEN arg.
80556         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80557         (set_regs): Likewise, for FL_BACKTRACK arg.
80558         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80559         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80560         (calc_eclosure_iter, parse_bracket_exp):
80561         Use bool for internal variables that are booleans.
80562         * lib/regexec.c (re_search_internal, check_matching,
80563         proceed_next_node):
80564         (set_regs, build_sifted_states, sift_states_bkref):
80565         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80566         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80567         (find_collation_sequence_value):
80568         Likewise.
80569         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80570         (re_node_set_compare):
80571         Return bool, not int. All callers changed.
80572         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80573         (build_trtable, check_node_accept): Likewise.
80574         * lib/regex_internal.h: Include stdbool.h.
80575
80576         Fix bugs uncovered when converting to bool.
80577         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80578         failure instead of charging ahead blindly.
80579         * lib/regex_internal.c (register_state): Likewise.
80580         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80581         for freeing internal storage.
80582         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80583         bitset pieces used as boolean, to avoid undefined behavior
80584         on hosts that do int overflow checking.
80585
80586 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80587
80588         * config/srclist.txt: Add glibc bugs 1285-1287.
80589
80590 2005-09-01  Jim Meyering  <jim@meyering.net>
80591
80592         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80593         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80594         Require gl_STAT_MACROS, too.
80595
80596 2005-09-01  Bruno Haible  <bruno@clisp.org>
80597
80598         * gnulib-tool (import): In the first-use case, provide defaults.
80599
80600 2005-09-01  Bruno Haible  <bruno@clisp.org>
80601
80602         * gnulib-tool (func_import): Remove the .tmp files.
80603
80604 2005-09-01  Bruno Haible  <bruno@clisp.org>
80605
80606         * gnulib-tool (func_import): Fix handling of symbolic links.
80607
80608 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80611         old glibc regex code mishandles strings longer than 2**31 bytes.
80612         This patch fixes this when the regex code is used in gnulib
80613         (i.e., outside glibc).
80614
80615         This patch should not affect the use of the regex code inside
80616         glibc.  No doubt this problem also needs to be handled for glibc
80617         as well, but the result will be an incompatible change to the
80618         glibc ABI, and the old ABI will have to be supported too.  That
80619         can be the the subject for another patch.
80620
80621         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80622         governing whether the rest of this patch is active.  By default,
80623         the macro is disabled and the patch has no effect.
80624         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80625         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80626         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80627         (re_match_2, re_set_registers): Use the new types.
80628         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80629         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80630         New macros.
80631         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80632         (re_string_context_at, bin_tree_t, re_dfastate_t):
80633         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80634         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80635         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80636         (re_string_char_size_at, re_string_wchar_at):
80637         (re_string_elem_size_at):
80638         Use the new types and macros to port to 64-bit hosts.
80639         Use unsigned types for internal values, so that the code
80640         mostly works even for arrays larger than SSIZE_MAX.
80641         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80642         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80643         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80644         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80645         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80646         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80647         (calc_inveclosure, parse_dup_op, build_range_exp):
80648         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80649         (fetch_number, create_token_tree, mark_opt_subexp):
80650         Likewise.
80651         * lib/regex_internal.c (re_string_construct_common,
80652         create_ci_newstate):
80653         (create_cd_newstate, re_string_allocate, re_string_construct):
80654         (re_string_realloc_buffers, build_wcs_upper_buffer):
80655         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80656         (re_string_reconstruct, re_string_peek_byte_case):
80657         (re_string_fetch_byte_case, re_string_context_at):
80658         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80659         (re_node_set_init_copy, re_node_set_add_intersect):
80660         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80661         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80662         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80663         (re_acquire_state, re_acquire_state_context, register_state):
80664         Likewise.
80665         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80666         search_cur_bkref_entry):
80667         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80668         (re_search_internal, re_search_2_stub, re_search_stub)
80669         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80670         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80671         (update_cur_sifted_state, check_dst_limits):
80672         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80673         (check_subexp_limits, sift_states_bkref, merge_state_array):
80674         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80675         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80676         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80677         (expand_bkref_cache, check_node_accept_bytes):
80678         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80679         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80680         (acquire_init_state_context, check_halt_node_context):
80681         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80682         (sift_states_backward, clean_state_log_if_needed):
80683         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80684         (find_recover_state, transit_state_sb, transit_state_mb):
80685         (transit_state_bkref, build_trtable, match_ctx_clean):
80686         Likewise.
80687         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80688         to work around an assumption that REG_MISSING is negative.
80689
80690         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80691         (seek_collating_symbol_entry) [defined _LIBC]:
80692         (lookup_collation_sequence_value) [defined _LIBC]:
80693         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80694         Use prototypes rather than old-style function definitions.
80695         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80696         (transit_state_sb) [0]:
80697         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80698
80699         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80700         rm_eo.
80701
80702         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80703         (optimize_subexps, lower_subexp):
80704         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80705         since the signed shift might overflow.  Use 1u<<31 instead.
80706         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80707         Likewise.
80708         * lib/regexec.c (check_dst_limits_calc_pos_1,
80709         check_subexp_matching_top): Likewise.
80710
80711         * lib/regcomp.c (optimize_subexps, lower_subexp):
80712         Use CHAR_BIT rather than 8, for clarity.
80713         * lib/regexec.c (check_dst_limits_calc_pos_1):
80714         (check_subexp_matching_top): Likewise.
80715         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80716         have to worry about portability issues when shifting it left.
80717         Remove no-longer-needed test for table_size > 0.
80718         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80719         in a word, as the resulting behavior is undefined.
80720         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80721         in one case, a <= should have been an <, and in another case the
80722         whole test was missing.
80723         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80724         the standard name CHAR_BIT.
80725         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80726         this is not true on one's complement and signed-magnitude hosts.
80727
80728         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80729         next_last_offset.
80730         (struct re_dfa_t): Remove unused member states_alloc.
80731         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80732
80733 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80734
80735         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80736         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80737         and large-file glibc and in 32-bit large-file Solaris.
80738
80739 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80742         lengths fit in regoff_t; this isn't true if regoff_t is the same
80743         width as size_t.
80744         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80745         (= START + RANGE) instead of RANGE.  This avoids overflow
80746         problems when regoff_t is the same width as size_t.
80747         All callers changed.
80748         (re_search_2_stub): Check for overflow when adding the
80749         sizes of the two strings.
80750         (re_search_stub): Check for overflow when adding START
80751         to RANGE; if it occurs, substitute the extreme value.
80752
80753 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80756
80757 2005-08-31  Jim Meyering  <jim@meyering.net>
80758
80759         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80760         a pointer-to-const.
80761         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80762         (register_state): Likewise.
80763         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80764         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80765         (group_nodes_into_DFAstates): Likewise.
80766
80767 2005-08-31  Jim Meyering  <jim@meyering.net>
80768
80769         * check-module: Add a FIXME comment.
80770
80771 2005-08-31  Eric Blake  <ebb9@byu.net>
80772
80773         * modules/unistd-safer (Files): Add unistd--.h.
80774         * modules/stdio-safer (Files): Add stdio--.h.
80775
80776 2005-08-31  Derek Price  <derek@ximbiot.com>
80777
80778         * lib/getdelim.c (getdelim): Return EOF on EOF.
80779         Reported by Larry Jones <lawrence.jones@ugs.com>.
80780
80781 2005-08-31  Bruno Haible  <bruno@clisp.org>
80782
80783         Avoid unnecessary diffs in the generated lib/Makefile.am.
80784         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80785         the generated files.
80786         (func_import): Don't set cmd.
80787
80788 2005-08-31  Bruno Haible  <bruno@clisp.org>
80789
80790         * lib/strstr.c: Include <stddef.h>, for NULL.
80791         * lib/strcasestr.c: Likewise.
80792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80793
80794 2005-08-31  Bruno Haible  <bruno@clisp.org>
80795
80796         * gnulib-tool: New option --macro-prefix.
80797         (func_import): Use macro_prefix.
80798         (import): Handle option --macro-prefix.
80799
80800 2005-08-31  Bruno Haible  <bruno@clisp.org>
80801
80802         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80803         Also use new variables cached_lgpl, cached_libtool.
80804
80805 2005-08-31  Bruno Haible  <bruno@clisp.org>
80806
80807         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80808         always instantiating them.
80809
80810 2005-08-31  Bruno Haible  <bruno@clisp.org>
80811
80812         * gnulib-tool (func_import): Read the previous cached settings
80813         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80814         earlier added by gnulib but are now dropped. Warn when a gnulib file
80815         overwrites a non-gnulib file.
80816
80817 2005-08-31  Bruno Haible  <bruno@clisp.org>
80818
80819         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80820         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80821         projects that don't keep autogenerated files in CVS. Put into
80822         actioncmd only the specified modules, not the transitive closure.
80823
80824 2005-08-31  Bruno Haible  <bruno@clisp.org>
80825
80826         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80827         Create directories that shall be filled.
80828         (import): Don't look for gl_* macros in configure.ac. Recurse across
80829         all directories containing a gnulib-cache.m4 files, if meaningful.
80830
80831 2005-08-31  Bruno Haible  <bruno@clisp.org>
80832
80833         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80834         (import): Set seen_libtool when we see gl_LIBTOOL.
80835
80836 2005-08-31  Bruno Haible  <bruno@clisp.org>
80837
80838         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80839         declaration macro definitions from generated gnulib.m4.
80840
80841 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80842
80843         * lib/iconvme.h: Add prototype for iconv_alloc.
80844
80845 2005-08-29  Simon Josefsson  <jas@extundo.com>
80846
80847         * lib/iconvme.c: Fix errno.
80848
80849 2005-08-29  Bruno Haible  <bruno@clisp.org>
80850
80851         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80852         that it works when the directory contains spaces.
80853
80854 2005-08-29  Bruno Haible  <bruno@clisp.org>
80855
80856         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80857
80858 2005-08-29  Bruno Haible  <bruno@clisp.org>
80859
80860         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80861         Emit more advice.
80862
80863 2005-08-29  Bruno Haible  <bruno@clisp.org>
80864         and Stepan Kasal  <kasal@ucw.cz>
80865
80866         * check-module: If more parameters are given, check each of them
80867         separately; add more exceptions, as noted by Jim Meyering.
80868         (check_module): New procedure.
80869         (%exempt_header): Now contains all exceptions.
80870
80871 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80872
80873         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80874
80875 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80876
80877         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80878
80879 2005-08-28  Bruno Haible  <bruno@clisp.org>
80880
80881         * m4/gnulib-tool.m4: New file.
80882
80883 2005-08-27  Jim Meyering  <jim@meyering.net>
80884
80885         * modules/unistd-safer (Files): Add pipe-safer.c.
80886         * modules/fcntl-safer (Files): Add creat-safer.c.
80887
80888 2005-08-27  Jim Meyering  <jim@meyering.net>
80889
80890         * m4/stdlib-safer.m4: New file.  From coreutils.
80891         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80892         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80893         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80894         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80895         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80896
80897 2005-08-27  Jim Meyering  <jim@meyering.net>
80898
80899         * lib/fopen-safer.c: Merge minor changes from coreutils.
80900         * lib/dup-safer.c: Likewise.
80901         * lib/fd-safer.c: Likewise.
80902
80903         Merge from coreutils.
80904         * lib/stdio--.h: New file.
80905         * lib/stdlib--.h: New file.
80906         * lib/mkstemp-safer.c: New file.
80907
80908         GNU tar needs these.
80909         * lib/pipe-safer.c: New file.
80910         * lib/creat-safer.c: New file.
80911         * lib/fcntl--.h (creat): Define to creat_safer.
80912         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80913         * lib/unistd--.h (pipe): Define to pipe_safer.
80914         * lib/unistd-safer.h: Declare pipe_safer.
80915
80916 2005-08-26  Simon Josefsson  <jas@extundo.com>
80917
80918         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80919         Haible <bruno@clisp.org>.
80920
80921 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * lib/regex_internal.h: Remove all references to
80924         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80925         or better.
80926         (bitset_not, bitset_merge, bitset_not_merge):
80927         (bitset_mask, re_string_allocate, re_string_construct):
80928         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80929         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80930         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80931         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80932         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80933         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80934         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80935         (re_acquire_state_context):
80936         Remove unnecessary forward decls.
80937         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80938         Put __attribute at function definition,
80939         now that the function decl has been removed.
80940         * lib/regex_internal.c (re_string_peek_byte_case):
80941         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80942         Likewise.
80943
80944 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80945
80946         * m4/regex.m4: Add AC_PREREQ(2.50).
80947         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80948
80949 2005-08-25  Simon Josefsson  <jas@extundo.com>
80950
80951         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80952         __fsetlocking.
80953
80954 2005-08-25  Simon Josefsson  <jas@extundo.com>
80955
80956         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80957         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80958         GLIBC specific code.
80959
80960 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         Make regex safe for g++.  This fixes one real bug (an "err"
80963         that should have been "*err").  g++ problem reported by
80964         Sam Steingold.
80965         * lib/regex_internal.h (re_calloc): New macro, consistent with
80966         re_malloc etc.  All callers of calloc changed to use re_calloc.
80967         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80968         not int.  All callers changed.
80969         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80970         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80971         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80972         (find_recover_state): Change "err" to "*err"; this fixes what
80973         appears to be a real bug.
80974         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80975         versus int.
80976
80977 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80978
80979         * modules/regex (Depends-on): Add malloc, since the code
80980         assumes that !malloc(0) means failure.
80981
80982 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80985
80986         alloca modernization/simplification for regex.
80987         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80988         needs to be at the start of the file, and can be moved into
80989         regex_internal.h and simplified.
80990         * lib/regex_internal.h: Include <alloca.h>.
80991         (__libc_use_alloca) [!defined _LIBC]: New macro.
80992         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80993         now works outside glibc.
80994
80995 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * config/srclist.txt: Add glibc bugs 1241, 1245.
80998
80999 2005-08-25  Jim Meyering  <jim@meyering.net>
81000
81001         * lib/open-safer.c: Include <config.h>.
81002         Otherwise, we'd lose LARGEFILE support in any file using
81003         e.g. "fcntl--.h"
81004
81005 2005-08-25  Bruno Haible  <bruno@clisp.org>
81006
81007         * m4/minmax.m4: Require autoconf 2.52.
81008         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81009         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81010         alternatives of translit over the alphabet.
81011         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81012
81013 2005-08-24  Simon Josefsson  <jas@extundo.com>
81014
81015         * tests/test-getpass.c: New file.
81016
81017 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81020         for GNU regex features.
81021
81022 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81025         * lib/regex.h (regerror): Likewise.
81026
81027         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81028         requires this.  (The code never needed it.)
81029
81030         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81031         All uses of recently-renamed identifiers changed to use the new,
81032         POSIX-compliant names.  The code will build and run just fine
81033         without these changes, but it's better to eat our own dog food
81034         and use the standard-conforming names.
81035
81036         * lib/regex.h: Fix a multitude of POSIX name space violations.
81037         These changes have an effect only for programs that define
81038         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81039         do not change anything for programs compiled in the normal way.
81040         Also, there is no effect on the ABI.
81041
81042         (_REGEX_SOURCE): New macro.
81043         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81044         defined and _GNU_SOURCE is not; this fixes a name space violation.
81045
81046         Rename the following macros to obey POSIX requirements.
81047         The old names are still visible as macros if _REGEX_SOURCE is defined.
81048         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81049         RE_BACKSLASH_ESCAPE_IN_LISTS.
81050         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81051         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81052         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81053         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81054         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81055         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81056         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81057         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81058         (REG_INTERVALS): renamed from RE_INTERVALS.
81059         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81060         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81061         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81062         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81063         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81064         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81065         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81066         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81067         RE_UNMATCHED_RIGHT_PAREN_ORD.
81068         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81069         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81070         (REG_DEBUG): renamed from RE_DEBUG.
81071         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81072         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81073         unusual, since we can't clash with the POSIX REG_ICASE.
81074         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81075         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81076         (REG_NO_SUB): renamed from RE_NO_SUB.
81077         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81078         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81079         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81080         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81081         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81082         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81083         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81084         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81085         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81086         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81087         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81088         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81089         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81090         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81091         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81092         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81093         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81094         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81095         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81096         (REG_FIXED): Renamed from REGS_FIXED.
81097         (REG_NREGS): Renamed from RE_NREGS.
81098
81099         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81100         of other REG_* macros, since POSIX says the user is allowed to
81101         #undef these macros selectively.
81102
81103         (reg_errcode_t): Update comment stating what other tables need
81104         to be consistent.
81105
81106         Rename the following enum values to obey POSIX requirements.
81107         The old names are still visible as macros.
81108         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81109         is not defined, since GNU is supposed to be a superset of POSIX as
81110         much as possible, and since we want reg_errcode_t to be a signed
81111         type for implementation consistency.
81112         (_REG_NOERROR): Renamed from REG_NOERROR.
81113         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81114         (_REG_BADPAT): Renamed from REG_BADPAT.
81115         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81116         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81117         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81118         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81119         (_REG_EBRACK): Renamed from REG_EBRACK.
81120         (_REG_EPAREN): Renamed from REG_EPAREN.
81121         (_REG_EBRACE): Renamed from REG_EBRACE.
81122         (_REG_BADBR): Renamed from REG_BADBR.
81123         (_REG_ERANGE): Renamed from REG_ERANGE.
81124         (_REG_ESPACE): Renamed from REG_ESPACE.
81125         (_REG_BADRPT): Renamed from REG_BADRPT.
81126         (_REG_EEND): Renamed from REG_EEND.
81127         (_REG_ESIZE): Renamed from REG_ESIZE.
81128         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81129         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81130         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81131         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81132         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81133
81134         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81135         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81136         changed.  But support the old name if the new one is not defined
81137         and if _REGEX_SOURCE.
81138
81139         Change the following member names in struct re_pattern_buffer.
81140         The old names are still supported if !_REGEX_SOURCE.
81141         The new names are always supported, regardless of _REGEX_SOURCE.
81142         (re_buffer): Renamed from buffer.
81143         (re_allocated): Renamed from allocated.
81144         (re_used): Renamed from used.
81145         (re_syntax): Renamed from syntax.
81146         (re_fastmap): Renamed from fastmap.
81147         (re_translate): Renamed from translate.
81148         (re_can_be_null): Renamed from can_be_null.
81149         (re_regs_allocated): Renamed from regs_allocated.
81150         (re_fastmap_accurate): Renamed from fastmap_accurate.
81151         (re_no_sub): Renamed from no_sub.
81152         (re_not_bol): Renamed from not_bol.
81153         (re_not_eol): Renamed from not_eol.
81154         (re_newline_anchor): Renamed from newline_anchor.
81155
81156         Change the following member names in struct re_registers.
81157         The old names are still supported if !_REGEX_SOURCE.
81158         The new names are always supported, regardless of _REGEX_SOURCE.
81159         (rm_num_regs): Renamed from num_regs.
81160         (rm_start): Renamed from start.
81161         (rm_end): Renamed from end.
81162
81163         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81164         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81165         Prepend __ to parameter names.
81166
81167         Undo yesterday's changes.
81168
81169 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81172         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81173         lib/regex.c.
81174
81175 2005-08-24  Jim Meyering  <jim@meyering.net>
81176
81177         Sync from coreutils.
81178         * m4/fcntl-safer.m4: New file.
81179
81180         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81181         and object files for this module.
81182
81183 2005-08-24  Jim Meyering  <jim@meyering.net>
81184
81185         Sync from coreutils.
81186         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81187
81188 2005-08-24  Jim Meyering  <jim@meyering.net>
81189
81190         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81191         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81192
81193 2005-08-24  Jim Meyering  <jim@meyering.net>
81194
81195         * modules/fcntl-safer: New module.
81196         * modules/fts (Depends-on): Add fcntl-safer.
81197         * MODULES.html.sh (File descriptor based Input/Output):
81198         Add fcntl-safer.
81199
81200 2005-08-24  Bruno Haible  <bruno@clisp.org>
81201
81202         Support for unit test modules.
81203         * modules/README: Mention tests modules.
81204         * modules/TEMPLATE-TESTS: New file.
81205         * gnulib-tool: New options --extract-tests-module, --with-tests and
81206         --tests-base (unused for the moment).
81207         (testsbase, inctests): New variables.
81208         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81209         (func_verify_module): Exclude TEMPLATE-TESTS.
81210         (func_verify_nontests_module, func_verify_tests_module): New functions.
81211         (func_get_dependencies): Add implicit dependency for tests modules.
81212         (func_get_tests_module): New function.
81213         (func_modules_transitive_closure): When --with-tests was specified,
81214         include the unit tests as well, unless explicitly avoided.
81215         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81216         (func_emit_tests_Makefile_am): New function.
81217         (func_create_testdir): When --with-tests was specified, emit a
81218         tests/ directory.
81219         * MODULES.html.sh (Future developments): Update.
81220
81221 2005-08-24  Bruno Haible  <bruno@clisp.org>
81222
81223         * modules/tls-tests: New file.
81224         * tests/test-tls.c: New file, from GNU gettext.
81225
81226 2005-08-24  Bruno Haible  <bruno@clisp.org>
81227
81228         * modules/lock-tests: New file.
81229         * tests/test-lock.c: New file, from GNU gettext.
81230
81231 2005-08-24  Bruno Haible  <bruno@clisp.org>
81232
81233         * lib/lock.h: Add multiple inclusion guard.
81234         * lib/tls.h: Add multiple inclusion guard.
81235
81236 2005-08-24  Bruno Haible  <bruno@clisp.org>
81237
81238         * gnulib-tool: Add support for the --aux-dir option to
81239         --create-testdir, --create-megatestdir, --test, --megatest.
81240         (func_create_testdir, func_create_megatestdir): Optionally emit a
81241         AC_CONFIG_AUX_DIR directive.
81242         (create-testdir, create-megatestdir, test, megatest): Provide a
81243         default value for $auxdir.
81244
81245 2005-08-24  Bruno Haible  <bruno@clisp.org>
81246
81247         * gnulib-tool (import): Use compound statement instead of subshell
81248         where possible.
81249
81250 2005-08-24  Bruno Haible  <bruno@clisp.org>
81251
81252         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81253
81254 2005-08-24  Bruno Haible  <bruno@clisp.org>
81255
81256         * gnulib-tool (func_version): Update.
81257
81258 2005-08-24  Bruno Haible  <bruno@clisp.org>
81259
81260         * gnulib-tool (func_import, func_create_testdir,
81261         func_create_megatestdir): Quote all autoconf macro arguments.
81262
81263 2005-08-24  Bruno Haible  <bruno@clisp.org>
81264
81265         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81266         option --force, because --force causes the aclocal.m4 of each
81267         subdirectory to be newer than the corresponding config.h.in.
81268
81269 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81272         All contents moved to gl_REGEX.
81273         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81274         assume that it does.
81275
81276 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81277
81278         * lib/regex.h (REG_NOSYS)
81279         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81280         Define, since POSIX requires it as of 2001.
81281         (_REG_ENOSYS)
81282         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81283         New private symbol, used to keep the enum signed in all cases.
81284         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81285         Youngman in
81286         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81287
81288         * lib/regex_internal.c (re_string_skip_chars, register_state):
81289         (calc_state_hash):
81290         Remove forward decls; no longer needed now that we use prototypes.
81291         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81292         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81293         (clean_state_log_if_needed): Likewise.
81294
81295 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         * config/srclist.txt: Add glibc bugs 1231-1233.
81298
81299 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81300
81301         Fix problems reported by Sam Steingold in
81302         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81303         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81304         assumed that reg_errcode_t is a signed type, which is not
81305         necessarily true if _XOPEN_SOURCE is not defined.
81306         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81307         since some compilers warn about it otherwise.
81308
81309 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81312         (init_word_char, create_initial_state, duplicate_node_closure):
81313         (fetch_token, peek_token_bracket, build_range_exp):
81314         (build_collating_symbol): Remove forward decls; no longer needed
81315         now that we use prototypes.
81316
81317         * lib/regcomp.c:
81318         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81319         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81320         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81321         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81322         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81323         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81324         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81325         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81326         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81327         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81328         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81329         (build_charclass, build_charclass_op, fetch_number, create_tree):
81330         (create_token_tree, mark_opt_subexp, duplicate_tree):
81331         Use prototypes rather than old-style definitions.
81332
81333         * lib/regex_internal.c:
81334         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81335         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81336         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81337         (re_string_reconstruct, re_string_peek_byte_case):
81338         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81339         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81340         (re_node_set_init_copy, re_node_set_add_intersect):
81341         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81342         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81343         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81344         (re_acquire_state, re_acquire_state_context, register_state):
81345         (create_ci_newstate, create_cd_newstate, free_state):
81346         Likewise.
81347         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81348         re_search_2):
81349         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81350         (re_search_internal, prune_impossible_nodes):
81351         (acquire_init_state_context, check_matching, static):
81352         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81353         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81354         (update_regs, sift_states_backward, build_sifted_states):
81355         (clean_state_log_if_needed, merge_state_array):
81356         (update_cur_sifted_state, add_epsilon_src_nodes):
81357         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81358         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81359         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81360         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81361         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81362         (check_arrival, check_arrival_add_next_nodes):
81363         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81364         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81365         (check_node_accept_bytes, check_node_accept, extend_buffers):
81366         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81367         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81368         (sift_ctx_init):
81369         Likewise.
81370
81371         * lib/regex_internal.h:
81372         (re_string_allocate, re_string_construct, re_string_reconstruct):
81373         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81374         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81375         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81376         (re_string_context_at, re_string_peek_byte_case):
81377         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81378         is defined, since we now use prototypes always.
81379
81380         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81381         C89 or better.  All uses removed.
81382
81383 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         * config/srclist.txt: Add glibc bugs 1220-1227.
81386
81387 2005-08-20  Jim Meyering  <jim@meyering.net>
81388
81389         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81390         of unused local, dfa.
81391
81392 2005-08-20  Bruno Haible  <bruno@clisp.org>
81393
81394         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81395
81396 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81399         (re_node_set_insert_last, re_dfa_add_node):
81400         Rename local variables to avoid GCC shadowing warnings.
81401
81402 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81403
81404         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81405         [defined lint]: Suppress bogus uninitialized-variable warnings.
81406
81407         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81408         and let the caller return REG_ESPACE if out of space.  This
81409         removes an uninitialied-variable warning with GCC 4.0.1, and also
81410         avoids taking the address of a local variable.  All callers
81411         changed.
81412
81413 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81416         $LIBCSRC/posix/regexec.c.
81417         Add glibc bug 1217 for regcomp.c.
81418
81419 2005-08-19  Jim Meyering  <jim@meyering.net>
81420
81421         * lib/regexec.c (proceed_next_node): Redo local variables to
81422         avoid GCC shadowing warnings.
81423
81424 2005-08-18  Bruno Haible  <bruno@clisp.org>
81425
81426         * lib/strstr.c (strstr): Fix return value in multibyte case.
81427         * lib/strcasestr.c (strcasestr): Likewise.
81428
81429 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81432
81433 2005-08-17  Jim Meyering  <jim@meyering.net>
81434
81435         Make the %s format (seconds since the epoch) work for a negative
81436         number and when used with a zero-padded field width, e.g. %015s.
81437
81438         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81439         label so that it precedes the code to set `digits'.  Otherwise,
81440         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81441         print `00-22'.  Now, it prints `-0022', as it should.
81442
81443 2005-08-17  Bruno Haible  <bruno@clisp.org>
81444
81445         * modules/strstr (Files): Add m4/mbrtowc.m4.
81446         (Depends-on): Add mbuiter.
81447
81448 2005-08-17  Bruno Haible  <bruno@clisp.org>
81449
81450         * modules/strcasestr: New file.
81451         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81452         strcasestr.
81453
81454 2005-08-17  Bruno Haible  <bruno@clisp.org>
81455
81456         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81457
81458 2005-08-17  Bruno Haible  <bruno@clisp.org>
81459
81460         * modules/mbuiter: New file.
81461         * MODULES.html.sh (Extended multibyte and wide character utilities):
81462         Add mbuiter.
81463
81464 2005-08-17  Bruno Haible  <bruno@clisp.org>
81465
81466         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81467         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81468
81469 2005-08-17  Bruno Haible  <bruno@clisp.org>
81470
81471         * m4/strcasestr.m4: New file.
81472
81473 2005-08-17  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81476         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81477
81478 2005-08-17  Bruno Haible  <bruno@clisp.org>
81479
81480         * lib/strcasestr.h: New file.
81481         * lib/strcasestr.c: New file.
81482
81483 2005-08-17  Bruno Haible  <bruno@clisp.org>
81484
81485         * lib/strcasecmp.c: Use mbuiter.h.
81486
81487 2005-08-17  Bruno Haible  <bruno@clisp.org>
81488
81489         * lib/mbuiter.h: New file.
81490
81491 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81494         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81495         and gl_GETOPT are both invoked via different paths (as happens
81496         with GNU tar CVS because it uses both argp and getopt), the former
81497         wins.
81498
81499 2005-08-16  Bruno Haible  <bruno@clisp.org>
81500
81501         * modules/tls: New file.
81502         * MODULES.html.sh (Multithreading): Add tls.
81503
81504 2005-08-16  Bruno Haible  <bruno@clisp.org>
81505
81506         * modules/strnlen1: New file.
81507         * MODULES.html.sh (String handling): Add strnlen1.
81508
81509 2005-08-16  Bruno Haible  <bruno@clisp.org>
81510
81511         * modules/strcase (Files): Add m4/mbrtowc.m4.
81512         (Depends-on): Add strnlen1, mbchar.
81513
81514 2005-08-16  Bruno Haible  <bruno@clisp.org>
81515
81516         * modules/mbiter: New file.
81517         * MODULES.html.sh (Extended multibyte and wide character utilities):
81518         Add mbiter.
81519
81520 2005-08-16  Bruno Haible  <bruno@clisp.org>
81521
81522         * modules/mbfile: New file.
81523         * MODULES.html.sh (Extended multibyte and wide character utilities):
81524         Add mbfile.
81525
81526 2005-08-16  Bruno Haible  <bruno@clisp.org>
81527
81528         * modules/mbchar: New file.
81529         * MODULES.html.sh (Extended multibyte and wide character utilities):
81530         New section.
81531
81532 2005-08-16  Bruno Haible  <bruno@clisp.org>
81533
81534         * m4/tls.m4: New file, from GNU gettext.
81535
81536 2005-08-16  Bruno Haible  <bruno@clisp.org>
81537
81538         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81539         always.
81540         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81541
81542 2005-08-16  Bruno Haible  <bruno@clisp.org>
81543
81544         * m4/mbiter.m4: New file.
81545
81546 2005-08-16  Bruno Haible  <bruno@clisp.org>
81547
81548         * m4/mbfile.m4: New file.
81549
81550 2005-08-16  Bruno Haible  <bruno@clisp.org>
81551
81552         * m4/mbchar.m4: New file.
81553
81554 2005-08-16  Bruno Haible  <bruno@clisp.org>
81555
81556         * lib/tls.h: New file, from GNU gettext.
81557         * lib/tls.c: New file, from GNU gettext.
81558
81559 2005-08-16  Bruno Haible  <bruno@clisp.org>
81560
81561         * lib/strnlen1.h: New file.
81562         * lib/strnlen1.c: New file.
81563
81564 2005-08-16  Bruno Haible  <bruno@clisp.org>
81565
81566         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81567         (mbi_init): Update.
81568         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81569         NUL byte, not after it.
81570
81571 2005-08-16  Bruno Haible  <bruno@clisp.org>
81572
81573         * lib/strcase.h (strcasecmp): Add note in comments.
81574         * lib/strncasecmp.c: Use code from strcasecmp.c.
81575         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81576         (strcasecmp): Work correctly in multibyte locales.
81577
81578 2005-08-16  Bruno Haible  <bruno@clisp.org>
81579
81580         * lib/mbiter.h: New file.
81581
81582 2005-08-16  Bruno Haible  <bruno@clisp.org>
81583
81584         * lib/mbfile.h: New file.
81585
81586 2005-08-16  Bruno Haible  <bruno@clisp.org>
81587
81588         * lib/mbchar.h: New file.
81589         * lib/mbchar.c: New file.
81590
81591 2005-08-16  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81594         the valid ones. Makes the comparison operations transitive:
81595         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81596         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81597
81598 2005-08-15  Simon Josefsson  <jas@extundo.com>
81599
81600         * modules/ssize_t (License): Change to 'unlimited'.
81601
81602         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81603
81604 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81605
81606         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81607         Add comments for each pending glibc patch.
81608
81609 2005-08-15  Bruno Haible  <bruno@clisp.org>
81610
81611         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81612         __cplusplus is defined.
81613
81614 2005-08-14  Jim Meyering  <jim@meyering.net>
81615
81616         Sync from coreutils.
81617
81618         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81619         Use the hash-table-based cycle-detection code not just when
81620         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81621         Reported by James Youngman in
81622         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81623         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81624         FTS_TIGHT_CYCLE_CHECK.
81625         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81626         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81627         once again.
81628         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81629         * lib/fts.c (fd_safer): Remove decl.
81630         Include fcntl--.h rather than unistd-safer.h
81631         (fts_safe_changedir): Don't call fd_safer; no longer needed
81632         now that we include fcntl--.h.
81633
81634 2005-08-12  Simon Josefsson  <jas@extundo.com>
81635
81636         * modules/getndelim2: Use ssize_t module.
81637         * modules/getnline: Likewise.
81638         * modules/safe-read: Likewise.
81639         * modules/xreadlink: Likewise.
81640
81641         * modules/ssize_t: New file.
81642
81643 2005-08-12  Simon Josefsson  <jas@extundo.com>
81644
81645         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81646
81647 2005-08-12  Simon Josefsson  <jas@extundo.com>
81648
81649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81650         ssize_t.
81651
81652 2005-08-12  Simon Josefsson  <jas@extundo.com>
81653
81654         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81655         readline, getdelim and check_version.
81656         (Support for systems lacking ISO C 99: Sizes of integer types):
81657         Add size_max.
81658
81659 2005-08-12  Bruno Haible  <bruno@clisp.org>
81660
81661         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81662
81663 2005-08-11  Simon Josefsson  <jas@extundo.com>
81664
81665         * modules/readline: New file.
81666
81667         * modules/strnlen (Files): Add strnlen.h.
81668
81669 2005-08-11  Simon Josefsson  <jas@extundo.com>
81670
81671         * m4/readline.m4: New file.
81672
81673 2005-08-11  Simon Josefsson  <jas@extundo.com>
81674
81675         * lib/readline.h, readline.c: New file.
81676
81677 2005-08-11  Simon Josefsson  <jas@extundo.com>
81678
81679         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81680         gl_AVOID.
81681
81682 2005-08-11  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81685
81686 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81687
81688         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81689
81690 2005-08-10  Simon Josefsson  <jas@extundo.com>
81691
81692         * tests/test-iconvme.c: New file.
81693
81694 2005-08-10  Simon Josefsson  <jas@extundo.com>
81695
81696         * m4/strnlen.m4: New file.
81697
81698         * m4/strndup.m4: Don't check for strnlen declaration, done in
81699         strnlen.m4.
81700
81701 2005-08-10  Simon Josefsson  <jas@extundo.com>
81702
81703         * lib/strndup.c: Use strnlen.h.
81704
81705         * lib/strnlen.h: New file.
81706
81707 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81708
81709         * README: Typos.
81710
81711 2005-08-02  Simon Josefsson  <jas@extundo.com>
81712
81713         * modules/readline: New file.
81714
81715 2005-08-02  Simon Josefsson  <jas@extundo.com>
81716
81717         * modules/getdelim: New file.
81718
81719         * modules/getline: Rewrite, don't use getndelim2.
81720
81721 2005-08-02  Simon Josefsson  <jas@extundo.com>
81722
81723         * m4/getline.m4: Separate out getdelim stuff into separate module.
81724
81725         * m4/getdelim.m4: New file.
81726
81727 2005-08-02  Simon Josefsson  <jas@extundo.com>
81728
81729         * lib/getline.h, getline.c: Rewrite.
81730
81731         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81732
81733 2005-07-31  Bruno Haible  <bruno@clisp.org>
81734
81735         * lib/lock.h (gl_lock_initializer): New macro.
81736         (gl_lock_define_initialized): Use it.
81737         (gl_rwlock_initializer): New macro.
81738         (gl_rwlock_define_initialized): Use it.
81739         (gl_recursive_lock_initializer): New macro.
81740         (gl_recursive_lock_define_initialized): Use it.
81741
81742 2005-07-30  Karl Berry  <karl@gnu.org>
81743
81744         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81745         Report from Ben Pfaff, regarding getopt.
81746
81747 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81750         normal way.
81751         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81752         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81753         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81754         (gl_GETOPT): Use the new macros.  Most of the implementation
81755         is moved to the new macros.  This is for programs like Emacs
81756         that don't want all the functionality of gl_GETOPT.
81757
81758 2005-07-26  Bruno Haible  <bruno@clisp.org>
81759
81760         * m4/lock.m4: Update from GNU gettext.
81761
81762 2005-07-26  Bruno Haible  <bruno@clisp.org>
81763
81764         * lib/lock.h: Update from GNU gettext.
81765         * lib/lock.c: Update from GNU gettext.
81766
81767 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81770         obsolescent AC_TRY_RUN.  Include the default includes files, for
81771         'exit'.
81772
81773 2005-07-24  Bruno Haible  <bruno@clisp.org>
81774
81775         * modules/visibility: New file.
81776         * MODULES.html.sh (Misc): Add visibility.
81777
81778 2005-07-24  Bruno Haible  <bruno@clisp.org>
81779
81780         * m4/visibility.m4: New file.
81781
81782 2005-07-24  Bruno Haible  <bruno@clisp.org>
81783
81784         * doc/visibility.texi: New file.
81785
81786 2005-07-22  Bruno Haible  <bruno@clisp.org>
81787
81788         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81789         $(ALLOCA_H), redundant through BUILT_SOURCES.
81790         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81791         redundant through BUILT_SOURCES.
81792         * modules/byteswap (Makefile.am): Remove explicit dependency on
81793         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81794         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81795         $(FNMATCH_H), redundant through BUILT_SOURCES.
81796         * modules/getopt (Makefile.am): Remove explicit dependency on
81797         $(GETOPT_H), redundant through BUILT_SOURCES.
81798         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81799         redundant through BUILT_SOURCES.
81800         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81801         redundant through BUILT_SOURCES.
81802         * modules/stdbool (Makefile.am): Remove explicit dependency on
81803         $(STDBOOL_H), redundant through BUILT_SOURCES.
81804         * modules/stdint (Makefile.am): Remove explicit dependency on
81805         $(STDINT_H), redundant through BUILT_SOURCES.
81806         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81807         Remove explicit dependency on $(SYSEXITS_H).
81808         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81809
81810 2005-07-18  Simon Josefsson  <jas@extundo.com>
81811
81812         * lib/check-version.c (check_version): Accept identical versions too.
81813
81814 2005-07-18  Bruno Haible  <bruno@clisp.org>
81815
81816         * modules/lock: New file.
81817         * MODULES.html.sh (Multithreading): New section.
81818
81819 2005-07-18  Bruno Haible  <bruno@clisp.org>
81820
81821         * m4/lock.m4: New file, from GNU gettext.
81822
81823 2005-07-18  Bruno Haible  <bruno@clisp.org>
81824
81825         * lib/lock.h: New file, from GNU gettext.
81826         * lib/lock.c: New file, from GNU gettext.
81827
81828 2005-07-18  Bruno Haible  <bruno@clisp.org>
81829
81830         * lib/lock.h (gl_once_t): New type.
81831         (gl_once_define, gl_once): New macros.
81832         * lib/lock.c (fresh_once): New variable.
81833         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81834         functions.
81835
81836 2005-07-16  Simon Josefsson  <jas@extundo.com>
81837
81838         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81839         workaround, suggested by Bruno.
81840
81841 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * modules/xalloc (Depends-on): Add xalloc-die.
81844         * modules/xvasprintf (Depends-on): Add xalloc-die.
81845
81846 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81847
81848         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81849         with a minor change.
81850
81851 2005-07-15  Bruno Haible  <bruno@clisp.org>
81852
81853         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81854         When using lib/poll.c, define poll as rpl_poll.
81855
81856 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         * modules/argp (Depends-on): Remove unlocked-io.
81859
81860 2005-07-14  Derek Price  <derek@ximbiot.com>
81861
81862         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81863         for glob symlink bug.
81864
81865 2005-07-14  Bruno Haible  <bruno@clisp.org>
81866
81867         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81868         Instead, test for *_unlocked function declarations directly.
81869
81870 2005-07-11  Simon Josefsson  <jas@extundo.com>
81871
81872         * modules/size_max: New file.
81873
81874         * modules/xsize: Depend on size_max module for size_max.m4.
81875
81876 2005-07-11  Simon Josefsson  <jas@extundo.com>
81877
81878         * lib/size_max.h: New file.
81879
81880 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81881
81882         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81883         copyright symbol and the year.
81884         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81885         (version_etc_va): Use parameterized copyright notice.
81886         Reword to conform to the current GNU coding standards.
81887
81888 2005-07-11  Karl Berry  <karl@gnu.org>
81889
81890         * doc/gnulib.texi (Quoting): new node.
81891         (Initial import): more info, from Patrice.
81892
81893 2005-07-11  Bruno Haible  <bruno@clisp.org>
81894
81895         * gnulib-tool (func_usage): Document option --avoid.
81896         (Command line options): Handle --avoid.
81897         (func_acceptable): New function.
81898         (func_modules_transitive_closure): Use it.
81899
81900 2005-07-11  Bruno Haible  <bruno@clisp.org>
81901
81902         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81903         Reported by Jim Meyering.
81904
81905 2005-07-10  Bruno Haible  <bruno@clisp.org>
81906
81907         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81908         Needed when size_t is smaller than 'unsigned int'.
81909         Reported by Paul Eggert.
81910
81911 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81912
81913         * modules/argp (Depends-on): Add unlocked-io
81914
81915 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81916
81917         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81918         block of defines.
81919
81920 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81921
81922         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81923         fix now.
81924
81925 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81926         and Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81929         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81930
81931 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81932
81933         * modules/regex (Files): Add lib/regex_internal.c,
81934         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81935         (Depends-on): Add extensions.
81936         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81937
81938 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81941         pathconf.
81942         * m4/same.m4 (gl_SAME): Likewise.
81943         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81944
81945         * m4/regex.m4: Adjust to new libc regex implementation.
81946         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81947         all the .c and .h parts of (the new) regex.
81948         Quote the m4 stuff better.
81949         Check for RE_ICASE bug of old gnulib.
81950         Check for REG_STARTEND of recent libc.
81951         Rename local variables from jm_* to gl_*.
81952         Quote operand of "test -f".
81953         Say "recent enough" version of libc, not "version 2".
81954         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81955         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81956         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81957         Remove check for btowc, isascii.
81958         Require AM_LANGINFO_CODESET.
81959
81960 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * lib/regex.c, regex.h: Sync from libc.
81963         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81964         * lib/regexec.c:
81965         New files, synced from libc, except that regex_internal.h
81966         currently has a small porting fix.
81967
81968 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81971         regex_internal.c, regexec.c.
81972         Add regex_internal.h too, but as a comment, since the libc version
81973         is currently broken in gnulib mode.
81974
81975 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         Support programs like Emacs that use gnulib but not gettext.
81978         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81979         * modules/gettext-h: New file.
81980         * modules/gettext (Files): Remove lib/gettext.h.
81981         (Depends-on): Add gettext-h.
81982         (Makefile.am): Remove lib_SOURCES.
81983         * modules/argmatch, modules/c-stack, modules/closeout:
81984         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81985         * modules/execute, modules/file-type, modules/getaddrinfo:
81986         * modules/getopt, modules/human, modules/javacomp:
81987         * modules/javaexec, modules/mkdir-p, modules/obstack:
81988         * modules/openat, modules/pagealign_alloc, modules/pipe:
81989         * modules/quotearg, modules/regex, modules/rpmatch:
81990         * modules/unicodeio, modules/userspec, modules/version-etc:
81991         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81992         * modules/xsetenv:
81993         Depend on gettext-h, not gettext.
81994
81995 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * gnulib-tool (func_import): Add support for 'public domain' license.
81998         * modules/alloca, modules/atexit, modules/memmove:
81999         Now public domain, not GPL.
82000         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82001         * modules/realloc, modules/strerror, modules/strtod:
82002         Now LGPL, not GPL.
82003
82004 2005-07-05  Bruno Haible  <bruno@clisp.org>
82005
82006         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82007         autoconf CVS. Needed for mingw.
82008
82009 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         Remove the dependency of the strftime module on the tzset module.
82012         * modules/strftime (Depends-on): Remove dependency on tzset.
82013
82014 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         Remove the dependency of the strftime module on the tzset module.
82017         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82018         gl_FUNC_TZSET_CLOBBER.
82019
82020 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82021
82022         Remove the dependency of the strftime module on the tzset module.
82023         * lib/strftime.c (my_strftime)
82024         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82025         Copy the input structure, to work around some of the bug with
82026         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82027         Solaris releases, you should also use the tzset module, but we won't
82028         require it as a dependency any more since we don't want LGPLed code
82029         to depend on GPLed code.
82030
82031 2005-07-02  Jim Meyering  <jim@meyering.net>
82032
82033         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82034         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82035         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82036         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82037
82038 2005-07-02  Jim Meyering  <jim@meyering.net>
82039
82040         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82041
82042 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82045         declares only 'struct timespec;' (!).
82046
82047 2005-07-01  Jim Meyering  <jim@meyering.net>
82048
82049         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82050         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82051         * lib/save-cwd.c, tempname.c:
82052         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82053         and don't include <sys/file.h>).
82054
82055 2005-06-29  Jim Meyering  <jim@meyering.net>
82056
82057         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82058         type name.  Use the variable name instead.
82059         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82060         Likewise.
82061
82062 2005-06-28  Simon Josefsson  <jas@extundo.com>
82063
82064         * modules/check-version (Files): Add check-version.m4.
82065
82066 2005-06-28  Simon Josefsson  <jas@extundo.com>
82067
82068         * m4/check-version.m4: New file, suggested by Jim Meyering
82069         <jim@meyering.net>.
82070
82071 2005-06-28  Simon Josefsson  <jas@extundo.com>
82072
82073         * lib/check-version.h, lib/check-version.c: New files.
82074
82075 2005-06-28  Simon Josefsson  <jas@extundo.com>
82076
82077         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82078         collision with global variable.  Better indentation.  Don't
82079         increment buffer pointer beyond buffer end.  Based on comments
82080         from Paul Eggert <eggert@cs.ucla.edu>.
82081
82082         * lib/base64.h: Indent.
82083
82084 2005-06-28  Simon Josefsson  <jas@extundo.com>
82085
82086         * doc/gnulib.texi (Library version handling): New section.
82087
82088 2005-06-28  Jim Meyering  <jim@meyering.net>
82089
82090         * check-module (find_included_lib_files): Hard-code another
82091         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82092         but modules/fts-lgpl (correctly) does not list those files.
82093
82094         * modules/canonicalize (Files): Add lib/pathmax.h.
82095
82096 2005-06-25  Simon Josefsson  <jas@extundo.com>
82097
82098         * modules/check-version: New file.
82099
82100 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82101
82102         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82103         initializer of struct addrinfo, as an indication that we don't
82104         care how many members the structure has.
82105
82106 2005-06-24  Derek Price  <derek@ximbiot.com>
82107         and Bruno Haible  <bruno@clisp.org>
82108
82109         Remove stat module & update lstat.
82110         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82111         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82112         * m4/stat.m4: Remove this file.
82113
82114 2005-06-24  Derek Price  <derek@ximbiot.com>
82115         and Bruno Haible  <bruno@clisp.org>
82116
82117         Remove stat module & update lstat.
82118         * lib/stat.c: Remove this file...
82119         (slash_aware_lstat): ...moving this content and its support...
82120         * lib/lstat.c (rpl_lstat): ...into here.
82121         * lib/lstat.h: New file.
82122
82123 2005-06-24  Derek Price  <derek@ximbiot.com>
82124         and Bruno Haible  <bruno@clisp.org>
82125
82126         Remove stat module & update lstat.
82127         * config/srclist.txt (libc sources): Remove stat.
82128
82129 2005-06-24  Derek Price  <derek@ximbiot.com>
82130         and Bruno Haible  <bruno@clisp.org>
82131
82132         Remove stat module & update lstat.
82133         * MODULES.html.sh (stat): Remove.
82134         * MODULES.html: Regenerated.
82135         * modules/lstat (Description): Correct function name.
82136         (Files): Add "lstat.h".
82137         (Depends-on): Remove stat, add xalloc, stat-macros.
82138         * modules/stat: Remove this file.
82139         (Include): Add "lstat.h", remove <sys/stat.h>.
82140
82141 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82144         (ranged_convert): Don't save conversion in a temporary struct.
82145         This causes a warning with GCC 4.0.0, and anyway in the typical
82146         case it's not worth the extra 100 bytes or so of code.
82147         (ranged_convert, __mktime_internal): When calling a function via a
82148         pointer P, use P () rather than (*P) (), as we now assume C89 or
82149         better.
82150
82151 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82152
82153         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82154         "who -r" failed to give output.  Problem reported by Tim Waugh.
82155
82156         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82157         (xcalloc): Use it to avoid needless tests.
82158         Problem reported by Jim Meyering.
82159
82160 2005-06-20  Derek Price  <derek@ximbiot.com>
82161
82162         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82163         unnecessary for Autoconfs > 2.59c.
82164
82165 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82166
82167         * lib/argp.h (__option_is_short): Check upper limit of
82168         __key. Isprint() requires its argument to have the value
82169         of an unsigned char or EOF.
82170
82171 2005-06-16  Jim Meyering  <jim@meyering.net>
82172
82173         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82174         when either N or S is zero.
82175
82176 2005-06-16  Derek Price  <derek@ximbiot.com>
82177
82178         * m4/bison.m4: Declare YACC & YFLAGS precious.
82179
82180 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82183         multibyte string or pattern, fall back on unibyte matching.
82184         Problem reported by James Youngman.
82185
82186 2005-06-08  Bruno Haible  <bruno@clisp.org>
82187
82188         * modules/csharpcomp: New file.
82189         * MODULES.html.sh (C#): Add csharpcomp.
82190
82191 2005-06-08  Bruno Haible  <bruno@clisp.org>
82192
82193         * m4/csharpcomp.m4: New file, from GNU gettext.
82194
82195 2005-06-08  Bruno Haible  <bruno@clisp.org>
82196
82197         * lib/csharpcomp.h: New file, from GNU gettext.
82198         * lib/csharpcomp.c: New file, from GNU gettext.
82199         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82200
82201 2005-06-08  Bruno Haible  <bruno@clisp.org>
82202
82203         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82204         warning on mingw.
82205
82206 2005-06-07  Derek Price  <derek@ximbiot.com>
82207
82208         Sync from CVS.
82209         * lib/glob_.h: Indent nested #ifdef.
82210
82211 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82212
82213         Sync from coreutils.
82214         Use "file name" when talking about file names, instead of "filename"
82215         or "path", as per the GNU coding standards.
82216         * lib/mkdir-p.c: Renamed from makepath.c.
82217         (make_dir_parents): Renamed from make_path.  All callers changed.
82218         * lib/mkdir-p.h: Likewise.  All includers changed.
82219         * lib/filenamecat.c: Renamed from path-concat.c.
82220         (file_name_concat): Renamed from path_concat.  All callers changed.
82221         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82222         * lib/filenamecat.h: Likewise.  All includers changed.
82223         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82224         in comments or local variable names.
82225         * lib/basename.c: Likewise.
82226         * lib/canonicalize.c, canonicalize.h: Likewise.
82227         * lib/dirname.c, dirname.h: Likewise.
82228         * lib/euidaccess.c: Likewise.
82229         * lib/exclude.c: Likewise
82230         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82231         * lib/fsusage.c, fsuage.h: Likewise.
82232         * lib/fts.c, fts_.h: Likewise.
82233         * lib/getcwd.c: Likewise.
82234         * lib/getloadavg.c: Likewise.
82235         * lib/mkstemp.c: Likewise.
82236         * lib/mountlist.c, mountlist.h: Likewise.
82237         * lib/openat.c, openat.h: Likewise.
82238         * lib/readlink-stub.c: Likewise.
82239         * lib/readutmp.c, readutmp.h: Likewise.
82240         * lib/rename.c: Likewise.
82241         * lib/rmdir.c: Likewise.
82242         * lib/same.c: Likewise.
82243         * lib/savedir.c: Likewise.
82244         * lib/stripslash.c: Likewise.
82245         * lib/tempname.c: Likewise.
82246         * lib/xreadlink.c: Likewise.
82247         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82248         All uses changed.
82249         * lib/exclude.h: Likewise.
82250
82251         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82252         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82253         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82254         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82255         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82256         files have been getting away with it for years (MORE/BSD 4.3
82257         is extinct now).
82258         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82259         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82260
82261         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82262         Define to 256, not 255, as per modern POSIX.
82263
82264 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         Sync from coreutils.
82267         Use "file name" when talking about file names, instead of "filename"
82268         or "path", as per the GNU coding standards.
82269         * MODULES.html.sh: mkdir-p renamed from makepath.
82270         filenamecat renamed from path-concat.
82271         * modules/filenamecat: Renamed from modules/path-concat.
82272         (Files): filenamecat.h and filenamecat.c renamed from
82273         path-concat.h and path-concat.c.
82274         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82275         (Include): filenamecat.h, not path-concat.h.
82276         * modules/mkdir-p: Renamed from modules/makepath.
82277         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82278         makepath.c.
82279         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82280         (Include): mkdir-p.h, not makepath.h.
82281
82282 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         Sync from coreutils.
82285         * m4/mkdir-p.m4: Renamed from makepath.m4.
82286         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82287         Rename files from makepath.c to mkdir-p.c, and from
82288         makepath.h to mkdir-p.h.
82289         * m4/filenamecat.m4: Renamed from path-concat.m4.
82290         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82291         Rename files from path-concat.c to filenamecat.c,
82292         and from path-concat.h to filenamecat.h.
82293         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82294         "file name" in local variables or comments.
82295         * m4/rename.m4: Likewise.
82296
82297 2005-06-01  Bruno Haible  <bruno@clisp.org>
82298
82299         * modules/csharpexec: New file.
82300         * MODULES.html.sh (C#): New section.
82301
82302 2005-06-01  Bruno Haible  <bruno@clisp.org>
82303
82304         * m4/csharp.m4: New file, from GNU gettext.
82305         * m4/csharpexec.m4: New file, from GNU gettext.
82306
82307 2005-06-01  Bruno Haible  <bruno@clisp.org>
82308
82309         * lib/csharpexec.h: New file, from GNU gettext.
82310         * lib/csharpexec.c: New file, from GNU gettext.
82311         * lib/csharpexec.sh.in: New file, from GNU gettext.
82312
82313 2005-05-31  Derek Price  <derek@ximbiot.com>
82314             Paul Eggert  <eggert@cs.ucla.edu>
82315
82316         Sync from cvs.
82317         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82318
82319 2005-05-31  Derek Price  <derek@ximbiot.com>
82320             Paul Eggert  <eggert@cs.ucla.edu>
82321
82322         Sync from cvs.
82323         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82324
82325 2005-05-29  Derek Price  <derek@ximbiot.com>
82326
82327         * config/srclist.txt (glob_.h, glob.c): Add these files.
82328
82329 2005-05-29  Derek Price  <derek@ximbiot.com>
82330
82331         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82332         * modules/glob: New file.
82333         * modules/getlogin_r: Add link to POSIX spec in description.
82334
82335 2005-05-29  Derek Price  <derek@ximbiot.com>
82336             Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * m4/glob.m4: New file.
82339
82340 2005-05-29  Derek Price  <derek@ximbiot.com>
82341             Paul Eggert  <eggert@cs.ucla.edu>
82342
82343         * lib/glob_.h, lib/glob.c: New files.
82344
82345 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82346
82347         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82348         * modules/fts-lgpl (Depends-on): Remove gettext.
82349
82350 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82351
82352         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82353         and don't require gt_INTTYPES_PRI.
82354
82355 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82356
82357         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82358
82359         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82360         the configuration hassle isn't worth it.
82361         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82362         (LONGEST_MODIFIER, PRIuMAX): Remove.
82363
82364 2005-05-27  Bruno Haible  <bruno@clisp.org>
82365
82366         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82367
82368 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82369
82370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82371         _POSIX_PTHREAD_SEMANTICS for Solaris.
82372
82373 2005-05-25  Derek Price  <derek@ximbiot.com>
82374
82375         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82376
82377 2005-05-25  Derek Price  <derek@ximbiot.com>
82378             Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82381         * lib/getlogin_r.c, getlogin_r.h: New files.
82382
82383 2005-05-25  Bruno Haible  <bruno@clisp.org>
82384             Derek Price  <derek@ximbiot.com>
82385
82386         * lib/getlogin_r.h: Simplify API documentation.
82387
82388 2005-05-23  Derek Price  <derek@ximbiot.com>
82389
82390         * modules/minmax (Files): Add m4/minmax.m4.
82391         (configure.ac): Add gl_MINMAX.
82392
82393 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82396         so that unistd-safer.h (GPL'ed code) need not be included.
82397
82398 2005-05-22  Bruno Haible  <bruno@clisp.org>
82399
82400         * m4/minmax.m4: New file.
82401         Based on a patch by Derek Price <derek@ximbiot.com>.
82402
82403 2005-05-22  Bruno Haible  <bruno@clisp.org>
82404
82405         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82406         (INT64_MIN): Fix definition.
82407         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82408
82409         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82410         NEED_SIGNED_INT_TYPES.
82411
82412         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82413         HAVE_SYSTEM_INTTYPES.
82414
82415 2005-05-22  Bruno Haible  <bruno@clisp.org>
82416
82417         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82418         Also include <sys/param.h> if it defines MIN, MAX.
82419         Based on a patch by Derek Price <derek@ximbiot.com>.
82420
82421 2005-05-21  Jim Meyering  <jim@meyering.net>
82422
82423         * modules/fts (Files): Add m4/inttypes-pri.m4.
82424         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82425
82426 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82427
82428         New fts module.
82429         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82430         (setup_dir, free_dir): New functions.
82431         (enter_dir, leave_dir): Define trivial
82432         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82433         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82434         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82435         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82436         Move to fts-cycle.c.
82437         (fts_open): Use setup_dir.
82438         (fts_close): Use free_dir.
82439         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82440         This adds a label and some gotos, but the alternatives were messier.
82441         Check for memory allocation failure when entering a dir.
82442         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82443         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82444         (FTS): New member fts_cycle, that is a union that contains the
82445         old active_dir_ht and cycle_state.  All uses changed to mention
82446         fts_cycle.ht and fts_cycle.state.
82447         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82448         fts.c, with the following changes:
82449         (setup_dir, free_dir): New functions.
82450         (enter_dir): Now returns bool.  Return true if successful, false
82451         if memory exhausted.  All callers changed.
82452         Do not bother partly cleaning up on
82453         memory allocation failure; that is free_dir's job.
82454         However, free ad if hash_insert fails, to avoid memory leak.
82455         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82456         fts->fts_options to see which union member to use.
82457
82458 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82459
82460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82461         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82462
82463 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82464
82465         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82466
82467 2005-05-20  Jim Meyering  <jim@meyering.net>
82468
82469         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82470         Now a macro, to pacify GCC.
82471
82472 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82473
82474         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82475         of -1.
82476
82477 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82478
82479         * lib/chown.c (rpl_chown): Return -1 on failure.
82480
82481 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82484         Don't check for stddef.h.
82485         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82486         don't use its results.
82487         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82488         since we include them unconditionally.  Don't require
82489         AM_STDBOOL_H, since stdbool is a prerequisite.
82490         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82491         since we assume C89 or better.
82492         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82493         as we don't use their results.
82494         Don't check for fchdir, memmove, memset, strrchr, as we use
82495         them unconditionally.
82496         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82497         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82498
82499 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82500
82501         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82502         Include <stddef.h> unconditionally, since we assume C89 now.
82503         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82504         * lib/fts.c: Include fts_.h first, to check interface.
82505         Do not include intprops.h; no longer needed.
82506         Include cycle-check.h and hash.h, since fts_.h no longer does.
82507         Remove unnecessary casts of closedir to void.
82508         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82509         decide whether to decrement nlinks.
82510         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82511         (FTS): Use struct hash_table * instead of Hash_table, so that
82512         we no longer need to include hash.h here.
82513
82514 2005-05-18  Jim Meyering  <jim@meyering.net>
82515
82516         * modules/dirfd (License): Change to LGPL.  Most of the code
82517         is already in the public domain.
82518
82519 2005-05-18  Jim Meyering  <jim@meyering.net>
82520
82521         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82522         Reported by Yoann Vandoorselaere.
82523
82524 2005-05-17  Jim Meyering  <jim@meyering.net>
82525
82526         * m4/fts.m4: New file, from coreutils.
82527
82528 2005-05-17  Jim Meyering  <jim@meyering.net>
82529
82530         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82531
82532 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         Sync from coreutils.
82535         * m4/unlinkdir.m4: New file.
82536
82537 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82538
82539         Sync from coreutils.
82540         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82541         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82542         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82543         White space changes only.
82544         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82545         special.
82546         * lib/yesno.c: Include getline.h, not ctype.h.
82547         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82548         Use getline to remove arbitrary restriction on response length.
82549
82550 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         * config/srclist-update: Spell out "Street" in FSF postal
82553         mail address; this is the style the FSF seems to prefer.
82554
82555         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82556         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82557         this updates FSF postal mail address.
82558
82559         Sync from coreutils.
82560         * modules/unlinkdir: New file.
82561         * modules/yesno (Depends-on): Add getline.
82562         * MODULES.html.sh (File system functions): Add unlinkdir.
82563
82564 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82565
82566         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82567         lib/strsep.h:
82568         Change the initial comment to refer to GPL, not LGPL.
82569         gnulib-tool will change it to LGPL as needed.
82570
82571         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82572         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82573         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82574         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82575         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82576         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82577         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82578         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82579         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82580         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82581         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82582         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82583         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82584         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82585         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82586         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82587         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82588         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82589         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82590         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82591         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82592         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82593         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82594         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82595         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82596         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82597         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82598         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82599         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82600         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82601         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82602         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82603         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82604         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82605         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82606         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82607         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82608         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82609         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82610         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82611         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82612         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82613         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82614         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82615         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82616         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82617         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82618         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82619         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82620         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82621         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82622         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82623         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82624         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82625         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82626         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82627         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82628         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82629         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82630         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82631         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82632         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82633         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82634         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82635         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82636         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82637         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82638         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82639         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82640         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82641         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82642         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82643         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82644         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82645         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82646         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82647         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82648         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82649         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82650         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82651         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82652         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82653         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82654         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82655         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82656         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82657         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82658         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82659         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82660         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82661         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82662         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82663         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82664         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82665         lib/yesno.c, lib/yesno.h:
82666         Update FSF postal mail address.
82667
82668 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82671         tests/test-memmem.c, tests/test-stpncpy.c:
82672         Update FSF postal mail address.
82673
82674 2005-05-13  Bruno Haible  <bruno@clisp.org>
82675
82676         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82677         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82678         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82679         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82680         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82681         Add support for 64-bit integers in the MSVC compiler.
82682
82683 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82684
82685         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82686
82687 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82688
82689         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82690
82691 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82692
82693         * doc/getdate.texi (General date syntax): Don't say that date
82694         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82695         Problem reported by Nic Ferrier.
82696
82697 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82698
82699         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82700         specified in ai_socktype. Fix invalid ai_protocol
82701         check. ai_protocol is usually set to 0 or depending on
82702         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82703         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82704         ai_socktype / ai_protocol in the returned addrinfo structure.
82705
82706 2005-05-10  Simon Josefsson  <jas@extundo.com>
82707
82708         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82709         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82710
82711 2005-05-10  Karl Berry  <karl@gnu.org>
82712
82713         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82714         (from http://www.gnu.org/licenses).
82715         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82716         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82717         fdl.texi suffices.
82718
82719 2005-05-10  Karl Berry  <karl@gnu.org>
82720
82721         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82722         (COPYING.DOC): remove.
82723
82724         * config/srclist-update: new FSF address.
82725
82726 2005-05-10  Derek Price  <derek@ximbiot.com>
82727
82728         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82729         possible.
82730
82731 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82732             Bruno Haible  <bruno@clisp.org>
82733
82734         * modules/inet_ntop: New file.
82735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82736         inet_ntop.
82737
82738 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82739             Bruno Haible  <bruno@clisp.org>
82740
82741         * m4/inet_ntop.m4: New file.
82742
82743 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82744             Bruno Haible  <bruno@clisp.org>
82745
82746         * lib/inet_ntop.h: New file.
82747         * lib/inet_ntop.c: New file, from glibc with modifications.
82748
82749 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82750
82751         * modules/time_r (License): Change to LGPL.
82752         * modules/extensions (License): Change to LGPL.  Actually,
82753         the license is more permissive than that, but currently gnulib-tool
82754         doesn't know how to handle more-permissive licenses.
82755
82756         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82757         Problem reported by Dave Love.
82758
82759 2005-05-08  Jim Meyering  <jim@meyering.net>
82760
82761         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82762         blank.
82763
82764 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82765
82766         * modules/argmatch (Depends-on): Add stdbool.
82767         * modules/backupfile (Depends-on): Likewise.
82768         * modules/chdir-long (Depends-on): Likewise.
82769         * modules/closeout (Depends-on): Likewise.
82770         * modules/cycle-check (Depends-on): Likewise.
82771         * modules/dirname (Depends-on): Likewise.
82772         * modules/fnmatch (Depends-on): Likewise.
82773         * modules/fsusage (Depends-on): Likewise.
82774         * modules/fwriteerror (Depends-on): Likewise.
82775         * modules/getcwd (Depends-on): Likewise.
82776         * modules/getloadavg (Depends-on): Likewise.
82777         * modules/hard-locale (Depends-on): Likewise.
82778         * modules/makepath (Depends-on): Likewise.
82779         * modules/mountlist (Depends-on): Likewise.
82780         * modules/nanosleep (Depends-on): Likewise.
82781         * modules/posixtm (Depends-on): Likewise.
82782         * modules/quotearg (Depends-on): Likewise.
82783         * modules/readtokens (Depends-on): Likewise.
82784         * modules/readtokens0 (Depends-on): Likewise.
82785         * modules/readutmp (Depends-on): Likewise.
82786         * modules/save-cwd (Depends-on): Likewise.
82787         * modules/strftime (Depends-on): Likewise.
82788         * modules/userspec (Depends-on): Likewise.
82789         * modules/utimecmp (Depends-on): Likewise.
82790         * modules/xgetcwd (Depends-on): Likewise.
82791         * modules/xnanosleep (Depends-on): Likewise.
82792         * modules/xstrtod (Depends-on): Likewise.
82793         * modules/yesno (Depends-on): Likewise.
82794
82795 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82796
82797         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82798         needless checks.
82799
82800 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         Merge from coreutils.  Among other things,
82803         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82804         * lib/fd-safer.c: New file.
82805         * lib/fcntl-safer.h, open-safer.c: Remove.
82806         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82807         * lib/dup-safer.c: Include unistd-safer.h first.
82808         Don't include errno.h.
82809         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82810         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82811         * lib/file-type.c: Rely on file-type.h change.
82812         * lib/getloadavg.c: Include unistd-safer.h.
82813         (getloadavg): Use safer open.
82814         * lib/getusershell.c: Include "stdio-safer.h".
82815         (getusershell): Use safer fopen.
82816         * lib/long-options.c (long_options): Use NULL rather than 0.
82817         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82818         'free'.
82819         * lib/modechange.c: Likewise.
82820         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82821         (MODE_DONE): New constant.
82822         (struct mode_change): Remove 'next' member.
82823         (make_node_op_equals): New function; like the old one of the
82824         same name, except it allocates an array.
82825         (mode_compile, mode_create_from_ref): Use it.
82826         (mode_compile): Allocate result as an array, not a linked list.
82827         Parse octal string ourself, so that we catch mistakes like "+0".
82828         (mode_adjust): Arg is an array, not a linked list.
82829         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82830         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82831         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82832         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82833         Remove.  This is now stat-macros.h's job.
82834         (talloc): Remove.  All callers replaced by xalloc, so that
82835         our invokers don't have to worry about reporting memory failures.
82836         (make_node_op_equals): Remove.
82837         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82838         New constants.
82839         (struct mode_change): Moved here from modechange.h.
82840         (mode_append_entry): Remove.
82841         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82842         apps to have incorrect behavior.  Use simpler algorithm for head
82843         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82844         Detect more invalid usages rather than having somewhat-random behavior.
82845         Don't insert an "a=" action, as that leads to incorrect behavior.
82846         (mode_compile, mode_create_from_ref): Return NULL on error instead
82847         of an enum, since now there's only one way to have an error.  All
82848         callers changed.
82849         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82850         at the correct time.  Simplify calculation of "+u" and its ilk.
82851         Don't mishandle "+X".
82852         (mode_free): Remove "register" and localize decls.
82853         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82854         (struct mode_change): Move to modechange.c; callers don't
82855         need to see this stuff.
82856         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82857         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82858         (mode_change, mode_adjust): Reflect the new signatures noted above.
82859         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82860         that might redefine system include files.
82861         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82862         (my_usleep): Use NULL rather than (void *) 0.
82863         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82864         Use siginterrupt to specify that system calls should be interrupted.
82865         (rpl_nanosleep): Move initialization of suspended closer to call of
82866         my_usleep.
82867         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82868         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82869         (desirable_utmp_entry): New function.
82870         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82871         using x2nrealloc, to simplify logic.
82872         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82873         size calculation.  Do not assume utmp file is a regular file.
82874         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82875         (READ_UTMP_CHECK_PIDS): New constant.
82876         * lib/save-cwd.c: Include unistd-safer.h.
82877         (save_cwd): Use fd_safer.
82878         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82879         [!_LIBC] Include "stat-macros.h" instead.
82880         * lib/unistd-safer.h (fd_safer): New decl.
82881
82882 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * modules/getloadavg (Depends-on): Add unistd-safer.
82885         * modules/getusershell (Depends-on): Add stdio-safer.
82886         * modules/lstat (Depends-on): Remove xalloc.
82887         * modules/mkstemp (Depends-on): Add stat-macros.
82888         * modules/modechange (Depends-on): Remove xstrtol.
82889         Add stat-macros, xalloc.
82890         * modules/save-cwd (Depends-on): Add unistd-safer.
82891         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82892         * modules/unistd-safer (Files): Add lib/fd-safer.c
82893         (Makefile.am): Remove lib_SOURCES.
82894
82895         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82896         Remove fcntl-safer; unistd-safer supersedes it.
82897
82898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82901         AC_HEADER_STAT.
82902         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82903         (gl_PREREQ_CHOWN): Remove.
82904         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82905         it.  Don't require AC_HEADER_STAT.
82906         (gl_PREREQ_LSTAT): Remove.
82907         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82908         Don't require AC_HEADER_STAT.
82909         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82910         (gl_PREREQ_RMDIR): Remove.
82911         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82912         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82913         the stat-macros module a prerequisite.
82914         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82915         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82916         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82917         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82918         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82919         variable names.
82920         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82921         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82922         variable prefixes.
82923         * m4/fcntl-safer.m4: Remove.
82924         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82925         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82926         Invoke gl_PREREQ_FD_SAFER.
82927         (gl_PREREQ_FD_SAFER): New macro.
82928         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82929         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82930         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82931         Remove duplicate call to AC_LIBOBJ(readutmp).
82932         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82933
82934         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82935         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82936
82937 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82938
82939         * MODULES.html.sh (Misc): Add byteswap.
82940
82941 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82942
82943         * modules/getcwd (Depends-on): Add extensions.
82944         * modules/openat (Depends-on): Likewise.
82945
82946 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82947
82948         * modules/byteswap: New file.
82949
82950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82951
82952         * m4/byteswap.m4: New file.
82953
82954 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82955
82956         * lib/byteswap_.h: New file.
82957
82958 2005-04-25  Karl Berry  <karl@gnu.org>
82959
82960         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82961
82962 2005-04-25  Albert Chin  <china@thewrittenword.com>
82963
82964         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82965         Toolkit C bug.
82966
82967 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82968
82969         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82970         (func_ln_if_changed): Remove forcibly for no error message
82971         in case file does not exist.
82972
82973 2005-04-19  Simon Josefsson  <jas@extundo.com>
82974
82975         * gnulib-tool (Options): Make --symlink mean --symbolic.
82976
82977 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82978
82979         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82980
82981 2005-04-16  Simon Josefsson  <jas@extundo.com>
82982
82983         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82984
82985 2005-04-15  Simon Josefsson  <jas@extundo.com>
82986
82987         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82988
82989 2005-04-15  Simon Josefsson  <jas@extundo.com>
82990
82991         * gnulib-tool: Rename --symlink to --symbolic.
82992
82993 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82994
82995         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82996         symbolic links to files instead of copying/moving.  Add --aux-dir,
82997         specifying directory relative --dir where auxiliary build tools
82998         are placed.
82999
83000 2005-04-14  Bruno Haible  <bruno@clisp.org>
83001
83002         * modules/allocsa (License): Change to LGPL.
83003         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83004
83005 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83006
83007         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83008         that "UTC +1 second" continues to work.  Problem reported
83009         by Dmitry V. Levin.
83010         (relunit_snumber): New rule.
83011         (relunit): Use it.
83012
83013 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         * lib/getdate.y (universal_time_zone_table): New constant.
83016         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83017         universal_time_zone_table.
83018         (lookup_zone): Prefer universal_time_zone_table to
83019         local_time_zone_table, so that "GMT" time stamps are allowed in
83020         London during the summer.  Problem reported by Ian Abbott.
83021
83022 2005-04-12  Jim Meyering  <jim@meyering.net>
83023
83024         * lib/human.c (humblock): Set *options even when returning due to
83025         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83026         warning from gcc-4.
83027
83028 2005-04-09  Jim Meyering  <jim@meyering.net>
83029
83030         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83031         -Wuninitialized: initialize tm0.tm_year.
83032
83033 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83036         count, since there's no maximum.  All uses changed.
83037         Add member dsts_seen.
83038         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83039         not being INT_MAX.
83040         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83041         Use pc_rels_seen to decide whther a date is absolute.
83042
83043         * lib/getdate.y (number): Don't overwrite year.
83044         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83045         check.
83046
83047 2005-04-02  Simon Josefsson  <jas@extundo.com>
83048
83049         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83050         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83051
83052 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83053
83054         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83055         where no absolute path name can be longer than PATH_MAX.
83056
83057 2005-03-27  Jim Meyering  <jim@meyering.net>
83058
83059         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83060
83061 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83064         "one's complement" -> "ones' complement" in comment, as per Knuth.
83065         "value of type" -> "type or expression" in comment.
83066         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83067
83068 2005-03-26  Jim Meyering  <jim@meyering.net>
83069
83070         Comment nits.
83071         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83072         Correct typos: s/or/of/.
83073
83074 2005-03-26  Jim Meyering  <jim@meyering.net>
83075
83076         * modules/check-include-files: Move to ../ and rename to...
83077         * check-module: ...this.
83078
83079 2005-03-25  Jim Meyering  <jim@meyering.net>
83080
83081         * modules/xvasprintf (Files): Add xalloc.h.
83082
83083 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83084
83085         * modules/gettext (Files): config/config.rpath ->
83086         build-aux/config.rpath
83087         * modules/iconv (Files): Likewise.
83088         Problem reported by Oskar Liljeblad.
83089
83090 2005-03-23  Jim Meyering  <jim@meyering.net>
83091
83092         * modules/check-include-files: New script to check for
83093         missing dependencies, multiple includes, etc.
83094
83095         * modules/c-strtold (Depends-on): Add xalloc.
83096         * modules/c-strtod (Depends-on): Add xalloc.
83097         * modules/hash (Depends-on): Add xalloc.
83098         (Files): Remove lib/xalloc.h.
83099
83100         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83101         * modules/userspec (Files): Add lib/inttostr.h.
83102
83103 2005-03-23  Jim Meyering  <jim@meyering.net>
83104
83105         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83106
83107 2005-03-22  Jim Meyering  <jim@meyering.net>
83108
83109         * modules/stat-macros: New module.
83110         * modules/canonicalize, modules/euidaccess, modules/file-type,
83111         * modules/filemode, modules/lchown, modules/makepath,
83112         * modules/rmdir, modules/stat: Depend on new stat-macros module
83113         rather than listing lib/stat-macros.h manually.
83114         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83115
83116 2005-03-22  Jim Meyering  <jim@meyering.net>
83117
83118         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83119
83120 2005-03-22  Bruno Haible  <bruno@clisp.org>
83121
83122         * config/srclist.txt: Replace target directory 'config' with
83123         'build-aux'.
83124         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83125         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83126         ../build-aux/.
83127
83128 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83129
83130         * modules/chdir-long (Depends-on): Add mempcpy.
83131
83132         * modules/acl, modules/backupfile, modules/c-strtod,
83133         modules/c-strtold, modules/canon-host, modules/canonicalize,
83134         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83135         modules/exclude, modules/exitfail, modules/file-type,
83136         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83137         modules/getdate, modules/getline, modules/getpagesize,
83138         modules/getpass, modules/getugroups, modules/group-member,
83139         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83140         modules/inttostr, modules/long-options, modules/makepath,
83141         modules/md5, modules/memcasecmp, modules/memcoll,
83142         modules/modechange, modules/mountlist, modules/path-concat,
83143         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83144         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83145         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83146         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83147         modules/strftime, modules/strndup, modules/strverscmp,
83148         modules/timespec, modules/unlocked-io, modules/userspec,
83149         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83150         modules/yesno:
83151         Remove lib_SOURCES line from Makefile.am section, as this is now
83152         done automatically by the corresponding Autoconf macro.
83153
83154 2005-03-21  Jim Meyering  <jim@meyering.net>
83155
83156         Changes imported from coreutils.
83157
83158         * lib/cycle-check.c: Don't include xalloc.h.
83159
83160         * lib/path-concat.c: Don't include assert.h.
83161         (path_concat): Remove assertion that would have triggered
83162         for ABASE starting with more than one slash.
83163         Reported by Andreas Schwab.
83164
83165         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83166         properly when ABASE is an absolute file name.
83167         Correct the description of this function.
83168         Include <assert.h>.
83169         Add an assertion and a test driver.
83170         This fixes a bug introduced on 2004-07-02.
83171         Andreas Schwab reported the resulting failure of cp --parents:
83172         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83173
83174 2005-03-21  Jim Meyering  <jim@meyering.net>
83175
83176         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83177         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83178
83179 2005-03-21  Jim Meyering  <jim@meyering.net>
83180         and  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83183         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83184         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83185         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83186         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83187         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83188         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83189         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83190         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83191         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83192         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83193         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83194         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83195         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83196         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83197         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83198         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83199         for these modules.
83200
83201 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83202
83203         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83204         (which shouldn't happen), generate nothing instead of returning 0
83205         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83206
83207 2005-03-16  Bruno Haible  <bruno@clisp.org>
83208
83209         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83210         HAVE_LONGLONG_64BIT.
83211
83212 2005-03-16  Bruno Haible  <bruno@clisp.org>
83213
83214         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83215         HAVE_LONGLONG_64BIT.
83216
83217 2005-03-16  Bruno Haible  <bruno@clisp.org>
83218
83219         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83220         HAVE_LONGLONG_64BIT.
83221
83222 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83223
83224         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83225         reliably distinguish strftime failure from empty output on POSIX
83226         hosts.
83227
83228 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83229
83230         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83231         (iconv_string): Don't guess a size-zero buffer, as that might cause
83232         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83233         result would be 'too large', where 'too large' is (heuristically)
83234         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83235         overflow concerns.  This will prevent some unwanted malloc failures
83236         when the inputs are very large.
83237
83238 2005-03-15  Karl Berry  <karl@gnu.org>
83239
83240         * config/srclist.txt (config.rpath): from gettext.
83241         * config/config.rpath: update.
83242
83243 2005-03-15  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83246         to 'negate'.
83247
83248         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83249         variable.
83250
83251         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83252         results.
83253
83254 2005-03-14  Simon Josefsson  <jas@extundo.com>
83255
83256         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83257         <fx@gnu.org>.
83258
83259 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83262         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83263         intprops.h.
83264         * lib/strtol.c: Likewise.
83265
83266 2005-03-14  Jim Meyering  <jim@meyering.net>
83267
83268         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83269         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83270         to be nonzero so that we (and caller) can detect the difference
83271         between a valid zero-length expansion and an error return, even
83272         when the underlying strftime fails before writing anything into
83273         that location.
83274
83275 2005-03-14  Bruno Haible  <bruno@clisp.org>
83276
83277         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83278         Update from GNU gettext 0.14.3.
83279
83280 2005-03-10  Jim Meyering  <jim@meyering.net>
83281
83282         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83283
83284 2005-03-10  Jim Meyering  <jim@meyering.net>
83285
83286         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83287         so that this module works on systems without fchdir.
83288
83289 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83290
83291         Factor int-properties macros into a single file, except for
83292         glibc-related files.
83293         * lib/intprops.h: New file.
83294         * lib/getloadavg.c: Include it instead of limits.h.
83295         (INT_STRLEN_BOUND): Remove.
83296         * lib/human.c: Include intprops.h.
83297         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83298         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83299         302/1000.
83300         * lib/inttostr.h: Include intprops.h instead of limits.h.
83301         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83302         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83303         for consistency with intprops.h.
83304         (time_t_is_integer, twos_complement_arithmetic): Use them.
83305         * lib/sig2str.h: Include <signal.h>, intprops.h.
83306         (INT_STRLEN_BOUND): Remove.
83307         * lib/strftime.c (TYPE_SIGNED): Remove.
83308         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83309         * lib/strtol.c: Adjust comments to match intprops.h.
83310         * lib/userspec.c: Include intprops.h.
83311         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83312         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83313         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83314         instead of rolling our own expressions.
83315         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83316
83317         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83318         instead of int.
83319         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83320         the right thing even if adding 1900 would overflow.  Similarly
83321         for tm_mon + 1 and tm_yday + 1.
83322         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83323         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83324         (DO_SIGNED_NUMBER): New macro.
83325         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83326
83327 2005-03-07  Bruno Haible  <bruno@clisp.org>
83328
83329         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83330
83331 2005-03-07  Bruno Haible  <bruno@clisp.org>
83332
83333         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83334
83335 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83336
83337         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83338         (func_import): Only replace files via --import when they have actually
83339         changed.
83340
83341 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83342
83343         * m4/mmap-anon.m4: New file.
83344         * m4/pagealign_alloc.m4: New file.
83345
83346 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83347             Bruno Haible  <bruno@clisp.org>
83348
83349         * modules/pagealign_alloc: New file.
83350         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83351
83352 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83353             Bruno Haible  <bruno@clisp.org>
83354
83355         * lib/pagealign_alloc.h: New file.
83356         * lib/pagealign_alloc.c: New file.
83357
83358 2005-03-03  Bruno Haible  <bruno@clisp.org>
83359
83360         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83361         Use an all-permissive copyright notice, recommended by RMS.
83362
83363 2005-03-02  Bruno Haible  <bruno@clisp.org>
83364
83365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83366         of AIX, the replacement has to be done only after <string.h> is
83367         included, therefore not in config.h. stpncpy.h does the replacement,
83368         and stpncpy.c uses it.
83369
83370 2005-03-02  Bruno Haible  <bruno@clisp.org>
83371
83372         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83373         stpncpy.c uses it.
83374
83375 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83378         The workaround isn't strictly needed for POSIX conformance, and
83379         it's too much of a pain to configure and maintain.  We'll ask
83380         people to fix their kernels instead.
83381         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83382         (NANOSLEEP_BUG_WORKAROUND): Remove.
83383         (xnanosleep): Remove the workaround.
83384
83385 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83388         Reported by Derek Price.
83389         (Include): Add "timespec.h".
83390
83391         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83392
83393 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83394
83395         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83396         to detect nanosleep bug.
83397
83398 2005-03-01  Bruno Haible  <bruno@clisp.org>
83399
83400         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83401
83402 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * modules/gethrxtime: New file.
83405         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83406         (Depends-on): Add gethrxtime.
83407         (configure.ac): Add gl_XNANOSLEEP.
83408         (Makefile.am): Remove lib_SOURCES line.
83409
83410 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83411
83412         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83413         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83414
83415 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83416
83417         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83418         * lib/timespec.h (gettime): Return void, since it always
83419         succeeds now.  All uses changed.
83420         * lib/gettime.c (gettime): Likewise.
83421         [HAVE_NANOTIME]: Prefer nanotime.
83422         Assume gettimeofday succeeds, as POSIX requires.
83423         Assime time () succeeds, since other code already does.
83424         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83425         (timespec_subtract): Remove.
83426         (NANOSLEEP_BUG_WORKAROUND): New constant.
83427         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83428         things considerably.  Use it only on GNU/Linux hosts, since the
83429         workaround shouldn't be needed elsewhere.
83430
83431 2005-02-24  Bruno Haible  <bruno@clisp.org>
83432
83433         * modules/gettext (Files): Add m4/glibc2.m4.
83434
83435 2005-02-24  Bruno Haible  <bruno@clisp.org>
83436
83437         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83438         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83439         * m4/progtest.m4:
83440         Update from GNU gettext 0.14.2.
83441         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83442
83443 2005-02-24  Bruno Haible  <bruno@clisp.org>
83444
83445         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83446         * lib/config.charset: Update from GNU gettext 0.14.2.
83447
83448 2005-02-24  Bruno Haible  <bruno@clisp.org>
83449
83450         * lib/gettext.h: Update from GNU gettext 0.14.2.
83451
83452 2005-02-23  Simon Josefsson  <jas@extundo.com>
83453
83454         * m4/iconvme.m4: New file.
83455
83456 2005-02-23  Jim Meyering  <jim@meyering.net>
83457
83458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83459         change.
83460         Thanks to Bruno Haible for catching it.
83461
83462 2005-02-22  Simon Josefsson  <jas@extundo.com>
83463
83464         * modules/iconvme: New file.
83465
83466         * MODULES.html.sh: Add iconvme.
83467
83468 2005-02-22  Simon Josefsson  <jas@extundo.com>
83469
83470         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83471
83472 2005-02-22  Simon Josefsson  <jas@extundo.com>
83473
83474         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83475
83476 2005-02-22  Jim Meyering  <jim@meyering.net>
83477
83478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83479         s/ifndef/ifdef/.
83480
83481 2005-02-20  Neil Conway  <neilc@samurai.com>
83482
83483         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83484         returned by OSX/Darwin if the specified buffer is not large
83485         enough for the hostname.
83486
83487 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83488
83489         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83490         pass it to _help, otherwise the latter coredumps trying to
83491         dereference state.root_argp.
83492
83493 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83494
83495         * modules/chdir-long (Depends-on): Add memrchr.
83496         * modules/memrchr (Files): Add lib/memrchr.h.
83497         (Include): "memrchr.h".
83498
83499 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83500
83501         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83502
83503 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         * lib/memrchr.h: New file.
83506         * lib/chdir-long.c: Include it.
83507         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83508         Don't bother including stddef.h.
83509
83510 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83511
83512         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83513         inclusion.
83514         Include <sys/types.h>, for dev_t.
83515         (ME_DUMMY, ME_REMOTE): Move from here....
83516         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83517         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83518         Dmitry V. Levin.
83519         Include mountlist.h first, to test the interface.
83520
83521 2005-01-29  Bruno Haible  <bruno@clisp.org>
83522
83523         * lib/progname.c (program_name): Initialize.
83524         Needed when linking statically on MacOS X.
83525
83526 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         Sync from coreutils.
83529         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83530         (Depends-on): Add c-strtod.
83531         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83532
83533 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         Sync from coreutils.
83536         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83537
83538         Remove files that are specific to coreutils.
83539         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83540
83541 2005-01-28  Bruno Haible  <bruno@clisp.org>
83542
83543         * modules/javacomp: New file.
83544         * MODULES.html.sh (Java): Add javacomp.
83545
83546 2005-01-28  Bruno Haible  <bruno@clisp.org>
83547
83548         * m4/javacomp.m4: New file, from GNU gettext.
83549
83550 2005-01-28  Bruno Haible  <bruno@clisp.org>
83551
83552         * lib/javacomp.sh.in: New file, from GNU gettext.
83553         * lib/javacomp.h: New file, from GNU gettext.
83554         * lib/javacomp.c: New file, from GNU gettext.
83555
83556 2005-01-26  Simon Josefsson  <jas@extundo.com>
83557
83558         * lib/gai_strerror.c: Use GPL in header.
83559
83560 2005-01-26  Bruno Haible  <bruno@clisp.org>
83561
83562         * modules/javaexec: New file.
83563         * MODULES.html.sh (Java): Add javaexec.
83564
83565 2005-01-26  Bruno Haible  <bruno@clisp.org>
83566
83567         * m4/javaexec.m4: New file, from GNU gettext.
83568
83569 2005-01-26  Bruno Haible  <bruno@clisp.org>
83570
83571         * lib/javaexec.sh.in: New file, from GNU gettext.
83572         * lib/javaexec.h: New file, from GNU gettext.
83573         * lib/javaexec.c: New file, from GNU gettext.
83574
83575 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83576
83577         * modules/lchown (Depends-on): Remove lchown.h
83578
83579 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83580
83581         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83582         must be defined if the header file was not found, in order
83583         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83584
83585 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83586
83587         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83588         initializers for struct pentry_state.
83589         (__argp_error): Check return value of __asprintf
83590         (__argp_failure): Translate error message
83591
83592         * lib/argp-parse.c: Removed braces around the expansion of N_()
83593
83594 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83597         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83598         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83599         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83600         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83601         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83602         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83603         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83604         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83605         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83606         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83607         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83608         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83609         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83610         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83611         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83612         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83613         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83614         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83615         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83616         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83617         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83618         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83619         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83620         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83621         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83622         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83623         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83624         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83625         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83626         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83627         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83628         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83629         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83630         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83631         Use an all-permissive copyright notice, recommended by RMS.
83632
83633 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83634
83635         * modules/chdir-long (Depends-on): Remove mempcpy.
83636
83637 2005-01-21  Jim Meyering  <jim@meyering.net>
83638
83639         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83640         same value as for Solaris 9.
83641
83642         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83643         component length.  This included changing the parameter to be
83644         of type `char *' rather than `char const *'.
83645         * lib/chdir-long.h (chdir_long): Update prototype.
83646
83647         * lib/openat.c (fdopendir, fstatat): New functions.
83648         * lib/openat.h: Include headers required for use of DIR and struct
83649         stat.
83650         [AT_SYMLINK_NOFOLLOW]: Define.
83651         (fdopendir, fstatat): Add prototypes.
83652
83653 2005-01-21  Bruno Haible  <bruno@clisp.org>
83654
83655         * modules/classpath: New file.
83656         * MODULES.html.sh (Java): Add classpath.
83657
83658 2005-01-21  Bruno Haible  <bruno@clisp.org>
83659
83660         * lib/classpath.h: New file, from GNU gettext.
83661         * lib/classpath.c: New file, from GNU gettext.
83662
83663 2005-01-20  Simon Josefsson  <jas@extundo.com>
83664
83665         * modules/version-etc-fsf: New file.
83666
83667 2005-01-20  Simon Josefsson  <jas@extundo.com>
83668
83669         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83670         * lib/version-etc.c: Remove version_etc_copyright.
83671         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83672         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83673
83674 2005-01-20  Simon Josefsson  <jas@extundo.com>
83675
83676         * lib/base64.h (isbase64): Add.
83677
83678         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83679         using a unsigned prototype, don't inline.
83680         (base64_decode): Use it.
83681
83682 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83685         it.
83686
83687 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/save-cwd.c (save_cwd): Remove code to support the case
83690         where fchdir is missing or flaky.
83691
83692 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83695
83696 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83697
83698         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83699         AC_LIBSOURCES now does this.
83700         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83701         with new ullong_max module.
83702
83703 2005-01-19  Bruno Haible  <bruno@clisp.org>
83704
83705         * modules/sh-quote: New file.
83706         * MODULES.html.sh (Executing programs): Add sh-quote.
83707
83708 2005-01-19  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/sh-quote.h: New file, from GNU gettext.
83711         * lib/sh-quote.c: New file, from GNU gettext.
83712
83713 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83714
83715         Merge from coreutils.
83716         * m4/ullong_max.m4: New file.
83717         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83718         (gl_MACROS): Assume localeconv exists.
83719
83720 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83721
83722         Merge changes from coreutils, as described below in several
83723         changelogs dated today.
83724
83725         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83726         (O_DIRECTORY): Remove; not needed here, since "." must be
83727         a directory.  All uses removed.
83728         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83729         universal on Suns, and we also need to test for IRIX.
83730         Revamp code to use 'if' rather than '#if'.
83731         Avoid unnecessary comparison of cwd->desc to 0.
83732
83733         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83734         for known valid error numbers rather than observed invalid ones.
83735
83736 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * modules/ullong_max: New file.
83739
83740         * modules/chdir-long, modules/openat: New files.
83741         * modules/save-cwd (Depends-on): Depend on chdir-long.
83742         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83743
83744 2005-01-18  Jim Meyering  <jim@meyering.net>
83745
83746         Merge from coreutils.
83747         * m4/chdir-long.m4, m4/openat.m4: New files.
83748         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83749         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83750         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83751         is sane and DOES follow symlinks.  Besides, testing 20 different
83752         systems found no broken chown implementations.
83753         Prompted by a change in rsync's copy of this macro.
83754         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83755
83756         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83757
83758         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83759         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83760         NULL-means-set-to-current-time semantics.
83761         Remove temporary file immediately, rather than waiting
83762         for configure's at-exit trap code to do it.
83763
83764 2005-01-18  Jim Meyering  <jim@meyering.net>
83765
83766         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83767
83768         * lib/utimens.c (futimens): Account for the fact that futimes
83769         can also fail with errno == ENOSYS or errno == ENOENT.
83770         Patch from Dmitry V. Levin.
83771
83772         Change the name of the robust chdir function from chdir to chdir_long.
83773         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83774         (restore_cwd): Use chdir_long, not chdir.
83775         * lib/chdir-long.c: Renamed from chdir.c.
83776         * lib/chdir-long.h: Renamed from chdir.h.
83777         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83778         Hurd.
83779
83780 2005-01-18  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83783         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83784         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83785         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83786         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83787         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83788         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83789         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83790         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83791         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83792         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83793         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83794         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83795         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83796         Use an all-permissive copyright notice, recommended by RMS.
83797
83798 2005-01-18  Bob Proulx  <bob@proulx.com>
83799
83800         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83801         simplify offsetof() macro construct to avoid compile failure with
83802         native HP-UX 11.0 ANSI C compiler.
83803
83804 2005-01-17  Bruno Haible  <bruno@clisp.org>
83805
83806         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83807         redundant because stpncpy.m4 takes care of it.
83808
83809 2005-01-17  Bruno Haible  <bruno@clisp.org>
83810
83811         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83812
83813 2005-01-17  Bruno Haible  <bruno@clisp.org>
83814
83815         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83816         used.
83817
83818 2005-01-17  Bruno Haible  <bruno@clisp.org>
83819
83820         * lib/fwriteerror.h (fwriteerror): Change specification to include
83821         fclose.
83822         * lib/fwriteerror.c: Include <stdbool.h>.
83823         (fwriteerror): At the end, close the file stream. Record whether
83824         stdout was already closed.
83825
83826 2005-01-17  Bruno Haible  <bruno@clisp.org>
83827
83828         * lib/execute.c (environ): Declare if needed.
83829         * lib/pipe.c (environ): Likewise.
83830         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83831
83832 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83833
83834         * modules/argp: Depend on vsnprintf
83835
83836 2005-01-10  Jim Meyering  <jim@meyering.net>
83837
83838         * modules/closeout (Depends-on): Add atexit.
83839
83840 2005-01-06  Bruno Haible  <bruno@clisp.org>
83841
83842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83843
83844 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83847         definitions to be after all include files, to avoid collisions.
83848         Problem reported by Bob Proulx.
83849
83850 2005-01-04  Jim Meyering  <jim@meyering.net>
83851
83852         Changes imported from coreutils.
83853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83854         as the mkstemp template, use a temporary directory and an
83855         8.3-friendly template to avoid trouble on systems like DJGPP.
83856         Reported by Juan M. Guerrero via Stepan Kasal.
83857         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83858         close. Remove the temporary directory right away, rather than waiting
83859         for configure's at-exit trap code to do it.
83860         Suggestion from Stepan Kasal.
83861
83862 2005-01-01  Simon Josefsson  <jas@extundo.com>
83863
83864         * gnulib-tool: Print #include directives when --import'ing.
83865
83866 2004-12-28  Simon Josefsson  <jas@extundo.com>
83867
83868         * tests/test-base64.c: Include required header files.  Remove
83869         unused variables.
83870
83871 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * modules/error (Depends-on): Remove gettext.
83874
83875 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83876
83877         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83878         not needed.  This removes a dependency on the gettext module.
83879         [defined _LIBC]: Do not include <libintl.h>; not needed.
83880
83881 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83884         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83885
83886 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83889         HAVE_DECL_STRTOLD.
83890
83891 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * modules/getdate (Depends-on): Remove alloca-opt.
83894
83895 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83896
83897         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83898
83899 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * lib/argp-parse.c: Include <stddef.h>.
83902         (alignof, alignto): New macros.
83903         (parser_init): Don't assume that void * is aligned sufficiently
83904         for struct option.
83905
83906         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83907         need to extend the stack.
83908         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83909         large.
83910
83911 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83912
83913         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83914
83915 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83918         (2004-10-24) change.  Apparently this was a false alarm.
83919
83920         * modules/getdate: Depend on alloca-opt, not alloca.
83921
83922 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83925         Remove now-obsolete comment about AIX.
83926         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83927         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83928         (YYMAXDEPTH): New macro.
83929
83930 2004-12-18  Simon Josefsson  <jas@extundo.com>
83931
83932         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83933
83934 2004-12-18  Bruno Haible  <bruno@clisp.org>
83935
83936         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83937
83938 2004-12-18  Bruno Haible  <bruno@clisp.org>
83939
83940         * lib/fatal-signal.c (fatal_signals): Make non-const.
83941         (init_fatal_signals): New function.
83942         (uninstall_handlers, install_handlers): Ignore signals that were set to
83943         SIG_IGN.
83944         (at_fatal_signal): Call init_fatal_signals.
83945         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83946         SIG_IGN.
83947         Reported by Paul Eggert.
83948
83949 2004-12-18  Bruno Haible  <bruno@clisp.org>
83950
83951         * doc/alloca.texi: New file.
83952         * doc/alloca-opt.texi: New file.
83953
83954 2004-12-17  Jim Meyering  <jim@meyering.net>
83955
83956         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83957         Otherwise, install-sh could exit with improper exit status when
83958         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83959
83960 2004-12-16  Simon Josefsson  <jas@extundo.com>
83961
83962         * tests/test-base64.c: Add license.
83963
83964 2004-12-15  Stepan Kasal  <address@hidden>
83965
83966         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83967
83968 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * modules/getcwd (Files): Add m4/d-ino.m4.
83971         Suggested by Mark D. Baushke.
83972
83973 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83974
83975         * lib/getdate.y (textint): New member "negative".
83976         (time_zone_hhmm): New function.
83977         Expect 14 shift-reduce conflicts, not 13.
83978         (o_colon_minutes): New rule.
83979         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83980         (yylex): Set the "negative" member of signed numbers.
83981
83982 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83983
83984         * doc/getdate.texi (Time of day items, Time zone items):
83985         Describe new formats +00:00, UTC+00:00.
83986
83987 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83988
83989         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83990         spurious "-l"s.  Problem reported by Stepan Kasal.
83991
83992 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83995         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83996
83997 2004-12-04  Simon Josefsson  <jas@extundo.com>
83998
83999         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84000         Vandoorselaere <yoann@prelude-ids.org>.
84001
84002 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         Changes imported from coreutils.
84005         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84006         exist.
84007         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84008
84009 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         Changes imported from coreutils.
84012         * lib/hard-locale.c: Assume <locale.h> exists.
84013         Include "strdup.h".
84014         (GLIBC_VERSION): New macro.
84015         (hard_locale): Assume setlocale exists.
84016         Rewrite to avoid #ifdef.
84017         Use strdup rather than malloc + strcpy.
84018         * lib/human.c: Assume <locale.h> exists.
84019         (human_readable): Assume localeconv exists.
84020
84021 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * modules/hard-locale (Depends-on): Add strdup.
84024
84025 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84026
84027         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84028         convert T2, not T.  (Imported from libc.)
84029
84030 2004-11-30  Simon Josefsson  <jas@extundo.com>
84031
84032         * modules/restrict (License): Change to LGPL.
84033
84034 2004-11-30  Simon Josefsson  <jas@extundo.com>
84035
84036         * m4/restrict.m4: Add copyright and copying conditions.
84037
84038 2004-11-30  Simon Josefsson  <jas@extundo.com>
84039
84040         * m4/base64.m4: New file.
84041
84042 2004-11-30  Simon Josefsson  <jas@extundo.com>
84043
84044         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84045         base64.
84046
84047         * tests/test-base64.c: New file.
84048
84049         * modules/base64: New file.
84050
84051 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84054         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84055
84056         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84057
84058 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84061         (__getcwd.c): Don't restore errno; glibc doesn't.
84062         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84063         first, falling back to our code only if its results look suspicious.
84064         Ensure that the resulting buffer is only as large as necessary.
84065
84066         * lib/readutmp.c: Include readutmp.h first.
84067         Include <errno.h>, since readutmp.h no longer does that.
84068         * lib/readutmp.h: Don't include <errno.h>,
84069         <sys/param.h>, <time.h>; not needed to establish interface.
84070         (errno): Remove decl.
84071         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84072         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84073         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84074
84075 2004-11-28  Simon Josefsson  <jas@extundo.com>
84076
84077         * lib/base64.h, base64.c: New file.
84078
84079 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84080
84081         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84082
84083 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84086         (Depends-on): Remove pathmax, same.  Add mempcpy.
84087         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84088         (Makefile.am): Append getcwd.h to lib_SOURCES.
84089         (Include): Add getcwd.h.
84090         (Maintainer): Change from Jim Meyering to "all, glibc",
84091         since getdate now uses intended-for-glibc code.
84092         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84093         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84094
84095 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84096
84097         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84098         HP's ANSI C compiler.
84099         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84100         Declaring int functions causes warnings on some modern systems and
84101         shouldn't be needed to compile on ancient ones.
84102         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84103         defined.
84104
84105         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84106         with the following changes.
84107         (__set_errno): Parenthesize properly.
84108         Include <stdbool.h>.
84109         (MIN, MAX, MATCHING_INO): New macros.
84110         (__getcwd): Define with prototype, not K&R form.
84111         Use heuristics to allocate default buffer on stack if possible.
84112         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84113         behavior, and to avoid the PATH_MAX limit when computing
84114         ../../../../...
84115         Use MATCHING_INO to compare inode number to file.
84116         Check for arithmetic overflow in size calculations.
84117         Fix bug in reallocation of dot array that caused getcwd to fail
84118         on directories nested deeper than 75.
84119         Be more careful about saving errno on error.
84120         Do not use realloc; use only free+malloc, as this is a bit
84121         more flexible and avoids a needless copy operation.
84122         Do not inspect st_dev and st_ino for symbolic links; POSIX
84123         doesn't specify the latter.
84124         Check for closedir errors.
84125         Avoid needless casts.
84126         Use "#ifdef weak_alias" around weak_alias, to be like other
84127         glibc code.
84128         The following changes to getcwd.c have effect only when used in
84129         gnulib; they have no effect inside glibc proper.
84130         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84131         as alloca isn't used.
84132         (alloca, __alloca): Likewise.
84133         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84134         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84135         unconditionally, as gnulib assumes C89 or better.
84136         Do not include <sys/param.h>.
84137         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84138         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84139         better.
84140         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84141         Include <dirent.h> in a way that is compatible with modern Autoconf.
84142         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84143         New macros, if not already defined.
84144         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84145         Use "_LIBC", not "defined _LIBC", for consistency.
84146         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84147         a mempcpy module.
84148         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84149         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84150         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84151         credit only to Jim Meyering and adjust the copyright dates.
84152         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84153         <stdlib.h>, <unistd.h>, "pathmax.h".
84154         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84155         (INITIAL_BUFFER_SIZE): Remove.
84156         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84157
84158 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84161         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84162         Use the _ONCE methods, for efficiency.
84163         Check for fcntl.h.  In test program, include <errno.h>
84164         and <fcntl.h> if available.  Remove old K&R cruft from
84165         test program.  Check for common errors in GNU/Linux,
84166         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84167         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84168         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84169         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84170         name accordingly.
84171         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84172         accommodate new getcwd.c.
84173         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84174         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84175         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84176         that's all we need now.
84177
84178 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84179
84180         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84181         argp-parse.c depends on getopt internals, that means we should
84182         always use our getopt, to be on the safe side.
84183         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84184         order not to spoil the result of an eventual previous invocation
84185         of gl_GETOPT_SUBSTITUTE.
84186
84187 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84188
84189         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84190         redefinition warnings. To avoid them, include the defines
84191         in `#if !defined __need_getopt ... #endif'. The only place
84192         where __getopt_argv_const is used is in definitions
84193         of getopt_long and getopt_long_only below, which are as well
84194         protected by `#ifndef __need_getopt'.
84195         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84196         __need_getopt after including <stdio.h> and <unistd.h> These
84197         headers might have defined it.
84198
84199 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84202
84203 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84206         (futimens): New function, which uses futimes if available.
84207         (futimens, utimens): Support timespec==NULL, with same semantics
84208         as utime and utimens.
84209         * lib/utimens.h (futimens): New decl.
84210
84211 2004-11-23  Jim Meyering  <jim@meyering.net>
84212
84213         * lib/getopt_.h: Remove trailing blanks.
84214
84215 2004-11-23  Jim Meyering  <jim@meyering.net>
84216
84217         * lib/__fpending.c: Add comment.
84218
84219 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * modules/canonicalize (Depends-on): Add xreadlink.
84222         Problem reported by James Youngman.
84223
84224 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84227         New macros.
84228         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84229         optopt): Use them instead of invoking ## directly; otherwise, the
84230         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84231
84232 2004-11-19  Bruno Haible  <bruno@clisp.org>
84233
84234         * lib/strtok_r.c: Move comments from here...
84235         * lib/strtok_r.h: ... to here.
84236
84237 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84240         implementations that mishandle size_t overflow.
84241
84242 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84243
84244         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84245         might fail.  Problem reported by Yoann Vandoorselaere.
84246         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84247         implementations that mishandle size_t overflow.
84248
84249 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * modules/canon-host (Depends-on): Add strdup.
84252
84253 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84256
84257 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84258
84259         * lib/canon-host.c: Include "strdup.h".
84260         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84261         Use strdup instead of malloc/strcpy to duplicate strings.
84262
84263         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84264         (human_space_before_unit): New constant.
84265         * lib/human.c (human_readable): Support it.
84266
84267         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84268         (xgetcwd): Set errno correctly when failing.
84269         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84270         the failure is actually due to a PATH_MAX problem.
84271
84272         Further getopt changes to make it more likely that glibc will
84273         buy the changes back.
84274         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84275         (getopt): Use it, so to preserve glibc semantic
84276         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84277         when compiling for libc.
84278         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84279         (getopt_long, getopt_long_only): Use it.
84280
84281         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84282         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84283         (getopt): Argv is now char * const *, as per standard.
84284         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84285         not char *__getopt_argv_const *.
84286         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84287         _getopt_long_only_r): Likewise.
84288         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84289         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84290         _getopt_long_r, _getopt_long_only_r): Likewise.
84291         * lib/getopt_.h (__getopt_argv_const): Remove.
84292         (getopt): Argv is now char * const *, as per standard.
84293
84294         * lib/getdate.y (tORDINAL): New token.
84295         (day, relunit): Allow it for relative times.
84296         (relative_time_table): Use tORDINAL for ordinals.
84297
84298 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84299
84300         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84301         Document that "second" isn't allowed as an ordinal number.
84302
84303 2004-11-16  Jim Meyering  <jim@meyering.net>
84304
84305         * modules/closeout (Depends-on): Add fpending.
84306
84307 2004-11-15  Jim Meyering  <jim@meyering.net>
84308
84309         * lib/closeout.c: Include "__fpending.h" once again.
84310         Include <stdbool.h>.
84311         (close_stdout): Don't fail just because stdout was closed initially,
84312         since some programs don't write to stdout in the normal course of
84313         operation (other than --version and --help), and we don't want this
84314         function to make e.g. `touch file >&-' fail.
84315         But do fail if it was closed and someone has tried to write to it.
84316         E.g., `printf foo >&-' must fail.
84317
84318 2004-11-13  Jim Meyering  <jim@meyering.net>
84319
84320         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84321
84322 2004-11-12  Simon Josefsson  <jas@extundo.com>
84323
84324         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84325         small doc fix is still pending.
84326
84327 2004-11-11  Simon Josefsson  <jas@extundo.com>
84328
84329         * modules/strtok_r: New file.
84330
84331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84332         strtok_r.
84333
84334 2004-11-11  Simon Josefsson  <jas@extundo.com>
84335
84336         * m4/strtok_r.m4: New file.
84337
84338         * m4/getopt.m4: Replace opterr.
84339
84340 2004-11-11  Simon Josefsson  <jas@extundo.com>
84341
84342         * lib/strtok_r.h, strtok_r.c: New file.
84343
84344 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84347         of replacing opterr, getopt, etc.  This should handle the
84348         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84349
84350 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84353         we can stop lying to compilers about the constness of argv when we
84354         are compiled outside glibc.
84355         (getopt, getopt_long, getopt_long_only): Use it.
84356         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84357         _getopt_internal, getopt): Likewise.
84358         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84359         _getopt_long_only_r): Likewise.
84360         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84361         _getopt_long_r, _getopt_long_only_r): Likewise.
84362
84363         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84364         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84365         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84366         the other external symbols.
84367         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84368         declaration, since the above renaming now works around collisions.
84369
84370 2004-11-11  Jim Meyering  <jim@meyering.net>
84371
84372         * lib/linebreak.c: Remove trailing blanks.
84373         * lib/alloca_.h: Likewise.
84374         * lib/acosl.c: Likewise.
84375         * lib/euidaccess.c: Likewise.
84376         * lib/allocsa.h: Likewise.
84377
84378 2004-11-10  Simon Josefsson  <jas@extundo.com>
84379
84380         * m4/getaddrinfo.m4: New file.
84381
84382 2004-11-10  Simon Josefsson  <jas@extundo.com>
84383
84384         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84385
84386 2004-11-10  Simon Josefsson  <jas@extundo.com>
84387
84388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84389         getaddrinfo.
84390
84391         * modules/getaddrinfo: New file.
84392
84393 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84394
84395         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84396
84397 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         * lib/mktime.c (SHR): New macro, which is a portable
84400         substitute for >> that should work even on Crays.
84401         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84402         Problem reported by Mark D. Baushke in
84403         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84404         * lib/getdate.y (SHR): Likewise.
84405         (tm_diff): Use it.
84406         * lib/strftime.c (SHR): Likewise.
84407         (tm_diff): Use it.
84408         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84409         quote_these_too, so that right shifts are well defined.  All uses
84410         changed.
84411
84412 2004-11-10  Jim Meyering  <jim@meyering.net>
84413
84414         Ensure that no close failure goes unreported.
84415         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84416         return early when it seems there's nothing to flush.
84417         Don't include __fpending.h.
84418
84419 2004-11-10  Jim Meyering  <jim@meyering.net>
84420
84421         * modules/closeout (Depends-on): Remove fpending.
84422
84423 2004-11-10  Jim Meyering  <jim@meyering.net>
84424
84425         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84426
84427 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84428
84429         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84430         gl_FUNC_STRFTIME.
84431         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84432         and AC_REQUIRE when possible, to avoid duplicate checks.
84433         Check for <wchar.h>.
84434
84435 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84438
84439 2004-11-09  Bruno Haible  <bruno@clisp.org>
84440
84441         * m4/sockpfaf.m4: New file.
84442
84443 2004-11-05  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84446         Reported by Mark D. Baushke <mdb@cvshome.org>.
84447
84448 2004-11-04  Bruno Haible  <bruno@clisp.org>
84449
84450         2004-09-11  Bruno Haible  <bruno@clisp.org>
84451                 * allocsa.valgrind: New file.
84452         2004-02-06  Bruno Haible  <bruno@clisp.org>
84453                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84454                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84455                 Reported by Christopher Seip <chris.seip@hp.com>.
84456
84457 2004-11-04  Bruno Haible  <bruno@clisp.org>
84458
84459         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84460         (Makefile.am): Distribute it.
84461
84462 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84465         with errno == ERANGE if the buffer is too small.
84466         Problem reported by Mark D. Baushke.
84467
84468 2004-11-03  Albert Chin  <china@thewrittenword.com>
84469             Paul Eggert  <eggert@cs.ucla.edu>
84470
84471         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84472         equivalent, substitute $ac_type for equivalent type rather than
84473         blindly using uint32_t *always* which won't work if uint32_t is not
84474         available.  Define _UINT32_T to work around typedef of uint32_t if
84475         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84476         2.5.1.
84477
84478 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         * m4/jm-macros.m4: Sync from coreutils.
84481         (gl_MACROS): Check for mbrlen, for pathchk.
84482         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84483
84484 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84485
84486         * lib/xreadlink.c (MAXSIZE): New macro.
84487         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84488         size does not exceed MAXSIZE.  Avoid cast.
84489         As suggested by Mark D. Baushke in
84490         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84491         if readlink fails with buffer size just under MAXSIZE, try again
84492         with MAXSIZE.
84493
84494 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84497
84498 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84499         and  Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84502         (get_date): Overparenthesize to avoid GCC warning.
84503
84504 2004-11-02  Bruno Haible  <bruno@clisp.org>
84505
84506         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84507         returns void.
84508
84509 2004-11-02  Bruno Haible  <bruno@clisp.org>
84510
84511         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84512         function returns void.
84513
84514 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84515
84516         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84517         fflush_unlocked, flockfile, funlockfile, funlockfile,
84518         fputs_unlocked, putc_unlocked.
84519
84520 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84523         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84524         already declared.
84525
84526 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84527
84528         * modules/getdate (Files): Add doc/getdate.texi.
84529         (Depends-on): Add setenv, xalloc.
84530
84531 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         * lib/getdate.y: Add support for TZ="foo" within a date string.
84534         Fix some bugs near time_t boundaries.  Reject dates with
84535         out-of-range components, e.g., "Sept 31".
84536         Include <stdlib.h>, "setenv.h", "xalloc.h".
84537         (ISDIGIT_LOCALE): Remove; unused.
84538         Note that the TZ and time functions used here are not reentrant.
84539         (mktime_ok, get_tz): New functions.
84540         (TZBUFSIZE): New constant.
84541         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84542         This requires that we sometimes generate our own TZ="XXX..." setting.
84543
84544 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * doc/getdate.texi: New file, from coreutils with modifications for
84547         the new TZ parsing.
84548
84549 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84550
84551         * lib/mktime.c (not_equal_tm): Remove redundant check.
84552
84553 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84554
84555         * modules/regex (lib_SOURCES): Add regex.c.
84556         Reported by James Youngman in
84557         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84558
84559 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * lib/getdate.y: Use Bison 1.875 features, and some minor
84562         code cleanups.  This change does not affect semantics.
84563         Don't include <stdlib.h>; no longer needed.
84564         Don't include unlocked-io.h; only the "#if TEST" code uses
84565         stdio, and performance isn't crucial there.
84566         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84567         Bison 1.875 features as described below.
84568         All uses of "PC." replaced by "pc->".
84569         (YYSTYPE): Add a forward declaration.
84570         (yylex, yyerror): Use full prototypes in forward decls.
84571         Use "%pure-parser" rather than obsolescent "%pure_parser".
84572         Use %parse-param and %lex-param instead of obsolescent
84573         YYPARSE_PARAM and YYLEX_PARAM.
84574         (meridian_table, month_and_day_table, time_units_table,
84575         relative_time_table, time_zone_table, military_table,
84576         lookup_zone, lookup_word, get_date):
84577         Use NULL instead of 0 where appropriate.
84578         (to_hour): Avoid abort (), to avoid a dependency on
84579         stdlib.h.
84580         (yyerror, yylex): Now accepts parser_control * arg.
84581         (main) [TEST]: Use '\0' rather than 0 for char.
84582
84583 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84584
84585         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84586
84587 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84588
84589         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84590         It's now the caller's responsibility to handle the case where
84591         !HAVE_GETPAGESIZE && !defined getpagesize.
84592
84593         * lib/mktime.c (leapyear): Arg is long int, not int.
84594
84595 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84598
84599 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84602         missing.  Problem reported by James Youngman.
84603
84604 2004-10-16  Simon Josefsson  <jas@extundo.com>
84605
84606         * gnulib-tool: Fix comments.  Fix parse problem.
84607         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84608
84609 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84612         implementation of getopt_long.  Problem reported by Alexander Taler in:
84613         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84614
84615 2004-10-15  Bruno Haible  <bruno@clisp.org>
84616
84617         * gnulib-tool: Untabify. Initialize supplied_libname.
84618         (func_usage): More homogenous output.
84619         (func_modules_transitive_closure, func_modules_to_filelist,
84620         func_emit_lib_Makefile_am): New functions.
84621         (func_import): New function, extracted from big case statement. Use
84622         func_get_license, func_modules_transitive_closure,
84623         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84624         opt_lgpl. Don't use test -a, as it's not portable.
84625         (func_create_testdir): Use func_modules_transitive_closure,
84626         func_modules_to_filelist, func_emit_lib_Makefile_am.
84627
84628 2004-10-15  Bruno Haible  <bruno@clisp.org>
84629
84630         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84631
84632 2004-10-15  Bruno Haible  <bruno@clisp.org>
84633
84634         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84635         the portions belonging to each module.
84636         Suggested by Derek Robert Price <derek@ximbiot.com>.
84637
84638 2004-10-12  Simon Josefsson  <jas@extundo.com>
84639
84640         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84641         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84642         to real functions.
84643
84644 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84645
84646         * modules/vsnprintf: New file.
84647
84648 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84649
84650         * m4/vsnprintf.m4: New file.
84651
84652 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84653
84654         * lib/vsnprintf.h: New file.
84655         * lib/vsnprintf.c: New file.
84656
84657 2004-10-11  Bruno Haible  <bruno@clisp.org>
84658
84659         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84660         vsnprintf.
84661
84662 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84665
84666 2004-10-07  Bruno Haible  <bruno@clisp.org>
84667
84668         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84669         fits into the provided buffer.
84670
84671 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84672
84673         * lib/diacrit.c, diacrit.h: Add GPL notice.
84674
84675         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84676         notice.
84677         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84678         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84679         This avoids a potential constant-folding bug.
84680
84681 2004-10-05  Bruno Haible  <bruno@clisp.org>
84682
84683         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84684         for the declaration of strsep.
84685
84686 2004-10-05  Bruno Haible  <bruno@clisp.org>
84687
84688         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84689
84690 2004-10-04  Simon Josefsson  <jas@extundo.com>
84691
84692         * modules/memmem: New file.
84693         * tests/test-memmem.c: New file.
84694         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84695
84696 2004-10-04  Simon Josefsson  <jas@extundo.com>
84697
84698         * m4/memmem.m4: New file.
84699
84700 2004-10-04  Simon Josefsson  <jas@extundo.com>
84701
84702         * lib/memmem.h: New file.
84703         * lib/memmem.c: New file, taken from glibc.
84704
84705 2004-10-04  Simon Josefsson  <jas@extundo.com>
84706
84707         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84708         '#ifdef USE_UNLOCKED_IO'.
84709
84710 2004-10-04  Simon Josefsson  <jas@extundo.com>
84711
84712         * config/srclist.txt: Add memmem from glibc.
84713
84714 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84715
84716         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84717
84718         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84719         modules/exclude, modules/getdate, modules/getline,
84720         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84721         modules/getusershell, modules/linebuffer, modules/md5,
84722         modules/mountlist, modules/posixtm, modules/readtokens,
84723         modules/readutmp, modules/regex, modules/sha1,
84724         modules/version-etc, modules/yesno:
84725         Remove dependency on unlocked-io.
84726
84727 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84728
84729         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84730
84731         * m4/unlocked-io.m4: Add copyright notice.
84732         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84733
84734 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84737         * lib/xmalloc.c (xmemdup): Likewise.
84738         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84739         XFREE): Remove these long-obsolescent macros.
84740         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84741         * lib/xstrdup.c: Remove.
84742
84743         * lib/regex.c (re_comp): Cast gettext return value to char *,
84744         Problem reported by Martin Neitzel via Mark D. Baushke.
84745
84746 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84747
84748         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84749         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84750         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84751         regex.c, sha1.c, version-etc.c, yesno.c:
84752         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84753         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84754         the includer's responsibility.
84755
84756         Sync from coreutils.
84757
84758         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84759         points to the start of a string, as the C Standard says the
84760         resulting behavior is undefined.
84761
84762         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84763         simple -> simple_backups, numbered_existing ->
84764         numbered_existing_backups, numbered -> numbered_backups
84765         to avoid shadowing problems.  All uses changed.
84766         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84767         * lib/backupfile.c (check_extension, numbered_backup):
84768         Rename locals to avoid shadowing 'basename'.
84769         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84770         once.
84771
84772         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84773         * lib/.cvsignore: Add getopt.h.
84774
84775 2004-10-04  Bruno Haible  <bruno@clisp.org>
84776
84777         * modules/README: New file.
84778         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84779         not a module.
84780
84781 2004-10-02  Jim Meyering  <jim@meyering.net>
84782
84783         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84784
84785 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84786
84787         * modules/strsep: New file.
84788
84789 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84790
84791         * m4/strsep.m4: New file.
84792
84793 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84794
84795         * lib/strsep.h: New file.
84796         * lib/strsep.c: New file.
84797
84798 2004-10-01  Simon Josefsson  <jas@extundo.com>
84799
84800         * lib/snprintf.c (snprintf): Handle size==0.
84801
84802 2004-10-01  Simon Josefsson  <jas@extundo.com>
84803             Bruno Haible  <bruno@clisp.org>
84804
84805         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84806         (snprintf): Declare 'args'.
84807
84808 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84809
84810         * lib/snprintf.c: Remove comments as to why each header is needed.
84811
84812 2004-10-01  Bruno Haible  <bruno@clisp.org>
84813
84814         * MODULES.html.sh: Add strsep.
84815
84816 2004-09-30  Simon Josefsson  <jas@extundo.com>
84817
84818         * modules/snprintf: New file.
84819
84820 2004-09-30  Simon Josefsson  <jas@extundo.com>
84821
84822         * m4/snprintf.m4: New file.
84823
84824 2004-09-30  Simon Josefsson  <jas@extundo.com>
84825
84826         * lib/snprintf.h, lib/snprintf.c: New files.
84827
84828 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84829
84830         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84831         (hol_entry_help): Never translate an empty string.
84832         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84833         * lib/argp.h (OPTION_NO_TRANS): New option.
84834
84835 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84836
84837         * modules/argp (Maintainer): Replace Simon Josefsson
84838         by Sergey Poznyakoff.
84839
84840 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84843         changes merged back into glibc.
84844
84845 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84848
84849 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84850
84851         * lib/xvasprintf.c: Include xalloc.h.
84852         (xvasprintf): Use xalloc_die, not xmalloc_die.
84853
84854 2004-09-29  Bruno Haible  <bruno@clisp.org>
84855
84856         * modules/alloca-opt: New file, derived from modules/alloca.
84857         * modules/allocsa: Depend on alloca-opt instead of alloca.
84858         * modules/setenv: Likewise.
84859         * modules/vasnprintf: Likewise.
84860         * MODULES.html.sh: Add alloca-opt.
84861
84862 2004-09-28  Simon Josefsson  <jas@extundo.com>
84863
84864         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84865         LGPL, and to replace license template from GPL to LGPL.
84866
84867 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * modules/dummy: Change license to LGPL.
84870
84871 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84874
84875 2004-09-24  Simon Josefsson  <jas@extundo.com>
84876
84877         * modules/minmax (License): Change from GPL to LGPL.
84878
84879 2004-09-23  Simon Josefsson  <jas@extundo.com>
84880
84881         * gnulib-tool (--import): Typo.
84882
84883 2004-09-23  Simon Josefsson  <jas@extundo.com>
84884
84885         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84886
84887 2004-09-22  Bruno Haible  <bruno@clisp.org>
84888
84889         * modules/*: Add 'License' field.
84890         * gnulib-tool: Accept --extract-license option.
84891         (func_get_license): New function.
84892
84893 2004-09-21  Bruno Haible  <bruno@clisp.org>
84894
84895         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84896         Reported by Simon Josefsson.
84897
84898 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84901         gl_AC_TYPE_LONG_LONG.
84902
84903 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84904
84905         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84906
84907 2004-09-18  Simon Josefsson  <jas@extundo.com>
84908         and  Paul Eggert  <eggert@cs.ucla.edu>
84909
84910         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84911         calls with autoreconf.  Define GL_LIB.
84912
84913 2004-09-14  Karl Berry  <karl@gnu.org>
84914
84915         * config/srclist.txt: unsync setenv.c, sigh.
84916
84917 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84918
84919         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84920         Problem reported by Bruno Haible in:
84921         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84922
84923 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * config/srclist.txt: Comment out argp-pvh.c.
84926
84927 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84930         in case some system header has #define'd it.  Problem reported by
84931         Soeren D. Schulze in
84932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84933
84934 2004-09-09  Karl Berry  <karl@gnu.org>
84935
84936         * regex.[ch]: delete from the root.  These were supposed to be
84937                 synced with emacs cvs, but this has not happened for about
84938                 a year, and anyway nothing else uses emacs regex.[ch].
84939                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84940                 lib/regex[.ch] is untouched.
84941
84942 2004-09-09  Bruno Haible  <bruno@clisp.org>
84943
84944         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84945
84946 2004-09-09  Bruno Haible  <bruno@clisp.org>
84947
84948         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84949         modifications.
84950         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84951
84952 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84953
84954         * modules/xvasprintf: New file.
84955         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84956
84957 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84958
84959         * lib/xvasprintf.h: New file.
84960         * lib/xvasprintf.c: New file.
84961         * lib/xasprintf.c: New file.
84962
84963 2004-09-08  Bruno Haible  <bruno@clisp.org>
84964
84965         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84966
84967 2004-09-08  Bruno Haible  <bruno@clisp.org>
84968
84969         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84970         length is > INT_MAX.
84971         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84972         more.
84973
84974 2004-09-08  Bruno Haible  <bruno@clisp.org>
84975
84976         * lib/stdint_.h: New file, taken from GNU clisp.
84977
84978 2004-09-08  Bruno Haible  <bruno@clisp.org>
84979             Oskar Liljeblad  <oskar@osk.mine.nu>
84980
84981         * modules/stdint: New file.
84982         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84983
84984 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         Import from coreutils.
84987         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84988         strings on unbounded length.  alloca's performance benefits aren't
84989         that important here.
84990         (V_STRDUP): Remove.
84991         (parse_with_separator): New function, with most of the internals
84992         of the old parse_user_spec.  Allow user to omit both user and group,
84993         for compatibility with FreeBSD.
84994         Clone only the user name, not the entire spec.
84995         Do not set *uid, *gid unless entirely successful.
84996         Avoid memory leak in some failing cases.
84997         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84998         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84999         (parse_user_spec): Rewrite to use parse_with_separator.
85000
85001 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * modules/userspec: Don't depend on alloca.
85004
85005 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85006
85007         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85008
85009 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85012         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85013         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85014
85015 2004-08-16  Simon Josefsson  <jas@extundo.com>
85016
85017         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85018         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85019         Add --dry-run for --import.
85020         Let user provided command line parameters override configure.ac
85021         settings.
85022
85023 2004-08-12  Simon Josefsson  <jas@extundo.com>
85024
85025         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85026         as discussed with Paul Eggert in threads rooted at
85027         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85028         and
85029         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85030         Before, the test was empty, and relied on ELIDE_CODE in source
85031         code.)
85032         (gl_PREREQ_GETOPT): New macro.
85033         (gl_GETOPT): Use them.
85034
85035 2004-08-12  Simon Josefsson  <jas@extundo.com>
85036
85037         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85038         * lib/getopt_.h: Renamed from getopt.h.
85039
85040 2004-08-12  Simon Josefsson  <jas@extundo.com>
85041
85042         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85043         Change default library name from libfoo to libgnu.
85044         Now, if you have a configure.ac that says:
85045                 gl_SOURCE_BASE(gl)
85046                 gl_M4_BASE(gl/m4)
85047                 gl_MODULES(error getopt etcetera)
85048                 gl_INIT
85049         you can import all you need by running:
85050                 ../gnulib/gnulib-tool --import
85051
85052         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85053         (Makefile.am): Rewrite, use logic from argz.
85054         (Include): Use <getopt.h> instead of "getopt.h".
85055
85056 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         * modules/argp (Files): Add m4/unlocked-io.m4.
85059         (Depends-on): Add extensions.
85060
85061 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85062
85063         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85064         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85065         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85066         Check for program_invocation_name, program_invocation_short_name,
85067         flockfile, funlockfile, features.h, _getopt_long_only_r.
85068
85069 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85070
85071         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85072         its complicated substitute.
85073         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85074         and program_invocation_name.
85075         (__argp_basename) [!_LIBC]: Remove; the only use was
85076         replaced by its body.
85077         (__argp_short_program_name): Change condition from
85078         !defined __argp_short_program_name to
85079         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85080         to match argp-namefrob.h.
85081         (__argp_failure): Don't assume strerror_r returns char *.
85082         * lib/argp-parse.c (N_): Define unconditionally.
85083         (argp_default_options): Fill out initializers with 0 to avoid
85084         gcc warnings.
85085
85086 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85087
85088         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85089         getopt1.c.
85090
85091 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85092
85093         Merge from coreutils.
85094
85095         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85096
85097         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85098         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85099
85100 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         Merge from coreutils.
85103
85104         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85105         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85106         for Reliant Unix 5.43.
85107
85108         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85109         (union fooround): Use uintmax_t, not long int.
85110         The rest is a merge from libc:
85111         [defined _LIBC]: Include <shlib-compat.h>.
85112         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85113
85114         * lib/settime.c (settime): Recode to avoid warning with
85115         Sun Forte C 6U2.
85116
85117         * lib/strverscmp.c: Convert to UTF-8.
85118
85119 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85120
85121         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85122         m4/uintmax_t.m4.
85123
85124 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         * modules/xalloc-die: New file.
85127         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85128
85129         * modules/md5 (Files): Add m4/uint32_t.m4.
85130         * modules/sha1: Renamed from modules/sha.
85131         (Files):
85132         Rename lib/sha.h to lib/sha1.h.
85133         Rename lib/sha.c to lib/sha1.c.
85134         Rename m4/sha.m4 to m4/sha1.m4.
85135         (lib_SOURCES): Likewise.
85136         (configure.ac): Rename gl_SHA to gl_SHA1.
85137         (Include): sha.h -> sha1.h.
85138
85139 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85142         * m4/sha1.m4: Renamed from sha.m4.
85143         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85144
85145 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85146
85147         * lib/obstack.h (obstack_empty_p):
85148         Don't assume that chunk->contents is suitably aligned.
85149         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85150         Likewise. Problem reported by Benno in
85151         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85152
85153         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85154         readable.  This could be improved further but it'd take some work.
85155
85156 2004-08-08  Simon Josefsson  <jas@extundo.com>
85157
85158         * modules/xgethostname (Depends-on): Remove exit and error (not
85159         used).
85160
85161         * modules/getpass-gnu: Add getpass.h.
85162         (Depends-on): Add stdbool.
85163         * modules/getpass: Add getpass.h.
85164
85165 2004-08-08  Simon Josefsson  <jas@extundo.com>
85166
85167         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85168         Check getpass declaration.
85169
85170 2004-08-08  Simon Josefsson  <jas@extundo.com>
85171
85172         * lib/xgethostname.c: Don't include error.h (not used).
85173
85174         * lib/getpass.h: Add.
85175         * lib/getpass.c: Include getpass.h first.
85176
85177 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85178
85179         * lib/xalloc-die.c: New file.
85180         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85181         All uses removed.
85182         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85183         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85184         xalloc-die.c.
85185         (_, N_, xalloc_die): Move to xalloc-die.c.
85186         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85187         so that we needn't mess with xalloc_msg_memory_exhausted.
85188
85189         * lib/sha1.h: Renamed from sha.h.
85190         (SHA1_H): Renamed from _SHA_H.
85191         (sha1_ctx): Renamed from sha_ctx.
85192         (sha1_init_ctx): Renamed from sha_init_ctx.
85193         (sha1_process_block): Renamed from sha_process_block.
85194         (sha1_process_bytes): Renamed from sha_process_bytes.
85195         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85196         (sha1_read_ctx): Renamed from sha_read_ctx.
85197         (sha1_stream): Renamed from sha_stream.
85198         (sha1_buffer): Renamed from sha_buffer.
85199         * lib/sha1.c: Likewise; renamed from sha.c.
85200         Do not include <sys/types.h>.
85201         Include <stddef.h> rather than <stdlib.h>.
85202
85203 2004-08-08  Bruno Haible  <bruno@clisp.org>
85204
85205         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85206         FILESYSTEM_PREFIX_LEN.
85207         * lib/progreloc.c: Likewise.
85208         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85209
85210 2004-08-06  Simon Josefsson  <jas@extundo.com>
85211
85212         * modules/progname (Depends-on): Don't depend on stdbool.
85213
85214 2004-08-06  Simon Josefsson  <jas@extundo.com>
85215
85216         * modules/getsubopt: New file.
85217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85218         getsubopt.
85219
85220 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         More merge from coreutils.
85223
85224         * m4/utimens.m4, m4/utimecmp.m4: New files.
85225         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85226         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85227         prereq.m4, sha.m4: Import changes from coreutils.
85228
85229 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85230
85231         More merge from coreutils.
85232         * modules/raise, modules/readtokens0, modules/utimens:
85233         * modules/utimecmp, module/xnanosleep: New files.
85234         * modules/strftime: Add lib/strftime.h.
85235         Change include from <time.h> to "strftime.h".
85236         * modules/yesno: Add lib/yesno.h.
85237         * modules/backupfile: Remove lib/addext.c.
85238         * modules/euidaccess: Add stat-macros.h.
85239         * modules/canonicalize, modules/euidaccess,
85240         modules/filemode, modules/lchown, modules/makepath,
85241         modules/rmdir, modules/stat: Likewise.
85242
85243 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         Merge from tar.
85246         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85247         SIZE_MAX is a valid preprocessor constant.
85248         (__argp_basename): Change from "#ifndef _LIBC"
85249         to "#ifndef __argp_short_program_name", so that
85250         we don't compile these functions for tar.
85251
85252         More merges from coreutils.
85253         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85254         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85255         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85256         * lib/addext.c: Remove; no longer needed.
85257         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85258         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85259         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85260         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85261         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85262         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85263         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85264         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85265         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85266         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85267         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85268         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85269         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85270         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85271         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85272         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85273         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85274         Import changes from coreutils.
85275
85276 2004-08-05  Simon Josefsson  <jas@extundo.com>
85277
85278         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85279
85280 2004-08-05  Simon Josefsson  <jas@extundo.com>
85281
85282         * m4/getsubopt.m4: New file.
85283
85284 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         Merge from coreutils.
85287
85288         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85289         * m4/getcwd-path-max.m4: New files.
85290
85291         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85292         FILESYSTEM_PREFIX_LEN ->
85293         FILE_SYSTEM_PREFIX_LEN.
85294         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85295         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85296         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85297         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85298
85299         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85300         prerequisite modules now handle the DOS stuff.
85301         Don't check for unistd.h.
85302
85303 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         Merge from coreutils.
85306
85307         * lib/.gdb-history: Remove; this doesn't belong here.
85308
85309         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85310         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85311         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85312         * lib/getcwd.c: New files.
85313
85314         * lib/dirname.h: Include <stdbool.h>.
85315         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85316         for consistency with POSIX terminology.  All uses changed.
85317         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85318         (strip_trailing_slashes): Use bool for booleans.
85319         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85320
85321         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85322         sometimes returns a positive errno value even when it succeeds.
85323         (print_errno_message) [!LIBC]: Fall back on strerror if
85324         __strerror_r fails.
85325
85326         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85327         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85328         (longest_relative_suffix): New function.
85329         (path_concat): Use it.  Assume first argument is not NULL.
85330         Port to DOS.  Omit redundant separators.
85331         Report an error instead of returning NULL.
85332         Use mempcpy instead of memcpy.
85333         (xpath_concat): Remove: not declared or used.
85334
85335         * lib/same.h: Include <stdbool.h>
85336         (same_name): Return bool, not int.
85337         * lib/same.c (same_name): Likewise.
85338         (errno): Don't declare; we assume C89 or better now.
85339
85340         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85341         if not already defined.
85342
85343         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85344         * lib/dup-safer.c (errno): Likewise.
85345
85346 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         Merge from coreutils.
85349         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85350         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85351         * modules/path-concat: Don't depend on strdup.
85352
85353 2004-08-03  Simon Josefsson  <jas@extundo.com>
85354
85355         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85356         * lib/progname.h: Don't include stdbool.h.
85357
85358 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85361         * MODULES.html.sh (func_all_modules): Remove fatal.
85362
85363 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85366
85367 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85370         working.
85371
85372 2004-08-02  Simon Josefsson  <jas@extundo.com>
85373
85374         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85375         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85376         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85377
85378 2004-08-01  Simon Josefsson  <jas@extundo.com>
85379
85380         * lib/xgetdomainname.c: Include stdlib.h, for free().
85381
85382 2004-07-19  Bruno Haible  <bruno@clisp.org>
85383
85384         * MODULES.html.sh (func_all_modules): Add dummy.
85385
85386 2004-07-16  Simon Josefsson  <jas@extundo.com>
85387
85388         * modules/dummy: New file.
85389
85390 2004-07-16  Simon Josefsson  <jas@extundo.com>
85391
85392         * lib/dummy.c: New file.
85393
85394 2004-07-16  Bruno Haible  <bruno@clisp.org>
85395
85396         * lib/backupfile.h: Add extern "C" for C++.
85397         * lib/closeout.h: Likewise.
85398         * lib/copy-file.h: Likewise.
85399         * lib/findprog.h: Likewise.
85400         * lib/full-write.h: Likewise.
85401         * lib/pathname.h: Likewise.
85402         * lib/progname.h: Likewise.
85403         * lib/stpcpy.h: Likewise.
85404         * lib/stpncpy.h: Likewise.
85405         * lib/strcase.h: Likewise.
85406         * lib/strstr.h: Likewise.
85407         * lib/xalloc.h: Likewise.
85408
85409         * lib/mbswidth.h: Add extern "C" for C++.
85410         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85411
85412 2004-07-13  Robert Millan  <robertmh@gnu.org>
85413
85414         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85415
85416 2004-07-09  Simon Josefsson  <jas@extundo.com>
85417
85418         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85419         failed without this.)
85420
85421 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * modules/chown (Files): Add lib/fchown-stub.c, since
85424         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85425
85426 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85427
85428         * lib/fchown-stub.c: New file.
85429
85430 2004-06-24  Jim Meyering  <jim@meyering.net>
85431
85432         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85433
85434 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * modules/argz: Omit "#include".
85437
85438         * MODULES.html.sh (func_all_modules): Add calloc, to match
85439         2004-06-01 addition of calloc module.
85440
85441 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * m4/argz.m4: New file, which is autoupdated from libtool.
85444
85445 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85446
85447         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85448         libtool.
85449
85450 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85451
85452         * config/srclist-update: Don't insist on "USA." before the
85453         close-comment, as libtool omits the period and puts the */ on a
85454         separate line.
85455         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85456         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85457
85458 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85459
85460         * modules/argz: New file.
85461         * MODULES.html.sh (func_all_modules): Add argz.
85462
85463 2004-06-12  Jim Meyering  <jim@meyering.net>
85464         and  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * modules/hash (Files): Add lib/xalloc.h.
85467         * modules/pipe (Depends-on): Add wait-process.
85468         * modules/stat (Depends-on): Add xalloc.
85469         * modules/userspec (Files): Add lib/userspec.h.
85470         * modules/xstrto
85471
85472         Upgrade from gettext-0.13.
85473         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85474         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85475         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85476
85477 2004-06-10  Jim Meyering  <jim@meyering.net>
85478
85479         * lib/calloc.c: New file.
85480
85481 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * lib/getdate.y (yylex): Allow space between sign and number.
85484         Problem reported by Dan Jacobson.
85485
85486 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85487
85488         Merge from coreutils CVS.
85489
85490         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85491         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85492         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85493         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85494         xstrtol.m4: Fix copyright date and/or serial number.
85495
85496         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85497         See if we need an fchown replacement.
85498         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85499         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85500         and use the replacement function if we detect either defect.
85501
85502         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85503         gl_UTIMECMP.
85504
85505 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85506         and  Jim Meyering  <jim@meyering.net>
85507
85508         Merge from coreutils CVS.
85509
85510         * lib/stat-macros.h: New file, with contents from file-type.h
85511         and coreutils' system.h.
85512         * lib/file-type.c: Include "stat-macros.h".
85513         * lib/file-type.h (file_type): Move all macro definitions to new file,
85514         stat-macros.h.
85515
85516         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85517         Wrap old code with this conditional.
85518         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85519         function that does not dereference symlinks.
85520         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85521
85522         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85523         dependency problems.
85524         (xreadlink): Accept new arg SIZE, for efficiency.
85525         All decls and uses changed.
85526         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85527
85528         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85529         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85530
85531         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85532         sysexits.h.
85533
85534 2004-06-01  Jim Meyering  <jim@meyering.net>
85535
85536         * m4/calloc.m4: New file.
85537
85538 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85541         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85542         Also, fix a typo in a diagnostic.
85543
85544 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85547         or AC_FUNC_REALLOC.
85548
85549 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85552         macros to be defined.
85553         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85554         the allocator returns NULL because the requested size is zero.
85555
85556 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85557
85558         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85559         var.  Add comment explaining why libc still defines it.  This
85560         merges the following patch from glibc:
85561         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85562
85563 2004-05-20  Andreas Schwab  <schwab@suse.de>
85564
85565         * m4/free.m4: Replace free if it not known to work, not the other
85566         way round.
85567
85568 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85569
85570         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85571         present in glibc since revision 1.1 of this file.
85572         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85573         obstack_alignment_mask, obstack_alloc, obstack_base,
85574         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85575         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85576         obstack_grow0, obstack_init, obstack_int_grow,
85577         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85578         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85579         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85580         nonexistent functions.
85581
85582 2004-05-18  Karl Berry  <karl@gnu.org>
85583
85584         * config/srclist.txt: break link for vasnprintf.c.
85585
85586 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         Port obstack to the AS/400, where pointers are 16 bytes wide and
85589         you cannot cast an integer to a valid pointer.  This patch is
85590         currently waiting to be integrated into glibc; see
85591         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85592
85593         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85594         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85595         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85596         (struct obstack): temp member is now a union of a pointer and
85597         an integer, instead of an integer.  All integer uses changed.
85598         This does not affect the physical layout of struct obstack,
85599         except on hosts (like the AS/400) where the size or alignment of
85600         void * is greater than that of ptrdiff_t.
85601         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85602         __STDC__)]: Store temporary in pointer member of union, not
85603         integer member.
85604         * lib/obstack.c: Include <stddef.h>, for offsetof.
85605         (struct fooalign): Remove; it doesn't need a name.
85606         (union fooround): Change double to long double, and add void *.
85607         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85608         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85609         not a macro.  Hence the values are always int; so remove all
85610         casts-to-int in uses.
85611
85612 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85615         we can get this patch merged into glibc.
85616
85617 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85618             Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         * m4/argp: Depend on alloca.
85621
85622 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85623             Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85626         freecoding.
85627
85628 2004-05-17  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85631         precision that consists of a '.' followed by an empty digit string.
85632         Patch by Tor Lillqvist <tml@iki.fi>.
85633
85634 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85637         for backward compatibility with older code.  We need our own
85638         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85639         it under some other name, and our alloca.h will define it.
85640
85641 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85642             Derek Price  <derek@ximbiot.com>
85643
85644         * lib/alloca.c: Include <alloca.h>, to get our interface.
85645         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85646         include <alloca.h> first.  Use C89 prototype for alloca; this
85647         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85648         Use #elif for simplicity, since we can assume C89 now.
85649         Don't try to source the system alloca.h since it will not be found
85650         and to prevent recursively including its replacement.
85651         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85652         * lib/regex.c: Likewise.
85653
85654 2004-05-16  Derek Price  <derek@ximbiot.com>
85655             Paul Eggert  <eggert@cs.ucla.edu>
85656
85657         getline cleanup.  This changes the getndelim2 API: both order of
85658         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85659         no delimiter).
85660
85661         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85662         interface does that.
85663         (getline): Always use getdelim, so that we don't have two
85664         copies of this code.
85665         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85666         if available.
85667         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85668         (GETNDELIM2_MAXIMUM): New macro.
85669         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85670         instead of the old practice of delim2==0.  All callers changed.
85671         Return -1 on overflow, instead of returning junk.
85672         Do not set *linesize unless allocation succeeds.
85673         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85674         that we include sys/types.h.
85675         * lib/getnline.h: Likewise.
85676         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85677         (getndelim2): Reorder arguments.
85678         * lib/getnline.c (getnline, getndelim):
85679         Don't discard the NMAX argument.
85680         (getnline): Invoke getndelim, to avoid code duplication.
85681         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85682         of (size_t) -1 by callers of the getnline family.
85683
85684 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85685
85686         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85687         Check for gettimeofday.
85688         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85689         Check for settimeofday, stime.
85690
85691 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85692
85693         * lib/nanosleep.c (suspended): Change its type from int to
85694         sig_atomic_t volatile.
85695         (first_call): Make it private to rpl_nanosleep, and have it
85696         be zero initially as that's a bit faster.
85697         (my_usleep): Round up fractional times instead of truncating them,
85698         as this is the usual meaning for 'sleep'.
85699
85700         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85701         doesn't work.
85702         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85703         (ENOSYS): Define if not defined.
85704         (settime): Fall back on stime if it exists and settimeofday fails.
85705         But don't bother with fallbacks if a method fails with errno == EPERM.
85706
85707 2004-05-11  Jim Meyering  <jim@meyering.net>
85708
85709         Prior to this change, the save_cwd caller required read access to the
85710         current directory on most systems (ones with the fchdir function).
85711
85712         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85713         fails, try write-only, and finally, resort to using xgetcwd.
85714
85715 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85716
85717         * lib/obstack.c, obstack.h: Import changes from libc.
85718
85719 2004-04-28  Bruno Haible  <bruno@clisp.org>
85720
85721         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85722         also implicitly appends .exe to executables.
85723         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85724         accepts Windows pathnames.
85725         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85726         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85727         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85728         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85729         Reported by Derek Robert Price <derek@ximbiot.com>.
85730
85731 2004-04-21  Karl Berry  <karl@gnu.org>
85732
85733         * config/srclist.txt (localcharset.c): break sync.
85734
85735 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85736
85737         * m4/host-os.m4: Add a copyright notice.
85738
85739 2004-04-20  Jim Meyering  <jim@meyering.net>
85740
85741         Change UTILS_ to gl_ in AC_DEFINE'd names.
85742         Change utils_- and jm_-prefixed variables, too.
85743         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85744         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85746
85747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85748         Don't emit trailing blanks.
85749         Also rename jm_-prefixed variables to have gl_ prefix.
85750
85751         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85752         Also rename jm_-prefixed variables to have gl_ prefix.
85753
85754         * m4/jm-macros.m4: Reflect the renamings.
85755         * m4/prereq.m4: Likewise.
85756
85757 2004-04-20  Jim Meyering  <jim@meyering.net>
85758
85759         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85760         memory.
85761
85762 2004-04-20  Jim Meyering  <jim@meyering.net>
85763             Bruno Haible  <bruno@clisp.org>
85764
85765         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85766         memory when realloc fails.
85767
85768 2004-04-19  Jim Meyering  <jim@meyering.net>
85769
85770         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85771         now that readutmp.c may call `free (0)'.
85772
85773 2004-04-19  Bruno Haible  <bruno@clisp.org>
85774
85775         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85776         * m4/inttypes_h.m4: Likewise.
85777         * m4/stdint_h.m4: Likewise.
85778         * m4/intmax_t.m4: Likewise.
85779         * m4/uintmax_t.m4: Likewise.
85780
85781 2004-04-18  Jim Meyering  <jim@meyering.net>
85782
85783         * m4/prereq.m4: Don't forbid jm_ prefix.
85784
85785         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85786         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85787         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85788         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85789         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85790         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85791         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85792         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85793         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85794         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85795         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85796         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85797         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85798         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85799         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85800         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85801         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85802         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85803         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85804
85805 2004-04-18  Jim Meyering  <jim@meyering.net>
85806
85807         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85808         failure, don't leak memory and do call END_UTMP_ENT.
85809
85810 2004-04-16  Jim Meyering  <jim@meyering.net>
85811
85812         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85813         coreutils' stat program.
85814         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85815
85816 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85817
85818         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85819         C89.
85820         (CHAR_BIT): Remove, since we assume C89.
85821         Include <stdint.h> if available, as per current Autoconf CVS advice.
85822
85823 2004-03-31  Jim Meyering  <jim@meyering.net>
85824
85825         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85826         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85827         * m4/xalloc.m4: Likewise.
85828
85829 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85830
85831         Merge from coreutils.
85832
85833         * m4/inttostr.m4: New file.
85834         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85835         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85836         Require gl_CLOCK_TIME.
85837         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85838
85839 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85840
85841         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85842         not bool, to be more consistent with Unix conventions.
85843         Suggested by Bruno Haible.
85844
85845         Merge from coreutils.
85846
85847         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85848         * lib/umaxtostr.c: New files.
85849
85850         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85851         the usual <time.h> dance.
85852         (get_date): Change signature to support fractional time stamps.
85853         All callers changed.
85854         * lib/getdate.y: Include "getdate.h" first, as we can now
85855         assume C89 and don't need to worry about 'const'.
85856         Similarly, include "unlocked-io.h" near start, not in middle.
85857         Include <limits.h>.
85858         (textint.value): Use long int rather than int.
85859         (textint.digits): Use size_t rather than int.
85860         (BILLION, LOG10_BILLION): New constants.
85861         (parser_control): New member rel_ns.  Members day_ordinal,
85862         time_zone, month, day, hour, minutes, rel_year, rel_month,
85863         rel_day, rel_hour, rel_minutes, rel_seconds
85864         are now long int, not int.  Member seconds is now struct timespec,
85865         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85866         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85867         not int.
85868         (%union.intval): Now long int, not int.
85869         New member timespec.
85870         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85871         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85872         (spec): Now is a timespec or an item list.
85873         (timespec, items): New nonterminals.
85874         (time, rel, relunit, number, get_date):
85875         Add support for fractional seconds.
85876         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85877         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85878         (to_hour): First arg is now long int, not int.
85879         (to_year): Returns long int, not int.
85880         Don't treat year -70 like 70.
85881         (tm_diff): Returns long int, not int.
85882         (lookup_word): Use bool instead of int when appropriate.
85883         (yylex): Use size_t for count, not int.
85884         Detect overflow when parsing large integer constants.
85885         Add support for fractions.
85886         (get_date): Make pointers 'const' if possible.
85887         Use more-portable code to detect integer overflow.
85888         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85889         Don't use ctime; it's not reliable if the year has >4 digits.
85890
85891         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85892         This is for compatibility with BSD.
85893
85894         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85895         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85896         From coreutils' system.h.
85897
85898         * lib/userspec.c: Don't include "posixver.h".
85899         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85900         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85901         compatible extension.  Simplify code by removing a boolean int
85902         that was always nonzero if a string was nonnull.
85903
85904 2004-03-30  Jim Meyering  <jim@meyering.net>
85905
85906         Merge from coreutils.
85907
85908         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85909         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85910         on some systems one must include <grp.h> before it.
85911         Reported by Christian Krackowizer.
85912
85913 2004-03-30  Jim Meyering  <jim@meyering.net>
85914
85915         Merge from coreutils.
85916
85917         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85918
85919         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85920         an empty input stream.
85921
85922         * lib/readtokens.c: Include <stdbool.h>.
85923         (readtoken): Use `size_t' rather than int/long.
85924         All callers adjusted.
85925         Use `bool' rather than `int' where appropriate.
85926         Use memset rather than an explicit loop.
85927         Use x2nrealloc rather than xrealloc.
85928         Allow the use of `\0' as a delimiter.
85929         (readtokens): Likewise.
85930         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85931
85932 2004-03-30  Jim Meyering  <jim@meyering.net>
85933
85934         * m4/realloc.m4: Remove file, since now it does no more than
85935         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85936         the `configure.ac' section of module/realloc.
85937         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85938
85939 2004-03-30  Bruno Haible  <bruno@clisp.org>
85940
85941         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85942         nonnull.
85943
85944 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85945
85946         Merge changes to getloadavg.c from coreutils and Emacs.
85947
85948         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85949         Define to an expression, not to the empty string.
85950         Include cloexec.h and xalloc.h.
85951         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85952         Use set_cloexec_flag rather than rolling our own.
85953         * lib/cloexec.c, lib/cloexec.h: New files.
85954
85955 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85956
85957         * m4/cloexec.m4: New file.
85958
85959 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85960
85961         * lib/getopt.h: Sync with libc CVS.
85962
85963 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85964             Bruno Haible  <bruno@clisp.org>
85965
85966         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85967         mbswidth.
85968
85969 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85970             Bruno Haible  <bruno@clisp.org>
85971
85972         * lib/mbswidth.h: Include <wchar.h> only if
85973         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85974         <wchar.h>.
85975         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85976
85977 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85978
85979         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85980         Sync with libc CVS.
85981         * lib/getopt_int.h: New file, also synced from libc.
85982
85983 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85984
85985         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85986         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85987         Bring back getopt.c, getopt.h, getopt1.c.
85988
85989 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85990
85991         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85992         All uses changed.  Check for sa_sigaction member; this fixes
85993         a bug first reported by Jason Andrade in
85994         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85995
85996 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85997
85998         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85999         '#if' expressions.  Unlike the code it replaces, it does not
86000         depend on (defined _SC_PAGESIZE).  However, it does depend on
86001         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86002         first reported by Jason Andrade in
86003         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86004
86005 2004-02-25  Simon Josefsson  <jas@extundo.com>
86006
86007         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86008
86009 2004-02-25  Simon Josefsson  <jas@extundo.com>
86010
86011         * lib/strdup.h: New file.
86012         * lib/strdup.c: Include it.
86013         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86014         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86015
86016 2004-02-23  Karl Berry  <karl@gnu.org>
86017
86018         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86019         (from fencepost.gnu.org:/gd/gnuorg).
86020
86021 2004-02-23  Karl Berry  <karl@gnu.org>
86022
86023         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86024         * config/srclist.txt: add maintain/standards documents.
86025
86026 2004-02-18  Bruno Haible  <bruno@clisp.org>
86027
86028         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86029         Reported by Derek Robert Price <derek@ximbiot.com>.
86030
86031 2004-02-16  Karl Berry  <karl@gnu.org>
86032
86033         * config/mkinstalldirs, install-sh: update from automake.
86034
86035 2004-02-06  Karl Berry  <karl@gnu.org>
86036
86037         * m4/po.m4: update from gettext 0.14.1.
86038
86039 2004-02-06  Karl Berry  <karl@gnu.org>
86040
86041         * lib/config.charset: update from gettext 0.14.1.
86042
86043 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86044
86045         Add comments and code, prompted by suggestions from Bruno Haible
86046         for sh-quote.
86047         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86048         describing the enum quoting_style values.
86049         * lib/quotearg.c (quotearg_alloc): New function.
86050         (quotearg_buffer_restyled): Treat lone { and } as special.
86051         Treat = as special.  Work around bug with older shells
86052         that "see" a '\' that is really the 2nd byte of a multibyte char.
86053         Quote empty string with shell_quoting_style.
86054
86055 2004-02-03  Bruno Haible  <bruno@clisp.org>
86056
86057         * m4/pipe.m4: New file, from GNU gettext.
86058
86059 2004-02-03  Bruno Haible  <bruno@clisp.org>
86060
86061         * lib/pipe.h: New file, from GNU gettext.
86062         * lib/pipe.c: New file, from GNU gettext.
86063
86064 2004-01-27  Bruno Haible  <bruno@clisp.org>
86065
86066         * m4/execute.m4: New file, from GNU gettext.
86067
86068 2004-01-27  Bruno Haible  <bruno@clisp.org>
86069
86070         * lib/execute.h: New file, from GNU gettext.
86071         * lib/execute.c: New file, from GNU gettext.
86072         * lib/w32spawn.h: New file, from GNU gettext.
86073
86074 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86075
86076         Merge from diffutils.
86077
86078         * lib/file-type.c (file_type): Add typed memory objects.
86079         * lib/file-type.h (S_TYPEISTMO): New macro.
86080
86081         * lib/c-stack.h (c_stack_action): Remove argv argument.
86082         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86083         (die): Don't calculate message unless segv_action returns.
86084         (get_stack_location, min_address_from_argv, max_address_from_argv,
86085         volatile stack_base, volatile_stack_size): Remove.
86086         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86087         that every segmentation violation is a stack overflow.  (Ouch!)
86088         See Debian bug 136249 (still outstanding) for more info about why
86089         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86090
86091 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86092
86093         Exit-status fix from coreutils.
86094
86095         Use exit_failure consistently in place of EXIT_FAILURE,
86096         so that program exit statuses are consistent on failure.
86097
86098         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86099         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86100         * lib/argmatch.h: Comment fix to match the above.
86101         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86102         Now a macro referring to exit_failure, instead of a separate
86103         variable.  Include "exitfail.h" to get it.
86104         * lib/xstrtol.h: Include "exitfail.h".
86105         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86106
86107         * lib/long-options.c (parse_long_options): Use prototype
86108         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86109         for clarity.
86110
86111 2004-01-21  Jim Meyering  <jim@meyering.net>
86112
86113         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86114         so as not to conflict with a different-sized __mktime_internal
86115         function in GNU libc.
86116         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86117         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86118
86119 2004-01-20  Karl Berry  <karl@gnu.org>
86120
86121         * config/config.guess: update from config.
86122
86123         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86124
86125 2004-01-20  Bruno Haible  <bruno@clisp.org>
86126
86127         Safer stack allocation.
86128         * lib/setenv.c: Include allocsa.h.
86129         (alloca): Remove fallback definition.
86130         (freea): Remove macro.
86131         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86132         instead of freea.
86133
86134 2004-01-20  Bruno Haible  <bruno@clisp.org>
86135
86136         * m4/eealloc.m4: New file, from GNU gettext.
86137
86138 2004-01-20  Bruno Haible  <bruno@clisp.org>
86139
86140         * m4/allocsa.m4: New file, from GNU gettext.
86141
86142 2004-01-20  Bruno Haible  <bruno@clisp.org>
86143
86144         * lib/xallocsa.h: New file, from GNU gettext.
86145         * lib/xallocsa.c: New file, from GNU gettext.
86146
86147 2004-01-20  Bruno Haible  <bruno@clisp.org>
86148
86149         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86150
86151 2004-01-20  Bruno Haible  <bruno@clisp.org>
86152
86153         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86154         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86155         specially.
86156
86157 2004-01-20  Bruno Haible  <bruno@clisp.org>
86158
86159         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86160         patch.
86161
86162 2004-01-20  Bruno Haible  <bruno@clisp.org>
86163
86164         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86165
86166 2004-01-20  Bruno Haible  <bruno@clisp.org>
86167
86168         * lib/eealloc.h: New file.
86169
86170 2004-01-20  Bruno Haible  <bruno@clisp.org>
86171
86172         * lib/binary-io.h: Avoid warnings on Cygwin.
86173
86174 2004-01-20  Bruno Haible  <bruno@clisp.org>
86175
86176         * lib/allocsa.h: New file, from GNU gettext.
86177         * lib/allocsa.c: New file, from GNU gettext.
86178
86179 2004-01-18  Karl Berry  <karl@gnu.org>
86180
86181         * doc/gpl.texi, doc/lgpl.texi: new files.
86182
86183 2004-01-18  Karl Berry  <karl@gnu.org>
86184
86185         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86186         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86187
86188 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86189
86190         Merge from coreutils.
86191
86192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86193         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86194         (gl_DEFAULT_POSIX2_VERSION): Move
86195         the documentation from 'configure' into 'config.hin',
86196         so that 'configure --help' isn't burdened by it and
86197         we don't have to worry about its formatting there.
86198         Reword the documentation so that it's more succinct
86199         and can be run together into a single paragraph.
86200         * m4/same.m4 (gl_SAME): Check for pathconf.
86201
86202 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86203
86204         Merge from coreutils.
86205
86206         * lib/posixver.c: Include posixver.h.
86207
86208         * lib/same.c: Include <stdbool.h>, <limits.h>.
86209         (_POSIX_NAME_MAX): Define if not defined.
86210         (MIN): New macro.
86211         (same_name): If file names are silently truncated, report
86212         that the file names are the same if they are the same after
86213         the silent truncation.
86214
86215         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86216         conversion function.
86217         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86218         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86219         longer needed.
86220
86221 2004-01-15  Jim Meyering  <jim@meyering.net>
86222
86223         Merge from coreutils.
86224
86225         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86226         if no library is required.
86227         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86228         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86229         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86230         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86231         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86232         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86233         value, $ac_cv_search_crypt, if it's "none required".
86234         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86235         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86236         not gl_FUNC_GETLOADAVG.
86237         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86238         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86239
86240 2004-01-15  Jim Meyering  <jim@meyering.net>
86241
86242         Merge from coreutils.
86243
86244         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86245         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86246         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86247
86248         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86249         optional configure-time default.
86250
86251         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86252
86253         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86254
86255 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86256
86257         Merge from coreutils.
86258
86259         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86260         value, $ac_cv_search_nanosleep, if it's "none required".
86261
86262 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86263
86264         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86265         with like-named macro in fnmatch.c.
86266         (EXT): Use an internal constant instead.
86267
86268         Merge fnmatch patches from glibc.
86269         * lib/fnmatch.c (mbsinit): Remove define.
86270         Add libc_hidden_ver (__fnmatch, fnmatch).
86271         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86272         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86273
86274 2004-01-14  Karl Berry  <karl@gnu.org>
86275
86276         * config/install-sh: update from automake.
86277
86278 2004-01-13  Karl Berry  <karl@gnu.org>
86279
86280         * config/install-sh: update from automake.
86281
86282 2004-01-09  Karl Berry  <karl@gnu.org>
86283
86284         * config/install-sh: update from automake.
86285
86286 2004-01-05  Karl Berry  <karl@gnu.org>
86287
86288         * config/config.{sub,guess}: update from config.
86289
86290 2003-12-31  Karl Berry  <karl@gnu.org>
86291
86292         * config/depcomp: update from automake.
86293
86294 2003-12-14  Karl Berry  <karl@gnu.org>
86295
86296         * lib/config.charset: update from gettext-runtime.
86297
86298 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86299
86300         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86301         Bug reported by Alfred M. Szmidt.
86302
86303 2003-12-03  Bruno Haible  <bruno@clisp.org>
86304
86305         * m4/gettext.m4: Upgrade from gettext-0.13.
86306         * m4/po.m4: Upgrade from gettext-0.13.
86307         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86308         * m4/intmax.m4: New file, from gettext-0.13.
86309         * m4/printf-posix.m4: New file, from gettext-0.13.
86310
86311 2003-11-29  Karl Berry  <karl@gnu.org>
86312
86313         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86314
86315 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86316             Bruno Haible  <bruno@clisp.org>
86317
86318         * lib/printf-parse.h: Don't include sys/types.h.
86319         (ARG_NONE): New macro.
86320         (char_directive): Change type of *arg_index fields to size_t.
86321         * lib/printf-parse.c: Don't include sys/types.h.
86322         (SSIZE_MAX): Remove macro.
86323         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86324         Remove unnecessary overflow check.
86325         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86326         fields.
86327
86328 2003-11-25  Bruno Haible  <bruno@clisp.org>
86329
86330         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86331
86332 2003-11-25  Bruno Haible  <bruno@clisp.org>
86333
86334         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86335         gt_TYPE_SSIZE_T.
86336
86337 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86338
86339         * modules/alloca: Remove dependency on xalloc.
86340
86341 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86342
86343         * lib/alloca.c: Remove dependency on xalloc module.
86344         (xalloc_die): Remove.
86345         (memory_full) [!defined emacs]: New macro.
86346         [!defined emacs]: Don't include xalloc.h.
86347         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86348         address arithmetic overflows.  Change datatypes a bit to avoid
86349         unnecessary casts.
86350
86351 2003-11-22  Jim Meyering  <jim@meyering.net>
86352
86353         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86354         s/size/size_t/.
86355
86356 2003-11-21  Karl Berry  <karl@gnu.org>
86357
86358         * config/config.{sub,guess}: update from config.
86359
86360 2003-11-18  Karl Berry  <karl@gnu.org>
86361
86362         * config/config.{sub,guess}: update from config.
86363
86364         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86365
86366 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86367
86368         * README: Mention that S+T cannot overflow if S is the size of
86369         an existing object and T is sufficiently small.
86370
86371 2003-11-17  Jim Meyering  <jim@meyering.net>
86372
86373         On systems without utime and without a utimes function capable of
86374         dealing with a NULL struct utimbuf* argument, this utime replacement
86375         could -- in unusual circumstances -- leak a file descriptor.
86376         * lib/utime.c: Include <unistd.h> and <errno.h>.
86377         (utime_null): Be sure to close `fd' and to preserve errno.
86378         Reported by Geoff Collyer via Arnold Robbins.
86379
86380 2003-11-17  Bruno Haible  <bruno@clisp.org>
86381
86382         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86383         (Depends-on): Add xsize.
86384
86385 2003-11-17  Bruno Haible  <bruno@clisp.org>
86386
86387         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86388
86389 2003-11-17  Bruno Haible  <bruno@clisp.org>
86390
86391         * lib/vasnprintf.c (alloca): Remove fallback definition.
86392         (freea): Remove definition.
86393         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86394         Reported by Paul Eggert.
86395
86396 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86397             Bruno Haible  <bruno@clisp.org>
86398
86399         Protect against address arithmetic overflow.
86400         * lib/printf-args.h: Include stddef.h.
86401         (arguments): Change type of field 'count' to size_t.
86402         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86403         'unsigned int' where appropriate.
86404         * lib/printf-parse.h: Include sys/types.h.
86405         (char_directive): Change type of *arg_index fields to ssize_t.
86406         (char_directives): Change type of fields 'count', max_*_length to
86407         size_t.
86408         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86409         (SSIZE_MAX): Define fallback value.
86410         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86411         instead of 'int' where appropriate. Check a_allocated, d_allocated
86412         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86413         * lib/vasnprintf.c: Include xsize.h.
86414         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86415         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86416         overflow. Avoid wraparound when converting a width or precision from
86417         decimal to binary.
86418
86419 2003-11-16  Bruno Haible  <bruno@clisp.org>
86420
86421         Update from GNU gettext.
86422         * lib/printf-parse.c: Generalize to it can be compiled for wide
86423         strings.
86424         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86425         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86426         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86427         SNPRINTF): New macros.
86428         Don't include <alloca.h> if the file is used inside libintl.
86429         (local_wcslen): New function, for Solaris 2.5.1.
86430         (VASNPRINTF): Use it instead of wcslen.
86431
86432 2003-11-16  Bruno Haible  <bruno@clisp.org>
86433
86434         * lib/xsize.h (xmax): New function.
86435         (xsum, xsum3, xsum4): Declare as "pure" functions.
86436
86437 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86438
86439         * modules/xalloc (Files): Undo latest change, since xalloc.h
86440         no longer needs SIZE_MAX or PTRDIFF_MAX.
86441
86442 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86443
86444         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86445         gl_PTRDIFF_MAX.
86446
86447 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86448
86449         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86450         "return", to pacify some unknown compiler.  Problem reported
86451         by Joerg Schilling.
86452
86453 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86454
86455         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86456         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86457         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86458         heuristic is just as accurate as far as we know, and it removes a
86459         dependency on size_max.m4 and ptrdiff_max.m4.
86460
86461 2003-11-11  Bruno Haible  <bruno@clisp.org>
86462
86463         * modules/xsize (Files): Add m4/size_max.m4.
86464         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86465
86466 2003-11-11  Bruno Haible  <bruno@clisp.org>
86467
86468         * m4/size_max.m4: New file.
86469         * m4/ptrdiff_max.m4: New file.
86470         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86471         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86472         (gl_XALLOC): Invoke it.
86473
86474 2003-11-11  Bruno Haible  <bruno@clisp.org>
86475
86476         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86477         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86478         defined.
86479
86480 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86481
86482         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86483         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86484         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86485         From Bruno Haible.
86486         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86487         not (size_t) -1, since it's defined here.
86488
86489 2003-11-09  Karl Berry  <karl@gnu.org>
86490
86491         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86492
86493 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86494
86495         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86496         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86497         Reject sizes of exactly SIZE_MAX bytes.
86498         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86499         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86500
86501 2003-11-05  Bruno Haible  <bruno@clisp.org>
86502
86503         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86504         SIZE_MAX defined in <limits.h> on Solaris.
86505
86506 2003-11-04  Jim Meyering  <jim@meyering.net>
86507
86508         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86509         variable names, rather than @VAR@.
86510         * modules/poll: Likewise.
86511
86512 2003-11-04  Bruno Haible  <bruno@clisp.org>
86513
86514         * modules/xsize: New file.
86515         * modules/linebreak: Depend on xsize.
86516         * MODULES.html.sh (func_all_modules): Add xsize.
86517
86518 2003-11-04  Bruno Haible  <bruno@clisp.org>
86519
86520         * m4/xsize.m4: New file.
86521
86522 2003-11-04  Bruno Haible  <bruno@clisp.org>
86523
86524         * lib/xsize.h: New file.
86525         * lib/linebreak.c: Include xsize.h.
86526         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86527         argument for overflow.
86528         Suggested by Paul Eggert.
86529
86530 2003-11-03  Karl Berry  <karl@gnu.org>
86531
86532         * config/config.{guess,sub}: update from config.
86533
86534 2003-11-03  Jim Meyering  <jim@meyering.net>
86535
86536         * modules/userspec (lib_SOURCES): Add userspec.h.
86537         (Include): Add "userspec.h".
86538         Improve description.
86539
86540 2003-11-03  Jim Meyering  <jim@meyering.net>
86541
86542         * lib/userspec.c: Include "userspec.h".
86543         * lib/userspec.h: New file.
86544
86545 2003-11-03  Bruno Haible  <bruno@clisp.org>
86546
86547         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86548
86549 2003-11-03  Bruno Haible  <bruno@clisp.org>
86550
86551         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86552         available, to avoid (extremely rare) race condition.
86553         Suggested by Paul Eggert.
86554
86555 2003-11-02  Karl Berry  <karl@gnu.org>
86556
86557         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86558
86559 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86560
86561         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86562         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86563         (read_filesystem_list): Set and use me_type_malloced.
86564         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86565         whatever the type happens to be), for brevity and consistency.
86566         Check for size calculation overflow on Alphas running OSF/1.
86567
86568 2003-10-31  Jim Meyering  <jim@meyering.net>
86569
86570         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86571
86572         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86573
86574 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86575             Bruno Haible  <bruno@clisp.org>
86576
86577         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86578         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86579
86580 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86581
86582         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86583         netbsd*-gnu*.  Suggested by Robert Millan.
86584
86585 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86586
86587         * modules/group-member: Depend on stdbool.
86588
86589 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86590
86591         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86592
86593 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86594
86595         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86596         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86597         after the 'gnu' in these cases.  This fixes some bugs in the
86598         previous change, and is based on suggestions by Robert Millan.
86599
86600 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86601
86602         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86603         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86604         no longer needed.
86605         * lib/quotearg.c (quotearg_n_options): Use it.
86606         * lib/group-member.c: Include <stdbool.h>.
86607         (free_group_info): Arg is now const *; don't free arg.
86608         (get_group_info): Now returns bool and accepts struct group_info *,
86609         rather than returning a malloc'ed struct group_info *.
86610         All uses changed.  Check for overflow in internal size calculation.
86611
86612         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86613         rather than xmalloc/xrealloc.
86614         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86615         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86616         conformance bug: the old code used a pointer after freeing the
86617         storage that it addressed.
86618         * lib/hash.c (hash_initialize): Simplify the code by using
86619         xalloc_oversized rather than doing it by hand.
86620         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86621         the buffer preserved.  Use free and xmalloc instead.
86622         * lib/quotearg.c (quotearg_n_options): Likewise.
86623         Use a simpler test for size overflow.  Don't use xalloc_oversized
86624         because unsigned int might be wider than size_t (!); this suggests
86625         that we should switch from unsigned int to size_t for slot numbers.
86626
86627 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86628
86629         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86630         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86631         NetBSD kernels.  Requested by Richard Stallman.
86632
86633 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86634
86635         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86636         to allocate the returned structure.  Do not allocate a subarray,
86637         as x2nrealloc will do that.
86638         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86639         instead of xnrealloc.
86640         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86641
86642 2003-10-27  Bruno Haible  <bruno@clisp.org>
86643
86644         * lib/stdbool_.h: Better support for BeOS.
86645
86646 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86647
86648         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86649         now uses inline.
86650
86651 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86652
86653         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86654         callers that want to do their own size-overflow checking.  Include
86655         <stdbool.h>, since xalloc_oversized returns bool.
86656         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86657         to use xalloc_oversized.
86658
86659         Add two functions x2realloc, x2nrealloc, for programs that grow
86660         arrays dynamically by doubling their sizes.
86661         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86662         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86663         New functions.
86664
86665         Port to C99 semantics for 'inline' of external functions.
86666         Bug reported by Bruno Haible.
86667         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86668         with the old contents of xnmalloc.
86669         (xnmalloc, xmalloc): Use it.
86670         (xnrealloc_inline): New static inline function,
86671         with the old contents of xnrealloc.
86672         (xnrealloc, xrealloc): Use it.
86673
86674         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86675         that.
86676
86677 2003-10-26  Karl Berry  <karl@gnu.org>
86678
86679         * config/srclist.txt (COPYING.DOC): no longer available from
86680         /gd/gnuorg; don't know where the ultimate source is.
86681
86682 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86683
86684         Fix several address-calculation bugs in the hash modules,
86685         plus some minor code cleanup.
86686
86687         * lib/hash.h: Include <stdbool.h>, for bool.
86688         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86689         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86690         hash_get_n_entries, hash_get_max_bucket_length,
86691         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86692         hash_rehash): Use size_t rather than unsigned.
86693         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86694         hash_get_n_buckets_used, hash_get_n_entries,
86695         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86696         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86697         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86698         Likewise.
86699         (SIZE_MAX): Define if not defined.
86700         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86701         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86702         hash_print):
86703         Use const * when possible.
86704         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86705         (check_tuning): Fix bug: if tuning parameters were very close to
86706         0 or 1, rounding errors could have caused subscript violations.
86707         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86708         (hash_initialize): Add 'fail:' label
86709         to free table and return NULL, and use it to simplify code.
86710         Use calloc rather than clearing the storage ourself.
86711         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86712         buffer size calculations.
86713         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86714         Include <stddef.h>, for size_t.
86715         * lib/hash-pjw.c (hash_pjw): Likewise.
86716         Switch to method described by Bruno Haible.
86717         Include <limits.h>, for CHAR_BIT.
86718         (SIZE_BITS): New macro.
86719
86720 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86721
86722         * m4/getline.m4 (AM_FUNC_GETLINE):
86723         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86724         hosts.  Problem reported by Derek Robert Price in
86725         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86726         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86727         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86728
86729 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86730
86731         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86732         ceiling the allocation at NMAX bytes rather than silently
86733         discarding input bytes before NMAX is reached.  This makes
86734         a difference only if NMAX exceeds SIZE_MAX / 2.
86735
86736         * lib/obstack.c: Merge from glibc.
86737         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86738         Add libc_hidden_def (_obstack_newchunk).
86739         (_obstack_free) [! defined _LIBC]: Remove.
86740         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86741         a clone of the function body.
86742         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86743         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86744
86745         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86746         glibc.
86747         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86748         arg to memcpy.
86749
86750         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86751         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86752         Don't use lvalue casts, as GCC plans to remove support for them
86753         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86754         was also present in the non-GCC version, indicating that this
86755         code had always been buggy and had never been widely used.
86756         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86757         Use the fast variant of each macro, rather than copying the
86758         definiens of the fast variant; that way, we'll be more likely to
86759         catch future bugs in the fast variants.
86760
86761 2003-10-20  Bruno Haible  <bruno@clisp.org>
86762
86763         * modules/wait-process: New file.
86764         * MODULES.html.sh (func_all_modules): Add wait-process.
86765
86766 2003-10-20  Bruno Haible  <bruno@clisp.org>
86767
86768         * m4/wait-process.m4: New file.
86769
86770 2003-10-20  Bruno Haible  <bruno@clisp.org>
86771
86772         * lib/wait-process.h: New file, from GNU gettext.
86773         * lib/wait-process.c: New file, from GNU gettext.
86774
86775 2003-10-19  Jim Meyering  <jim@meyering.net>
86776
86777         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86778         HPUX 10.20.
86779
86780 2003-10-18  Karl Berry  <karl@gnu.org>
86781
86782         * config/config.guess: update from config.
86783
86784 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86785
86786         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86787         (getgroups): First arg is int, not size_t.
86788         Don't let 'free' mangle errno.
86789
86790 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86791
86792         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86793
86794 2003-10-16  Karl Berry  <karl@gnu.org>
86795
86796         * config/config.{guess,sub}: update from config.
86797
86798 2003-10-16  Jim Meyering  <jim@meyering.net>
86799
86800         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86801         memcpy.
86802
86803 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86806         (SIZE_MAX): Remove.
86807         (new_exclude, add_exclude_file): Initial size no longer needs to
86808         be a power of 2.
86809         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86810         our own address arithmetic overflow checking.
86811
86812         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86813         (fnmatch): Do not alloca more than 2000 wide characters;
86814         instead, use malloc for large buffers.
86815         Check for address arithmetic overflow, and return -1
86816         with errno set to ENOMEM in that case.
86817         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86818         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86819         instead, return -1.  Check for address arithmetic overflow.
86820
86821 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86822
86823         Handle invalid suffixes and overflow independently, so that
86824         callers can treat them independently as needed.  Fix some bugs in
86825         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86826         suffix for a human-readable blocksize.  The major caller-visible
86827         change is the addition of a new
86828         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86829         that both overflow and suffix chars were found.
86830
86831         * lib/human.c (humblock): Don't check separately for invalid suffix
86832         char; that is xstrtoumax's job (now that its bug is fixed).
86833         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86834         INTMAX_MAX]: New macros.
86835         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86836         TYPE_MAXIMUM): New macros.
86837         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86838         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86839         if overflow occurs, as it's what __strtol does and it's more useful
86840         in practice.
86841         (__xstrtol): If __strtol reports some error other than ERANGE,
86842         reflect it to the caller as LONGINT_INVALID.  If it reports
86843         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86844         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86845         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86846         value.
86847         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86848         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86849         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86850         [defined UINTMAX_MAX]: New macros.
86851
86852 2003-10-14  Bruno Haible  <bruno@clisp.org>
86853
86854         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86855
86856 2003-10-14  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/sig_atomic_t: New file, from GNU gettext.
86859         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86860
86861 2003-10-14  Bruno Haible  <bruno@clisp.org>
86862
86863         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86864         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86865         Also use volatile where needed.
86866
86867 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86868
86869         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86870         Change maintainer from Bruno Haible to 'all'.
86871
86872 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86873
86874         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86875
86876 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86877
86878         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86879         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86880         and define in terms of the other primitives.
86881         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86882         (SIZE_MAX): Define if not already defined.
86883         (array_size_overflow): New function.
86884         (xalloc_die): Abort instead of exiting if 'error' returns.
86885         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86886         (xmalloc, xrealloc): Use them.
86887         (xcalloc): Check for address arithmetic overflow.
86888         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86889         a bit faster than strcpy.
86890
86891 2003-10-10  Simon Josefsson  <jas@extundo.com>
86892
86893         * modules/argp (Depends-on): Add restrict and strcase.
86894
86895 2003-10-10  Simon Josefsson  <jas@extundo.com>
86896
86897         * m4/argp.m4: Add AC_C_INLINE.
86898
86899 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86900
86901         Merge getpass from libc, plus a few fixes.
86902
86903         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86904         Include <stdbool.h>.
86905         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86906         __fsetlocking to empty.
86907         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86908         do include <bits/libc-lock.h>.
86909         Do not include <fcntl.h>; not needed.
86910         [_LIBC]: Include <wchar.h>.
86911         (NOTCANCEL_MODE): New macro.
86912         (flockfile, funlockfile) [_LIBC]: New macros.
86913         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86914         [!_LIBC]: New macros.
86915         (call_fclose): New function.
86916         (getpass): Use it.  Save tty stream separately; this simplifies the
86917         code and makes it more reliable if stdin happens to equal stdout.
86918         Invoke __fsetlocking on tty.
86919         Handle thread cancellation if needed.
86920         Namespace cleanup (use __tcgetattr, __getline).
86921         Use bool for Booleans.
86922         [USE_IN_LIBIO]: Handle wide streams.
86923         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86924         stream might go where.
86925
86926         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86927         doesn't have to include <stdio.h> before us.
86928         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86929         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86930         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86931         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86932         if not declared, so that we can use getpass.c code from libc without
86933         rewriting it.
86934         (flockfile, ftrylockfile, funlockfile): New macros.
86935
86936 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86937
86938         * modules/getpass: Depend on stdbool.
86939
86940 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86941
86942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86943
86944 2003-10-07  Karl Berry  <karl@gnu.org>
86945
86946         * config/config.{guess,sub}: update from config.
86947
86948 2003-10-06  Jim Meyering  <jim@meyering.net>
86949             Bruno Haible  <bruno@clisp.org>
86950
86951         This lets translators provide better translations for the
86952         "Written by ..." part of --version output.
86953         * lib/version-etc.h: Include stdarg.h.
86954         (version_etc_copyright): Declare as readonly.
86955         (version_etc): Make this function variadic with a NULL-terminated list
86956         of author name strings.
86957         (version_etc_va): New declaration.
86958         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86959         (version_etc_copyright): Declare as readonly.
86960         (version_etc_va): New function. Provide a different translatable string
86961         for each possible number of authors < 10. Abbreviate when there are 10
86962         authors or more.
86963         (version_etc): Make this function variadic. Call version_etc_va.
86964         Suggestion from Gary V. Vaughan.
86965
86966         * lib/long-options.h (parse_long_options): Change prototype: the
86967         authors string is moved to the end and becomes variadic.
86968         * lib/long-options.c: Include stdarg.h.
86969         (parse_long_options): Make this function variadic, too.
86970         Call version_etc_va, not version_etc.
86971
86972 2003-10-06  Bruno Haible  <bruno@clisp.org>
86973
86974         * modules/version-etc-2: Remove file.
86975         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86976
86977 2003-10-06  Bruno Haible  <bruno@clisp.org>
86978
86979         * modules/fatal-signal: New file.
86980         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86981
86982 2003-10-06  Bruno Haible  <bruno@clisp.org>
86983
86984         * m4/fatal-signal.m4: New file.
86985         * m4/signalblocking.m4: New file, from GNU gettext.
86986
86987 2003-10-06  Bruno Haible  <bruno@clisp.org>
86988
86989         * lib/version-etc-2.h: Remove file.
86990         * lib/version-etc-2.c: Remove file.
86991
86992 2003-10-06  Bruno Haible  <bruno@clisp.org>
86993
86994         * lib/fatal-signal.h: New file, from GNU gettext.
86995         * lib/fatal-signal.c: New file, from GNU gettext.
86996
86997 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86998
86999         * README: Rework advice for preventing empty .o files.
87000         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87001         not <sys/types.h>.
87002
87003 2003-10-04  Karl Berry  <karl@gnu.org>
87004
87005         * lib/argp*: update from libc.
87006
87007 2003-10-04  Karl Berry  <karl@gnu.org>
87008
87009         * config/config.{guess,sub}: update from config.
87010
87011 2003-10-02  Bruno Haible  <bruno@clisp.org>
87012
87013         * modules/lchown (Include): Add lchown.h.
87014         * modules/time_r (Include): Use "..." syntax.
87015         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87016
87017 2003-10-01  Simon Josefsson  <jas@extundo.com>
87018
87019         * MODULES.html.sh (func_all_modules): Move gethostname from section
87020         'based on' to section 'lacking' POSIX:2001.
87021
87022 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87023
87024         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87025         to output mode on the same stream.
87026
87027 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87028
87029         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87030         Fix arg typo in previous patch.
87031
87032 2003-09-28  Jim Meyering  <jim@meyering.net>
87033
87034         * lib/error.c: Correct cpp indentation.
87035
87036 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87037
87038         * modules/free: New file.
87039
87040 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87041
87042         * m4/free.m4: New file.
87043
87044 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/minmax.h (MIN, MAX)
87047         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87048         Omit the special code that used __typeof__, since we worry that
87049         it could be more trouble than it's worth.  See:
87050         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87051         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87052
87053         * lib/free.c: New file.
87054
87055 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87056
87057         Trivial fixes to Makefile.am parts of module listings.
87058         * modules/strstr: Append strstr.h to lib_SOURCES.
87059         * modules/strcase: Likewise, for strcase.h.
87060
87061 2003-09-27  Karl Berry  <karl@gnu.org>
87062
87063         * config/mkinstalldirs: update from automake.
87064
87065 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87066
87067         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87068         (error_tail): Do not loop, reallocating temporary buffer, since
87069         the output cannot contain more wide characters than the input
87070         contains bytes, the size must be big enough already.  This avoids
87071         one potential size overflow calculation.  Check for size overflow
87072         when calculating temporary buffer size.  Free temporary buffer
87073         when done, if it was allocated with malloc; this plugs a memory
87074         leak.  Remove casts from void * to pointers, that are no longer
87075         needed now that we're assuming C89 or better.
87076
87077         Merge error changes from glibc.
87078
87079         * lib/error.c, error.h: Update copyright notice header to match glibc.
87080         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87081         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87082         Disable cancellation while printing error.
87083         * lib/error.h: Prepend __ to parameter names.
87084
87085 2003-09-26  Jim Meyering  <jim@meyering.net>
87086
87087         * lib/error.c (error_tail): Move some declarations
87088         into inner scope where the local variables are used.
87089
87090 2003-09-26  Bruno Haible  <bruno@clisp.org>
87091
87092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87093         stpncpy().
87094         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87095
87096 2003-09-26  Bruno Haible  <bruno@clisp.org>
87097
87098         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87099         (stpncpy): Define as alias for gnu_stpncpy.
87100         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87101
87102 2003-09-25  Simon Josefsson  <jas@extundo.com>
87103
87104         * lib/xgetdomainname.h: New file.
87105         * lib/xgetdomainname.c: New file.
87106
87107 2003-09-25  Simon Josefsson  <jas@extundo.com>
87108             Bruno Haible  <bruno@clisp.org>
87109
87110         * modules/getdomainname: New file.
87111         * modules/xgetdomainname: New file.
87112         * MODULES.html.sh (func_all_modules): Add getdomainname,
87113         xgetdomainname.
87114
87115 2003-09-25  Simon Josefsson  <jas@extundo.com>
87116             Bruno Haible  <bruno@clisp.org>
87117
87118         * m4/getdomainname.m4: New file.
87119
87120 2003-09-25  Simon Josefsson  <jas@extundo.com>
87121             Bruno Haible  <bruno@clisp.org>
87122
87123         * lib/getdomainname.h: New file.
87124         * lib/getdomainname.c: New file.
87125
87126 2003-09-25  Karl Berry  <karl@gnu.org>
87127
87128         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87129
87130 2003-09-25  Karl Berry  <karl@gnu.org>
87131
87132         * config/install-sh: update from automake.
87133
87134 2003-09-25  Bruno Haible  <bruno@clisp.org>
87135
87136         * modules/version-etc-2: New file, from modules/version-etc with
87137         modifications.
87138         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87139
87140 2003-09-25  Bruno Haible  <bruno@clisp.org>
87141
87142         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87143         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87144
87145 2003-09-24  Simon Josefsson  <jas@extundo.com>
87146
87147         * modules/xgethostname: Add xgethostname.h.
87148
87149 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87150
87151         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87152         the buffer associated with the argument.  Bug reported by
87153         Simon Josefsson.
87154
87155 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87156
87157         * README: Document assumptions that 'int' is at least 32 bits
87158         wide, that integer arithmetic is 2's complement without overflow,
87159         that there are no holes in integer values, that adding sizes of
87160         two nonoverlapping objects can't overflow, and that all-bits-zero
87161         yields scalar zero.  Fix spelling and capitalization typos.
87162
87163 2003-09-19  Karl Berry  <karl@gnu.org>
87164
87165         * lib/argp.h: update from libc.
87166
87167 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87168
87169         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87170         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87171         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87172
87173 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87174
87175         * gnulib-tool: Use "test -h", not "test -L", for portability
87176         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87177         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87178         (sed_extract_prog): Issue s commands one-by-one, rather than
87179         using \| in one s command.
87180
87181 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87182
87183         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87184         input error, instead of returning NULL the next time we are called
87185         (and therefore losing track of errno).
87186
87187 2003-09-16  Bruno Haible  <bruno@clisp.org>
87188
87189         * gnulib-tool (func_create_testdir): Warn about duplicated
87190         dependencies.
87191
87192 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87193
87194         * modules/argmatch, modules/fatal, modules/obstack,
87195         modules/xalloc, modules/xgethostname: Sort dependencies by
87196         importance, not alphabetically.
87197
87198 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87199
87200         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87201         fails, so that the caller gets the proper errno.
87202
87203         * lib/readutmp.c (read_utmp): Likewise.
87204         Check for fstat error.  Close stream and free storage
87205         when failing.
87206
87207 2003-09-14  Karl Berry  <karl@gnu.org>
87208
87209         * config/srclist.txt (strdup.c): disable for c89 changes.
87210
87211 2003-09-14  Jim Meyering  <jim@meyering.net>
87212
87213         * lib/getloadavg.c: Correct cpp indentation.
87214         * lib/strdup.c: Likewise.
87215         * lib/vasnprintf.c: Likewise.
87216
87217 2003-09-14  Bruno Haible  <bruno@clisp.org>
87218
87219         * modules/fwriteerror: New file.
87220         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87221
87222 2003-09-14  Bruno Haible  <bruno@clisp.org>
87223
87224         * lib/fwriteerror.h: New file.
87225         * lib/fwriteerror.c: New file.
87226
87227 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87228
87229         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87230         modules/xgethostname, modules/xalloc: Depend on exit.
87231
87232 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87233
87234         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87235
87236         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87237         and AC_MINIX, too, so that their extensions are available.
87238
87239         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87240         This macro has been superseded by gl_BACKUPFILE.
87241
87242         More patches to assume C89 or better.
87243
87244         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87245
87246         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87247         unconditionally.
87248         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87249         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87250         Include <string.h>, <stdlib.h> unconditionally.
87251         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87252         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87253         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87254         headers or for string.h.
87255         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87256         or strtoul.
87257
87258         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87259         headers.
87260         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87261         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87262         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87263         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87266         memcpy, memset.
87267         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87268         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87269         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87270         strtol.
87271         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87272         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87274         strtoul.
87275
87276 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87277
87278         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87279         * lib/obstack.c [!defined _LIBC]: Likewise.
87280         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87281         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87282         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87283
87284         More changes to assume C89 or better.
87285
87286         * lib/error.c (error_tail): Assume vprintf.
87287
87288         * lib/argmatch.c (getenv): Remove decl.
87289         * lib/progreloc.c (get_full_program_name): Define via prototype.
87290         * lib/setenv.c (clearenv): Likewise.
87291         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87292         needed.
87293         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87294         (malloc, memcpy): Remove decls.
87295         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87296         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87297         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87298         (memcpy): Remove macro.
87299         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87300         (__P): Remove.  All uses removed.
87301         (PTR): Remove.  All uses changed to void *.
87302         (CHAR_BIT, NULL): Remove.
87303         (spaces, zeros, memset_space, memset_zero)
87304         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87305         Remove.
87306         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87307         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87308         Define with prototype.
87309         Remove now-unnecessary prototype decl.
87310         (extra_args_spec): Assume ANSI C.  All uses changed.
87311         (extra_args_spec_iso): Remove.
87312         (my_strftime, emacs_strftimeu): Define via prototype.
87313         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87314         unconditionally.
87315         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87316         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87317         (strtoul, strtol): Remove decls.
87318         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87319         LONG_MAX): Remove.
87320         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87321         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87322         (LOCALE_PARAM_PROTO): New macro.
87323         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87324         (INTERNAL (strtol), strtol): Define with a prototype.
87325         (PARAMS): Remove.  All uses removed.
87326         * lib/tempname.c: Include <string.h> unconditionally.
87327         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87328         * lib/xgethostname.c (main): Define with a prototype.
87329         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87330         Include <stdlib.h> unconditionally.
87331         (calloc, malloc, realloc, free): Remove decls.
87332         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87333         Include <stdlib.h> unconditionally.  Sort include file names.
87334         (strtod): Remove.
87335         (xstrtod): Define with a prototype.
87336         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87337         (strtol, strtoul): Remove decls.
87338
87339 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87340
87341         More patches to assume C89 or better.
87342         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87343         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87344         string.h, memchr, STDC_HEADERS.
87345
87346 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87347
87348         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87349         Include <stdlib.h>, <string.h> unconditionally.
87350         Remove now-unnecessary cast to char *.
87351         * lib/strnlen.c: Include <string.h> unconditionally.
87352         * lib/yesno.c (yesno): Define with a prototype.
87353
87354 2003-09-11  Bruno Haible  <bruno@clisp.org>
87355
87356         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87357
87358 2003-09-10  Jim Meyering  <jim@meyering.net>
87359
87360         * lib/error.c: Correct indentation of cpp directives.
87361
87362 2003-09-10  Bruno Haible  <bruno@clisp.org>
87363
87364         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87365         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87366         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87367         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87368         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87369         <stdlib.h> and <string.h> checks.
87370         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87371         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87372
87373 2003-09-10  Bruno Haible  <bruno@clisp.org>
87374
87375         * lib/strcspn.c: Include <string.h> unconditionally.
87376         * lib/strpbrk.c: Include <string.h> unconditionally.
87377         * lib/strstr.c: Include <string.h> unconditionally.
87378         * lib/unicodeio.c: Include <string.h> unconditionally.
87379         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87380         * lib/unsetenv.c: Likewise.
87381         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87382         * lib/yesno.c: Include <stdlib.h> unconditionally.
87383         (rpmatch): Add prototype.
87384
87385 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87386
87387         More patches to assume C89 or better.
87388         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87389         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87390         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87391         or for string.h.
87392         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87393         stdlib.h.
87394         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87395         C headers.
87396         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87397         string.h.
87398         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87399         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87400         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87401         or for string.h.
87402         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87403         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87404         C headers.
87405         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87406         memcpy.
87407         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87408         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87409         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87410         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87411         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87412         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87413         string.h, free.
87414         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87415         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87416         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87417         C headers, or for string.h.
87418         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87419         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87420         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87421         headers, memory.h, stdlib.h, string.h, strings.h.
87422         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87423         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87424         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87425         strchr.
87426         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87427         headers, memory.h, string.h.
87428         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87429         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87430         free.
87431         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87432         headers.
87433         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87434         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87435         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87436         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87437         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87438
87439 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87440
87441         More K&R removal.
87442
87443         * lib/acosl.c (main): Use a prototype.
87444         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87445         tanl.c: Likewise.
87446
87447         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87448
87449         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87450         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87451         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87452         with a prototype.
87453         * lib/getopt.c (const): Remove macro.
87454         Include <string.h> unconditionally.
87455         (my_index): Remove; all uses changed to strchr.
87456         (strlen): Remove decl.
87457         (exchange): Remove forward decl; no longer needed.
87458         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87459         Define with prototype.
87460         * lib/getopt1.c (const): Remove macro.
87461         (getopt_long, getopt_long_only, main): Define with prototype.
87462
87463         * lib/getugroups.c: Include <string.h> unconditionally.
87464
87465         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87466         (getusershell, setusershell, endusershell, readname, main):
87467         Define with prototypes.
87468
87469         * lib/group-member.c: Include group-member.h first.
87470         Include <stdlib.h> unconditionally.
87471
87472         * lib/hard-locale.c: Include hard-locale.h first.
87473         Include <stdlib.h>, <string.h> unconditionally.
87474
87475         * lib/hash.c (free, malloc): Remove decls.
87476         Include <stdlib.h> unconditionally.
87477
87478         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87479         (getenv): Do not declare.
87480
87481         * lib/idcache.c: Include <string.h> unconditionally.
87482
87483         * lib/long-options.c: Include long-options.h first, to test interface.
87484         Include <stdlib.h> unconditionally.
87485
87486         * lib/makepath.c: Include makepath.h first, to test interface.
87487         Include <stdlib.h> and <string.h> unconditionally.
87488
87489         * lib/linebuffer.c: Include <stdlib.h>.
87490         (free): Remove decl.
87491
87492         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87493         stddef.h. rpl_malloc returns void *, not char *.
87494         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87495         prototype.
87496
87497         * lib/md5.h: Include <limits.h> unconditionally.
87498         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87499         (__P): Remove; all uses removed.
87500         * lib/md5.c: Include "md5.h" first.
87501         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87502         md5_buffer, md5_process_bytes, md5_process_block):
87503         Define with prototypes.
87504         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87505         * lib/sha.c: Include "sha.h" first.
87506         Include <stdlib.h>, <string.h> unconditionally.
87507
87508         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87509         * lib/memcmp.c (__ptr_t): Likewise.
87510         * lib/memrchr.c (__ptr_t): Likewise.
87511         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87512         Include <string.h> unconditionally.
87513         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87514         * lib/memchr.c: Include <stdlib.h> unconditionally.
87515         * lib/memchr.c (LONG_MAX): Remove.
87516         * lib/memrchr.c (LONG_MAX): Likewise.
87517         * lib/memchr.c (__memchr): Define via a prototype.
87518         * lib/memrchr.c (__memrchr): Likewise.
87519         * lib/memcmp.c (__P): Remove, and remove all uses.
87520         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87521         Remove forward decls; no longer needed.
87522         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87523         Use types required by C89 in prototype.
87524
87525         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87526         * lib/savedir.c: Likewise.
87527         * lib/mkdir.c (free): Remove decl.
87528         * lib/rmdir.c (rmdir): Define with a prototype.
87529         * lib/savedir.c: Include savedir.h first, to test interface.
87530
87531         * lib/mktime.c (STDC_HEADERS): Remove.
87532         Include <stdlib.h>, <string.h> unconditionally.
87533
87534         * lib/modechange.c: Include <stdlib.h> unconditionally.
87535         (malloc): Remove decl.
87536
87537         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87538         (free): Remove decl.
87539
87540         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87541         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87542         (This type really should be intptr_t, but that's a C99ism.)
87543         (_obstack_memcpy): Remove: all uses changed to memcpy.
87544         Include <string.h> unconditionally.
87545         (struct obstack): Assume __STDC__ for types of members
87546         chunkfun, freefun, extra_arg.
87547         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87548         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87549         obstack_begin, obstack_specify_allocation,
87550         obstack_specify_allocation_with_arg, obstack_chunkfun,
87551         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87552         Remove unprototyped decls and the macros that use them.
87553         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87554         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87555         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87556         (defined __STDC__ && __STDC__)]:
87557         Remove nonprototyped code.
87558         Include <stdlib.h> unconditionally.
87559         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87560         _obstack_allocated_p, _obstack_free, obstack_free,
87561         _obstack_memory_used, print_and_abort):
87562         Define using prototypes.
87563         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87564         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87565         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87566         obstack_next_free, obstack_object_size, obstack_room) [0]:
87567         Remove unused, unprototyped code.
87568
87569         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87570
87571         * lib/physmem.c (physmem_total, physmem_available, main): Define
87572         with prototypes.
87573
87574         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87575         (main): Define with a prototype.
87576
87577         * lib/posixver.c (getenv): Remove decl.
87578
87579         * lib/putenv.c (malloc): Returns void *, not char *.
87580         Include <string.h> unconditionally.
87581         (strchr, memcpy, NULL): Do not define.
87582
87583         * lib/readtokens.c: Include readtokens.h first, to test interface.
87584         Include <stdlib.h>, <string.h> unconditionally.
87585         (init_tokenbuffer): Define with a prototype.
87586
87587         * lib/regex.c (PARAMS): Remove.  All uses removed.
87588         All uses of _RE_ARGS removed, too.
87589         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87590         unconditionally.
87591         (bzero): Assume memset exists.
87592         (memcmp, memcpy, NULL): Remove.
87593         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87594         char, or assignments to local vars of type signed char.
87595         (init_syntax_once, PREFIX(extract_number_and_incr),
87596         PREFIX(print_partial_compiled_pattern),
87597         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87598         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87599         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87600         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87601         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87602         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87603         wcs_compile_range, byte_compile_range, truncate_wchar,
87604         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87605         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87606         count_mbs_length, wcs_re_match_2_internal,
87607         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87608         PREFIX(alt_match_null_string_p),
87609         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87610         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87611         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87612         now-unnecessary declaration, if any.
87613         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87614         regcomp, regexec):
87615         Remove now-unnecessary casts among pointer types.
87616         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87617
87618         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87619         (free): Remove decl.
87620
87621         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87622
87623         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87624         (free): Remove decl.
87625
87626         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87627         * lib/xgetcwd.c: Likewise.
87628
87629         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87630         (free): Remove decl.
87631
87632         * lib/strchrnul.c (strchrnul): Define with a prototype.
87633         Fix bug: c_in was not converted to char before searching.
87634
87635         The following changes are not K&R related:
87636
87637         * lib/group-member.h: Include <sys/types.h>, so that this file is
87638         self-contained.
87639         * lib/makepath.h: Likewise.
87640
87641         * lib/getusershell.c (readname, default_index, line_size, readname):
87642         Use size_t, not int, for sizes.
87643         (readname): If the size overflows, report an error instead of
87644         looping forever.
87645
87646 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87647
87648         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87649         libc.
87650
87651 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87652
87653         * README: New section: portability guidelines.
87654
87655 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87656
87657         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87658         C89 spec.
87659
87660 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87661
87662         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87663
87664 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87665
87666         Assume C89 or better; remove K&R cruft.
87667         A few of these changes were first proposed by Derek Robert Price
87668         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87669
87670         * lib/addext.c: Include <string.h> unconditionally.
87671         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87672         Don't declare getenv or malloc.
87673
87674         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87675         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87676         (NULL): Remove.
87677         (find_stack_direction, alloca): Use prototypes.
87678
87679         * lib/atexit.c (atexit): Define using a prototype.
87680
87681         * lib/basename.c, dirname.c, stripslash.c:
87682         Include <string.h> unconditionally.
87683
87684         * lib/bcopy.c: Include <stddef.h>.
87685         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87686
87687         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87688
87689         * lib/error.h (error, error_at_line, error_print_progname)
87690         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87691         * lib/error.c: Include error.h first, to check interface.
87692         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87693         (VA_START): Remove; all uses changeed to va_start.
87694         (exit, strerror): Remove decls.
87695         (error_print_progname): Prototype uncondionally.
87696         Don't include <errno.h>; no longer needed.
87697         (private_strerror): Remove.
87698         (error_tail): Always define.
87699         (error, error_at_line): Assume C89 or better; always use prototypes.
87700         * lib/fatal.c: Include "fatal.h" first, to test interface.
87701         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87702         (VA_START): Remove; all uses changed to va_start.
87703         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87704         this case.
87705         (exit): Remove decl.
87706         (fatal): Prototype unconditionally.  Assume va_start works.
87707         Abort at end, to pacify gcc.
87708
87709         * lib/euidaccess.c (main): Define with a prototype.
87710
87711         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87712
87713         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87714
87715         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87716         prototypes.
87717         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87718         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87719         (getenv): Remove decl.
87720         (fnmatch): Define using a prototype.
87721         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87722         (FCT): Define using a prototype.
87723
87724         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87725
87726         * lib/gethostname.c: Include <stddef.h>.
87727         (gethostname): Define with prototype.  Length is size_t, not int.
87728
87729 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87730
87731         Assume C89 or better; remove K&R cruft.
87732         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87733         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87734         string.h, getenv, malloc.
87735         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87736         headers.
87737         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87738         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87739         do not check for strerror.
87740         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87741         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87742         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87743         do not check for doprnt or vprintf.
87744         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87745         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87746
87747 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87748
87749         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87750         getversion.c should have been removed then, but was accidentally
87751         preserved.
87752
87753         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87754         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87755
87756 2003-09-08  Karl Berry  <karl@gnu.org>
87757
87758         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87759                 config, forget about prep.
87760
87761         * config/depcomp, missing: update from automake.
87762
87763 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87764
87765         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87766         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87767
87768 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87769
87770         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87771         copy_tm_result.  Bug reported by Simon Josefsson in
87772         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87773
87774 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87775
87776         * m4/time_r.m4: New file.
87777         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87779         is. Check for timegm declaration.
87780         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87781         Do not check for gmtime_r.
87782         Replace mktime if __mktime_internal does not exist and if mktime
87783         hasn't been replaced already.
87784
87785 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87786
87787         * lib/time_r.c, lib/time_r.h: New files.
87788
87789         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87790         __localtime_r.
87791         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87792         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87793
87794         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87795         __gmtime_r.
87796         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87797         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87798         Include <time_r.h>.
87799
87800         * lib/timegm.c: Switch to glibc implementation, with the following
87801         changes:
87802         [defined HAVE_CONFIG_H]: Include <config.h>.
87803         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87804         (__mktime_internal) [!defined _LIBC]: New decl.
87805         (__gmtime_r) [!defined _LIBC]: New macro and function.
87806         (timegm): Use a prototype, since gnulib assumes C89.
87807         Do not bother declaring tmp to be const, as it's not really usefu.
87808         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87809         (timegm): Declare only if HAVE_DECL_TIMEGM.
87810
87811 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87812
87813         * MODULES.html.sh (func_all_modules): Add time_r.
87814         * modules/time_r: New file.
87815         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87816         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87817
87818 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87819
87820         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87821         Bug reported by Lute Kamstra in
87822         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87823
87824         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87825         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87826         course with correspondingly smaller numbers for tomorrow and
87827         yesterday.  From Tadayoshi Funaba.  Originally installed into
87828         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87829         coreutils merge?).
87830
87831 2003-08-31  Simon Josefsson  <jas@extundo.com>
87832
87833         * modules/timegm: New file.
87834         * MODULES.html.sh (func_all_modules): Add timegm.
87835
87836 2003-08-31  Simon Josefsson  <jas@extundo.com>
87837
87838         * m4/timegm.m4: New file.
87839
87840 2003-08-31  Simon Josefsson  <jas@extundo.com>
87841
87842         * lib/timegm.h: New file.
87843         * lib/timegm.c: New file.  Based on
87844         wget-1.8.2/src/http.c:mktime_from_utc.
87845
87846 2003-08-31  Karl Berry  <karl@gnu.org>
87847
87848         * lib/argp.h: update from libc.
87849
87850 2003-08-28  Bruno Haible  <bruno@clisp.org>
87851
87852         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87853         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87854         followed by '#define fnmatch fnmatch_posix' gives an error.
87855
87856 2003-08-28  Bruno Haible  <bruno@clisp.org>
87857
87858         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87859         warning on QNX, which defines O_BINARY to 000000.
87860
87861 2003-08-27  Jim Meyering  <jim@meyering.net>
87862
87863         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87864         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87865         would fail after 32.  Reported by Danny Levinson.  Details here:
87866         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87867
87868 2003-08-24  Bruno Haible  <bruno@clisp.org>
87869
87870         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87871         MSVC7 <stdio.h> is included later.
87872
87873 2003-08-22  Simon Josefsson  <jas@extundo.com>
87874
87875         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87876
87877 2003-08-20  Karl Berry  <karl@gnu.org>
87878
87879         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87880
87881 2003-08-20  Bruno Haible  <bruno@clisp.org>
87882
87883         * modules/progname: New file.
87884         * MODULES.html.sh (func_all_modules): Add progname.
87885
87886 2003-08-20  Bruno Haible  <bruno@clisp.org>
87887
87888         * lib/progname.h: New file, from GNU gettext.
87889         * lib/progname.c: New file, from GNU gettext.
87890         * lib/progreloc.c: New file, from GNU gettext.
87891
87892 2003-08-19  Jim Meyering  <jim@meyering.net>
87893
87894         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87895         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87896
87897 2003-08-19  Bruno Haible  <bruno@clisp.org>
87898
87899         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87900         more.
87901
87902 2003-08-19  Bruno Haible  <bruno@clisp.org>
87903
87904         * lib/xstrdup.c: Assume <string.h> exists.
87905
87906 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87907
87908         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87909         in makefile rules.
87910
87911 2003-08-18  Jim Meyering  <jim@meyering.net>
87912
87913         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87914         * m4/lib-ld.m4: Likewise.
87915
87916 2003-08-18  Jim Meyering  <jim@meyering.net>
87917
87918         * lib/setenv.h: Indent nested cpp directive.
87919         * lib/vasnprintf.c: Remove trailing blanks.
87920
87921 2003-08-17  Simon Josefsson  <jas@extundo.com>
87922
87923         * modules/xstrndup: New file.
87924         * MODULES.html.sh (func_all_modules): Add xstrndup.
87925
87926 2003-08-17  Simon Josefsson  <jas@extundo.com>
87927
87928         * modules/argp: Fix autoconf macro name. Add more dependencies.
87929
87930 2003-08-17  Simon Josefsson  <jas@extundo.com>
87931
87932         * m4/xstrndup.m4: New file.
87933
87934 2003-08-17  Simon Josefsson  <jas@extundo.com>
87935
87936         * m4/argp.m4: New file.
87937
87938 2003-08-17  Simon Josefsson  <jas@extundo.com>
87939             Bruno Haible  <bruno@clisp.org>
87940
87941         * lib/xstrndup.h: New file.
87942         * lib/xstrndup.c: New file.
87943
87944 2003-08-17  Bruno Haible  <bruno@clisp.org>
87945
87946         * modules/strndup (Files, Include): Add lib/strndup.h.
87947
87948 2003-08-17  Bruno Haible  <bruno@clisp.org>
87949
87950         * modules/euidaccess (Files): Add lib/euidaccess.h.
87951
87952 2003-08-17  Bruno Haible  <bruno@clisp.org>
87953
87954         * lib/strndup.h: New file.
87955
87956 2003-08-17  Bruno Haible  <bruno@clisp.org>
87957
87958         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87959         like AC_GNU_SOURCE.
87960         * modules/extensions (configure.ac): Comment out the invocation of
87961         gl_USE_SYSTEM_EXTENSIONS.
87962
87963 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87964
87965         Merges from coreutils, etc.
87966         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87967         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87968         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87969         fixing a typo.
87970         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87971         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87972
87973 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87974
87975         Document merge from coreutils.
87976         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87977         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87978         * modules/utime: Add m4/utimes-null.m4.
87979
87980 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87981
87982         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87983         space, undoing this 2003-08-12 change:
87984         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87985
87986 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87987
87988         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87989         strtoul.c from libc, undoing this 2003-08-12 change:
87990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87991
87992 2003-08-16  Jim Meyering  <jim@meyering.net>
87993
87994         Merges from coreutils.
87995         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87996         prefix.  Adjust cache variables similarly.  Create 500 rather than
87997         just 300 files, to exercise bug on Darwin6.5, too.
87998         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87999         $missing_dir.
88000         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88001         AM_SYS_POSIX_TERMIOS.
88002         Reported by mkc@mathdogs.com.
88003         Also change use of $am_cv_sys_posix_termios
88004         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88005         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88006         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88007         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88008         in /proc/mounts until it finds one with matching device number.  This
88009         is unnecessary when the FILE argument *is* a mount point.  No stat call
88010         is necessary in that case.  So, disable the statvfs-testing code on
88011         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88012         as RedHat bug# 84846.
88013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88014         to 1MB, so as not to render systems with no stack size limit (e.g.,
88015         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88016         Include <unistd.h>.  On some systems,
88017         it is required for the definition of _SC_PAGESIZE.
88018
88019 2003-08-16  Jim Meyering  <jim@meyering.net>
88020
88021         Merge from coreutils.
88022         * lib/xstrtoimax.c: #else #if -> #elif.
88023         * lib/xstrtoumax.c: Likewise.
88024
88025 2003-08-16  Jim Meyering  <jim@meyering.net>
88026
88027         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88028         * m4/utimes.m4: Removed.
88029         * m4/utimes-null.m4: Renamed from utimes.m4.
88030
88031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88032         to 1MB, so as not to render systems with no stack size limit (e.g.,
88033         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88034         Include <unistd.h>.  On some systems,
88035         it is required for the definition of _SC_PAGESIZE.
88036
88037 2003-08-16  Jim Meyering  <jim@meyering.net>
88038         and Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         Merges from coreutils, etc.
88041
88042         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88043         using the latest version from cvs.  This avoids problems with #line
88044         directives using a vendor (Sun) compiler.
88045         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88046         Don't set GETGROUPS_LIB here; now it's
88047         done via getgroups.m4's wrapper function.
88048         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88049         rather than just in sh-util/configure.in, so that the
88050         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88051         same.
88052         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88053         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88054         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88055         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88056         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88057         Remove code that is now done by the newly-required macros.
88058         Append $(EXEEXT) to DF_PROG.
88059         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88060         Do not invoke or require the following here,
88061         since prereq.m4 or some gnulib .m4 now does this for us:
88062         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88063         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88064         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88065         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88066         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88067         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88068         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88069         AC_FUNC_OBSTACK.
88070         Do not replace the following functions, as this is now the job
88071         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88072         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88073         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88074         atexit getpass, strdup, getpagesize.
88075         Replace 'raise'.
88076         Do not check for the following functions, as this is now the job
88077         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88078         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88079         setregid.
88080         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88081         Check for sys/sysctl.h.
88082         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88083         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88084         of checking for ssize_t ourselves.
88085
88086         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88087         Require every macro that gnulib/modules/* suggests for us.
88088         (jm_PREREQ_ADDEXT): New macro.
88089         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88090         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88091
88092         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88093         (gl_PHYSMEM): Use it.
88094         Also check for `table' function.
88095         Check for new headers and functions.
88096         Add check for sys/sysmp.h.
88097         With suggestions from Kaveh Ghazi.
88098         Ignore headers that are present but cannot be compiled.  This
88099         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88100         C 5.4.
88101
88102 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88103
88104         Document merge from coreutils.
88105         * modules/userspec: Depend on posixver.
88106         * modules/strftime: Depend on tzset.
88107
88108 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88109
88110         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88111         rather than tab, after '#' in shell-script copyright notices.
88112         Suggested by Bruno Haible.
88113
88114 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88115
88116         * config/srclist-update: Use three spaces, rather than tab, after '#'
88117         in shell-script copyright notices.  Suggested by Bruno Haible.
88118         Remove unnecessary parenthesization in regular expression.
88119
88120 2003-08-15  Jim Meyering  <jim@meyering.net>
88121
88122         Merge from coreutils.
88123         * lib/xgethostname.c: Include <stdlib.h>.
88124         (xghostname): Don't exit for anything other than memory-related
88125         failure; just return NULL.
88126         * lib/userspec.c: Include "posixver.h".
88127         (parse_user_spec): Accept `.' as a separator only
88128         in pre-POSIX-200112 mode.
88129         * lib/strtoimax.c: Use #elif rather than #else #if.
88130         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88131         Remove function, now that we can rely on a working tzset function.
88132         [!_LIBC]: Ensure that the required autoconf test has been run.
88133         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88134         Use underlying_strftime for %r.
88135         * lib/sha.c: Merge in some clean-up and optimization changes from
88136         glibc.
88137         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88138         Ensure that it is a multiple of 64.
88139         Rearrange loop exit tests so as to avoid performing an
88140         additional fread after encountering an error or EOF.
88141         * lib/realloc.c: Update copyright date.
88142
88143 2003-08-15  Jim Meyering  <jim@meyering.net>
88144         and Paul Eggert  <eggert@twinsun.com>
88145
88146         Merge from coreutils.
88147         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88148         member but strut utmpx does not.  Needed for AIX 4.3.3.
88149         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88150
88151 2003-08-15  Jim Meyering  <jim@meyering.net>
88152         and Paul Eggert  <eggert@cs.ucla.edu>
88153
88154         Merges from coreutils, etc.
88155         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88156         Require gl_FUNC_TZSET_CLOBBER.
88157         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88158         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88159         members.
88160
88161 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88162
88163         Help the merge from coreutils.
88164         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88165         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88166         * m4/tzset.m4: Use it too.
88167
88168 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88169
88170         * modules/tzset: New file.
88171
88172 2003-08-14  Jim Meyering  <jim@meyering.net>
88173
88174         Merges from coreutils.
88175         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88176         variable names, rather than @FNMATCH_H@.
88177         * modules/alloca: Likewise for $(ALLOCA_H).
88178
88179         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88180         the three copies of the literal target, `fnmatch.h'.
88181         * modules/alloca (alloca.h): Likewise.
88182
88183 2003-08-14  Jim Meyering  <jim@meyering.net>
88184
88185         Merge from coreutils.
88186         * m4/tzset.m4: New file.
88187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88188         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88189         otherwise, AIX 5.1 systems would end up using the latter.
88190         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88191         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88192         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88193         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88194
88195 2003-08-14  Jim Meyering  <jim@meyering.net>
88196
88197         Merge from coreutils.
88198         * lib/obstack.h: Whitespace changes.
88199         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88200         and xcalloc return values.
88201         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88202         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88203         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88204         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88205         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88206         error from mntctl.
88207         Use mntctl's return value to drive the entry-processing loop, since
88208         we can't rely on the value of the vmt_length member in the last
88209         entry.  On some systems doing so could result in exhausting
88210         virtual memory.  Based in part on a patch from Mike Jetzer.
88211
88212 2003-08-14  Jim Meyering  <jim@meyering.net>
88213         and Paul Eggert  <eggert@twinsun.com>
88214
88215         Merges from coreutils, plus other fixes.
88216         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88217         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88218         for credits and details.  Thanks to Kaveh Ghazi for helping
88219         to keep these files in sync.
88220         (ARRAY_SIZE): Define it.
88221         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88222         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88223         (memcasecmp): Don't assume size_t fits in unsigned int.
88224         Remove casts and duplicate code.
88225         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88226         (memcpy): Remove definition.
88227         Merge in some clean-up and optimization changes from glibc.
88228         [BLOCKSIZE]: Move definition to top of file.
88229         Ensure that it is a multiple of 64.
88230         Rearrange loop exit tests so as to avoid performing an
88231         additional fread after encountering an error or EOF.
88232         * lib/md5.h (md5_uintptr): Define.
88233         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88234         return to the initial working directory.  Preserve errno
88235         for caller.
88236         * lib/idcache.c: Include "xalloc.h".
88237         (xmalloc, xrealloc): Remove decls.
88238         (getuser): Remove casts no longer required in C89.
88239         * lib/human.c: Include stdio.h, for sprintf.
88240         * lib/group-member.c: Include "xalloc.h".
88241         (xmalloc, xrealloc): Remove decls.
88242         (get_group_info): Remove casts no longer required in C89.
88243         * lib/getusershell.c (readname): Remove casts no longer required in
88244         C89.
88245         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88246         * lib/getline.c: Whitespace fix, from coreutils.
88247
88248 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88249
88250         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88251         Check for isascii.
88252
88253         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88254         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88255         Undo previous (whitespace-only) change.
88256
88257 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88258
88259         * lib/exclude.c: Include <ctype.h>
88260         (IN_CTYPE_DOMAIN): New macro.
88261         (is_space): New fn.
88262         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88263         and empty lines.
88264
88265         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88266         Undo previous (whitespace-only) change.
88267
88268 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88269
88270         * config/srclist-update: Change update back to the old behavior,
88271         leaving whitespace alone.  Use one 'sed' command rather than a
88272         pipeline.
88273         (fixlicense): Now a variable, not a function.
88274         (remove_trailing_blanks): Remove.
88275         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88276         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88277         Undo previous (whitespace-only) change.
88278
88279 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88280
88281         Merge from coreutils.
88282         * modules/euidaccess: Add lib_SOURCES, include for new
88283         file euidaccess.h
88284
88285 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88286
88287         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88288         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88289         Normalize leading white space and remove trailing white space.
88290
88291         Merge from coreutils
88292         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88293
88294         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88295         0.12.1.  These files are now being upgraded automatically by
88296         ../config/srclist-update.
88297
88298 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88299
88300         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88301         Normalize leading white space and remove trailing white space.
88302         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88303         notice, as per ../config/srclist-update.
88304
88305         Merge from coreutils.
88306         * lib/euidaccess.h: New file.
88307         * lib/euidaccess.c: Include it.
88308         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88309         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88310         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88311
88312 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88313
88314         * config/srclist-update: Add copyright notice.
88315         (remove_id_lines, remove_trailing_blanks): New constants.
88316         (fixfile): Use them to normalize spacing a bit in copied files.
88317         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88318         Normalize leading white space and remove trailing white space.
88319
88320         * config/texinfo.tex: Sync with texinfo.
88321
88322         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88323         strtoul.c from libc, to merge coreutils whitespace changes.
88324
88325         * config/srclist.txt: Get the following m4 files from gettext:
88326         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88327         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88328         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88329         wint_t.m4.
88330
88331 2003-08-12  Karl Berry  <karl@gnu.org>
88332
88333         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88334         been made.
88335
88336 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88337
88338         * modules/gnu-source, m4/gnu-source.m4:
88339         Remove; we're assuming Autoconf 2.54 or later now.
88340         Suggested by Bruno Haible.
88341         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88342
88343 2003-08-11  Bruno Haible  <bruno@clisp.org>
88344
88345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88346
88347 2003-08-11  Bruno Haible  <bruno@clisp.org>
88348
88349         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88350         (vasnprintf): Use it instead of wcslen.
88351
88352 2003-08-11  Bruno Haible  <bruno@clisp.org>
88353
88354         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88355         value to ensure that _Bool promotes to int. Use #define for _Bool when
88356         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88357
88358 2003-08-10  Karl Berry  <karl@gnu.org>
88359
88360         * lib/regex.h: update from libc (whitespace fix).
88361
88362 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88363
88364         Merge some files from coreutils.  These changes were
88365         originally made by Jim Meyering.
88366         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88367         many older Unixes require this.
88368         * lib/alloca.c (alloca): Remove cast to argument of free;
88369         no longer needed in C89.
88370         * lib/alloca_.h, regex.h: Fix white space to match
88371         what GNU indent does.
88372
88373 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88374
88375         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88376         apparently Emacs's Unicode mode got confused before my 2003-08-05
88377         checkin.
88378
88379 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88380
88381         * m4/extensions.m4: New file.
88382         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88383         Require gl_USE_SYSTEM_EXTENSIONS.
88384         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88385         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88386
88387 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88388
88389         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88390         * modules/extensions, modules/gnu-source: New files.
88391         * modules/timespec, modules/unlocked-io: Depend on extensions.
88392
88393 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88394
88395         * modules/restrict: New file.
88396         * MODULES.html.sh (func_all_modules): Add restrict.
88397         * modules/regex: Depend on restrict.
88398
88399 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88400
88401         * m4/restrict.m4: New file.
88402         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88403
88404 2003-08-07  Bruno Haible  <bruno@clisp.org>
88405
88406         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88407         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88408
88409 2003-08-07  Bruno Haible  <bruno@clisp.org>
88410
88411         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88412         makes the module 'getndelim2' compatible with the module 'getline'.
88413
88414 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88415
88416         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88417         byte with "\201" to avoid glitches when editing that source file
88418         with multi-gnome-terminal.
88419
88420 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88421
88422         * lib/bumpalloc.h: Remove.
88423
88424 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88425
88426         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88427         * modules/bumpalloc: Remove.
88428
88429 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88430
88431         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88432         GNU coding style.
88433
88434         Merge from coreutils.
88435         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88436         1. From glibc.
88437         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88438         from Karl Berry, implemented by Jim Meyering.
88439         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88440         from Dmitry V. Levin.
88441         Remove anachronistic cast of xrealloc.
88442         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88443         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88444         type. Otherwise, it wouldn't compile with at least /bin/cc on
88445         ymp-cray-unicos9.0.2.X.
88446         Combine two mostly-identical uses of alloca into one.
88447         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88448
88449 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88450
88451         [From Emacs.]
88452
88453         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88454         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88455         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88456         obsolete NLIST_NAME_UNION.
88457         [__GNU__]: Undef BSD and FSCALE.
88458         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88459
88460 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88461
88462         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88463         an enum type, so that it's guaranteed to promote to int.  See:
88464         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88465
88466 2003-08-03  Karl Berry  <karl@gnu.org>
88467
88468         * config/depcomp: update from automake.
88469
88470 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88471
88472         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88473         (strerror): Don't assume that a printable int fits in 14 bytes.
88474
88475 2003-07-31  Bruno Haible  <bruno@clisp.org>
88476
88477         * modules/getpass-gnu: New file.
88478         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88479
88480 2003-07-31  Bruno Haible  <bruno@clisp.org>
88481
88482         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88483
88484 2003-07-24  Karl Berry  <karl@gnu.org>
88485
88486         * config/missing: update from automake.
88487
88488 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88489             Bruno Haible  <bruno@clisp.org>
88490
88491         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88492         * lib/getline.c (getline, getdelim): Likewise.
88493         Remove _GNU_SOURCE define; now it's defined in config.h through
88494         m4/getline.m4.
88495
88496 2003-07-23  Karl Berry  <karl@gnu.org>
88497
88498         * config/config.sub: update from prep.
88499
88500 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88501
88502         * modules/xalloc (Depends-on): Add exitfail.
88503         * modules/xmemcoll: Likewise.
88504
88505 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88506
88507         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88508         over-parenthesization in macros.
88509
88510         Sync with coreutils.
88511
88512         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88513         required by C99.
88514
88515         Use `exit_failure' for xalloc and xmemcoll instead of their own
88516         private exit-failure variables.
88517         * lib/xalloc.h (xalloc_exit_failure): Remove.
88518         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88519         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88520         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88521         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88522         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88523
88524 2003-07-20  Jim Meyering  <jim@meyering.net>
88525
88526         * modules/closeout (Depends-on): Add exitfail.
88527         Suggestion from Bruno Haible.
88528
88529 2003-07-19  Karl Berry  <karl@gnu.org>
88530
88531         * config/config.sub: update from prep.
88532
88533 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88534
88535         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88536         Remove.
88537         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88538         to test that it can stand by itself.  Include "exitfail.h".
88539         Clients should set exit_failure instead.
88540         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88541
88542 2003-07-18  Bruno Haible  <bruno@clisp.org>
88543
88544         * modules/getndelim2: New file.
88545         * modules/getline: Share files with module getndelim2.
88546         * modules/getnline: Depend on getndelim2 instead of sharing files with
88547         it. Add getnline.c to lib_SOURCES.
88548         * MODULES.html.sh (func_all_modules): Add getndelim2.
88549
88550 2003-07-18  Bruno Haible  <bruno@clisp.org>
88551
88552         * m4/getndelim2.m4: New file.
88553         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88554         invoke gl_PREREQ_GETNDELIM2.
88555         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88556         gl_PREREQ_GETNDELIM2.
88557         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88558         gl_GETNDELIM2.
88559
88560 2003-07-18  Bruno Haible  <bruno@clisp.org>
88561
88562         * lib/getndelim2.h: New file.
88563         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88564         getndelim2.h.
88565         (getndelim2): Make non-static. Change return type to ssize_t.
88566         * lib/getline.h: Change argument names.
88567         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88568         * lib/getnline.c: Include getndelim2.h.
88569
88570 2003-07-18  Andreas Schwab  <schwab@suse.de>
88571
88572         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88573
88574 2003-07-17  Karl Berry  <karl@gnu.org>
88575
88576         * config/config.sub: update from prep.
88577
88578 2003-07-17  Bruno Haible  <bruno@clisp.org>
88579
88580         * modules/getnline: New file.
88581         * modules/getline: Add lib/getndelim2.c to source file list.
88582         * MODULES.html.sh (func_all_modules): Add getnline.
88583
88584 2003-07-17  Bruno Haible  <bruno@clisp.org>
88585
88586         * m4/getnline.m4: New file.
88587
88588 2003-07-17  Bruno Haible  <bruno@clisp.org>
88589
88590         * m4/Makefile.am.in: Remove file.
88591         * m4/Makefile.am: Remove file.
88592         * m4/Makefile.in: Remove file.
88593
88594 2003-07-17  Bruno Haible  <bruno@clisp.org>
88595
88596         * lib/getnline.h: New file.
88597         * lib/getnline.c: New file.
88598         * lib/getndelim2.c: New file, extracted from getline.c.
88599         (getndelim2): Renamed from getdelim2, with added nmax argument.
88600         * lib/getline.c: Include getndelim2.c.
88601         (getdelim2): Moved out to getndelim2.c.
88602         (getline, getdelim): Update.
88603
88604 2003-07-17  Bruno Haible  <bruno@clisp.org>
88605
88606         * lib/Makefile.am: Remove file.
88607         * lib/Makefile.in: Remove file.
88608
88609 2003-07-17  Bruno Haible  <bruno@clisp.org>
88610
88611         * configure.in: Remove file.
88612         * Makefile.in: Remove file.
88613
88614 2003-07-17  Bruno Haible  <bruno@clisp.org>
88615
88616         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88617
88618 2003-07-16  Karl Berry  <karl@gnu.org>
88619
88620         * config/srclist-update: was running fixlicense twice, which caused
88621                 texinfo.tex to be nullified for some reason.  Simplify,
88622                 $gplsrc is no longer needed as far as I can see?
88623
88624 2003-07-16  Jim Meyering  <jim@meyering.net>
88625
88626         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88627
88628 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88629
88630         * config/srclist.txt: Get the following files from gettext-runtime/intl
88631         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88632         ref-del.sin.  From Bruno Haible.
88633         * config/srclist-update (fixfile): Change grep pattern again, since the
88634         previous fix didn't work (there was another trailing $).  Use
88635         '[$]' to escape the $s.
88636
88637 2003-07-15  Karl Berry  <karl@gnu.org>
88638
88639         * lib/vasnprintf.c: update from gettext.
88640
88641 2003-07-15  Karl Berry  <karl@gnu.org>
88642
88643         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88644         gets expanded when surrounded by '$'.
88645
88646 2003-07-15  Jim Meyering  <jim@meyering.net>
88647
88648         * modules/save-cwd: Don't depend on error.  From Derek Price.
88649
88650 2003-07-15  Jim Meyering  <jim@meyering.net>
88651
88652         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88653
88654 2003-07-14  Simon Josefsson  <jas@extundo.com>
88655
88656         * modules/mempcpy: New file.
88657         * MODULES.html.sh (func_all_modules): Add mempcpy.
88658
88659 2003-07-14  Simon Josefsson  <jas@extundo.com>
88660
88661         * m4/mempcpy.m4: New file.
88662
88663 2003-07-14  Simon Josefsson  <jas@extundo.com>
88664
88665         * lib/mempcpy.h: New file.
88666         * lib/mempcpy.c: New file.
88667
88668 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88669
88670         * modules/getdate, modules/posixtm: Depend on mktime.
88671
88672 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88673
88674         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88675         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88676         unicodeio.c, unicodeio.h, unlocked-io.h:
88677         Switch from LGPL to GPL.
88678
88679 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88680
88681         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88682         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88683         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88684         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88685         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88686         updated automatically by ../config/srclist-update.  This changes
88687         their license from LPGL to GPL.
88688
88689 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88690
88691         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88692         assumed to refer to the root of the most recent stable gettext version.
88693         * config/srclistvars.sh: Add defaults for eggert.
88694         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88695         Match "This program" as well as "The program".  This is needed
88696         for gettext.
88697
88698 2003-07-14  Jim Meyering  <jim@meyering.net>
88699
88700         Don't emit diagnostics.  Let callers do that.
88701         * lib/save-cwd.c: Don't include "error.h".
88702         (save_cwd): Don't call error.  Ensure that errno is valid
88703         when returning nonzero.
88704
88705         * lib/save-cwd.h (restore_cwd): Update prototype.
88706         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88707         Simplify.  Don't call error upon failure.  Let callers do that.
88708         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88709         when auditing is enabled.  But don't bother updating the #if.
88710
88711 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88712
88713         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88714         it breaks C++ compilation.
88715         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88716
88717 2003-07-10  Simon Josefsson  <jas@extundo.com>
88718
88719         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88720
88721 2003-07-10  Jim Meyering  <jim@meyering.net>
88722
88723         * m4/clock_time.m4: Remove trailing blank.
88724         * m4/intmax_t.m4: Likewise.
88725
88726 2003-07-10  Jim Meyering  <jim@meyering.net>
88727
88728         * lib/vasnprintf.c: Remove trailing blanks.
88729         Make cpp indentation consistent.
88730
88731 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88732
88733         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88734         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88735         Switch from LGPL to GPL.
88736
88737 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88738
88739         * config/srclist.txt: Sort sublists.  Add
88740         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88741         that differ from gnulib for one reason or another; we'd like this list
88742         to be smaller but for now let's document what we have.
88743
88744 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88745
88746         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88747         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88748         and sweeter "eval x=$x".
88749         * config/srclist.txt: Get lib/argp* from glibc.
88750
88751 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88752
88753         * lib/mktime.c: Fix some boundary cases and remove need for floating
88754         point.
88755
88756         Issue a compile-time diagnostic if time_t is floating point, or if
88757         two's complement arithmetic is not in effect, or if arithmetic
88758         right shift does not propagate the sign.  These assumptions were
88759         all in the original code but they weren't checked.
88760
88761         (TIME_T_MIDPOINT, verify): New macros.
88762         (__isleap): Remove; it has integer overflow problems.
88763         (leapyear): New function, without those problems.
88764         (ydhms_tm_diff): Remove; splitting into two parts.
88765         (ydhms_diff): New function, containing the arithmetic part of
88766         the old ydhms_tm_diff function.  Issue a compile-time
88767         diagnostic if we are not using C99 integer division.
88768         Avoid casts when possible.
88769         (guess_time_tm): New function, containing the checking part of
88770         the old ydhms_tm_diff function.  Return the new value, rather than
88771         the difference between it and the old.  Accept a new argument T
88772         so that *T specifies the old value.  Check for overflow in the result.
88773
88774         (__mktime_internal): Use a time_t offset, not a long int offset.
88775         This undoes the 2003-06-04 change, which is no longer needed now
88776         that we have better overflow checking.
88777         (localtime_offset): Likewise.
88778
88779         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88780         and long are 64-bit but int is only 32-bit.
88781         (ydhms_diff): Use long int to store year1 and yday1.
88782         Issue a compile-time diagnostic if long int is not wide enough.
88783
88784         (__mktime_internal): Use long int to store adjusted year and yday.
88785         Use plain C rather than preprocessor commands, if that doesn't
88786         affect efficiency.
88787         Check for overflow (and try to repair) after each probe
88788         rather than checking only at the very end.  This avoids some bugs
88789         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88790         does not equal GMT offset at maximum time).
88791         Use integer to check for overflow rather than floating point; this
88792         is more portable to non-IEEE hosts, and is a tad faster.
88793         When we detect that we are oscillating between two values,
88794         don't check whether tm_isdst has the requested value, since
88795         we already know the answer.  When tm_isdst has the wrong value,
88796         use a different heuristic to find the right one, based on the
88797         extreme values actually observed in practice in tz2003a,
88798         rather than the (overly optimistic) "previous 3 calendar quarters".
88799
88800         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88801         "T const" to accommodate glibc style.
88802         (check_result): Use less-confusing report format.  "long" -> "long int.
88803         (main): Likewise.
88804         Don't loop if the iteration overflows time_t.
88805         Allow a negative step in the iteration.
88806
88807 2003-07-06  Karl Berry  <karl@gnu.org>
88808
88809         * config/depcomp: update from automake.
88810         * config/config.sub: update from prep.
88811
88812 2003-07-03  Karl Berry  <karl@gnu.org>
88813
88814         * config/config.guess: update from prep.
88815
88816 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88817
88818         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88819         xreadlink.c now includes it unconditionally.
88820
88821 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88822
88823         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88824         having it depend on HAVE_SYS_TYPES_H.
88825
88826 2003-07-01  Bruno Haible  <bruno@clisp.org>
88827
88828         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88829         <sys/types.h> should be sufficient.
88830         Reported by Paul Eggert.
88831
88832 2003-06-26  Karl Berry  <karl@gnu.org>
88833
88834         * config/depcomp: update from automake.
88835
88836 2003-06-26  Bruno Haible  <bruno@clisp.org>
88837
88838         * modules/human: Depend on module stdbool.
88839
88840 2003-06-25  Bruno Haible  <bruno@clisp.org>
88841
88842         * modules/readlink: New file.
88843         * modules/xreadlink: Depend on it.
88844         * MODULES.html.sh (func_all_modules): Add readlink.
88845
88846 2003-06-25  Bruno Haible  <bruno@clisp.org>
88847
88848         * m4/readlink.m4: New file.
88849
88850 2003-06-25  Bruno Haible  <bruno@clisp.org>
88851
88852         * lib/readlink.c: New file.
88853
88854 2003-06-22  Karl Berry  <karl@gnu.org>
88855
88856         * config/srclist.txt: update mkinstalldirs from automake.
88857         * config/mkinstalldirs: update.
88858
88859 2003-06-22  Bruno Haible  <bruno@clisp.org>
88860
88861         Portability to mingw32.
88862         * m4/ssize_t.m4: New file, from GNU gettext.
88863         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88864         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88865
88866 2003-06-22  Bruno Haible  <bruno@clisp.org>
88867
88868         * modules/safe-read: Add m4/ssize_t.m4.
88869         * modules/xreadlink: Add m4/ssize_t.m4.
88870
88871 2003-06-20  Bruno Haible  <bruno@clisp.org>
88872
88873         Assume C89, so PARAMS isn't needed.
88874         * lib/unicodeio.h (PARAMS): Remove.
88875         * lib/unicodeio.c: Don't use PARAMS.
88876
88877 2003-06-18  Karl Berry  <karl@gnu.org>
88878
88879         * config/config.{guess,sub}: update from prep.
88880
88881 2003-06-18  Jim Meyering  <jim@meyering.net>
88882
88883         Merge changes from coreutils.
88884         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88885         Remove explicit declarations of xmalloc and realloc.
88886         Include xalloc.h.
88887         (read_utmp): Remove anachronistic cast of xmalloc.
88888
88889 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88890
88891         Assume C89, so PARAMS isn't needed.
88892         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88893         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88894         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88895         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88896         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88897         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88898         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88899         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88900         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88901         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88902         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88903         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88904         no longer needed. Anyway, config.h should always be included before any
88905         other file.
88906
88907 2003-06-11  Simon Josefsson  <jas@extundo.com>
88908
88909         * modules/sysexits: New file.
88910         * MODULES.html.sh (func_all_modules): Add sysexits.
88911
88912 2003-06-11  Simon Josefsson  <jas@extundo.com>
88913
88914         * lib/sysexit_.h: New file.
88915
88916 2003-06-11  Derek Price  <derek@ximbiot.com>
88917
88918         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88919         necessary.
88920
88921 2003-06-11  Bruno Haible  <bruno@clisp.org>
88922
88923         * m4/sysexits.m4: New file.
88924
88925 2003-06-10  Simon Josefsson  <jas@extundo.com>
88926
88927         * lib/argp.h: New file, from glibc.
88928         * lib/argp-ba.c: New file, from glibc.
88929         * lib/argp-eexst.c: New file, from glibc.
88930         * lib/argp-fmtstream.c: New file, from glibc.
88931         * lib/argp-fmtstream.h: New file, from glibc.
88932         * lib/argp-fs-xinl.c: New file, from glibc.
88933         * lib/argp-help.c: New file, from glibc.
88934         * lib/argp-namefrob.h: New file, from glibc.
88935         * lib/argp-parse.c: New file, from glibc.
88936         * lib/argp-pv.c: New file, from glibc.
88937         * lib/argp-pvh.c: New file, from glibc.
88938         * lib/argp-xinl.c: New file, from glibc.
88939
88940 2003-06-10  Simon Josefsson  <jas@extundo.com>
88941
88942         * modules/strchrnul: New file.
88943
88944 2003-06-10  Simon Josefsson  <jas@extundo.com>
88945
88946         * modules/argp: New file.
88947
88948 2003-06-10  Simon Josefsson  <jas@extundo.com>
88949
88950         * m4/strchrnul.m4: New file.
88951
88952 2003-06-10  Simon Josefsson  <jas@extundo.com>
88953
88954         * lib/strchrnul.h: New file.
88955         * lib/strchrnul.c: New file.
88956
88957 2003-06-10  Bruno Haible  <bruno@clisp.org>
88958
88959         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88960
88961 2003-06-07  Karl Berry  <karl@gnu.org>
88962
88963         * config/config.{guess,sub}: update from prep.
88964
88965 2003-06-07  Jim Meyering  <jim@meyering.net>
88966
88967         * modules/strtod: Use $(...) notation, not @...@ for
88968         AC_REPLACE'd variables.
88969         * modules/localcharset: Likewise.
88970
88971 2003-06-07  Jim Meyering  <jim@meyering.net>
88972
88973         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88974         in place of my name in the copyright comment.
88975         Remove definition and uses of __P.
88976
88977         From coreutils.
88978         * lib/stat.c: Don't declare xmalloc explicitly.
88979         Instead, include "xalloc.h".
88980         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88981         xrealloc, and xcalloc return values.
88982         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88983         Improve comment.
88984         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88985
88986 2003-06-07  Bruno Haible  <bruno@clisp.org>
88987
88988         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88989         avoid AC_CONFIG_LINKS.
88990         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88991         fnmatch.h, to avoid AC_CONFIG_LINKS.
88992         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88993
88994 2003-06-07  Bruno Haible  <bruno@clisp.org>
88995
88996         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88997         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88998         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88999         directory.
89000         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89001         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89002         directory.
89003
89004 2003-06-06  Jim Meyering  <jim@meyering.net>
89005
89006         Merge from coreutils.
89007         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89008         Consolidate declarations and initializations of *_base* locals.
89009
89010         Merge from coreutils.
89011         This avoids a core dump on systems without GNU putenv,
89012         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89013         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89014         (unsetenv): New static function, from GNU libc.
89015         (rpl_putenv): Use it.
89016
89017         * lib/modechange.c: Remove trailing blanks.
89018
89019         Merge from coreutils.
89020         * lib/fsusage.c: Remove declaration of statfs.
89021         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89022
89023         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89024
89025 2003-06-06  Jim Meyering  <jim@meyering.net>
89026
89027         * lib/stdbool_.h: Renamed from stdbool.h.in.
89028
89029 2003-06-06  Jim Meyering  <jim@meyering.net>
89030             Bruno Haible  <bruno@clisp.org>
89031
89032         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89033         Adjust Makefile.am snippet not to redirect directly to target.
89034         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89035
89036 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89037
89038         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89039         mismatch, look in future quarters as well as past.  This fixes a
89040         bug when processing fall-backwards gaps immediately after a long
89041         period of daylight-saving time.
89042
89043         * lib/mktime.c: Assume freestanding C89 or better.
89044         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89045         (__P): Remove; not used.
89046         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89047         (mktime, not_equal_tm, print_tm, check_result,
89048         main): Use prototypes.  Use const * where appropriate.
89049         (main): Fix typo in testing code that uncovered by above changes.
89050         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89051
89052 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89053
89054         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89055         locale.h, localeconv.  This merges changes from coreutils.
89056
89057         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89058         It can be removed after the next Autoconf is released.
89059         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89060         needed.
89061
89062 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89063
89064         * lib/mktime.c: Fix Debian bug 177940
89065         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89066         (localtime_offset): Now long int, not time_t, because we want it
89067         to be guaranteed to be signed.  All uses changed.
89068         (__mktime_internal): If overflow would occur when adding offset,
89069         don't add it.
89070
89071         Merge 'human' changes from coreutils.  Rewrite to support
89072         locale-specific notations like thousands separators.
89073         * lib/human.c: Simplify authorship notice.
89074         Include human.h immediately after config.h.
89075         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89076         <limits.h>: Do not include, since human.h does.
89077         (SIZE_MAX, UINTMAX_MAX): New macros.
89078         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89079         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89080         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89081         (power_letter): Renamed from suffixes.
89082         (generate_suffix_backwards): Remove.
89083         (adjust_value): Now takes int style (because of human.h changes)
89084         and long double value (for greater precision on some platforms).
89085         (group_number): New function.
89086         (human_readable): Use it.  Use integer options, not enum.
89087         Put the options before the sizes in the arg list.
89088         Support all the new options.
89089         The old human_readable function has been removed;
89090         use inttostr.h instead.
89091         (human_readable, default_block_size, humblock):
89092         Use uintmax_t, not int, for block sizes.
89093         (human_readable_inexact, block_size_types): Remove.
89094         (block_size_opts): New constant.
89095         (human_options): Renamed from human_block_size, with new signature
89096         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89097         * lib/human.h: Add copyright and authorship notice.
89098         Include <limits.h> and <stdbool.h> unconditionally.
89099         (PARAMS): Remove.  All uses removed.
89100         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89101         (enum human_inexact_style): Remove tag; now a nameless enum.
89102         (human_floor, human_ceiling, human_round_to_even): Now have
89103         values 2, 0, 1 rather than -1, 1, 0.
89104         (human_group_digits, human_suppress_point_zero, human_autoscale,
89105         human_base_1024, human_SI, human_B): New constants.
89106         (human_readable_inexact, human_block_size): Remove.
89107         (human_readable): Size args are now uintmax_t, not int.
89108         (human_options): New decl.
89109
89110         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89111         unnecessary now that we assume C89 or better.  This change
89112         imported from coreutils.
89113
89114         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89115         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89116         in the 2003-05-30 sync from glibc.
89117
89118         .h files should stand alone, but we shouldn't include <sys/types.h>
89119         if we can get away with just <stddef.h>.
89120
89121         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89122         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89123         rather than <sys/types.h>, as we merely need size_t.
89124         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89125         to get size_t.
89126         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89127         Include <stdio.h>, to get FILE.
89128         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89129         memcasecmp.h has included <stddef.h> and all we need is size_t.
89130         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89131         our interface, instead of including <sys/types.h>
89132
89133 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89134
89135         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89136         now, as glibc mktime is buggy on non-glibc systems.
89137
89138 2003-06-03  Karl Berry  <karl@gnu.org>
89139
89140         * config/config.sub: update from prep.
89141
89142 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89143
89144         [from coreutils]
89145         Fix some minor time-related bugs with POSIX time arguments.
89146         Some valid time stamps were being rejected (notably -1, and
89147         time stamps before 1900 on 64-bit hosts).  And some invalid
89148         time stamps were being accepted, e.g. September 31.
89149
89150         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89151         that we can return (time_t) -1 successfully.
89152         * lib/posixtm.c: Likewise.
89153         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89154         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89155         (t): Remove static var.
89156         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89157         of static var.  All uses changed.
89158         (year): Do not reject years before 1900; they can occur with
89159         64-bit time_t.
89160         (posix_time_parse): Do not check for out-of-range components;
89161         that is now the caller's responsibility, since our checks were
89162         only approximations.
89163         (posixtime): Use mktime to check for out-of-range components,
89164         since it knows them exactly.
89165         If mktime returns (time_t) -1, check whether an error actually occurred
89166         by invoking localtime on -1.
89167         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89168         posixtime failures better.
89169         Improve the test data (in comments only).
89170
89171 2003-06-02  Karl Berry  <karl@gnu.org>
89172
89173         * config/mkinstalldirs (version): new variable.
89174         (--version): new option.
89175         (usage): improve message.
89176
89177 2003-05-30  Karl Berry  <karl@gnu.org>
89178
89179         * lib/mktime.c: update from libc.
89180
89181 2003-05-30  Bruno Haible  <bruno@clisp.org>
89182
89183         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89184         * config/config.rpath: Upgrade to gettext-0.12.1.
89185
89186 2003-05-30  Bruno Haible  <bruno@clisp.org>
89187
89188         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89189         * m4/nls.m4: New file, from gettext-0.12.1.
89190         * m4/po.m4: New file, from gettext-0.12.1.
89191         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89192
89193 2003-05-30  Bruno Haible  <bruno@clisp.org>
89194
89195         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89196         * lib/localcharset.h: Likewise.
89197         * lib/localcharset.c: Likewise.
89198
89199 2003-05-29  Karl Berry  <karl@gnu.org>
89200
89201         * config/config.rpath: update from gettext.
89202
89203 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89204
89205         Assume the headers required for C89 freestanding compilers.
89206         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89207         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89208         * m4/human.m4 (gl_HUMAN): Likewise.
89209         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89210         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89211         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89212         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89213         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89214         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89215
89216 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89217
89218         Assume the headers required for C89 freestanding compilers.
89219         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89220         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89221         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89222         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89223         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89224         define, since <limits.h> is guaranteed to do that.
89225         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89226         * lib/exclude.c: Include <stdbool.h> unconditionally.
89227         * lib/tempname.c: Include <stddef.h> unconditionally.
89228         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89229         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89230         <stddef.h> does that.
89231         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89232         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89233         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89234         needed.
89235         * lib/xstrtol.c: Likewise.
89236         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89237         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89238
89239         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89240         warnings on some platforms.
89241
89242         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89243         arbitrarily.
89244
89245 2003-05-26  Jim Meyering  <jim@meyering.net>
89246
89247         Merge in a change from coreutils:
89248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89249         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89250         that condition, rather than `-1' which is slightly misleading.
89251         Change the name of the cache variable to have the gl_ prefix.
89252         Prompted by a patch from Richard Dawe for DJGPP.
89253
89254 2003-05-24  Karl Berry  <karl@gnu.org>
89255
89256         * config/config.guess: update from prep.
89257
89258 2003-05-22  Karl Berry  <karl@gnu.org>
89259
89260         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89261
89262 2003-05-20  Karl Berry  <karl@gnu.org>
89263
89264         * config/config.guess: update from prep.
89265
89266 2003-05-18  Karl Berry  <karl@gnu.org>
89267
89268         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89269         might actually be set by the user.
89270
89271         * config/depcomp, install-sh, mdate-sh: update from automake.
89272
89273 2003-05-17  Bruno Haible  <bruno@clisp.org>
89274
89275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89276         invalid expansion for AC_EGREP_CPP.
89277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89278         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89279         Suggested by Akim Demaille <akim@epita.fr> in
89280         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89281
89282 2003-05-12  Jim Meyering  <jim@meyering.net>
89283
89284         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89285         the space-padded-by-default conversion specifiers, %e, %k, %l.
89286
89287 2003-05-12  Bruno Haible  <bruno@clisp.org>
89288
89289         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89290         the string is longer than 4 KB.
89291
89292 2003-05-11  Karl Berry  <karl@gnu.org>
89293
89294         * config/config.{guess,sub}: update from prep.
89295
89296 2003-05-09  Bruno Haible  <bruno@clisp.org>
89297
89298         * modules/error: Add m4/strerror_r.m4 to file list.
89299
89300 2003-05-03  Bruno Haible  <bruno@clisp.org>
89301
89302         Upgrade to Unicode-4.0.
89303         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89304         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89305         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89306         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89307         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89308         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89309         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89310         Change width of U+E0100..U+E01EF from 1 to 0.
89311
89312 2003-04-25  Jim Meyering  <jim@meyering.net>
89313
89314         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89315         of type size_t, not int.
89316
89317 2003-04-25  Bruno Haible  <bruno@clisp.org>
89318
89319         * lib/copy-file.c: Include <stddef.h>, for size_t.
89320
89321 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89322
89323         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89324         code which expansion is under static control.  Patch imported from
89325         Akim Demaille's patch to Bison; see
89326         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89327
89328 2003-04-14  Bruno Haible  <bruno@clisp.org>
89329
89330         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89331
89332 2003-04-11  Jim Meyering  <jim@meyering.net>
89333
89334         Merge changes from Coreutils.
89335
89336         2003-03-22  Jim Meyering  <jim@meyering.net>
89337
89338         * lib/strftime.c (widen): Cast alloca return value to proper type.
89339
89340         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89341
89342         From GNU libc.
89343         * lib/strftime.c (my_strftime): Handle very large width
89344         specifications for numeric values correctly.  Improve checks for
89345         overflow.
89346
89347         2003-01-19  Jim Meyering  <jim@meyering.net>
89348
89349         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89350         definitions.
89351         (nl_get_alt_digit) [! defined my_strftime]: Define.
89352         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89353         _nl_get_alt_digit and _nl_get_walt_digit.
89354
89355         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89356         libc. These changes have no effect outside of _LIBC.
89357
89358 2003-04-10  Bruno Haible  <bruno@clisp.org>
89359
89360         * modules/findprog: New file.
89361         * MODULES.html.sh (func_all_modules): Add it.
89362
89363 2003-04-10  Bruno Haible  <bruno@clisp.org>
89364
89365         * m4/findprog.m4: New file.
89366         * m4/eaccess.m4: New file.
89367
89368 2003-04-10  Bruno Haible  <bruno@clisp.org>
89369
89370         * lib/findprog.h: New file, from GNU gettext.
89371         * lib/findprog.c: New file, from GNU gettext.
89372
89373 2003-04-05  Jim Meyering  <jim@meyering.net>
89374
89375         Merge changes from Coreutils.
89376
89377         * lib/exclude.h (PARAMS): Remove definition and uses.
89378         * lib/exclude.c: Remove uses of `PARAMS'.
89379
89380         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89381         Add test-cases for DOS filenames. Declare program_name.
89382         (main): Set up program_name.  Patch by Rich Dawe.
89383
89384         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89385         error from mntctl.
89386         Use mntctl's return value to drive the entry-processing loop, since
89387         we can't rely on the value of the vmt_length member in the last
89388         entry.  On some systems doing so could result in exhausting
89389         virtual memory.  Based in part on a patch from Mike Jetzer.
89390
89391 2003-04-04  Bruno Haible  <bruno@clisp.org>
89392
89393         * modules/linebreak: New file.
89394         * MODULES.html.sh (func_all_modules): Add it.
89395
89396 2003-04-04  Bruno Haible  <bruno@clisp.org>
89397
89398         * m4/linebreak.m4: New file.
89399
89400 2003-04-04  Bruno Haible  <bruno@clisp.org>
89401
89402         * lib/linebreak.h: New file, from GNU gettext.
89403         * lib/linebreak.c: New file, from GNU gettext with slight
89404         modifications.
89405         * lib/lbrkprop.h: New file, from GNU gettext.
89406
89407 2003-04-03  Bruno Haible  <bruno@clisp.org>
89408
89409         * modules/utf8-ucs4: New file.
89410         * modules/utf16-ucs4: New file.
89411         * modules/ucs4-utf8: New file.
89412         * modules/ucs4-utf16: New file.
89413         * MODULES.html.sh (func_all_modules): Add them.
89414
89415 2003-04-03  Bruno Haible  <bruno@clisp.org>
89416
89417         * m4/utf-ucs4.m4: New file.
89418         * m4/ucs4-utf.m4: New file.
89419
89420 2003-04-03  Bruno Haible  <bruno@clisp.org>
89421
89422         * lib/utf8-ucs4.h: New file, from GNU gettext.
89423         * lib/utf16-ucs4.h: New file, from GNU gettext.
89424         * lib/ucs4-utf8.h: New file, from GNU gettext.
89425         * lib/ucs4-utf16.h: New file, from GNU gettext.
89426
89427 2003-04-02  Bruno Haible  <bruno@clisp.org>
89428
89429         * modules/binary-io: New file.
89430         * MODULES.html.sh (func_all_modules): Add it.
89431
89432 2003-04-02  Bruno Haible  <bruno@clisp.org>
89433
89434         * lib/binary-io.h: New file, from GNU gettext.
89435
89436 2003-04-01  Bruno Haible  <bruno@clisp.org>
89437
89438         * modules/pathname: New file.
89439         * MODULES.html.sh (func_all_modules): Add it.
89440
89441 2003-04-01  Bruno Haible  <bruno@clisp.org>
89442
89443         * lib/pathname.h: New file, from GNU gettext.
89444         * lib/concatpath.c: New file, from GNU gettext.
89445
89446 2003-03-30  Bruno Haible  <bruno@clisp.org>
89447
89448         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89449
89450 2003-03-30  Bruno Haible  <bruno@clisp.org>
89451
89452         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89453         function chown() doesn't exist.
89454
89455 2003-03-28  Bruno Haible  <bruno@clisp.org>
89456
89457         * modules/copy-file: New file.
89458         * MODULES.html.sh (func_all_modules): Add it.
89459
89460 2003-03-28  Bruno Haible  <bruno@clisp.org>
89461
89462         * m4/copy-file.m4: New file.
89463
89464 2003-03-28  Bruno Haible  <bruno@clisp.org>
89465
89466         * lib/copy-file.h: New file, from GNU gettext.
89467         * lib/copy-file.c: New file, from GNU gettext.
89468
89469 2003-03-18  Jim Meyering  <jim@meyering.net>
89470
89471         * lib/quote.c (quote_n): Fix typo in comment.
89472
89473 2003-03-18  Bruno Haible  <bruno@clisp.org>
89474
89475         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89476         checking.
89477         * m4/onceonly_2_57.m4: Likewise.
89478
89479 2003-03-17  Bruno Haible  <bruno@clisp.org>
89480
89481         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89482         (m4_quote): Remove macro.
89483         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89484
89485 2003-03-14  Jim Meyering  <jim@meyering.net>
89486
89487         Merge changes from Coreutils.
89488         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89489         to be const, in order to avoid warnings.
89490         (obstack_room): Likewise.
89491         (obstack_empty_p): Likewise.
89492
89493 2003-03-14  Bruno Haible  <bruno@clisp.org>
89494
89495         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89496         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89497
89498 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89499
89500         Merge changes from Bison.
89501         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89502         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89503         when compiling Bison 1.875's `bitset bset = obstack_alloc
89504         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89505         * lib/hash.c: Include <stdbool.h> unconditionally.
89506
89507 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89508
89509         * m4/onceonly.m4 (m4_quote): New macro.
89510         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89511         Quote AC_FOREACH variable-expansions properly.
89512
89513 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89514
89515         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89516
89517 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89518
89519         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89520         Reported by Bruce Becker; see:
89521         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89522
89523 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89524             Bruno Haible  <bruno@clisp.org>
89525
89526         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89527         Reported by John Hughes, see
89528         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89529
89530 2003-02-20  Bruno Haible  <bruno@clisp.org>
89531
89532         * MODULES.html.sh (func_all_modules): Add poll.
89533
89534 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89535
89536         * modules/poll: New file.
89537
89538 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89539
89540         * lib/poll_.h: New file.
89541         * lib/poll.c: New file.
89542
89543 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89544
89545         * m4/poll.m4: New file.
89546
89547 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89548
89549         * modules/mathl: New file.
89550
89551 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89552
89553         * lib/mathl.h: New file.
89554         * lib/acosl.c: New file.
89555         * lib/asinl.c: New file.
89556         * lib/atanl.c: New file.
89557         * lib/ceill.c: New file.
89558         * lib/cosl.c: New file.
89559         * lib/expl.c: New file.
89560         * lib/floorl.c: New file.
89561         * lib/frexpl.c: New file.
89562         * lib/ldexpl.c: New file.
89563         * lib/logl.c: New file.
89564         * lib/sincosl.c: New file.
89565         * lib/sinl.c: New file.
89566         * lib/sqrtl.c: New file.
89567         * lib/tanl.c: New file.
89568         * lib/trigl.c: New file.
89569         * lib/trigl.h: New file.
89570
89571 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89572
89573         * m4/mathl.m4: New file.
89574
89575 2003-02-18  Bruno Haible  <bruno@clisp.org>
89576
89577         * MODULES.html.sh (func_all_modules): Add mathl.
89578
89579 2003-02-17  Bruno Haible  <bruno@clisp.org>
89580
89581         * modules/mkdtemp: New module.
89582         * MODULES.html.sh (func_all_modules): Add it.
89583
89584 2003-02-17  Bruno Haible  <bruno@clisp.org>
89585
89586         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89587
89588 2003-02-17  Bruno Haible  <bruno@clisp.org>
89589
89590         * lib/mkdtemp.h: New file, from GNU gettext.
89591         * lib/mkdtemp.c: New file, from GNU gettext.
89592
89593 2003-02-02  Jim Meyering  <jim@meyering.net>
89594
89595         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89596         e.g. glibc-2.2.93.
89597
89598 2003-01-31  Bruno Haible  <bruno@clisp.org>
89599
89600         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89601         'rpl_rename'.
89602         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89603         'rpl_strnlen'.
89604         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89605         'rpl_strtod'.
89606         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89607         'rpl_utime'.
89608
89609 2003-01-31  Bruno Haible  <bruno@clisp.org>
89610
89611         * lib/rename.c: #undef rename before defining rpl_rename.
89612         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89613
89614 2003-01-30  Bruno Haible  <bruno@clisp.org>
89615
89616         * modules/vasnprintf, modules/vasprintf: New modules.
89617         * MODULES.html.sh (func_all_modules): Add them.
89618
89619 2003-01-30  Bruno Haible  <bruno@clisp.org>
89620
89621         * m4/signed.m4: New file, from GNU gettext.
89622         * m4/longdouble.m4: New file, from GNU gettext.
89623         * m4/wchar_t.m4: New file, from GNU gettext.
89624         * m4/wint_t.m4: New file, from GNU gettext.
89625         * m4/vasnprintf.m4: New file.
89626         * m4/vasprintf.m4: New file.
89627
89628 2003-01-30  Bruno Haible  <bruno@clisp.org>
89629
89630         * lib/printf-args.h: New file, from GNU gettext.
89631         * lib/printf-args.c: New file, from GNU gettext.
89632         * lib/printf-parse.h: New file, from GNU gettext.
89633         * lib/printf-parse.c: New file, from GNU gettext.
89634         * lib/vasnprintf.h: New file, from GNU gettext.
89635         * lib/vasnprintf.c: New file, from GNU gettext.
89636         * lib/asnprintf.c: New file, from GNU gettext.
89637         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89638         * lib/vasprintf.c: New file, from GNU gettext.
89639         * lib/asprintf.c: New file, from GNU gettext.
89640
89641 2003-01-29  Bruno Haible  <bruno@clisp.org>
89642
89643         * modules/stpncpy: New module.
89644         * MODULES.html.sh (func_all_modules): Add it.
89645
89646 2003-01-29  Bruno Haible  <bruno@clisp.org>
89647
89648         * m4/stpncpy.m4: New file.
89649
89650 2003-01-29  Bruno Haible  <bruno@clisp.org>
89651
89652         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89653         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89654
89655 2003-01-28  Bruno Haible  <bruno@clisp.org>
89656
89657         * modules/c-ctype: New module.
89658         * MODULES.html.sh (func_all_modules): Add it.
89659
89660 2003-01-28  Bruno Haible  <bruno@clisp.org>
89661
89662         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89663         Paul Eggert.
89664         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89665         Paul Eggert.
89666
89667 2003-01-27  Bruno Haible  <bruno@clisp.org>
89668
89669         * modules/xsetenv: New module.
89670         * MODULES.html.sh (func_all_modules): Add it.
89671
89672 2003-01-27  Bruno Haible  <bruno@clisp.org>
89673
89674         * lib/xsetenv.h: New file, from GNU gettext.
89675         * lib/xsetenv.c: New file, from GNU gettext.
89676
89677 2003-01-23  Jim Meyering  <jim@meyering.net>
89678
89679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89680         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89681
89682 2003-01-23  Bruno Haible  <bruno@clisp.org>
89683
89684         * modules/minmax: New module.
89685         * MODULES.html.sh (func_all_modules): Add it.
89686
89687 2003-01-23  Bruno Haible  <bruno@clisp.org>
89688
89689         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89690         Eggert.
89691
89692 2003-01-22  Bruno Haible  <bruno@clisp.org>
89693
89694         * modules/exit: New module.
89695         * MODULES.html.sh (func_all_modules): Add it.
89696
89697 2003-01-22  Bruno Haible  <bruno@clisp.org>
89698
89699         * lib/exit.h: New file, from GNU gettext.
89700
89701 2003-01-19  Bruno Haible  <bruno@clisp.org>
89702
89703         * gnulib-tool: Recognize option --extract-maintainer.
89704         (func_get_maintainer): New function.
89705         * modules/*: Add Maintainer entry.
89706
89707 2003-01-16  Jim Meyering  <jim@meyering.net>
89708
89709         * m4/regex.m4: The `regex' struct is both input and output.
89710         Initialize it before each use.  Patch by Tim Waugh.
89711
89712 2003-01-16  Bruno Haible  <bruno@clisp.org>
89713
89714         * MODULES.html.sh: Add a table of contents. Add the module name as
89715         leftmost column. Add hyperlinks.
89716
89717 2003-01-15  Bruno Haible  <bruno@clisp.org>
89718
89719         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89720
89721 2003-01-15  Bruno Haible  <bruno@clisp.org>
89722
89723         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89724         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89725         suffix.
89726
89727 2003-01-15  Bruno Haible  <bruno@clisp.org>
89728
89729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89730
89731 2003-01-15  Bruno Haible  <bruno@clisp.org>
89732
89733         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89734         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89735
89736 2003-01-14  Jim Meyering  <jim@meyering.net>
89737
89738         * lib/same.c (same_name): Tweak a comment.
89739
89740 2003-01-14  Bruno Haible  <bruno@clisp.org>
89741
89742         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89743         when a string comparison is sufficient.
89744
89745 2003-01-14  Bruno Haible  <bruno@clisp.org>
89746
89747         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89748         'unsigned int'.
89749
89750 2003-01-14  Bruno Haible  <bruno@clisp.org>
89751
89752         * lib/hash-pjw.c: Add comment about low quality of this function.
89753
89754 2003-01-13  Bruno Haible  <bruno@clisp.org>
89755
89756         * modules/stpcpy: Distribute lib/stpcpy.h.
89757         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89758
89759 2003-01-13  Bruno Haible  <bruno@clisp.org>
89760
89761         * modules/*: Add a description.
89762         * modules/strpbrk: Fix Makefile.am snippet.
89763         * modules/strtoimax: Fix dependencies.
89764         * modules/strtoumax: Likewise.
89765
89766 2003-01-13  Bruno Haible  <bruno@clisp.org>
89767
89768         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89769         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89770         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89771
89772 2003-01-13  Bruno Haible  <bruno@clisp.org>
89773
89774         * gnulib-tool (func_create_testdir): Store config/* files in the main
89775         directory.
89776         * config.rpath: Move to ...
89777         * config/config.rpath: ... here.
89778         * modules/gettext: Contains config/config.rpath, not config.rpath.
89779         * modules/iconv: Likewise.
89780
89781 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89782
89783         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89784         to avoid collisions with libcurses and libreadline.
89785
89786         * m4/getstr.m4: Remove.
89787         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89788
89789 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89790
89791         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89792         to avoid collisions with libcurses and libreadline.
89793
89794         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89795         * lib/getstr.h, getstr.c: Remove.
89796         * lib/getline.c: Include "getline.h", to check interface.
89797         Move body of old getstr.c here: this defines MIN_CHUNK and
89798         declares getdelim2, which is renamed from getstr.
89799         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89800
89801         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89802         All uses changed.
89803         * lib/linebuffer.h: Likewise.
89804         (readline): Remove backward-compatibility macro.
89805
89806 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89807
89808         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89809         to avoid collisions with libcurses and libreadline.
89810         * getstr: Remove.
89811         * MODULES.html.sh: Remove getstr.
89812         * modules/getline: Depend on unlocked-io, not getstr.
89813
89814 2003-01-12  Jim Meyering  <jim@meyering.net>
89815
89816         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89817
89818 2003-01-10  Bruno Haible  <bruno@clisp.org>
89819
89820         * modules/alloca: Change Makefile.am requirements. Simplify Include
89821         requirements. Add lib/alloca_.h to file list.
89822
89823 2003-01-10  Bruno Haible  <bruno@clisp.org>
89824
89825         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89826
89827 2003-01-10  Bruno Haible  <bruno@clisp.org>
89828
89829         * lib/alloca_.h: New file.
89830         * lib/getdate.y: Unconditionally include alloca.h.
89831         * lib/makepath.c: Likewise.
89832         * lib/setenv.c: Likewise.
89833         * lib/userspec.c: Likewise.
89834
89835 2003-01-09  Karl Berry  <karl@gnu.org>
89836
89837         * MODULES.html.sh: include `dirname $0` in PATH, to find
89838         gnulib-tool.
89839
89840 2003-01-09  Bruno Haible  <bruno@clisp.org>
89841
89842         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89843         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89844
89845 2003-01-09  Bruno Haible  <bruno@clisp.org>
89846
89847         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89848
89849 2003-01-09  Bruno Haible  <bruno@clisp.org>
89850
89851         * lib/stdbool.h.in: New file.
89852
89853 2003-01-09  Bruno Haible  <bruno@clisp.org>
89854
89855         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89856         * MODULES.html.sh: Likewise.
89857
89858 2003-01-08  Jim Meyering  <jim@meyering.net>
89859
89860         * lib/full-write.c: Undefine and define-away `const' after inclusion
89861         of errno.h, not before.  Suggestion from Bruno Haible.
89862
89863 2003-01-08  Bruno Haible  <bruno@clisp.org>
89864
89865         * modules/full-read: Depend on full-write.
89866
89867 2003-01-08  Bruno Haible  <bruno@clisp.org>
89868
89869         * lib/safe-read.c: Include specification header first, to ensure its
89870         selfcontainedness.
89871         * lib/full-write.c: Likewise.
89872
89873 2003-01-07  Jim Meyering  <jim@meyering.net>
89874
89875         * lib/full-write.c: Rework so that it may serve to define full_read,
89876         too.
89877         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89878
89879 2003-01-07  Bruno Haible  <bruno@clisp.org>
89880
89881         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89882         <inttypes.h>.
89883         * lib/xstrtol.h: Likewise.
89884         * lib/xstrtoimax.c: Likewise.
89885         * lib/xstrtoumax.c: Likewise.
89886         * lib/human.h: Likewise.
89887
89888         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89889         on systems that have <inttypes.h> but not <stdint.h>.
89890
89891 2003-01-07  Bruno Haible  <bruno@clisp.org>
89892
89893         * MODULES.html.sh: Add copyright notice.
89894         (missed_files): Omit CVS directory entries.
89895         (func_module): Make it work with sed-3.02.
89896         * MODULES.txt: Remove file.
89897
89898 2003-01-06  Jim Meyering  <jim@meyering.net>
89899
89900         * lib/version-etc.c: Update year in translatable copyright string.
89901
89902 2003-01-03  Karl Berry  <karl@gnu.org>
89903
89904         * config/config.{guess,sub}: update from prep.
89905
89906 2003-01-02  Karl Berry  <karl@gnu.org>
89907
89908         * doc/COPYING.DOC: belatedly updated to 1.2.
89909
89910 2003-01-01  Karl Berry  <karl@gnu.org>
89911
89912         * gnulib-tool (func_verify_module): report module name $module in
89913         error message, not $1.
89914         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89915         be created, only if it doesn't exist.
89916         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89917
89918 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89919
89920         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89921
89922 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89923
89924         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89925         memcmp if strcoll doesn't work.
89926
89927 2002-12-31  Bruno Haible  <bruno@clisp.org>
89928
89929         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89930         nonempty.
89931
89932 2002-12-31  Bruno Haible  <bruno@clisp.org>
89933
89934         * lib/memcoll.c (STRCOLL): New macro.
89935         (memcoll): Use it.
89936
89937 2002-12-31  Bruno Haible  <bruno@clisp.org>
89938
89939         * lib/localcharset.h: New file.
89940         * lib/localcharset.c: Include it.
89941         * lib/unicodeio.c: Likewise.
89942
89943 2002-12-31  Bruno Haible  <bruno@clisp.org>
89944
89945         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89946         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89947
89948 2002-12-31  Bruno Haible  <bruno@clisp.org>
89949
89950         * lib/getline.h: Include <stddef.h>, for size_t.
89951
89952         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89953         * lib/unicodeio.c: Don't include <stddef.h>.
89954
89955 2002-12-31  Bruno Haible  <bruno@clisp.org>
89956
89957         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89958         HAVE_TM_ZONE.
89959
89960 2002-12-24  Karl Berry  <karl@gnu.org>
89961
89962         * config/config.guess: update from prep.
89963
89964 2002-12-24  Bruno Haible  <bruno@clisp.org>
89965
89966         General infrasructure.
89967         * m4/README: Rewritten.
89968         * m4/onceonly.m4: New file.
89969         * m4/onceonly_2_57.m4: New file.
89970
89971         Module atexit.
89972         * m4/atexit.m4: New file.
89973
89974         Module strtod.
89975         * m4/strtod.m4: New file.
89976
89977         Module strtol.
89978         * m4/strtol.m4: New file.
89979
89980         Module strtoul.
89981         * m4/strtoul.m4: New file.
89982
89983         Module memchr.
89984         * m4/memchr.m4: New file.
89985
89986         Module memcmp.
89987         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89988         (jm_FUNC_MEMCMP): Invoke it.
89989
89990         Module memcpy.
89991         * m4/memcpy.m4: New file.
89992
89993         Module memmove.
89994         * m4/memmove.m4: New file.
89995
89996         Module memset.
89997         * m4/memset.m4: New file.
89998
89999         Module strcspn.
90000         * m4/strcspn.m4: New file.
90001
90002         Module strpbrk.
90003         * m4/strpbrk.m4: New file.
90004
90005         Module strstr.
90006         * m4/strstr.m4: New file.
90007
90008         Module strerror.
90009         * m4/strerror.m4: New file.
90010
90011         Module mktime.
90012         * m4/mktime.m4: Renamed from jm-mktime.m4.
90013         (gl_PREREQ_MKTIME): New macro.
90014         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90015
90016         Module malloc.
90017         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90018         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90019         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90020
90021         Module realloc.
90022         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90023         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90024         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90025
90026         Module strftime.
90027         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90028         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90029         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90030         gl_TM_GMTOFF.
90031         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90032
90033         Module xalloc.
90034         * m4/xalloc.m4: New file.
90035
90036         Module alloca.
90037         * m4/alloca.m4: New file.
90038
90039         Module putenv.
90040         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90041         (jm_FUNC_PUTENV): Invoke it.
90042
90043         Module setenv.
90044         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90045         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90046         when invoked twice.
90047         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90048         gt_FUNC_SETENV.
90049
90050         Module memrchr.
90051         * m4/memrchr.m4: New file.
90052
90053         Module stpcpy.
90054         * m4/stpcpy.m4: New file.
90055
90056         Module strcase.
90057         * m4/strcase.m4: New file.
90058
90059         Module strdup.
90060         * m4/strdup.m4: New file.
90061
90062         Module strnlen.
90063         * m4/strnlen.m4: New file.
90064
90065         Module strndup.
90066         * m4/strndup.m4: New file.
90067
90068         Module xstrtod.
90069         * m4/xstrtod.m4: New file.
90070
90071         Module xstrtol.
90072         * m4/xstrtol.m4: New file.
90073
90074         Module getdate.
90075         * m4/getdate.m4: New file.
90076
90077         Module unlocked-io.
90078         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90079         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90080         * m4/jm-glibc-io.m4n: Remove file.
90081
90082         Module long-options.
90083         * m4/long-options.m4: New file.
90084
90085         Module md5.
90086         * m4/md5.m4: New file.
90087
90088         Module sha.
90089         * m4/sha.m4: New file.
90090
90091         Module getstr.
90092         * m4/getstr.m4: New file.
90093
90094         Module getline.
90095         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90096         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90097         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90098         simply getline. Infoke gl_PREREQ_GETLINE.
90099
90100         Module obstack.
90101         * m4/obstack.m4: New file.
90102
90103         Module hash.
90104         * m4/hash.m4: New file.
90105
90106         Module readtokens.
90107         * m4/readtokens.m4: New file.
90108
90109         Module strverscmp.
90110         * m4/strverscmp.m4: New file.
90111
90112         Module stdbool.
90113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90114         OSF/1.
90115
90116         Module strtoll.
90117         * m4/strtoll.m4: New file.
90118
90119         Module strtoull.
90120         * m4/strtoull.m4: New file.
90121
90122         Module strtoimax.
90123         * m4/strtoimax.m4: New file.
90124
90125         Module strtoumax.
90126         * m4/strtoumax.m4: New file.
90127
90128         Module xstrtoimax.
90129         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90130         jm_AC_PREREQ_XSTRTOIMAX.
90131         Moved the strtol prerequisites to strtol.m4.
90132         Moved the strtoll prerequisites to strtoll.m4.
90133         Moved the strtoimax prerequisites to strtoimax.m4.
90134
90135         Module xstrtoumax.
90136         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90137         jm_AC_PREREQ_XSTRTOUMAX.
90138         Moved the strtoul prerequisites to strtoul.m4.
90139         Moved the strtoull prerequisites to strtoull.m4.
90140         Moved the strtoumax prerequisites to strtoumax.m4.
90141
90142         Module chown.
90143         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90144         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90145
90146         Module dup2.
90147         * m4/dup2.m4: New file.
90148
90149         Module ftruncate.
90150         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90151         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90152
90153         Module getgroups.
90154         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90155         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90156
90157         Module gettimeofday.
90158         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90159         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90160         gl_PREREQ_GETTIMEOFDAY.
90161
90162         Module mkdir.
90163         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90164         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90165
90166         Module mkstemp.
90167         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90168         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90169         jm_AC_TYPE_UINTMAX_T.
90170         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90171
90172         Module stat.
90173         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90174         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90175
90176         Module lstat.
90177         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90178         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90179
90180         Module timespec.
90181         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90182         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90183         * m4/st_mtim.m4: Indentation.
90184
90185         Module nanosleep.
90186         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90187         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90188         gl_PREREQ_NANOSLEEP.
90189
90190         Module regex.
90191         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90192         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90193         (gl_REGEX): New macro.
90194
90195         Module rename.
90196         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90197         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90198
90199         Module rmdir.
90200         * m4/rmdir.m4: New file.
90201
90202         Module utime.
90203         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90204         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90205         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90206
90207         Module dirname.
90208         * m4/dirname.m4: New file.
90209
90210         Module getopt.
90211         * m4/getopt.m4: New file.
90212
90213         Module unistd-safer.
90214         * m4/unistd-safer.m4: New file.
90215
90216         Module fnmatch.
90217         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90218         declaration.
90219         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90220         (gl_FUNC_FNMATCH_POSIX): New macro.
90221         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90222         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90223         simply fnmatch.
90224
90225         Module exclude.
90226         * m4/exclude.m4: New file.
90227
90228         Module human.
90229         * m4/human.m4: New file.
90230
90231         Module acl.
90232         * m4/acl.m4: Nop.
90233
90234         Module backupfile.
90235         * m4/backupfile.m4: New file.
90236         * m4/d-ino.m4: Indentation.
90237
90238         Module fsusage.
90239         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90240         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90241         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90242
90243         Module dirfd.
90244         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90245         requirements.
90246
90247         Module euidaccess.
90248         * m4/euidaccess.m4: New file.
90249
90250         Module file-type.
90251         * m4/file-type.m4: New file.
90252
90253         Module fileblocks.
90254         * m4/fileblocks.m4: New file.
90255
90256         Module filemode.
90257         * m4/filemode.m4: New file.
90258
90259         Module isdir.
90260         * m4/isdir.m4: New file.
90261
90262         Module lchown.
90263         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90264         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90265
90266         Module makepath.
90267         * m4/makepath.m4: New file.
90268
90269         Module modechange.
90270         * m4/modechange.m4: New file.
90271
90272         Module mountlist.
90273         * m4/mountlist.m4: New file.
90274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90275         Indentation.
90276
90277         Module path-concat.
90278         * m4/path-concat.m4: New file.
90279
90280         Module pathmax.
90281         * m4/pathmax.m4: New file.
90282
90283         Module same.
90284         * m4/same.m4: New file.
90285
90286         Module save-cwd.
90287         * m4/save-cwd.m4: New file.
90288
90289         Module savedir.
90290         * m4/savedir.m4: New file.
90291
90292         Module xgetcwd.
90293         * m4/xgetcwd.m4: New file.
90294         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90295
90296         Module xreadlink.
90297         * m4/xreadlink.m4: New file.
90298
90299         Module safe-read.
90300         * m4/safe-read.m4: New file.
90301
90302         Module safe-write.
90303         * m4/safe-write.m4: New file.
90304
90305         Module closeout.
90306         * m4/closeout.m4: New file.
90307
90308         Module stdio-safer.
90309         * m4/stdio-safer.m4: New file.
90310
90311         Module getpass.
90312         * m4/getpass.m4: New file.
90313
90314         Module getugroups.
90315         * m4/getugroups.m4: New file.
90316
90317         Module group-member.
90318         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90319         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90320
90321         Module idcache.
90322         * m4/idcache.m4: New file.
90323
90324         Module userspec.
90325         * m4/userspec.m4: New file.
90326
90327         Module gettime.
90328         * m4/clock_time.m4: New file.
90329         * m4/gettime.m4: New file.
90330
90331         Module settime.
90332         * m4/settime.m4: New file.
90333
90334         Module posixtm.
90335         * m4/posixtm.m4: New file.
90336
90337         Module gethostname.
90338         * m4/gethostname.m4: New file.
90339
90340         Module canon-host.
90341         * m4/canon-host.m4: New file.
90342
90343         Module gettext.
90344         * m4/codeset.m4: New file, from gettext-0.11.5.
90345         * m4/gettext.m4: New file, from gettext-0.11.5.
90346         * m4/glibc21.m4: New file, from gettext-0.11.5.
90347         * m4/iconv.m4: New file, from gettext-0.11.5.
90348         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90349         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90350         * m4/inttypes.m4: New file, from gettext-0.11.5.
90351         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90352         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90353         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90354         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90355         * m4/lib-link.m4: New file, from gettext-0.11.5.
90356         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90357         * m4/progtest.m4: New file, from gettext-0.11.5.
90358         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90359         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90360         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90361
90362         Module localcharset.
90363         * m4/localcharset.m4: New file.
90364
90365         Module hard-locale.
90366         * m4/hard-locale.m4: New file.
90367
90368         Module mbswidth.
90369         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90370         onceonly macros.
90371         * m4/mbrtowc.m4: Add comment.
90372
90373         Module memcasecmp.
90374         * m4/memcasecmp.m4: New file.
90375
90376         Module memcoll.
90377         * m4/memcoll.m4: New file.
90378
90379         Module unicodeio.
90380         * m4/unicodeio.m4: New file.
90381
90382         Module rpmatch.
90383         * m4/rpmatch.m4: New file.
90384
90385         Module yesno.
90386         * m4/yesno.m4: New file.
90387
90388         Module exitfail.
90389         * m4/exitfail.m4: New file.
90390
90391         Module c-stack.
90392         * m4/c-stack.m4 (gl_C_STACK): New macro.
90393         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90394
90395         Module error.
90396         * m4/error.m4 (gl_ERROR): New macro.
90397         (jm_PREREQ_ERROR): Use onceonly macros.
90398
90399         Module fatal.
90400         * m4/fatal.m4: New file.
90401
90402         Module getloadavg.
90403         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90404         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90405
90406         Module getpagesize.
90407         * m4/getpagesize.m4: New file.
90408
90409         Module getusershell.
90410         * m4/getusershell.m4: New file.
90411
90412         Module physmem.
90413         * m4/physmem.m4: New file.
90414
90415         Module posixver.
90416         * m4/posixver.m4: New file.
90417
90418         Module quotearg.
90419         * m4/quotearg.m4: New file.
90420
90421         Module quote.
90422         * m4/quote.m4: New file.
90423
90424         Module readutmp.
90425         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90426
90427         Module sig2str.
90428         * m4/sig2str.m4: New file.
90429
90430         Other.
90431         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90432         ulonglong.m4.
90433         * m4/intmax_t.m4: New file.
90434         * m4/d-type.m4: Indentation.
90435         * m4/jm-macros.m4: Update.
90436         * m4/prereq.m4 (jm_PREREQ): Update.
90437         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90438         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90439         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90440         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90441         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90442         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90443         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90444         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90445         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90446         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90447         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90448         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90449         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90450         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90451         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90452         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90453         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90454         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90455         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90456
90457 2002-12-24  Bruno Haible  <bruno@clisp.org>
90458
90459         * MODULES.txt: Update according to m4/ changes.
90460
90461         Module gettext.
90462         * config.rpath: New file, from gettext-0.11.5.
90463
90464         * modules/*: New module descriptions.
90465         * gnulib-tool: New file.
90466         * MODULES.html.sh: New file.
90467
90468 2002-12-21  Karl Berry  <karl@gnu.org>
90469
90470         * doc/fdl.texi: update to version 1.2.
90471
90472 2002-12-19  Karl Berry  <karl@gnu.org>
90473
90474         * config/config.guess: update from prep.
90475
90476 2002-12-18  Bruno Haible  <bruno@clisp.org>
90477
90478         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90479         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90480
90481 2002-12-17  Bruno Haible  <bruno@clisp.org>
90482
90483         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90484         stdlib.h, string.h.
90485
90486 2002-12-17  Bruno Haible  <bruno@clisp.org>
90487
90488         * lib/canon-host.c (strdup): Remove unused declaration.
90489
90490         * lib/fsusage.c: Include full_read.h.
90491         (get_fs_usage): Use full_read instead of safe_read.
90492
90493         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90494
90495 2002-12-12  Karl Berry  <karl@gnu.org>
90496
90497         * config/config.guess: update from prep.
90498
90499 2002-12-11  Bruno Haible  <bruno@clisp.org>
90500
90501         * m4/setenv.m4: New file, from gettext-0.11.5.
90502
90503 2002-12-11  Bruno Haible  <bruno@clisp.org>
90504
90505         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90506         not unsetenv().
90507         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90508         modifications:
90509
90510         2002-12-11  Bruno Haible  <bruno@clisp.org>
90511
90512                 * setenv.c (alloca): Fall back to malloc.
90513                 (freea): New macro.
90514                 (setenv): Use freea() to free memory allocated with alloca().
90515
90516         2002-11-13  Bruno Haible  <bruno@clisp.org>
90517
90518                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90519                 function declarations.
90520                 * unsetenv.c (unsetenv): Likewise.
90521
90522         2002-03-04  Bruno Haible  <bruno@clisp.org>
90523
90524                 Portability to AIX 4.3.3.
90525                 * unsetenv.c: New file, extracted from setenv.c.
90526                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90527
90528         2001-12-20  Bruno Haible  <bruno@clisp.org>
90529
90530                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90531                 use malloc instead. For SunOS 4.
90532
90533         2001-12-11  Bruno Haible  <bruno@clisp.org>
90534
90535                 * setenv.c: Declare alloca.
90536                 (compar_fn_t): New typedef.
90537                 (KNOWN_VALUE, STORE_VALUE): Use it.
90538
90539         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90540         setenv.h.
90541
90542 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90543
90544         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90545         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90546         Choose values that are less likely to collide with system fnmatch
90547         options.
90548         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90549         defined (e.g., a pure POSIX system).
90550         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90551         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90552
90553 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90554
90555         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90556         a pain in practice to deal with generated m4 files.  This change
90557         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90558
90559         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90560         and jm-glibc-io.m4, as they are no longer a special case.
90561         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90562         kludge and the auto-generation stuff.  Check only whether the
90563         functions are declared, not whether they exist, since older hosts
90564         that don't declare the functions can't use the optimization anyway.
90565
90566 2002-12-06  Jim Meyering  <jim@meyering.net>
90567
90568         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90569
90570         Merge in changes from libc's misc/error.c, in preparation
90571         for the merge of gnulib's changes back into libc.
90572
90573         * lib/error.c (_): Define only if not already defined.
90574         Move definition to follow all #include directives.
90575         Include unlocked-io.h only if !_LIBC.
90576         [_LIBC]: Include <libio/libioP.h>.
90577         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90578         (fflush): Tweak definition to use INTUSE.
90579         (putc): Define.
90580
90581 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90582
90583         * lib/alloca.c [defined emacs]: Include "lisp.h".
90584         (xalloc_die) [defined emacs]: New macro.
90585         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90586         [! defined emacs]: Include <xalloc.h>.
90587         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90588         (pointer): Typedef to POINTER_TYPE *.
90589         (malloc): Remove decl; we now always use xmalloc.
90590         (alloca): Use old-style definition, since Emacs needs this.
90591         Check for arithmetic overflow when computing combined size.
90592
90593 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90594
90595         Do not generate unlocked-io.h automatically, since it's easier to
90596         maintain it by hand.
90597
90598         * lib/unlocked-io.h: New file, from GNU diffutils,
90599         but with proper copyright notice and attribution.
90600         * lib/gen-uio: Remove.
90601         * lib/Makefile.am: Add copyright notice.
90602         (libfetish_a_SOURCES): Add unlocked-io.h.
90603         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90604         (DISTCLEANFILES, io_functions): Remove macros.
90605         (EXTRA_DIST): Remove gen_uio.
90606         (unlocked-io.h): Remove rule.
90607
90608 2002-12-04  Jim Meyering  <jim@meyering.net>
90609
90610         Reflect the fact that stat.c and lstat.c are no longer generated.
90611         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90612         (DISTCLEANFILES): Likewise.
90613         (EXTRA_DIST): Likewise.
90614         (all_local): Don't depend on stat.c or lstat.c.
90615         (stat.c, lstat.c): Remove rules.
90616         (EXTRA_DIST): Remove xstat.in.
90617
90618         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90619         * lib/stat.c: New file.  Contents mostly from xstat.in.
90620         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90621         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90622
90623         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90624         too.
90625         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90626
90627 2002-12-03  Jim Meyering  <jim@meyering.net>
90628
90629         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90630         but not semantics, to minimize the differences between these two files.
90631         (safe_read): Change comment to mention SAFE_READ_ERROR.
90632
90633         * lib/safe-read.c (IS_EINTR): Define.
90634         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90635
90636 2002-12-02  Jim Meyering  <jim@meyering.net>
90637
90638         * lib/safe-read.c (EINTR): Define.
90639         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90640         (INT_MAX): Provide fallback.
90641         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90642
90643         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90644
90645 2002-12-02  Bruno Haible  <bruno@clisp.org>
90646
90647         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90648         Define, taken from safe-read.c.
90649         (INT_MAX): Provide fallback.
90650         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90651         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90652
90653         * lib/safe-read.c (EINTR): Remove definition.
90654         (safe_read): Don't use EINTR if it is absent.
90655
90656 2002-12-01  Jim Meyering  <jim@meyering.net>
90657
90658         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90659         zero.
90660         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90661
90662 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90663
90664         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90665         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90666         with `if (! (value < limit)) abort ();', for readability.
90667
90668 2002-11-26  Karl Berry  <karl@gnu.org>
90669
90670         * lib/strdup.c: copy from libc again, with jim's ok.
90671         * lib/.cppi-disable: re-add strdup.c
90672
90673 2002-11-25  Karl Berry  <karl@gnu.org>
90674
90675         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90676         instead of "strtol.c".
90677
90678 2002-11-25  Karl Berry  <karl@gnu.org>
90679
90680         * config/install-sh: update from automake for variable quoting, $0 in
90681         error msgs, etc.
90682
90683         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90684         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90685         entry.
90686
90687 2002-11-25  Jim Meyering  <jim@meyering.net>
90688
90689         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90690
90691 2002-11-24  Karl Berry  <karl@gnu.org>
90692
90693         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90694         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90695
90696 2002-11-24  Jim Meyering  <jim@meyering.net>
90697
90698         Update from coreutils:
90699
90700         * lib/mktime.c: Merge in changes from libc.
90701
90702         Avoid a link-time failure on some Linux systems.
90703         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90704         (otherwise).
90705         (__mon_yday): Declare with the STATIC attribute.
90706         (__mktime_internal): Likewise.
90707         Based on a report from Greg Schafer.
90708
90709 2002-11-23  Jim Meyering  <jim@meyering.net>
90710
90711         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90712         Use `unsigned', not `int', as type of index.
90713
90714         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90715
90716         * lib/fsusage.c: Remove unneeded parentheses around operands of
90717         `defined'.
90718
90719 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90720
90721         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90722         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90723         so that we can be included first.
90724         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90725         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90726         No need to include stddef.h or sys/types.h any more.
90727         Surround local include files with "", not "<>".
90728         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90729         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90730         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90731         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90732         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90733         (ISPRINT): Remove; no longer needed now that we assume C89.
90734
90735         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90736         Preserve errno.
90737
90738         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90739         quotearg_char): Use SIZE_MAX rather than
90740         (size_t) -1 when we are talking about "infinity".
90741
90742         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90743
90744 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90745
90746         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90747         hint that one should use `if (! x) abort ();' rather than `assert
90748         (x);', and anyway it's one less thing to worry about configuring.
90749         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90750         hash_rehash, hash_insert): Use abort rather than assert.
90751
90752 2002-11-22  Bruno Haible  <bruno@clisp.org>
90753
90754         * lib/safe-read.h: Assume C89. Add comments.
90755         (safe_read): Change return type to size_t.
90756         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90757         byte counts > SSIZE_MAX correctly.
90758         * lib/safe-write.h: New file.
90759         * lib/safe-write.c: New file.
90760         * lib/full-read.h: New file.
90761         * lib/full-read.c: New file.
90762         * lib/full-write.h: Assume C89. Add comments.
90763         * lib/full-write.c: Include safe-write.h.
90764         (full_write): Rewritten to use safe_write.
90765         Suggested by Jim Meyering and Paul Eggert.
90766
90767 2002-11-21  Jim Meyering  <jim@meyering.net>
90768
90769         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90770
90771         Merge in changes from the coreutils.
90772
90773         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90774         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90775         <stdint.h>.
90776         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90777         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90778         int.  Work more efficiently if X is the same width as uintmax_t.
90779         Do not compare X to -1, to avoid bogus compiler warning.
90780         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90781         Don't assume that f_frsize and f_bsize are the same type.
90782
90783         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90784         warning on FreeBSD.
90785
90786         * lib/makepath.c (make_path): Restore umask *before* creating the final
90787         component.
90788         (make_path): Minor reformatting.
90789
90790         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90791         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90792         HAVE_MALLOC/HAVE_REALLOC.
90793
90794         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90795         dummy ones.  At least on GNU/Linux systems, `auto' means something
90796         else.
90797         From Michael Stone.
90798
90799 2002-11-21  Bruno Haible  <bruno@clisp.org>
90800
90801         Remove case insensitive option matching.
90802         * lib/argmatch.h (argcasematch): Remove declaration.
90803         (ARGCASEMATCH): Remove macro.
90804         (__xargmatch_internal): Remove case_sensitive argument.
90805         (XARGMATCH): Update.
90806         (XARGCASEMATCH): Remove macro.
90807         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90808         case_sensitive argument.
90809         (argcasematch): Remove function.
90810         (__xargmatch_internal): Remove case_sensitive argument.
90811         (main): Use XARGMATCH instead of XARGCASEMATCH.
90812
90813         * lib/xmalloc.c: Change compile-time error message. Add comment about
90814         required autoconf version.
90815
90816 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90817
90818         Merge argmatch cleanups from Bison.  Assume C89.
90819
90820         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90821         Include stdlib.h, for EXIT_FAILURE.
90822         Always include <string.h>, since we assume C89.
90823         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90824         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90825         Include <stddef.h> instead, since it's all we need for size_t.
90826         (PARAMS): Remove.  All uses removed.
90827         (ARRAY_CARDINALITY): Do not bother to #undef.
90828         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90829         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90830         Remove unnecessary parentheses.
90831         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90832         Insert necessary parentheses.
90833         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90834         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90835
90836 2002-11-19  Bruno Haible  <bruno@clisp.org>
90837
90838         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90839         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90840
90841         * lib/mbswidth.h (PARAMS): Remove macro.
90842         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90843         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90844
90845         * lib/gcd.h (PARAMS): Remove macro.
90846         (gcd): Use ANSI C function declarations.
90847         * lib/gcd.c (gcd): Likewise.
90848
90849 2002-11-15  Bruno Haible  <bruno@clisp.org>
90850
90851         * lib/strcspn.c: Include <stddef.h>.
90852         (strcspn): Use ANSI C function declaration. Change return type to
90853         size_t. Use NULL.
90854         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90855         (strpbrk): Use NULL.
90856         * lib/strpbrk.h (PARAMS): Remove macro.
90857         (strpbrk): Use ANSI C function declaration.
90858         * lib/strstr.c: Don't include <sys/types.h>.
90859         * lib/strstr.h (PARAMS): Remove macro.
90860         (strstr): Use ANSI C function declarations.
90861
90862 2002-11-14  Karl Berry  <karl@gnu.org>
90863
90864         * config/mkinstalldirs: `do' on separate line, instead of
90865         `for var; do'.
90866
90867 2002-11-06  Bruno Haible  <bruno@clisp.org>
90868
90869         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90870         * lib/gcd.c (gcd): Likewise.
90871
90872 2002-11-05  Bruno Haible  <bruno@clisp.org>
90873
90874         * lib/gcd.h: New file, from gettext-0.11.5.
90875         * lib/gcd.c: New file, from gettext-0.11.5.
90876
90877 2002-11-05  Bruno Haible  <bruno@clisp.org>
90878
90879         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90880         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90881         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90882         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90883
90884         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90885         <libintl.h>.
90886         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90887         <libintl.h>.
90888
90889         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90890         * lib/human.c: Include gettext.h instead of <libintl.h>.
90891         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90892         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90893         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90894         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90895         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90896         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90897         (textdomain): Remove definition.
90898         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90899
90900         * lib/long-options.c: Remove include of <libintl.h> and definition of
90901         _.
90902         * lib/same.c: Remove include of <libintl.h> and definition of _.
90903
90904 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90905
90906         * lib/config.charset: A few additions for Solaris.
90907
90908 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90909
90910         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90911         * lib/localcharset.c (locale_charset): Declare as extern "C".
90912
90913 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90914
90915         * lib/config.charset: msdos in uk_UA uses CP1125.
90916
90917 2002-11-04  Bruno Haible  <bruno@clisp.org>
90918
90919         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90920         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90921         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90922         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90923         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90924
90925 2002-11-04  Bruno Haible  <bruno@clisp.org>
90926
90927         * lib/localcharset.c (locale_charset): Don't return an empty string.
90928
90929 2002-11-04  Bruno Haible  <bruno@clisp.org>
90930
90931         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90932         aliases.
90933
90934 2002-11-04  Bruno Haible  <bruno@clisp.org>
90935
90936         * lib/config.charset: Update for newest glibc. Add canonical names
90937         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90938
90939 2002-11-04  Bruno Haible  <bruno@clisp.org>
90940
90941         * lib/config.charset: Add support for NetBSD.
90942
90943 2002-11-04  Bruno Haible  <bruno@clisp.org>
90944
90945         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90946
90947 2002-11-01  Bruno Haible  <bruno@clisp.org>
90948
90949         * configure.in: Add AC_CONFIG_AUX_DIR call.
90950         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90951         test/Makefile.
90952         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90953
90954 2002-09-28  Karl Berry  <karl@gnu.org>
90955
90956         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90957         installed automake until the next release, since changes have been
90958         made.
90959
90960 2002-09-25  Karl Berry  <karl@gnu.org>
90961
90962         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90963         * lib/getopt*: copy from libc/posix.
90964         * lib/gettext.h: copy from gettext.
90965         * lib/.cppi-disable: add strdup.c, gettext.h.
90966
90967 2002-09-25  Karl Berry  <karl@gnu.org>
90968
90969         * config/srclist.txt: enable gettext.h check.
90970         * config/config.{guess,sub}: update from prep.
90971         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90972                 from automake 1.6.3.
90973         See srclist*.
90974
90975 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90976
90977         * regex.c (PATFETCH): Remove the translating fetch.
90978         (PATFETCH_RAW): Rename to PATFETCH.
90979         (set_image_of_range): New fun.
90980         (SET_RANGE_TABLE_WORK_AREA): Use it.
90981         (regex_compile): Don't translate the pattern chars so eagerly.
90982         Only do it when inserting an `exactn' bytecode or when handling
90983         a char-range.
90984         (mutually_exclusive_p): Avoid empty statement.
90985
90986 2002-07-06  Jim Meyering  <meyering@lucent.com>
90987
90988         * m4/README: Don't mention Makefile.am.in.
90989         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90990
90991 2002-07-01  Jim Meyering  <meyering@lucent.com>
90992
90993         * lib/c-stack.c: Include sys/time.h.
90994         From Volker Borchert.
90995
90996 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90997
90998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90999
91000 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91001
91002         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91003         New macro.  Use it uniformly instead of
91004         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91005         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91006         reported by Vin Shelton.
91007
91008 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91009
91010         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91011         Do not assume SA_SIGINFO behavior.
91012         Bug reported by Jim Meyering on NetBSD 1.5.2.
91013
91014 2002-06-22  Jim Meyering  <meyering@lucent.com>
91015
91016         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91017         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91018
91019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91020         now that configure.ac uses AC_GNU_SOURCE.
91021         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91022         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91023
91024         Update to latest tools.  Suggestions from Paul Eggert.
91025         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91026         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91027         * m4/fnmatch.m4: Likewise.
91028         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91029         to AC_HEADER_STDBOOL
91030
91031 2002-06-22  Jim Meyering  <meyering@lucent.com>
91032
91033         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91034         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91035
91036 2002-06-22  Jim Meyering  <meyering@lucent.com>
91037
91038         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91039
91040         * lib/exitfail.c, exitfail.h: Likewise.
91041         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91042
91043         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91044         of fnmatch.h.
91045         (EXTRA_DIST): Add fnmatch_loop.c.
91046         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91047
91048         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91049         * lib/fnmatch.c: Update from diffutils-2.8.2.
91050         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91051         * lib/fnmatch.h: Remove file.
91052
91053 2002-06-21  Jim Meyering  <meyering@lucent.com>
91054
91055         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91056         * m4/mbrtowc.m4: Likewise.
91057
91058         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91059         * m4/mbswidth.m4: Reflect name change:
91060         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91061         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91062
91063         * m4/lib-link.m4: Update from gettext-0.11.2.
91064         * m4/gettext.m4: Likewise.
91065
91066         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91067         From Alfred M. Szmidt.
91068
91069 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91070
91071         * lib/file-type.h: Report an error if neither S_ISREG nor
91072         S_IFREG is defined, instead of using a test specific to glibc
91073         2.2.  This should be safe, since POSIX requires S_ISREG and
91074         Unix Version 7 had S_IFREG.  We don't need to check for
91075         <sys/types.h> since we don't use any symbols that it defines.
91076
91077 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91078
91079         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91080         $@-t, so that each temporary file name is unique and valid in the first
91081         8 characters, for operation under DOS.
91082
91083 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91084
91085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91086
91087 2002-06-15  Jim Meyering  <meyering@lucent.com>
91088
91089         Work even with DJGPP 2.03, which lacks support for symlinks.
91090         From Richard Dawe.
91091         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91092         is defined.
91093         * lib/lchown.c (S_ISLNK): Likewise.
91094
91095 2002-06-15  Jim Meyering  <meyering@lucent.com>
91096
91097         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91098         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91099         have been included before this file.
91100
91101 2002-06-14  Jim Meyering  <meyering@lucent.com>
91102
91103         * lib/file-type.h: Use the version from diffutils-2.8.2.
91104         * lib/file-type.c: Likewise.
91105
91106 2002-06-07  Jim Meyering  <meyering@lucent.com>
91107
91108         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91109         They're needed at least for NetBSD 1.5.2.
91110         ($statxfs_includes): Include those same headers.
91111         ($statxfs_includes): Include sys/vfs.h if available.
91112         ($statxfs_includes): Likewise for sys/statvfs.h.
91113         Check for the following members in both structs statfs and statvfs:
91114         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91115
91116 2002-06-01  Jim Meyering  <meyering@lucent.com>
91117
91118         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91119         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91120
91121 2002-05-28  Jim Meyering  <meyering@lucent.com>
91122
91123         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91124         Reported by Volker Borchert.
91125
91126 2002-05-27  Jim Meyering  <meyering@lucent.com>
91127
91128         Fix a problem seen only on nonconforming systems whereby ls.c's
91129         use of localtime, and then of gettimeofday would cause trouble:
91130         the localtime call used to initialize rpl_gettimeofday's save
91131         mechanism would clobber ls's current local time information so
91132         that in any long listing the first file would always be listed
91133         with date 1970-01-01.  Analysis by Volker Borchert.
91134
91135         * lib/gettimeofday.c (localtime): Undefine.
91136         (rpl_localtime): New function.
91137
91138 2002-05-27  Jim Meyering  <meyering@lucent.com>
91139
91140         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91141         localtime.
91142
91143         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91144         use the replacement function; it wouldn't resolve at link time.
91145         Reported by Volker Borchert.
91146
91147 2002-05-22  Jim Meyering  <meyering@lucent.com>
91148
91149         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91150         file-type.h.
91151         * lib/file-type.h: New file.
91152         * lib/file-type.c (file_type): New file/function.  Extracted from
91153         diffutils.
91154
91155 2002-04-30  Jim Meyering  <meyering@lucent.com>
91156
91157         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91158
91159 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91160
91161         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91162
91163 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91164
91165         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91166         Do not check for alloca.h (no longer used) or stdbool.h (was never
91167         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91168
91169 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91170
91171         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91172
91173 2002-04-29  Jim Meyering  <meyering@lucent.com>
91174
91175         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91176         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91177         Use AC_FUNC_STRNLEN here instead.
91178
91179         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91180         With autoconf-2.53a, it's part of AC_PROG_CC.
91181
91182 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91183
91184         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91186
91187 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91188
91189         * lib/sig2str.h, lib/sig2str.c: New files.
91190         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91191
91192 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91193
91194         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91195         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91196         of 127, since 64 is the largest conceivable number for ancient
91197         nonstandard hosts.
91198         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91199
91200 2002-04-28  Jim Meyering  <meyering@lucent.com>
91201
91202         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91203
91204 2002-04-24  Jim Meyering  <meyering@lucent.com>
91205
91206         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91207         (jm_PREREQ): Use it.
91208
91209         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91210         mach/mach.h fcntl.h.
91211         Check for this function: setlocale.
91212
91213 2002-04-24  Jim Meyering  <meyering@lucent.com>
91214
91215         * lib/gettext.h: New file, from Gettext.
91216         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91217         (libfetish_a_SOURCES): Add gettext.h.
91218
91219 2002-04-16  Jim Meyering  <meyering@lucent.com>
91220
91221         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91222         ut_pid, ut_id, ut_exit.
91223
91224 2002-04-16  Jim Meyering  <meyering@lucent.com>
91225
91226         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91227         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91228         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91229
91230 2002-04-12  Jim Meyering  <meyering@lucent.com>
91231
91232         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91233         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91234         existence of the getmntinfo function.  Needed for Darwin 5.3.
91235
91236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91237         This is necessary at least on Darwin 5.3.
91238
91239         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91240         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91241         strnlen.o in the library, and that makes some versions of ranlib
91242         object.
91243
91244 2002-04-12  Jim Meyering  <meyering@lucent.com>
91245
91246         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91247
91248 2002-04-09  Jim Meyering  <meyering@lucent.com>
91249
91250         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91251         to be more precise.  Rather than saying we're checking whether the
91252         function `works', say what we're testing.
91253         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91254         Reported by Bruno Haible.
91255
91256 2002-03-10  Jim Meyering  <meyering@lucent.com>
91257
91258         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91259         Suggestion from Santiago Vila.
91260
91261 2002-03-08  Jim Meyering  <meyering@lucent.com>
91262
91263         * lib/rename.c: Mention that this wrapper is needed also on
91264         mips-dec-ultrix4.4 systems.
91265
91266 2002-03-02  Jim Meyering  <meyering@lucent.com>
91267
91268         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91269         not HAVE_CLOCK_SETTIME.
91270
91271 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91272
91273         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91274         Check for clock_settime.
91275
91276 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91277
91278         * lib/nanosleep.h: Rename to....
91279         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91280
91281         * lib/gettime.c: New file.
91282         * lib/settime.c: New file.
91283         * lib/stime.c: Remove.
91284
91285         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91286         timespec.h.  Remove nanosleep.h.
91287
91288 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91289
91290         * m4/acl.m4: New file.
91291         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91292         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91293
91294 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91295
91296         * lib/acl.c, lib/acl.h: New files.
91297         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91298
91299 2002-02-24  Jim Meyering  <meyering@lucent.com>
91300
91301         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91302         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91303         cause trouble.  Reported by Nelson Beebe.
91304
91305 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91306
91307         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91308         compilers that don't know that xalloc_die never returns.
91309
91310 2002-02-20  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/getdate.c: Regenerate using bison-1.33.
91313
91314 2002-02-17  Jim Meyering  <meyering@lucent.com>
91315
91316         * config/config.guess (main): Don't use `head -1'; it's no longer
91317         portable. Use `sed 1q' instead.
91318
91319 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91320
91321         * m4/codeset.m4: Upgrade to gettext-0.11.
91322         * m4/gettext.m4: Upgrade to gettext-0.11.
91323         * m4/glibc21.m4: Upgrade to gettext-0.11.
91324         * m4/iconv.m4: Upgrade to gettext-0.11.
91325         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91326         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91327         * m4/lib-ld.m4: New file, from gettext-0.11.
91328         * m4/lib-link.m4: New file, from gettext-0.11.
91329         * m4/lib-prefix.m4: New file, from gettext-0.11.
91330         * m4/progtest.m4: Upgrade to gettext-0.11.
91331
91332 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91333
91334         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91335         (jm_PREREQ): Use it.
91336
91337 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91338
91339         * lib/posixver.c, lib/posixver.h: New files.
91340         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91341
91342 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91343             Bruno Haible  <bruno@clisp.org>
91344
91345         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91346         (fwrite_success_callback): New declaration.
91347         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91348         print_unicode_char. Call failure callback instead of error.
91349         (fwrite_success_callback): New function.
91350         (exit_failure_callback): New function.
91351         (fallback_failure_callback): New function.
91352         (print_unicode_char): Call unicode_to_mb.
91353
91354 2002-01-26  Jim Meyering  <meyering@lucent.com>
91355
91356         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91357         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91358
91359 2002-01-26  Jim Meyering  <meyering@lucent.com>
91360
91361         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91362
91363 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91364
91365         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91366
91367 2002-01-22  Jim Meyering  <meyering@lucent.com>
91368
91369         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91370         Otherwise, some versions of automake would omit the rule that makes
91371         Makefile from Makefile.in.
91372
91373 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91374
91375         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91376         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91377         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91378         (memcoll): Set errno to zero if there is no error.
91379
91380         * lib/quotearg.c (quotearg_buffer_restyled):
91381         Fix bug with quoting buffers containing NUL when backslashing escapes.
91382         This bug was exposed by the other changes in this patch.
91383         (quotearg_n_options): New arg ARGSIZE.
91384         All callers changed.
91385         (quoting_options_from_style): New function.
91386         (quotearg_n_style): Use it.
91387         (quotearg_n_style_mem): New function.
91388
91389         * lib/quotearg.h (quotearg_n_style_mem): New function.
91390
91391 2002-01-19  Jim Meyering  <meyering@lucent.com>
91392
91393         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91394         Remove useless quotes: DF_PROG="df".
91395         * m4/strnlen.m4: New file.
91396
91397 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91398
91399         * lib/backupfile.c (ISDIGIT): Comment fix.
91400         * lib/getdate.y (ISDIGIT): Likewise.
91401         * lib/posixtm.c (ISDIGIT, year): Likewise.
91402         * lib/strverscmp.c (ISDIGIT): Likewise.
91403         * lib/userspec.c (ISDIGIT): Likewise.
91404
91405 2002-01-16  Jim Meyering  <meyering@lucent.com>
91406
91407         * lib/getdate.y: Add three semicolons, each just before a closing
91408         brace. Bison (as of version 1.31) no longer papers over that mistake.
91409
91410 2002-01-05  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91413
91414 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91415
91416         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91417         not silently exit merely because the output buffer happens to
91418         have nothing pending.
91419
91420 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91421
91422         See the big note in ../ChangeLog.
91423         * lib/human.c (suffixes): Prefer K to k for 1024.
91424         (generate_suffix_backwards): New function.
91425         (human_readable_inexact): Use it.
91426         * lib/xstrtol.c (__xstrtol): If there is no number but there
91427         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91428         Accept 'K' as well as 'k'.
91429
91430 2001-12-15  Jim Meyering  <meyering@lucent.com>
91431
91432         * lib/regex.h (__restrict_arr): Update from libc.
91433
91434         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91435         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91436         (STREQ): Define.
91437
91438 2001-12-14  Jim Meyering  <meyering@lucent.com>
91439
91440         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91441         Suggestion from Bruno Haible.
91442
91443 2001-12-10  Jim Meyering  <meyering@lucent.com>
91444
91445         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91446         xrealloc, Instead, include "xalloc.h".
91447         (initbuffer): Don't cast xmalloc return value to char*.
91448         (readline): Reword comment.
91449         Don't cast xrealloc return value to char*
91450         Return NULL, not 0.
91451
91452 2001-12-09  Jim Meyering  <meyering@lucent.com>
91453
91454         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91455         about `signed and unsigned type in conditional expression'.
91456         * lib/posixtm.c (posix_time_parse): Likewise.
91457
91458         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91459
91460         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91461         to avoid a pedantic warning.
91462
91463         * lib/getstr.c: Don't include assert.h.
91464         (getstr): Remove warning-evoking assertions.
91465         Return -1 if offset parameter is out of bounds.
91466         Change the type of a local from int to size_t.
91467
91468         * lib/strftime.c (my_strftime_localtime_r): Include this function
91469         definition in the `#if ! HAVE_TM_GMTOFF' block.
91470
91471         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91472         Include xalloc.h instead.
91473
91474 2001-12-02  Jim Meyering  <meyering@lucent.com>
91475
91476         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91477         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91478         included.
91479
91480         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91481         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91482
91483 2001-11-30  Akim Demaille  <akim@epita.fr>
91484
91485         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91486         before being defined.
91487
91488 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91489
91490         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91491         First arg is int, not unsigned.
91492         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91493         (SIZE_MAX, UINT_MAX): New macros.
91494         (quotearg_n_options): Abort if N is negative.
91495         Avoid overflow check on hosts where size_t is 64 bits and int
91496         is 32 bits, as overflow is impossible there.
91497         Fix off-by-one typo that caused unnecessary reallocation.
91498
91499 2001-11-27  Jim Meyering  <meyering@lucent.com>
91500
91501         * lib/tempname.c: Merge with version from libc.
91502         * lib/regex.c: Likewise.
91503
91504         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91505         systems for which STDC_HEADERS is 0, it was not included, resulting in
91506         a warning about an integer-to-pointer conversion problem with getenv.
91507         Reported by Volker Borchert.
91508
91509 2001-11-26  Jim Meyering  <meyering@lucent.com>
91510
91511         * lib/gtod.h: Remove file.
91512         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91513         * lib/gettimeofday.c: Don't include gtod.h.
91514         (GTOD_init): Remove function.
91515         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91516         Suggestion from Volker Borchert.
91517
91518 2001-11-23  Jim Meyering  <meyering@lucent.com>
91519
91520         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91521         it.
91522         * lib/hash.c (struct hash_table): Define it here instead.
91523
91524 2001-11-22  Jim Meyering  <meyering@lucent.com>
91525
91526         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91527
91528 2001-11-20  Jim Meyering  <meyering@lucent.com>
91529
91530         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91531         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91532
91533 2001-11-19  Jim Meyering  <meyering@lucent.com>
91534
91535         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91536         directory.  Use "conftestXXXXXX" as the template.
91537         Suggestion from Paul Eggert.
91538
91539         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91540         immediately, so the test doesn't mistakenly hit the max-open-files
91541         limit.
91542
91543 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91544
91545         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91546         (TEMPORARIES): New macro.
91547         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91548         removes an artificial limitation (e.g. HP-UX 10.20, where
91549         TMP_MAX is 17576).
91550
91551 2001-11-18  Jim Meyering  <meyering@lucent.com>
91552
91553         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91554
91555 2001-11-18  Jim Meyering  <meyering@lucent.com>
91556
91557         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91558         on SunOS 4.
91559
91560         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91561         files will be created before anything else.
91562
91563 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91566         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91567
91568 2001-11-17  Jim Meyering  <meyering@lucent.com>
91569
91570         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91571         Prompted by a report from Bob Proulx.
91572
91573         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91574         Instead, require UTILS_FUNC_MKSTEMP.
91575
91576 2001-11-17  Jim Meyering  <meyering@lucent.com>
91577
91578         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91579         Now, that's done as part of AC_FUNC_STRTOD.
91580
91581 2001-11-17  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91584         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91585         rather than group writable.  Patch by Juan F. Codagnone.
91586
91587         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91588         xrealloc, Instead, include "xalloc.h".
91589
91590         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91591         Remove explicit declarations of xmalloc, xrealloc,
91592         and xstrdup.  Instead, include "xalloc.h".
91593
91594         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91595         unlocked-io.h.
91596         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91597         Likewise.
91598         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91599
91600         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91601         Reported by Padraig Brady.
91602
91603         * lib/mkstemp.c: #undef mkstemp.
91604         Include config.h.
91605         (rpl_mkstemp): Rename from mkstemp.
91606         Protoize.
91607
91608 2001-11-16  Jim Meyering  <meyering@lucent.com>
91609
91610         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91611         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91612         determine the amount of total physical memory, use pstat_getstatic.
91613         HPUX-11 doesn't define _SC_PHYS_PAGES.
91614         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91615         If sysconf couldn't be used to determine the amount of available
91616         physical memory, use both pstat_getstatic and pstat_getdynamic.
91617         Based on a patch from Bob Proulx.
91618
91619 2001-11-10  Jim Meyering  <meyering@lucent.com>
91620
91621         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91622         (jm_PREREQ): Use it.
91623
91624 2001-11-09  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/jm-macros.m4: Require autoconf-2.52f.
91627         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91628         Use these AC_-prefixed names, not the AM_-prefixed ones.
91629
91630         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91631
91632 2001-11-05  Jim Meyering  <meyering@lucent.com>
91633
91634         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91635
91636 2001-11-04  Jim Meyering  <meyering@lucent.com>
91637
91638         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91639         $DEFS.
91640
91641 2001-11-03  Jim Meyering  <meyering@lucent.com>
91642
91643         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91644         of AC_DEFUN.
91645
91646         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91647         know the name of the variable in the macro definition.
91648
91649 2001-11-03  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91652         in argmatch_to_argument call.
91653
91654         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91655         argument.
91656
91657         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91658         e.g., a fault due to an attempt to free a NULL pointer.
91659
91660 2001-11-01  Jim Meyering  <meyering@lucent.com>
91661
91662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91663         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91664
91665 2001-11-01  Jim Meyering  <meyering@lucent.com>
91666
91667         * lib/dirfd.c, lib/dirfd.h: New files.
91668         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91669
91670         * lib/hash.c (hash_print) [TESTING]: Clean up.
91671
91672 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91673
91674         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91675         to avoid a warning if -Wall.
91676
91677 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91678
91679         * README: New file
91680         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91681         (per RMS's instructions, this is now the canonical source)
91682         * lgpl/, gpl/: New directories.
91683
91684 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91685
91686         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91687
91688 2001-10-21  Jim Meyering  <meyering@lucent.com>
91689
91690         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91691         this code would end up calling gettext even in packages built
91692         with --disable-nls.
91693         * lib/getopt.c (_): Likewise.
91694         * lib/regex.c (_): Likewise.
91695
91696 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91697
91698         * m4/error.m4 (jm_PREREQ_ERROR):
91699         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91700         AC_FUNC_STRERROR_R does that.
91701         Check for strerror declaration.
91702
91703         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91704         are supposed to have them these days.
91705         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91706         Merge changes from latest Autoconf CVS.
91707         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91708         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91709         POSIX decided to standardize on the int flavor of strerror_r.
91710
91711 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91714         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91715         Use strerror_r that is only a macro, even if it is not a function.
91716         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91717         (private_strerror): Use prototypes, not old-style function definition.
91718         (print_errno_message): New function.
91719         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91720         char*-flavored one.
91721         (error_tail, error, error_at_line): Use it.
91722
91723 2001-10-11  Jim Meyering  <meyering@lucent.com>
91724
91725         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91726         and quote_n (1, ... to avoid clobbering a buffer.
91727
91728 2001-10-05  Jim Meyering  <meyering@lucent.com>
91729
91730         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91731         hash-pjw.h.
91732         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91733         * lib/hash-pjw.h: New file.
91734
91735 2001-09-30  Jim Meyering  <meyering@lucent.com>
91736
91737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91738         `struct fsstat' has the `f_fstypename' member.
91739         Use that to define FS_TYPE, which is now used to make
91740         the getfsstat link test tighter.
91741
91742 2001-09-30  Jim Meyering  <meyering@lucent.com>
91743
91744         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91745         Include <sys/ucred.h>, for Apple Darwin.
91746         Include sys/mount.h and sys/fs_types.h only if available.
91747         (FS_TYPE): Define.
91748         (read_filesystem_list): Use FS_TYPE.
91749
91750 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91751
91752         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91753         a boolean context.
91754
91755 2001-09-29  Jim Meyering  <meyering@lucent.com>
91756
91757         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91758         [one-argument getmntent function]): Include stdio.h before mntent.h.
91759         SunOS 4.1.x needs it for the declaration of `FILE'.
91760         Patch by Volker Borchert.
91761
91762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91763         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91764         sys/fs_types.h, and make the link-test for getfsstat guard #include
91765         directives with appropriate #if HAVE_*_H tests so that we can
91766         detect getfsstat on Apple Darwin1.3.7 systems.
91767         Reported by Nelson Beebe.
91768         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91769
91770 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91771
91772         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91773         #defines strtoimax.  Also treat the other strto* functions
91774         like strtoimax.
91775
91776         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91777         Check for strtoul and strtoumax,
91778         as those declarations are made even in the signed case.
91779         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91780         Likewise, for strtol and strtoimax.
91781
91782 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91783
91784         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91785         #defines strtoimax.  Also treat the other strto* functions
91786         like strtoimax.
91787
91788         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91789         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91790         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91791
91792 2001-09-26  Jim Meyering  <meyering@lucent.com>
91793
91794         Most macros in unlocked-io.h had the wrong number of arguments.
91795         * lib/gen-uio: New script.
91796         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91797         * lib/unlocked-io.hin: Remove file.
91798         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91799         rather than trying to embed it here.
91800         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91801         Reported by Padraig Brady.
91802
91803 2001-09-25  Volker Borchert  <bt@teknon.de>
91804
91805         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91806         `result'.
91807
91808 2001-09-24  Jim Meyering  <meyering@lucent.com>
91809
91810         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91811
91812 2001-09-23  Jim Meyering  <meyering@lucent.com>
91813
91814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91815         instead of the mere test for existence of mntent.h.  The latter
91816         would get a false-positive on AIX 3.4 systems.
91817         In the outer getmntent if-block, don't die if neither of the getmntent
91818         tests succeeds.  Instead, just fall through and continue with the
91819         remaining tests.
91820
91821 2001-09-23  Jim Meyering  <meyering@lucent.com>
91822
91823         * lib/mountlist.c: Remove useless parentheses in #if directives.
91824         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91825         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91826
91827 2001-09-22  Jim Meyering  <meyering@lucent.com>
91828
91829         * m4/gettext.m4: New file.  From gettext.
91830         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91831         * m4/progtest.m4: Likewise
91832         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91833         * m4/glibc21.m4: Likewise.
91834
91835         * m4/libintl.m4: Remove.  No longer used.
91836
91837 2001-09-22  Jim Meyering  <meyering@lucent.com>
91838
91839         * lib/localcharset.c: Update from latest gettext.
91840         * lib/config.charset: Likewise.
91841
91842 2001-09-20  Jim Meyering  <meyering@lucent.com>
91843
91844         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91845         strtoimax.
91846         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91847         strtoumax.
91848
91849 2001-09-20  Jim Meyering  <meyering@lucent.com>
91850
91851         * lib/xstrtol.c (strtoimax): Guard declaration with
91852         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91853         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91854         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91855         (strtoumax): Likewise, for completeness (it wasn't necessary).
91856
91857 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91858
91859         * lib/strtoimax.c (HAVE_LONG_LONG):
91860         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91861         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91862         to work around bug in IBM C compiler.
91863
91864 2001-09-17  Jim Meyering  <meyering@lucent.com>
91865
91866         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91867         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91868         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91869         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91870         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91871         whenever the right hand side need not be expanded by the shell.
91872
91873 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91874
91875         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91876         library.  It's not correct, as some older glibcs are buggy.
91877         fnmatch wasn't fixed until glibc 2.2.
91878
91879         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91880         special shell magic here.
91881
91882 2001-09-16  Jim Meyering  <meyering@lucent.com>
91883
91884         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91885         * m4/jm-macros.m4: Require it.
91886
91887 2001-09-16  Jim Meyering  <meyering@lucent.com>
91888
91889         * lib/mkdir.c: New file.
91890
91891 2001-09-15  Jim Meyering  <meyering@lucent.com>
91892
91893         * m4/jm-macros.m4: Check for help2man.
91894
91895 2001-09-11  Jim Meyering  <meyering@lucent.com>
91896
91897         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91898         The body, by Paul Eggert, was moved here from configure.in.
91899         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91900
91901 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91902
91903         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91904         (jm_PREREQ): Use it.
91905
91906 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91907
91908         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91909         Use ssize_t, not int, to store result of readlink.
91910         Check for ssize_t overflow as well as size_t overflow,
91911         as POSIX says the result of readlink is implementation-defined
91912         when ssize_t overflows.
91913         Remove unnecessary cast to char*.
91914         Use free+malloc instead of realloc, as the storage doesn't need
91915         to be preserved and it's clearer and can be more efficient that way.
91916         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91917         * lib/xreadlink.h (xreadlink): Update prototype.
91918
91919 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91920
91921         * lib/xgetcwd.c: Revert some of the previous change; intead,
91922         fix the HAVE_GETCWD_NULL code to behave more like the
91923         !HAVE_GETCWD_NULL code used to.
91924
91925         Include "xalloc.h".
91926         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91927         invoke xalloc_die.
91928
91929 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91930
91931         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91932         sys/param.h, as pathmax.h includes them.
91933
91934 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91935
91936         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91937         (jm_PREREQ_XGETCWD): New macro.
91938
91939         * m4/getcwd.m4: New file.
91940
91941 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91942
91943         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91944         like the HAVE_GETCWD_NULL code.
91945         Include pathmax.h if not HAVE_GETCWD.
91946         Do not include xalloc.h.
91947         (INITIAL_BUFFER_SIZE): New symbol.
91948         Do not use xmalloc / xrealloc, since the caller is responsible for
91949         handling errors.  Preserve errno around `free' during failure.
91950         Do not overrun buffer when using getwd.
91951
91952 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91953
91954         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91955         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91956         getcwd (NULL, 0).
91957
91958 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91959
91960         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91961         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91962         spotted by Jim Meyering.
91963
91964 2001-09-03  Jim Meyering  <meyering@lucent.com>
91965
91966         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91967         failure.
91968
91969 2001-09-02  Jim Meyering  <meyering@lucent.com>
91970
91971         * lib/error.c: Update from GNU libc.
91972
91973 2001-09-01  Jim Meyering  <meyering@lucent.com>
91974
91975         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91976         Used by df.
91977
91978 2001-09-01  Jim Meyering  <meyering@lucent.com>
91979
91980         * lib/xreadlink.c: New file.
91981         * lib/xreadlink.h: New file.
91982         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91983         xreadlink.h.
91984
91985         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91986         doesn't conflict with sparc Solaris 7's definition in
91987         /usr/include/sys/int_types.h.
91988
91989         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91990         files.
91991         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91992         and strncasecmp as r-values.  Unixware didn't have declarations.
91993
91994 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91995
91996         * lib/xstrtol.h: Add copyright notice.
91997         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91998         LONGINT_INVALID_SUFFIX_CHAR.
91999
92000 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92001
92002         * lib/xstrtol.c (strtoimax): New decl.
92003
92004 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92005
92006         * lib/xgetcwd.c: Don't include pathmax.h.
92007         Include stdlib.h and unistd.h if available.
92008         Include xalloc.h.
92009         (xmalloc, xstrdup, free): Remove decls.
92010         (xgetcwd): Don't assume sizes fit in unsigned.
92011         Check for overflow when computing sizes.
92012         Simplify reallocation code.
92013
92014 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92015
92016         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92017         a directory's st_size can have an arbitrary value, so the old
92018         usage could waste an arbitrary amount of memory.  All uses
92019         changed.
92020         * lib/savedir.h: Update prototype.
92021
92022 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92023
92024         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92025
92026         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92027         old strtoimax.c.
92028
92029         Also, make the following further changes to make this file's
92030         configuration more similar to that of strtol.c:
92031         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92032         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92033         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92034         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92035         changed to signed values.
92036
92037         And make the following changes as well:
92038         Fix copyright notice, as 1999 was missing.
92039         (verify): New macro.
92040         (strtoimax): Check sizes at compile-time, not run-time.
92041         Prefer strtol to strtoll if both work.
92042         (main): Remove; it was not that useful and was a pain to maintain.
92043
92044         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92045
92046 2001-08-31  Jim Meyering  <meyering@lucent.com>
92047
92048         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92049         Use an initial, malloc'd, buffer of length 128 rather than
92050         a statically allocated one of length 1024.
92051
92052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92053
92054         Simplify code, partly by assuming autoconf 2.52 semantics.
92055
92056         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92057
92058         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92059         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92060         All uses removed.
92061         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92062         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92063         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92064         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92065         jm_AC_HEADER_INTTYPES_H.
92066         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92067
92068         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92069
92070         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92071         Quote first arg of AC_DEFUN.
92072         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92073         since they are needed to parse the include file even if we need
92074         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92076         but with opposite signedness.
92077
92078 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92079
92080         Merge 'exclude' changes from tar 1.13.22.
92081         This fixes one or two unlikely storage allocation overflow bugs,
92082         but doesn't change user-visible behavior otherwise.
92083
92084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92085
92086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92087         (jm_PREREQ_EXCLUDE): New macro.
92088
92089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92090
92091         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92092         tm to be declared.
92093
92094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92095
92096         * lib/hash.c: Remove '2001' from copyright notice.
92097
92098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92099
92100         * lib/full-write.h: New file.
92101         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92102         * lib/full-write.c: Correct credits, as cccp.c no longer
92103         exists and anyway it was so heavily changed from the old cccp
92104         code as to be unrecognizable.  Include full-write.h.
92105         (full_write): Return size_t, with short writes meaning failure.
92106         All callers changed.  This fixes a bug with large buffers
92107         on 64-bit hosts.
92108         * lib/utime.c: Include full-write.h.
92109
92110 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92111
92112         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92113         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92114         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92115         Include if available.
92116         (<xalloc.h>): Include
92117         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92118         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92119         collide with FNM macros.
92120         (struct patopts): New struct.
92121         (struct exclude): Use it, as exclude patterns now come with options.
92122         (new_exclude): Support above changes.
92123         (new_exclude, add_exclude_file):
92124         Initial size must now be a power of two to simplify overflow checking.
92125         (free_exclude, fnmatch_no_wildcards): New function.
92126         (excluded_filename): No longer requires options arg, as the options
92127         are determined by add_exclude.  Now returns bool, not int.
92128         (excluded_filename, add_exclude):
92129         Add support for the fancy new exclusion options.
92130         (add_exclude, add_exclude_file): Now takes int options arg.
92131         Check for arithmetic overflow when computing sizes.
92132         (add_exclude_file): xrealloc might modify errno, so don't
92133         realloc until after errno might be used.
92134
92135         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92136         New macros.
92137         (free_exclude): New decl.
92138         (add_exclude, add_exclude_file): Now takes int options arg.
92139         (excluded_filename): No longer requires options arg, as the options
92140         are determined by add_exclude.  Now returns bool, not int.
92141
92142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92143
92144         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92145
92146 2001-08-27  Jim Meyering  <meyering@lucent.com>
92147
92148         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92149
92150         * lib/version-etc.c (N_): Remove definition.
92151         Revert most of last change.
92152         Instead, simply don't mark the `Copyright...' string for translation.
92153         Based on advice from Paul Eggert.
92154
92155         * lib/strtoxmax.c: Tweak comment.
92156
92157 2001-08-26  Jim Meyering  <meyering@lucent.com>
92158
92159         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92160
92161         * m4/xstrtoimax.m4: New file.
92162         * m4/xstrtoumax.m4: Add comments explaining why we
92163         AC_REPLACE_FUNCS(strtol).
92164
92165 2001-08-26  Jim Meyering  <meyering@lucent.com>
92166
92167         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92168         of copyright with `%s' so translators don't get an untranslated
92169         message in 2002.
92170         (COPYRIGHT_YEAR): Define.
92171         (version_etc): Use fprintf rather than fputs.
92172         Suggestion from Ulrich Drepper.
92173
92174         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92175
92176         * lib/strtoll.c: New file, from GNU libc.
92177         * lib/xstrtoimax.c: New file.
92178
92179         * lib/xstrtol.h: Add xstrtoimax.
92180         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92181         * lib/strtoimax.c: New file.  Likewise, but first define
92182         STRTOUXMAX_SIGNED.
92183
92184         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92185         ...
92186         * lib/strtoxmax.c: ... then renamed to this.
92187
92188 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92189
92190         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92191         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92192         (jm_AC_TYPE_INTMAX_T): New macro.
92193         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92194
92195         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92196
92197         * m4/longlong.m4: Renamed from ulonglong.m4.
92198         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92199         * m4/uintmax_t.m4: Removed.
92200
92201 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92202
92203         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92204         Port to Solaris 8, where 'sed' requires a space after the 'r'
92205         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92206         Redirect output to $tmp just once.
92207
92208 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92209
92210         * lib/addext.c (<errno.h>): Include.
92211         (errno): Declare if not defined.
92212         (addext): Work correctly when pathconf returns -1 and leaves
92213         errno alone because there is no limit.  Also, work even if
92214         pathconf returns a value greater than SIZE_MAX.
92215
92216 2001-08-12  Jim Meyering  <meyering@lucent.com>
92217
92218         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92219         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92220         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92221         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92222         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92223         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92224         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92225         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92226         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92227         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92228         utime.m4, utimes.m4, xstrtoumax.m4:
92229         Quote the first argument in each use of AC_DEFUN.
92230
92231 2001-08-12  Jim Meyering  <meyering@lucent.com>
92232
92233         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92234         Simply `return getcwd (NULL, 0);'.
92235         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92236         Use 1300 as initial value for length, not PATH_MAX.
92237
92238         * lib/pathmax.h: Clean up cpp syntax.
92239
92240 2001-08-12  Jim Meyering  <meyering@lucent.com>
92241
92242         * lib/gettimeofday.c: New file.
92243         * lib/gtod.h: New file.
92244         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92245
92246 2001-08-05  Jim Meyering  <meyering@lucent.com>
92247
92248         * m4/jm-macros.m4: Require autoconf-2.52.
92249
92250 2001-08-04  Jim Meyering  <meyering@lucent.com>
92251
92252         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92253         stmt, to get in sync with glibc.
92254
92255 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92256
92257         The following changes are from gettext 0.10.39 as maintained by
92258         Bruno Haible.
92259
92260         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92261         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92262         with inverted sense.  All uses changed.
92263
92264         * lib/mbswidth.c: Don't include <limits.h>.
92265         Include <stdlib.h> and <string.h> unconditionally.
92266         (iswcntrl, mbsinit, ISCNTRL): New macros.
92267         (mbsnwidth): Use K&R style function declarations.
92268         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92269         can optimize it when MB_CUR_MAX == 1.
92270         The width of control characters is zero, not 1.
92271
92272 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92273
92274         The following changes are from gettext 0.10.39 as maintained by
92275         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92276
92277         * m4/codeset.m4: Upgrade to serial AM1.
92278         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92279         all uses changed.  Quote first arg of AC_DEFUN.
92280         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92281
92282         * m4/iconv.m4: Upgrade to serial AM2.
92283         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92284         Add --with-libconv-prefix.
92285         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92286         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92287         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92288         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92289         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92290
92291         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92292         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92293         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92294         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92295         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92296         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92297         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92298         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92299         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92300
92301         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92302         string.h any more.
92303
92304         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92305         not the default value.
92306
92307         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92308         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92309         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92310         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92311         Also check for iswcntrl, used for wcwidth fallback.
92312         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92313         to Autoconf 2.13.
92314
92315 2001-08-03  Jim Meyering  <meyering@lucent.com>
92316
92317         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92318         as it was in the original.  Reported by Paul Eggert.
92319
92320 2001-07-16  Jim Meyering  <meyering@lucent.com>
92321
92322         * m4/gettimeofday.m4: New file.
92323         Prompted by a report from Bernhard Baehr.
92324
92325 2001-07-15  Jim Meyering  <meyering@lucent.com>
92326
92327         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92328         stuff. Now it's in ../Makefile.cfg.
92329
92330 2001-07-15  Jim Meyering  <meyering@lucent.com>
92331
92332         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92333         (BUILT_SOURCES): Add unlocked-io.h.
92334         (io_functions): Define.
92335         (unlocked-io.h): New rule.
92336         (DISTCLEANFILES): Add unlocked-io.h.
92337         (all-local): Depend on unlocked-io.h, to ensure it is created.
92338
92339         * lib/unlocked-io.hin: New file
92340
92341         * lib/regex.c: Update from glibc.
92342
92343 2001-07-05  Jim Meyering  <meyering@lucent.com>
92344
92345         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92346         recommendation.
92347         (libfetish_a_SOURCES): Put all .h files here instead.
92348         Remove a thus-exposed (better checks in automake) duplicate and
92349         two unnecessary .h files.
92350
92351 2001-07-04  Jim Meyering  <meyering@lucent.com>
92352
92353         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92354         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92355         distcheck failure.
92356
92357 2001-07-02  Jim Meyering  <meyering@lucent.com>
92358
92359         The following changes were prompted by suggestions from Bruno Haible.
92360
92361         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92362         is now generated.
92363         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92364         definition of EXTRA_DIST.
92365         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92366         ensure that the generated file is created/updated whenever the list
92367         of $(unlocked_functions) is changed.
92368         (jm-glibc-io.m4): New rule.
92369         (unlocked-io.h): New rule -- currently unused.
92370
92371 2001-06-24  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92374         unmatched right bracket, rather than kludging it with an extra,
92375         falsely-matching quote in a comment.  Patch by Akim Demaille.
92376
92377 2001-06-11  Jim Meyering  <meyering@lucent.com>
92378
92379         * lib/regex.c: Update from GNU libc.
92380
92381 2001-05-27  Jim Meyering  <meyering@lucent.com>
92382
92383         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92384         Check for ut_type in struct utmp.
92385
92386 2001-05-27  Jim Meyering  <meyering@lucent.com>
92387
92388         * lib/readutmp.h (UT_TYPE): Define.
92389
92390 2001-05-24  Jim Meyering  <meyering@lucent.com>
92391
92392         * lib/argmatch.c: Include "quote.h".
92393         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92394         quote function.  Reported by Göran Uddeborg.
92395
92396 2001-05-22  Jim Meyering  <meyering@lucent.com>
92397
92398         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92399         now that we use the package-supplied version unconditionally.
92400         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92401
92402 2001-05-21  Jim Meyering  <meyering@lucent.com>
92403
92404         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92405         shell syntax errors.
92406
92407 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92408
92409         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92410
92411 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92412
92413         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92414         Don't bother to check library strftime, since
92415         we'll be using our own my_strftime function anyway.
92416         Define my_strftime instead of strftime.
92417
92418 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92419
92420         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92421         which is not yet declared.
92422
92423 2001-05-15  Jim Meyering  <meyering@lucent.com>
92424
92425         * m4/regex.m4: Use proper quoting so brackets appear in the test
92426         program.
92427         Reported by, and with help from, Bruno Haible.
92428
92429 2001-05-13  Jim Meyering  <meyering@lucent.com>
92430
92431         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92432         undefined.
92433
92434 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92435
92436         dirname code cleanup.  base_name now behaves more compatibly
92437         with POSIX basename when given file names that have trailing
92438         slashes, and similarly for dir_name.  Add new primitives
92439         base_len and dir_len.  Put the directory-name-related decls
92440         into dirname.h.
92441
92442         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92443         * lib/backupfile.c (base_name): Likewise.
92444         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92445         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92446         * lib/makepath.c (strip_trailing_slashes): Likewise.
92447         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92448         ISSLASH): Likewise.
92449         * lib/rename.c (strip_trailing_slashes): Likewise.
92450         * lib/same.c (base_name): Likewise.
92451         * lib/stripslash.c (ISSLASH): Likewise.
92452
92453         * lib/addext.c: Include <dirname.h> after size_t is defined.
92454         * lib/backupfile.c: Likewise.
92455
92456         * lib/addext.c (addext): Use base_len to trim redundant
92457         trailing slashes instead of doing it ourselves.
92458         But do not trim the last slash if it is not redundant.
92459
92460         * lib/backupfile.c (find_backup_file_name,
92461         max_backup_version): Use base_len instead of rolling it ourselves.
92462         Handle the case of "" and (on DOS) "C:" correctly.
92463
92464         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92465         needed. Include <string.h>, <dirname.h>.
92466         (base_name): Allow file names ending in slashes, other than names
92467         that are all slashes.  In this case, return the basename followed
92468         by the slashes.  This is more general, and can be used in places
92469         where the original base_name purposely had an assertion failure.
92470         (base_len): New function.
92471
92472         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92473         Do not include <assert.h>; no longer needed.
92474         Include xalloc.h.
92475         (memrchr): Remove decl.
92476         (dir_name_r): Remove.
92477         (dir_len): Renamed from dirlen.  All callers changed.
92478         Rewrite in terms of base_name, for simplicity and consistency.
92479         (dir_name): Never return NULL.  All callers changed.
92480         Do not include <stdlib.h> in test program; no longer needed.
92481         return 0; is fine for test program.
92482
92483         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92484         New macros.
92485         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92486
92487         * lib/path-concat.c (path_concat): Use base_len to compute
92488         base length, not strlen; this means we cannot rely on memcpy
92489         to null-terminate.
92490
92491         * lib/same.c (STREQ): Remove.
92492         (same_name): Handle the case where the basename ends in trailing '/'.
92493
92494         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92495         a slash was stripped.  Do not strip the last slash after a
92496         file system prefix.
92497
92498 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92499
92500         * lib/Makefile.am (libfetish_a_SOURCES):
92501         Add strftime.c, since we now compile it on all hosts.
92502
92503         * lib/strftime.c (my_strftime):
92504         Define to nstrftime if emacs, but only if my_strftime is not defined.
92505         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92506         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92507         Add one more extra argument: a nanoseconds value.
92508         All uses changed.
92509         (ns): New macro.
92510         (my_strftime function): Add %N format.
92511         (emacs_strftimeu): Renamed from emacs_strftime,
92512         with extra ut argument.
92513
92514 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92515
92516         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92517
92518 2001-04-21  Jim Meyering  <meyering@lucent.com>
92519
92520         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92521         doesn't interfere.
92522
92523 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92524
92525         * m4/ftruncate.m4: Check for chsize.
92526         Link with ftruncate.o unconditionally if ftruncate is missing.
92527         This was required when cross-compiling to i586-mingw32msvc.
92528
92529 2001-04-08  Jim Meyering  <meyering@lucent.com>
92530
92531         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92532         recomputed; that's necessary when the offset spans a DST transition.
92533         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92534
92535 2001-04-02  Jim Meyering  <meyering@lucent.com>
92536
92537         * lib/regex.h, regex.c: Update from GNU libc.
92538
92539 2001-03-24  Jim Meyering  <meyering@lucent.com>
92540
92541         * m4/jm-macros.m4: Require autoconf-2.49d.
92542
92543 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92544
92545         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92546
92547 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92548
92549         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92550
92551 2001-03-17  Jim Meyering  <meyering@lucent.com>
92552
92553         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92554         now that the version in autoconf is equivalent.
92555         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92556
92557         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92558         Suggestion from Akim Demaille.
92559
92560         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92561         (jm_PREREQ_TEMPNAME): New function.
92562
92563 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92564
92565         * lib/tempname.c (uint64_t): Define to uintmax_t if
92566         not defined, and if UINT64_MAX is not defined.
92567         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92568         Reported by John David Anglin.
92569
92570 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92571
92572         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92573         resolve alias if codeset is empty.
92574         * lib/config.charset (BeOS): Use wildcard syntax.
92575
92576 2001-03-13  Jim Meyering  <meyering@lucent.com>
92577
92578         * lib/path-concat.c (path_concat)
92579         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92580         concatenating e.g., `C:' and `foo'.
92581         From Bruno Haible.
92582
92583 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92584
92585         * lib/localcharset.c (locale_charset): Don't use
92586         setlocale(LC_CTYPE,NULL). Don't return NULL.
92587         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92588
92589 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92590
92591         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92592         support for DOS/DJGPP.
92593
92594 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92595
92596         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92597         lacks mkstemp.  Compile our own tempname.c if we compile our own
92598         mkstemp.c, as mkstemp relies on tempname.
92599
92600 2001-03-01  Jim Meyering  <meyering@lucent.com>
92601
92602         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92603         AH_VERBATIM really does output its argument verbatim.
92604
92605 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92606
92607         * lib/Makefile.am (libfetish_a_SOURCES):
92608         Add dup-safer.c, fopen-safer.c.
92609         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92610
92611         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92612         * lib/unistd-safer.h: New files.
92613
92614 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92615
92616         The mkstemp replacement is taken from glibc 2.2.2, with some
92617         portability fixes for use outside glibc, as follows:
92618
92619         * lib/tempname.c (struct_stat64): New macro.
92620         (direxists, __gen_tempname): Use it.
92621         This avoids a portability problem with Solaris 8.
92622
92623         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92624         (<stddef.h>, <stdint.h>, <string.h>):
92625         Include only if STDC_HEADERS || _LIBC.
92626         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92627         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92628         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92629         (__set_errno): Define this macro if <errno.h> doesn't.
92630         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92631         Define these macros if <stdio.h> doesn't.
92632         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92633         Define these macros if <sys/stat.h>
92634         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92635         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92636         __xstat64): Define if not _LIBC.
92637         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92638         (__gen_tempname): Invoke gettimeofday only if
92639         HAVE_GETTIMEOFDAY || _LIBC;
92640         otherwise, fall back on plain "time".
92641         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92642
92643         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92644
92645         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92646
92647 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92648
92649         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92650
92651 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92652
92653         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92654         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92655         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92657
92658 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92659
92660         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92661         Remove workaround macros for hosts that have mbrtowc but not
92662         mbstate_t, as we now insist on proper declarations for both
92663         before using mbrtowc.
92664
92665 2001-02-17  Jim Meyering  <meyering@lucent.com>
92666
92667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92668         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92669         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92670         UnixWare 7.1.1.
92671
92672         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92673         rather than AC_CACHE_VAL.
92674
92675 2001-02-17  Jim Meyering  <meyering@lucent.com>
92676
92677         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92678         around included file name.
92679
92680         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92681
92682         * lib/strftime.c: Update from GNU libc (the only changes were to
92683         comments).
92684
92685 2001-02-17  Jim Meyering  <meyering@lucent.com>
92686
92687         * lib/regex.c: Update from libc.
92688
92689 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92690
92691         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92692         clash.
92693
92694 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92695
92696         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92697         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92698         Reported by Mark Hounschell via Paul Eggert.
92699
92700 2001-02-07  Jim Meyering  <meyering@lucent.com>
92701
92702         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92703
92704 2001-02-05  Jim Meyering  <meyering@lucent.com>
92705
92706         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92707         it includes the patch required for `large file' support with at least
92708         HP-UX's 10.20 /bin/cc.
92709
92710 2001-02-03  Jim Meyering  <meyering@lucent.com>
92711
92712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92713         AS_IF, now that it works once again (mysteriously).
92714         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92715
92716 2001-01-30  Jim Meyering  <meyering@lucent.com>
92717
92718         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92719         * m4/chown.m4: Rename conftestchown to conftest.chown.
92720         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92721         s/conftestdir2/conftest.d2/.
92722         * m4/utimes.m4: s/conftestdata/conftest.data/
92723         Inspired by Pavel Roskin's change in autoconf.
92724
92725 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92726
92727         * lib/config.charset: Update for FreeBSD 4.2.
92728
92729 2001-01-27  Jim Meyering  <meyering@lucent.com>
92730
92731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92732         a use of AS_IF.
92733         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92734
92735 2001-01-26  Jim Meyering  <meyering@lucent.com>
92736
92737         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92738         quotearg.c includes it.
92739
92740 2001-01-26  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/quotearg.c: Include stddef.h.
92743         * lib/quote.c: Include stddef.h.
92744         Reported by Axel Kittenberger.
92745
92746         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92747         line in double quotes so that it evokes a better diagnostic.
92748         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92749         Reported by Axel Kittenberger.
92750
92751 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92752
92753         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92754         as if it was a `charset'.
92755
92756 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92757
92758         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92759         has const.
92760
92761 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92762
92763         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92764         to avoid a warning.  Add back 'const' to inptr.
92765
92766 2001-01-20  Jim Meyering  <meyering@lucent.com>
92767
92768         Be sure that headers are checked before used in code compiled
92769         for the type checks.
92770         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92771         In place of that, invoke jm_CHECK_ALL_TYPES.
92772         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92773         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92774         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92775         The check for ssize_t was mistakenly run before the test for unistd.h.
92776
92777         The configure-time check for stdbool.h was missing.
92778         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92779         (jm_PREREQ_HASH): New function.
92780
92781 2001-01-17  Jim Meyering  <meyering@lucent.com>
92782
92783         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92784         for autoconf-2.49c.
92785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92786
92787 2001-01-16  Jim Meyering  <meyering@lucent.com>
92788
92789         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92790         From Bruno Haible.
92791
92792 2001-01-14  Jim Meyering  <meyering@lucent.com>
92793
92794         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92795         foo and bar.  Create conftestdir/ in the script, not in the C code.
92796         Remove directories in the script, not in the C code.
92797         Remove conftestdir{,2} before trying to create the directory.
92798         Make the entire configure script fail if the mkdir fails.
92799
92800 2001-01-14  Jim Meyering  <meyering@lucent.com>
92801
92802         * lib/rename.c: New file.  From Volker Borchert.
92803         Include stdlib.h, string.h or strings.h, and xalloc.h.
92804         Use strip_trailing_slashes rather than open-coding it.
92805
92806 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92807
92808         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92809
92810 2001-01-03  Jim Meyering  <meyering@lucent.com>
92811
92812         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92813         of local `inptr' to avoid warning with some system declarations of
92814         iconv.
92815
92816 2001-01-02  Volker Borchert  <bt@teknon.de>
92817
92818         * m4/rename.m4: New file.
92819         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92820
92821 2001-01-01  Jim Meyering  <meyering@lucent.com>
92822
92823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92824         even on systems with utmpx.h.  It's necessary for the declaration of
92825         utmp's ut_user member.  Reported by Andreas Jaeger.
92826
92827         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92828         available. They are required for the declarations of getgrgid and
92829         getpwuid resp.
92830         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92831         Reported by Andreas Jaeger.
92832
92833 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92834
92835         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92836         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92837         so `make install' also works in VPATH builds.
92838
92839 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92840
92841         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92842         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92843         can be used in subdirectories.
92844
92845 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92846
92847         * lib/modechange.c: Do not assume that mode_t uses the
92848         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92849         the other-execute bit of FOO even if S_IXOTH != 1.
92850
92851         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92852         WOTH, XOTH, ALLM): New macros.
92853         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92854          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92855         Use them.
92856         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92857         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92858         (mode_compile):
92859         No need to use uintmax_t; unsigned long is long enough.
92860         Don't bother to get suffix since we don't use it.
92861
92862 2000-12-26  Jim Meyering  <meyering@lucent.com>
92863
92864         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92865         better with autoheader.
92866
92867 2000-12-24  Jim Meyering  <meyering@lucent.com>
92868
92869         * lib/hash.c (is_prime): Return explicit boolean values.
92870         (hash_get_first): Return NULL to appease Irix5.6's 89.
92871         Reported by Nelson Beebe.
92872
92873 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92874
92875         * lib/localcharset.c (locale_charset): Add support for Win32.
92876
92877 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92878
92879         * lib/physmem.h, lib/physmem.c: New files.
92880
92881         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92882         (noinst_HEADERS): Add physmem.h.
92883
92884         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92885         't' for compatibility with Solaris 8 sort.
92886
92887 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92888
92889         * lib/config.charset: Add support for BeOS.
92890
92891 2000-12-17  Jim Meyering  <meyering@lucent.com>
92892
92893         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92894         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92895
92896 2000-12-16  Jim Meyering  <meyering@lucent.com>
92897
92898         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92899         N and M) would have treated it like `chown N:N FILE'.
92900
92901         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92902
92903 2000-12-16  Jim Meyering  <meyering@lucent.com>
92904
92905         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92906         SHELLS_FILE to a file name that's useful on djgpp systems.
92907         Include stdlib.h.
92908         (ADDITIONAL_DEFAULT_SHELLS): Define.
92909         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92910         Based mostly on a patch from Prashant TR.
92911
92912 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92913
92914         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92915         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92916         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92917
92918 2000-12-08  Andreas Schwab  <schwab@suse.de>
92919
92920         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92921         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92922
92923 2000-12-07  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/stripslash.c (ISSLASH): Define.
92926         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92927         `/'.
92928         From Prashant TR.
92929
92930         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92931         (dir_name_r): Declare this function as static.
92932         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92933         manifest itself on a name containing a mix of slashes and
92934         backslashes.
92935         Make this function work with names starting with a DOS-style
92936         drive letter and colon prefix.
92937         (dir_name): Append `.' if necessary.
92938         Based mostly on patches from Prashant TR and Eli Zaretskii.
92939
92940         * lib/dirname.h (dir_name_r): Remove prototype.
92941
92942 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92943
92944         * m4/off_t-format.m4: Remove this file.
92945         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92946
92947 2000-12-06  Jim Meyering  <meyering@lucent.com>
92948
92949         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92950         replacement strtoull, we may well need the replacement strtoul, too.
92951         Check for declarations of strtoul and strtoull.
92952         Check for strtol.  Mainly as a cue to cause automake to include
92953         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92954         Check for limits.h -- strtol.c needs it.
92955
92956 2000-12-05  Jim Meyering  <meyering@lucent.com>
92957
92958         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92959
92960 2000-12-04  Jim Meyering  <meyering@lucent.com>
92961
92962         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92963         Also include memory.h, stdlib.h, unistd.h if appropriate.
92964         Reported by Andreas Jaeger (conflicting declaration of malloc).
92965
92966 2000-12-02  Jim Meyering  <meyering@lucent.com>
92967
92968         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92969         * m4/jm-macros.m4 (jm_MACROS): require it.
92970
92971 2000-12-02  Jim Meyering  <meyering@lucent.com>
92972
92973         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92974
92975 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92976
92977         * lib/memrchr.c: Include <config.h> before any system include file.
92978
92979 2000-11-30  Jim Meyering  <meyering@lucent.com>
92980
92981         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92982
92983 2000-11-30  Jim Meyering  <meyering@lucent.com>
92984
92985         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92986
92987 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92988
92989         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92990
92991 2000-11-26  Jim Meyering  <meyering@lucent.com>
92992
92993         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92994
92995 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92996
92997         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92998         size of (size_t) -1; it's not portable.
92999
93000 2000-11-17  Jim Meyering  <meyering@lucent.com>
93001
93002         * lib/strstr.c: Update from GNU libc.
93003
93004 2000-11-17  Akim Demaille  <akim@epita.fr>
93005
93006         * lib/obstack.h: Formatting changes.
93007         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93008         prevent type checking.
93009         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93010         cast the value to (void *): assigning a `foo *' to a `void *'
93011         variable is valid.
93012         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93013
93014 2000-11-16  Jim Meyering  <meyering@lucent.com>
93015
93016         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93017
93018 2000-11-11  Jim Meyering  <meyering@lucent.com>
93019
93020         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93021
93022 2000-11-10  Jim Meyering  <meyering@lucent.com>
93023
93024         * lib/obstack.h: Update from GNU libc.
93025         * lib/obstack.c: Likewise.
93026
93027 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93028
93029         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93030
93031 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/getusershell.c (setusershell): Use rewind rather than
93034         fseek/fseeko, to avoid configuration hassles with fseeko.
93035         Don't bother opening SHELLS_FILE if shellstream is NULL;
93036         it's not necessary.
93037
93038 2000-11-05  Jim Meyering  <meyering@lucent.com>
93039
93040         * lib/makepath.h (make_dir): Declare.
93041         * lib/makepath.c (make_dir): Remove `static' attribute.
93042         Tweak a comment.
93043
93044 2000-11-04  Jim Meyering  <meyering@lucent.com>
93045
93046         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93047
93048 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93049
93050         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93051         last one in a bucket, advance to the next bucket.
93052
93053 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93054
93055         * lib/fnmatch.c: Do not comment out all the code if we are using
93056         the GNU C library, because in some cases we are replacing buggy
93057         code in the GNU C library itself.
93058
93059 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93060
93061         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93062         (regex_compile): Catch bogus \(\1\).
93063
93064 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93065
93066         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93067         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93068         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93069
93070 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93071
93072         * lib/error.h, getline.h, modechange.h:
93073         Remove "2000" from Copyright line, as the file hasn't been
93074         changed this year other than in the copyright notice.
93075
93076         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93077         was changed this year.
93078
93079 2000-10-29  Jim Meyering  <meyering@lucent.com>
93080
93081         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93082         renaming.
93083         * m4/ls-mntd-fs.m4: Likewise
93084
93085 2000-10-29  Jim Meyering  <meyering@lucent.com>
93086
93087         * lib/xstat.in: Fix grammar in comment.
93088
93089 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93090
93091         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93092         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93093         doesn't define __restrict_arr.
93094
93095 2000-10-28  Jim Meyering  <meyering@lucent.com>
93096
93097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93098         (jm_PREREQ_MEMCHR): New function.
93099
93100 2000-10-28  Jim Meyering  <meyering@lucent.com>
93101
93102         * lib/memchr.c: Update from libc.
93103         Adjust for portability:
93104         [HAVE_STDLIB_H]: Include stdlib.h.
93105         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93106         Undef __memchr, too.
93107         [!weak_alias]: Define __memchr to memchr.
93108
93109         * lib/regex.c: Update from libc.
93110         * lib/regex.h: Likewise.
93111         * lib/getopt1.c: Likewise.
93112         * lib/memcmp.c: Likewise.
93113
93114         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93115         Avoid using fseek, when possible -- it's broken by design.
93116         Patch by Ulrich Drepper.
93117
93118 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93119
93120         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93121         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93122         Giving in to popular pressure to shut up the compiler with casts.
93123
93124 2000-10-26  Jim Meyering  <meyering@lucent.com>
93125
93126         * lib/strftime.c: Update from libc.
93127
93128 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93129
93130         * regex.c: More `unsigned char' -> `re_char' changes.
93131         Also change several `int' into `re_wchar_t'.
93132         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93133         (PUSH_FAILURE_POINTER): Don't cast any more.
93134         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93135         We want GCC to complain, since this piece of code makes
93136         re_match non-reentrant, which *should* be fixed.
93137         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93138         (EXTEND_BUFFER): Use RETALLOC.
93139         (SET_LIST_BIT): Don't cast.
93140         (re_wchar_t): New type.
93141         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93142         that those two functions will always properly return.
93143         (IMMEDIATE_QUIT_CHECK): Cast to void.
93144         (analyse_first): Use recursion rather than an explicit stack.
93145         (re_compile_fastmap): Can't fail anymore.
93146         (re_search_2): Don't check re_compile_fastmap for failure.
93147         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93148         Now also sets the new value (passed in a new argument).
93149         (re_match_2_internal): Use it.
93150         Also, use a new var `reg' of type size_t when looping through regs
93151         rather than reuse the inappropriate `mcnt'.
93152
93153 2000-10-25  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/obstack.c: Update from libc.
93156
93157 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93158
93159         * regex.c (regex_compile): Change the way of handling a range from
93160         a char less than 256 to a char not less than 256.
93161
93162 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93163
93164         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93165         NT-Emacs only.
93166         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93167         so that re_search functions only quit when callers expect them to.
93168
93169 2000-10-23  Jim Meyering  <meyering@lucent.com>
93170
93171         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93172         wrong.  That set_locale call must not have any side effects.
93173         From Paul Eggert.
93174
93175 2000-10-22  Jim Meyering  <meyering@lucent.com>
93176
93177         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93178         [CYCLIC]: Remove now-unused definition.
93179
93180         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93181         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93182         Suggestion from Ulrich Drepper.
93183
93184 2000-10-21  Jim Meyering  <meyering@lucent.com>
93185
93186         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93187         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93188         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93189
93190 2000-10-21  Jim Meyering  <meyering@lucent.com>
93191
93192         * lib/dirname.c (memrchr): Declare if necessary.
93193         (dir_name): Remove the restriction that there be no
93194         trailing slashes.  Now, this code skips past them, effectively
93195         ignoring them.
93196         [TEST_DIRNAME] (main): New unit tests.
93197
93198         * lib/memrchr.c: New file from GNU libc.
93199         Undef __memrchr, too.
93200         [!weak_alias]: Define __memrchr to memrchr.
93201         Guard weak_alias use with `#ifdef weak_alias'.
93202
93203 2000-10-21  Jim Meyering  <meyering@lucent.com>
93204
93205         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93206         (dir_name): Use dir_name_r.
93207         * lib/dirname.h (dir_name_r): Declare it.
93208
93209 2000-10-17  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/quote.h (PARAMS): Define and use.
93212         Reported by Akim Demaille.
93213
93214         * lib/getopt.c: Update from libc.
93215
93216 2000-10-16  Jim Meyering  <meyering@lucent.com>
93217
93218         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93219         setlocale.
93220         From Jan Fedak.
93221
93222 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93223
93224         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93225
93226 2000-09-25  Jim Meyering  <meyering@lucent.com>
93227
93228         * lib/md5.h (rol): Define (from GnuPG).
93229
93230         * lib/sha.c: Give credit (GnuPG) where due.
93231         (M): Use rol rather than open-coding it.
93232         Add a FIXME comment.
93233
93234 2000-09-21  Jim Meyering  <meyering@lucent.com>
93235
93236         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93237         Reported by Michael Stone.
93238
93239 2000-09-20  Jim Meyering  <meyering@lucent.com>
93240
93241         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93242         (noinst_HEADERS): Add sha.h.
93243         Based on code from Scott G. Miller and from GnuPG.
93244
93245 2000-09-18  Jim Meyering  <meyering@lucent.com>
93246
93247         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93248         LIBS. Otherwise, everyone ends up linking with -lelf for some
93249         configurations.
93250         Reported by Mike Stone.
93251
93252 2000-09-15  Jim Meyering  <meyering@lucent.com>
93253
93254         * lib/regex.c: Update from libc.
93255
93256 2000-09-10  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/getopt.c (_getopt_internal): Update from glibc.
93259
93260 2000-09-09  Jim Meyering  <meyering@lucent.com>
93261
93262         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93263         think it should be used as a general replacement for isascii.
93264         * lib/fnmatch.c: Likewise.
93265         * lib/mbswidth.c: Likewise
93266         * lib/regex.c: Likewise.
93267
93268         Don't use atoi.
93269         * lib/userspec.c: Include sys/param.h and limits.h.
93270         Include xstrtol.h.
93271         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93272         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93273         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93274         UID, GID.  Check range.
93275
93276 2000-09-06  Jim Meyering  <meyering@lucent.com>
93277
93278         * lib/getopt.c (_getopt_internal): Update from glibc.
93279
93280 2000-08-30  Jim Meyering  <meyering@lucent.com>
93281
93282         * lib/strftime.c: Merge in changes from GNU libc.
93283
93284 2000-08-26  Jim Meyering  <meyering@lucent.com>
93285
93286         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93287         * m4/fpending.m4: New file.
93288
93289 2000-08-26  Jim Meyering  <meyering@lucent.com>
93290
93291         * lib/closeout.c: Include "__fpending.h".
93292         (close_stdout_status): Return right away if there's nothing to flush.
93293
93294         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93295         * lib/__fpending.c: New file.
93296         * lib/__fpending.h: New file.
93297
93298 2000-08-20  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93301         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93302         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93303
93304 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93305
93306         Improve fileutils installation on systems where running
93307         programs (like install) can't be unlinked.
93308         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93309         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93310
93311 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93312
93313         Standardize on "memory exhausted" instead of "Memory exhausted"
93314         or "virtual memory exhausted".
93315         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93316         "virtual memory exhausted".
93317         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93318         our own message.
93319         * lib/userspec.c (parse_user_spec): Likewise.
93320         * lib/bumpalloc.h: comment fix
93321         * lib/same.c, userspec.c: Include xalloc.h.
93322
93323         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93324         not char *const and pointing to a constant array.
93325         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93326         (xrealloc): Comment fix.
93327
93328         * lib/userspec.c (parse_user_spec):
93329         Don't translate a message until just before returning,
93330         to avoid unnecessary translation.
93331
93332 2000-08-07  Jim Meyering  <meyering@lucent.com>
93333
93334         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93335         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93336         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93337         getgroups.c, gethostname.c, getopt.h, group-member.c,
93338         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93339         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93340         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93341         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93342         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93343         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93344         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93345         yesno.c: Back out Copyright date changes for each file with no change
93346         this year.  This eases coordination with other programs using the same
93347         source code modules.  From Paul Eggert.
93348
93349 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93350
93351         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93352         not char, for compatibility with glibc 2.1.3 strftime.c.
93353
93354 2000-08-03  Greg McGary  <greg@mcgary.org>
93355
93356         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93357         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93358         (EXTEND_BUFFER): Use them.
93359
93360 2000-08-01  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/dirname.c (ISSLASH): Define.
93363         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93364         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93365         both `\' and `/' may be use as path separators.
93366         Based on a patch from Prashant TR.
93367
93368 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93369
93370         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93371         slot vector a constant, since it might get modified.
93372
93373 2000-07-31  Jim Meyering  <meyering@lucent.com>
93374
93375         * lib/xmalloc.c: Use `virtual memory exhausted', not
93376         `Memory exhausted'.
93377         * lib/obstack.c (print_and_abort): Likewise.
93378
93379 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93380
93381         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93382         buffer, so that the caller can always quote one small
93383         component of a "memory exhausted" message in slot 0.
93384         From a suggestion by Jim Meyering.
93385
93386 2000-07-30  Jim Meyering  <meyering@lucent.com>
93387
93388         * lib/makepath.c (make_path): Quote the other instance, too.
93389
93390         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93391         (STATIC_BUF_SIZE): Define.
93392         (quotearg_n_options): Use only statically allocated storage when
93393         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93394         than STATIC_BUF_SIZE.
93395
93396 2000-07-29  Jim Meyering  <meyering@lucent.com>
93397
93398         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93399         * lib/dirname.c (dir_name): Likewise.
93400
93401         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93402         `/'.
93403
93404         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93405         (dir_name): Assert that there are no trailing slashes.
93406
93407 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93408
93409         * lib/mbswidth.h (mbswidth): Add a flags argument.
93410         (mbswidth): New declaration.
93411         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93412         * lib/mbswidth.c (mbswidth): Add a flags argument.
93413         (mbsnwidth): New function.
93414
93415 2000-07-24  Jim Meyering  <meyering@lucent.com>
93416
93417         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93418
93419 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93420
93421         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93422
93423 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93424
93425         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93426         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93427         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93428         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93429         invoke multibyte primitives.
93430
93431 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93432
93433         * lib/quotearg.c:
93434         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93435         so that mbstate_t is always defined.
93436
93437         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93438         be 1 in at least one GCC installation, and this configuration
93439         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93440         performance on hosts that have mbrtowc but have only unibyte
93441         locales, but I assume these hosts are rare.
93442
93443 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93444
93445         * lib/mbswidth.c (_XOPEN_SOURCE):
93446         Don't define; this causes problems on Solaris 7.
93447         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93448
93449 2000-07-23  Jim Meyering  <meyering@lucent.com>
93450
93451         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93452         too: getgrgid, getpwuid, getuid.
93453
93454 2000-07-23  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/basename.c (base_name): Add an assertion.
93457
93458 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93459
93460         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93461         shadow its mbsinit function.
93462
93463 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93464
93465         * lib/mbswidth.h: New file.
93466         * lib/mbswidth.c: New file.
93467         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93468         (noinst_HEADERS): Add mbswidth.h.
93469
93470 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93471
93472         * lib/config.charset: Add support for FreeBSD. Improve support for
93473         HP-UX and IRIX 6.
93474
93475 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93476
93477         * m4/mbswidth.m4: New file.
93478         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93479
93480 2000-07-15  Jim Meyering  <meyering@lucent.com>
93481
93482         * lib/makepath.c: Include quote.h.
93483         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93484         corresponding argument in a `quote (...)' call.
93485         Give better diagnostics.
93486
93487         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93488         (noinst_HEADERS): Add quote.h.
93489
93490         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93491         from tar's src/misc.c.
93492         * lib/quote.h: New file.  Prototypes for same.
93493
93494 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93495
93496         From a suggestion by Bruno Haible.
93497         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93498         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93499         to decide whether to define the BeOS workaround macro;
93500         this adjusts to the change to AC_MBSTATE_T.
93501
93502 2000-07-14  Jim Meyering  <meyering@lucent.com>
93503
93504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93505         jm_AC_TYPE_UINTMAX_T.
93506
93507 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93508
93509         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93510
93511         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93512         quotearg_buffer_restyled): Add support for
93513         clocale_quoting_style.  Undo previous change to
93514         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93515         and "{RIGHT QUOTATION MARK}" msgids.
93516
93517 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93518
93519         From a suggestion by Bruno Haible.
93520         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93521         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93522         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93523         and mbstate_t, to a single-part test that simply defines mbstate_t.
93524         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93525         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93526
93527 2000-07-10  Jim Meyering  <meyering@lucent.com>
93528
93529         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93530
93531         * m4/gnu-source.m4: Output to confdefs.h directly.
93532         Suggestion from Akim Demaille.
93533
93534 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93535
93536         The old behavior of quoting `like this' doesn't look good with
93537         newer, ISO-style fonts.  See:
93538         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93539
93540         Instead, quote "like this" by default.  Let the translator
93541         tailor the locale-specific quoting behavior by providing
93542         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93543
93544         * lib/quotearg.c (N_): New macro.
93545         (gettext_default): New function.
93546         (quotearg_buffer_restyled): Use
93547         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93548         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93549
93550 2000-07-09  Jim Meyering  <meyering@lucent.com>
93551
93552         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93553         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93554
93555         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93557
93558 2000-07-09  Jim Meyering  <meyering@lucent.com>
93559
93560         * lib/Most files: Update copyright dates to include 2000.
93561
93562 2000-07-08  Jim Meyering  <meyering@lucent.com>
93563
93564         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93565         if not defined.
93566         (xgethostname): Remove now-unnecessary #ifdef.
93567         Move declaration of `err' into loop where it's used.
93568
93569 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93570         and Bruno Haible  <haible@clisp.cons.org>
93571
93572         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93573         only if the test for an object-type mbstate_t fails.  This
93574         prevents us from mistakenly reporting that mbstate_t is a
93575         system object type after we "#define mbstate_t int" to work
93576         around its lack.
93577
93578 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93579         and Bruno Haible  <haible@clisp.cons.org>
93580
93581         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93582
93583 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93584
93585         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93586         to strerror_r.
93587         Include <ctype.h> for use of isalpha.
93588
93589 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93590
93591         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93592         by allocating a larger buffer. Test the gethostname return value for
93593         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93594         returns an error and ENAMETOOLONG isn't defined.
93595
93596 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93597
93598         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93599         dimension.
93600
93601 2000-07-04  Jim Meyering  <meyering@lucent.com>
93602
93603         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93604         of the deprecated AC_CHECKING.
93605
93606 2000-07-04  Jim Meyering  <meyering@lucent.com>
93607
93608         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93609         Reported by Bruno Haible.
93610
93611 2000-07-04  Jim Meyering  <meyering@lucent.com>
93612
93613         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93614         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93615         lacks mbrtowc.
93616
93617 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93618
93619         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93620         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93621
93622 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93623         and Bruno Haible  <haible@clisp.cons.org>
93624
93625         * lib/quotearg.c (mbrtowc):
93626         Assign to *pwc, and return 1 only if result is nonzero.
93627         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93628
93629 2000-07-03  Jim Meyering  <meyering@lucent.com>
93630
93631         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93632
93633 2000-07-03  Jim Meyering  <meyering@lucent.com>
93634
93635         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93636         This is necessary to get a definition of e.g., UTMP_FILE on
93637         HP-UX 10.20.
93638         From Bob Proulx.
93639
93640 2000-07-02  Jim Meyering  <meyering@lucent.com>
93641
93642         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93643
93644         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93645         AC_LIBOBJ(function_name).
93646         * m4/chown.m4: Likewise.
93647         * m4/fnmatch.m4: Likewise.
93648         * m4/ftruncate.m4: Likewise.
93649         * m4/getgroups.m4: Likewise.
93650         * m4/getline.m4: Likewise.
93651         * m4/group-member.m4: Likewise.
93652         * m4/jm-macros.m4: Likewise.
93653         * m4/lstat.m4: Likewise.
93654         * m4/malloc.m4: Likewise.
93655         * m4/memcmp.m4: Likewise.
93656         * m4/nanosleep.m4: Likewise.
93657         * m4/putenv.m4: Likewise.
93658         * m4/realloc.m4: Likewise.
93659         * m4/regex.m4: Likewise.
93660         * m4/stat.m4: Likewise.
93661         * m4/strftime.m4: Likewise.
93662
93663 2000-07-02  Jim Meyering  <meyering@lucent.com>
93664
93665         * lib/quotearg.c (mbstate_t): Don't define here.
93666
93667 2000-07-02  Jim Meyering  <meyering@lucent.com>
93668
93669         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93670
93671 2000-07-01  Jim Meyering  <meyering@lucent.com>
93672
93673         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93674
93675 2000-07-01  Jim Meyering  <meyering@lucent.com>
93676
93677         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93678         problem.
93679
93680 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93681
93682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93683         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93684
93685 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93686
93687         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93688         per change in ../m4/ls-mntd-fs.m4.
93689         (read_filesystem_list): Ignore symbolic links.
93690
93691 2000-06-29  Jim Meyering  <meyering@lucent.com>
93692
93693         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93694         for declaration of strcmp.
93695
93696         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93697
93698         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93699         Avoid warning by casting result to `char *' to remove `const'.
93700
93701 2000-06-28  Jim Meyering  <meyering@lucent.com>
93702
93703         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93704         included by quotearg.c, for which we perform this test.  From
93705         Bruno Haible.
93706
93707 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93708
93709         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93710         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93711         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93712
93713 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93714
93715         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93716
93717 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93718
93719         savedir now sets errno on failure and invokes xmalloc to get memory.
93720         Fix a couple of other minor bugs while we're at it.
93721
93722         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93723         (NAMLEN): Remove macro.
93724         (malloc, realloc): Remove decls.
93725         (stpcpy): Likewise.
93726         ("xalloc.h"): Include.
93727         (NAME_SIZE_DEFAULT): New macro.
93728         (savedir): Use xmalloc / xrealloc to allocate memory.
93729         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93730         Skip "" directory entries.
93731         Use strlen to calculate directory entry length, since the old method
93732         is rarely used these days and isn't worth supporting.
93733         Don't use a pointer after freeing it.
93734         Check for integer overflow when calculating allocation size.
93735         Use memcpy to copy entries, instead of stpcpy.
93736         Set errno properly when returning NULL.
93737         Check for readdir error.
93738
93739 2000-06-26  Jim Meyering  <meyering@lucent.com>
93740
93741         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93742
93743 2000-06-25  Jim Meyering  <meyering@lucent.com>
93744
93745         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93746         Linux header bug when _XOPEN_SOURCE is defined to 500.
93747
93748 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93749
93750         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93751         deficiency.
93752
93753 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93754
93755         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93756         Include xalloc.h.
93757         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93758
93759 2000-06-24  Jim Meyering  <meyering@lucent.com>
93760
93761         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93762         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93763         for which strerror does return char*, but which lacks a conveniently
93764         accessible declaration of the function.  If the compile-test says
93765         strerror_r doesn't work, then resort to a `run'-test that works on
93766         BeOS and segfaults on DEC Unix.
93767
93768 2000-06-24  Jim Meyering  <meyering@lucent.com>
93769
93770         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93771
93772 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93773
93774         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93775         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93776
93777 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93778
93779         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93780         (mbrtowc, mbstate_t): Define substitutes if
93781         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93782         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93783         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93784
93785 2000-06-23  Jim Meyering  <meyering@lucent.com>
93786
93787         * m4/afs.m4: Add missing AC_MSG_RESULT.
93788         Reported by Bruno Haible.
93789
93790         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93791         Suggestion from Bruno Haible.
93792
93793 2000-06-23  Jim Meyering  <meyering@lucent.com>
93794
93795         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93796
93797 2000-06-21  Jim Meyering  <meyering@lucent.com>
93798
93799         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93800
93801 2000-06-21  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93804         (noinst_HEADERS): Add getstr.h.
93805
93806         * lib/getline.c (getstr): Move into a separate file.
93807         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93808         the following changes: new parameter, delim2; both delim[12]
93809         parameters have type `int', not `char'.  The latter would lose
93810         with 8-bit delimiters.
93811         * lib/getstr.h: New file.
93812
93813 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93814
93815         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93816         than 1024, return a memory chunk of least possible size, instead
93817         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93818         Use free/xmalloc instead of xrealloc to avoid copying for very long
93819         paths.
93820
93821 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93822
93823         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93824         the empty string.
93825
93826 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93827
93828         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93829         address, not strdup.  Include <stdlib.h> and don't declare free().
93830
93831 2000-06-19  Jim Meyering  <meyering@lucent.com>
93832
93833         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93834
93835 2000-06-18  Jim Meyering  <meyering@lucent.com>
93836
93837         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93838
93839         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93840         `checking whether...' message to be consistent with that of the
93841         lstat test.
93842
93843 2000-06-18  Jim Meyering  <meyering@lucent.com>
93844
93845         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93846         Besides, these days every porting target provides a mkdir function.
93847
93848         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93849         needed. (this snippet comes from src/system.h).
93850
93851 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93852
93853         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93854
93855 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93856
93857         * lib/human.c (adjust_value): New function.
93858         (human_readable_inexact): Apply rounding style even when
93859         printing approximate values.
93860
93861 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93862
93863         * lib/human.c (human_readable_inexact): Allow an input block
93864         size that is not a multiple of the output block size, and vice versa.
93865         Reported by Piergiorgio Sartor.
93866
93867 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93868
93869         * lib/getdate.y (get_date): Apply relative times after time
93870         zone indicator, not before.  Reported by Todd A. Jacobs.
93871
93872 2000-06-13  Jim Meyering  <meyering@lucent.com>
93873
93874         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93875
93876         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93877
93878 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93879
93880         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93881
93882 2000-06-12  Jim Meyering  <meyering@lucent.com>
93883
93884         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93885         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93886         optional argument.
93887         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93888         the optional argument, `lib'.
93889
93890 2000-06-08  Jim Meyering  <meyering@lucent.com>
93891
93892         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93893
93894 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93895
93896         Rewrite largefile configuration so that we don't need to run
93897         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93898         AC_CANONICAL_HOST in configure.in -- jmm]
93899
93900         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93901         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93902         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93903         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93904         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93905         All uses changed.
93906         Instead of inspecting the output of getconf, try to compile the
93907         test program without and with the macro definition.
93908         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93909         for getconf.  Instead, check for the needed flags by compiling
93910         test programs.
93911
93912 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93913
93914         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93915
93916 2000-06-04  Jim Meyering  <meyering@lucent.com>
93917
93918         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93919         SunOS 4.1.4 for which gid_t is an unsigned type.
93920
93921 2000-06-03  Jim Meyering  <meyering@lucent.com>
93922
93923         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93924         now that autoconf requires that.
93925
93926         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93927         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93928         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93929
93930 2000-06-03  Jim Meyering  <meyering@lucent.com>
93931
93932         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93933
93934 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93935
93936         * m4/glibc21.m4: New file.
93937         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93938
93939 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93940
93941         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93942         newer, don't install charset.alias.
93943         * lib/config.charset: Change the Linux/glibc rules so they become empty
93944         on glibc-2.1 or newer.
93945
93946 2000-06-02  Jim Meyering  <meyering@lucent.com>
93947
93948         * lib/mountlist.c: Back out last change.  Instead, do this...
93949         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93950         me_dummy member using the same `ignore'-testing code.
93951         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93952         fs_type strings.
93953         From Mark D. Roth.
93954
93955 2000-05-29  Jim Meyering  <meyering@lucent.com>
93956
93957         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93958         mounts with the `ignore' attribute.  Based on a patch from
93959         Mark D. Roth.
93960
93961 2000-05-28  Jim Meyering  <meyering@lucent.com>
93962
93963         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93964         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93965         * m4/stat.m4: Likewise.
93966         * m4/lstat.m4: Likewise.
93967         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93968
93969         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93970         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93971
93972 2000-05-26  Jim Meyering  <meyering@lucent.com>
93973
93974         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93975
93976 2000-05-24  Jim Meyering  <meyering@lucent.com>
93977
93978         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93979         autoconf requires that.
93980         * m4/lib-check.m4: Likewise.
93981         * m4/jm-macros.m4: Likewise.
93982         * m4/strftime.m4: Likewise.
93983
93984         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93985         AC_CHECK_DECLS, now that autoconf requires that.
93986
93987 2000-05-22  Jim Meyering  <meyering@lucent.com>
93988
93989         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93990         * m4/lstat.m4: Likewise.
93991
93992 2000-05-22  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93995
93996 2000-05-20  Jim Meyering  <meyering@lucent.com>
93997
93998         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93999         (jm_PREREQ): Use it.
94000
94001 2000-05-18  Jim Meyering  <meyering@lucent.com>
94002
94003         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94004         back, too, since it may have been modified by allocate_entry.
94005         (hash_delete): Rewrite to use neither the assignment operator
94006         nor the comma operator in an if-expression.
94007
94008 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94009
94010         * lib/closeout.c:
94011         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94012         Remove; no longer needed.
94013         "quotearg.h": Add include.
94014         (file_name): Do not bother to explicitly initialize to NULL; it's less
94015         efficient on some hosts.
94016         (close_stdout_status): Remove test as to whether stdout was already
94017         closed; it breaks for the case "echo x | sort >&-".
94018         Quote file name colons.
94019         Do not assume that _("write error") lacks format strings.
94020
94021 2000-05-15  Jim Meyering  <meyering@lucent.com>
94022
94023         * lib/version-etc.c (version_etc_copyright): Update the copyright
94024         string used in all --version output.
94025
94026 2000-05-14  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/closeout.c (close_stdout_set_file_name): New function.
94029         (close_stdout_status): Use new file-scoped global.
94030         Return right away if fstat says the stdout file descriptor is invalid.
94031         * lib/closeout.h (close_stdout_set_file_name): Declare.
94032
94033 2000-05-10  Jim Meyering  <meyering@lucent.com>
94034
94035         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94036         (close_stdout_set_status): New function.
94037         * lib/closeout.h (close_stdout_set_status): Declare.
94038
94039 2000-05-09  Jim Meyering  <meyering@lucent.com>
94040
94041         * m4/gettext.m4: Rename this...
94042         * m4/libintl.m4: ...to this.
94043
94044 2000-05-08  Jim Meyering  <meyering@lucent.com>
94045
94046         * lib/long-options.c: Don't include closeout.h.
94047         (parse_long_options): Don't call close_stdout for --version.
94048
94049 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94050
94051         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94052         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94053         2.1.3 bug.  This avoids a clash when files like regex.c define
94054         _GNU_SOURCE.
94055
94056 2000-05-06  Jim Meyering  <meyering@lucent.com>
94057
94058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94059         (AC_REPLACE_FUNCS): Add strnlen.
94060
94061         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94062         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94063
94064         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94065         AC_SEARCH_LIBS call for nanosleep.
94066         (LIB_NANOSLEEP): Set and AC_SUBST.
94067
94068 2000-05-06  Jim Meyering  <meyering@lucent.com>
94069
94070         * lib/strnlen.c: Undefine __strnlen and strnlen.
94071         [!weak_alias]: Define __strnlen to strnlen.
94072
94073         * lib/atexit.c: New file, from libiberty.
94074
94075 2000-05-06  Jim Meyering  <meyering@lucent.com>
94076
94077         * lib/closeout.c (close_stdout_status): Also check for errors on the
94078         stderr stream.
94079
94080 2000-05-05  Jim Meyering  <meyering@lucent.com>
94081
94082         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94083         AC_SEARCH_LIBS call for clock_gettime.
94084         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94085
94086         * m4/search-libs.m4: Update from autoconf.
94087
94088         su doesn't work on Solaris 2.6.
94089         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94090         <shadow.h>.  Reported by Dragos Harabor.
94091
94092 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94093
94094         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94095         memcpy instead of xmalloc, xrealloc, path_concat.
94096         (locale_charset): Treat empty environment variables as absent.
94097         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94098
94099 2000-05-04  Jim Meyering  <meyering@lucent.com>
94100
94101         * lib/getopt.c: Update from glibc.
94102         * lib/obstack.c: Likewise.
94103         * lib/obstack.h: Likewise.
94104         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94105         file
94106
94107         * lib/regex.h: Likewise.
94108         * lib/strndup.c: Likewise.
94109         * lib/strnlen.c: New file, from glibc.
94110
94111 2000-05-03  Jim Meyering  <meyering@lucent.com>
94112
94113         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94114
94115 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94116
94117         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94118         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94119         compile-time test, rather than inspecting host and OS, to
94120         decide whether to define _LARGEFILE_SOURCE.
94121
94122 2000-05-01  Jim Meyering  <meyering@lucent.com>
94123
94124         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94125
94126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94127         Based on a patch from Bruno Haible.
94128
94129 2000-05-01  Jim Meyering  <meyering@lucent.com>
94130
94131         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94132
94133 2000-04-29  Jim Meyering  <meyering@lucent.com>
94134
94135         * lib/path-concat.c: Declare strdup only if it's not defined.
94136         * lib/canon-host.c: Likewise.
94137
94138 2000-04-28  Jim Meyering  <meyering@lucent.com>
94139
94140         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94141         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94142         is included first, then limits.h is included by locale.h by libintl.h.
94143         From John David Anglin.
94144
94145 2000-04-25  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/makepath.c (S_IRWXUGO): Define.
94148         (make_path): Always perform explicit chmod if MODE specifies any
94149         of the `special' permission bits.  Prompted by a bug report against
94150         install from Mate Wierdl and Joost van Baal.
94151
94152 2000-04-18  Jim Meyering  <meyering@lucent.com>
94153
94154         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94155         (jm_PREREQ): Use it.
94156
94157 2000-04-18  Jim Meyering  <meyering@lucent.com>
94158
94159         * lib/README: New file.
94160
94161         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94162         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94163
94164 2000-04-17  Jim Meyering  <meyering@lucent.com>
94165
94166         Get it right :-)
94167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94168         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94169         Suggestion from Akim Demaille.
94170
94171 2000-04-17  Jim Meyering  <meyering@lucent.com>
94172
94173         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94174         the definition of it to rpl_strftime also defined-away the system's
94175         declaration.
94176
94177 2000-04-15  Jim Meyering  <meyering@lucent.com>
94178
94179         Use `C' to denote so-called `contiguous' files, the same way
94180         that tar does.
94181         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94182         (ftypelet): Use S_ISCTG.
94183         From Michael Deutschmann.
94184
94185 2000-04-14  Jim Meyering  <meyering@lucent.com>
94186
94187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94188         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94189         clobbered.
94190
94191 2000-04-14  Jim Meyering  <meyering@lucent.com>
94192
94193         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94194
94195 2000-04-13  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94198         AH_VERBATIM to insert required #ifndef into config.h.in.
94199         Suggestion from Akim Demaille.
94200
94201 2000-04-12  Jim Meyering  <meyering@lucent.com>
94202
94203         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94204         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94205         Christian Krackowizer.
94206
94207         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94208         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94209         (AC_SYS_LARGEFILE): Require.
94210         (AM_C_PROTOTYPES): Require.
94211
94212 2000-04-08  Jim Meyering  <meyering@lucent.com>
94213
94214         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94215         names don't conflict.  Reported by Eli Zaretskii.
94216
94217 2000-04-07  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94220         sys/types.h, to work around system header problems on AIX 3.2.5.
94221         From Bruno Haible.
94222
94223 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94224
94225         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94226         bug.  Deal with the different error behavior of Irix iconv.
94227
94228 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94229
94230         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94231         IRIX if the installer said otherwise.
94232
94233 2000-04-05  Jim Meyering  <meyering@lucent.com>
94234
94235         Portability tweaks required for ultrix4.3.
94236         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94237         (jm_CHECK_DECLS): Add getutent to the list of functions.
94238         (_jm_DECL_HEADERS): Add utmpx.h.
94239         From John David Anglin.
94240
94241         * m4/strftime.m4: Back out the 2000-04-02 change.
94242         Instead of that change, simply undefine putenv in the test program.
94243
94244 2000-04-05  Jim Meyering  <meyering@lucent.com>
94245
94246         Portability tweaks required for ultrix4.3.
94247         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94248         getutent.
94249         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94250         * lib/canon-host.c: Declare strdup.
94251         * lib/path-concat.c: Likewise.
94252         From John David Anglin.
94253
94254 2000-04-04  Jim Meyering  <meyering@lucent.com>
94255
94256         Be more DOS 8.3-friendly.
94257         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94258         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94259         * lib/Makefile.am: Reflect renaming.
94260         Reported by Eli Zaretskii.
94261
94262         Use a temporary file name that won't clash with `charset.alias'
94263         in the DOS 8.3 name space.
94264         * lib/Makefile.am (charset_tmp): Define.
94265         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94266         (uninstall-local): Likewise.
94267         Reported by Eli Zaretskii.
94268
94269 2000-04-03  Jim Meyering  <meyering@lucent.com>
94270
94271         * m4/gettext.m4: Fix typo in comment.
94272
94273         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94274         textutils/configure.in).  Suggestion from Paul Eggert.
94275         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94276
94277 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94278
94279         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94280         variable in the shell rather than using putenv, which isn't
94281         portable.  This avoids the configure-time inter-test dependency
94282         on the potentially-renamed putenv function.
94283
94284 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94285
94286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94287         before checking struct stat.st_blksize, so that
94288         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94289
94290 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94291
94292         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94293         since strftime.c uses HAVE_STRFTIME to decide whether to use
94294         the underlying strftime.
94295
94296 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94297
94298         * lib/time/strftime.c (my_strftime): Make sure we call the system
94299         strftime, not ourselves, when invoking the underlying strftime.
94300
94301 2000-03-24  Jim Meyering  <meyering@lucent.com>
94302
94303         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94304         (charset_alias): Define.
94305         (install-exec-local): Factor out common code.
94306         (uninstall-local): Split lines longer than 80.
94307         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94308         (SUFFIXES): Define.
94309         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94310         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94311
94312 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94313
94314         * lib/config.charset: Output a line containing "Packages using this
94315         file".
94316         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94317         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94318         ref-del.sed): New rules.
94319
94320 2000-03-17  Jim Meyering  <meyering@lucent.com>
94321
94322         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94323         Otherwise, include <strings.h>
94324
94325 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94326
94327         * lib/unicodeio.c (utf8_wctomb): New function.
94328         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94329         format instead of in UCS-4 with platform dependent endianness.
94330
94331 2000-03-10  Jim Meyering  <meyering@lucent.com>
94332
94333         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94334         From Marco Franzen.
94335
94336 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94337
94338         * lib/savedir.c (savedir): Work even if directory size is
94339         negative; this can happen with some screwy NFS configurations.
94340
94341 2000-03-06  Jim Meyering  <meyering@lucent.com>
94342
94343         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94344         if it's NULL (because we ran out of memory).  From Bruno Haible.
94345
94346 2000-03-05  Jim Meyering  <meyering@lucent.com>
94347
94348         * lib/localcharset.c ("path-concat.h"): Include.
94349         (get_charset_aliases): Use path_concat instead of ANSI string
94350         concatenation.
94351
94352         * lib/unicodeio.h (PARAMS): Define.
94353         Use it to guard prototype.
94354
94355 2000-03-04  Jim Meyering  <meyering@lucent.com>
94356
94357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94358         for lib/localcharset.c.
94359
94360 2000-03-04  Jim Meyering  <meyering@lucent.com>
94361
94362         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94363         installing into it.
94364         (uninstall-local): Uncomment this rule so `make distcheck' works
94365         once again.
94366
94367         * lib/unicodeio.c (<errno.h>): Include it.
94368         (errno): Declare if not defined.
94369
94370         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94371
94372         * lib/config.charset: New version, incorporating remarks from a linux
94373         i18n mailing list.  From Bruno Haible.
94374
94375 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94376
94377         * m4/codeset.m4: New file.
94378         * m4/iconv.m4: New file.
94379         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94380
94381 2000-03-03  Jim Meyering  <meyering@lucent.com>
94382
94383         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94384
94385 2000-03-02  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94388         the messages come out on separate lines.
94389
94390         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94391         rather than jm_CHECK_DECLARATIONS.
94392         * m4/decl.m4: Remove now-unused file.
94393
94394         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94395         geteuid.
94396
94397 2000-03-02  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94400
94401 2000-03-01  Jim Meyering  <meyering@lucent.com>
94402
94403         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94404         * lib/unicodeio.c: Likewise.
94405
94406 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94407
94408         * lib/config.charset: New file.
94409         * lib/localcharset.c: New file.
94410         * lib/unicodeio.h, lib/unicodeio.c: New files.
94411         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94412         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94413         (noinst_HEADERS): Add unicodeio.h.
94414         (all-local, install-exec-local, charset.alias): New targets.
94415
94416 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94417
94418         * lib/quotearg.c (ALERT_CHAR): New macro.
94419         (quotearg_buffer_restyled): Use it.
94420
94421 2000-02-27  Jim Meyering  <meyering@lucent.com>
94422
94423         * m4/check-decl.m4: Add getenv to the list.
94424
94425 2000-02-27  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94428         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94429
94430         * lib/backupfile.c: Guard inclusion of stdlib.h with
94431         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94432         Declare malloc if needed.
94433
94434         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94435         `#ifndef HAVE_DECL..'
94436         now that autoconf always defines the HAVE_DECL_ symbols.
94437         * lib/human.c: Likewise.
94438         * lib/same.c: Likewise.
94439         * lib/strtoumax.c: Likewise.
94440
94441         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94442         declaration check was not run.
94443         * lib/hash.c: Likewise.
94444         * lib/human.c: Likewise.
94445         * lib/same.c: Likewise.
94446         * lib/strtoumax.c: Likewise.
94447
94448         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94449         `.', then first look up the entire `.'-containing string as a login
94450         name.
94451
94452 2000-02-23  Jim Meyering  <meyering@lucent.com>
94453
94454         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94455         in place of my hack.
94456
94457 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94458
94459         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94460         (textint): New typedef.
94461         (parser_control): Member year changed from int to textint.
94462         All uses changed.
94463         (YYSTYPE): Removed; replaced by %union with int and textint members.
94464         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94465         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94466         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94467         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94468         (date, number, to_year): Use width of number in digits, not its value,
94469         to determine whether it's a 2-digit year, or a 2-digit time.
94470         (yylex): Store number of digits of numeric tokens.
94471         Reported by John Kendall.
94472
94473         (parser_control): Changed from struct parser_control to typedef (for
94474         consistency).  All uses changed.
94475
94476         (tID): Removed; not used.
94477         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94478
94479 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94480
94481         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94482         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94483
94484 2000-02-12  Jim Meyering  <meyering@lucent.com>
94485
94486         * lib/userspec.c (ISDIGIT): Define it.
94487         (isdigit): Remove definition.
94488         (is_number): Use ISDIGIT, not isdigit.
94489         <libintl.h>: Include.
94490         (_ and N_): Define.
94491         (parse_user_spec): Mark translatable strings.
94492
94493 2000-02-10  Jim Meyering  <meyering@lucent.com>
94494
94495         With these changes, nanosleep.[ch] are finally enough like the other
94496         lib/* replacement files to compile on a few more losing systems.
94497
94498         * lib/nanosleep.h: Don't include config.h.
94499         Remove prototype from declaration of nanosleep.
94500         (PARAMS): Remove now-unneeded definition.
94501         * lib/nanosleep.c: #undef nanosleep.
94502         (rpl_nanosleep): Rename from nanosleep.
94503
94504 2000-02-10  Jim Meyering  <meyering@lucent.com>
94505
94506         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94507         gnu_nanosleep to rpl_nanosleep.
94508
94509 2000-02-09  Jim Meyering  <meyering@lucent.com>
94510
94511         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94512         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94513
94514 2000-02-08  Akim Demaille  <akim@epita.fr>
94515
94516         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94517         `[' and `]' and remove uses of `changequote'.
94518         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94519         (AC_SYS_LARGEFILE): Likewise.
94520         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94521         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94522         of changequote.
94523         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94524         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94525         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94526         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94527
94528 2000-02-05  Jim Meyering  <meyering@lucent.com>
94529
94530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94531         Remove explicit use of AC_HEADER_TIME.  It is required by
94532         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94533         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94534         in autoconf whereby the expansion of the latter ended up preceding
94535         the expansion of its prerequisite, AC_HEADER_TIME.
94536         Reported by Volker Borchert.
94537
94538 2000-02-03  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94541
94542 2000-02-03  Jim Meyering  <meyering@lucent.com>
94543
94544         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94545         rather than with `#if HAVE_UTMPNAME'.
94546
94547 2000-02-02  Jim Meyering  <meyering@lucent.com>
94548
94549         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94550         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94551         Reported by Eli Zaretskii.
94552
94553 2000-02-01  Jim Meyering  <meyering@lucent.com>
94554
94555         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94556
94557 2000-01-31  Jim Meyering  <meyering@lucent.com>
94558
94559         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94560         functions.  Add the time.h and sys/time.h headers along with the
94561         AC_REQUIRE'ment of AC_HEADER_TIME.
94562
94563 2000-01-31  Jim Meyering  <meyering@lucent.com>
94564
94565         * lib/nanosleep.h (nanosleep): Guard declaration with
94566         `#if ! HAVE_DECL_NANOSLEEP'.
94567         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94568         the declaration in that vendor's sys/timers.h.
94569         Reported by Christian Krackowizer.
94570
94571         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94572         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94573         (ISPRINT): Likewise.
94574         Reported by Tom Tromey.
94575
94576 2000-01-30  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94579
94580         * m4/prereq.m4 (utmp_includes): Define.
94581         Check for ut_user and ut_name members in both struct utmpx
94582         and struct utmp.
94583
94584 2000-01-30  Jim Meyering  <meyering@lucent.com>
94585
94586         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94587         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94588         header files where only utmpx.ut_user is declared.
94589
94590         * lib/readutmp.h (UT_USER): Define.
94591
94592 2000-01-29  Jim Meyering  <meyering@lucent.com>
94593
94594         * m4/lib-check.m4: New file containing library-related checks from
94595         fileutils and sh-utils (textutils had none).
94596
94597 2000-01-28  Jim Meyering  <meyering@lucent.com>
94598
94599         * m4/perl.m4: Change format of warning message to look more like that
94600         from the missing script.  Suggestion from François Pinard.
94601
94602 2000-01-25  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94605         well as time.h in the compile check.
94606         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94607         Fix typo in cross-compiling case: s/yes/no/.
94608
94609 2000-01-23  Jim Meyering  <meyering@lucent.com>
94610
94611         * m4/jm-macros.m4: Move df-related tests here from
94612         fileutils/configure.in
94613
94614         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94615         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94616
94617         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94618         s/space/ac_fsusage_space/.
94619         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94620
94621         * m4/ftruncate.m4: New file (derived from part of
94622         fileutils/configure.in).
94623         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94624         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94625
94626         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94627         AC_SUBST these here, rather than just in sh-util/configure.in, so
94628         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94629         all the same.
94630         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94631         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94632         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94633         (AC_SUBST(POW_LIBM)): Likewise.
94634         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94635
94636 2000-01-23  Jim Meyering  <meyering@lucent.com>
94637
94638         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94639         obstack.c.
94640
94641 2000-01-22  Jim Meyering  <meyering@lucent.com>
94642
94643         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94644
94645         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94646
94647         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94648         configure.in
94649         (AC_CHECK_HEADERS): Likewise for sh-utils.
94650         (AC_CHECK_HEADERS): Likewise for textutils.
94651         Merge the three lists of headers.
94652
94653         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94654         from fileutils' configure.in.
94655
94656         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94657         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94658         check-decl.m4.
94659
94660         * m4/check-decl.m4: Use #if rather than #ifdef.
94661         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94662         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94663         (_jm_DECL_HEADERS): Define new function.
94664         (jm_CHECK_DECLARATIONS): Require it.
94665
94666 2000-01-22  Jim Meyering  <meyering@lucent.com>
94667
94668         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94669         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94670         Required for some AIX systems.  Reported by Christian Krackowizer.
94671         [TESTING] (main): New function.
94672
94673         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94674         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94675         letters.
94676
94677         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94678         iswprint.
94679
94680         * lib/strverscmp.c (ISDIGIT): Define.
94681         (strverscmp): Use ISDIGIT, not isdigit.
94682
94683 2000-01-19  Jim Meyering  <meyering@lucent.com>
94684
94685         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94686         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94687         defines `struct timespec' in <sys/time.h>
94688
94689         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94690         Thanks to Akim for explaining.
94691
94692 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94693
94694         * lib/nanosleep.c (nanosleep):
94695         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94696         POSIX.1 doesn't require SA_INTERRUPT and some systems
94697         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94698         it's been part of POSIX.1 since day 1 (in 1988).
94699
94700 2000-01-17  Jim Meyering  <meyering@lucent.com>
94701
94702         * lib/interlock: Remove unused file.  Reported by François Pinard.
94703
94704 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94705
94706         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94707         alert, backslash, formfeed, and vertical tab unnecessarily in
94708         shell quoting style.
94709
94710 2000-01-16  Jim Meyering  <meyering@lucent.com>
94711
94712         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94713         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94714         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94715         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94716
94717 2000-01-16  Jim Meyering  <meyering@lucent.com>
94718
94719         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94720         because the latter didn't work.
94721
94722 2000-01-15  Jim Meyering  <meyering@lucent.com>
94723
94724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94725         (AC_REPLACE_FUNCS): Add memcpy and memset.
94726         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94727         Add strpbrk.
94728         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94729
94730 2000-01-12  Jim Meyering  <meyering@lucent.com>
94731
94732         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94733         (jm_PREREQ): Use it.
94734         (jm_PREREQ_READUTMP): New macro.
94735         (jm_PREREQ): Use it.
94736
94737 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94738
94739         Quote multibyte characters correctly.
94740         * m4/c-bs-a.m4: New file.
94741         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94742         (jm_PREREQ): Use it.
94743
94744 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94745
94746         * m4/uintmax_t.m4: Port to autoconf 2.13.
94747
94748 2000-01-08  Jim Meyering  <meyering@ascend.com>
94749
94750         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94751         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94752
94753 2000-01-04  Jim Meyering  <meyering@ascend.com>
94754
94755         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94756         jm_STRUCT_DIRENT_D_TYPE.
94757         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94758         jm_STRUCT_DIRENT_D_INO.
94759         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94760         jm_STRUCT_UTIMBUF.
94761         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94762         renamings.
94763         * m4/utime.m4: Likewise.
94764
94765         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94766         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94767
94768 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94769
94770         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94771         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94772
94773 2000-01-02  Jim Meyering  <meyering@ascend.com>
94774
94775         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94776         remember if this is necessary.
94777
94778 1999-12-26  Jim Meyering  <meyering@ascend.com>
94779
94780         * m4/jm-macros.m4: Use it here.
94781         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94782
94783 1999-12-23  Jim Meyering  <meyering@ascend.com>
94784
94785         * m4/jm-macros.m4: Check for clock_gettime (moved from
94786         fileutils/configure.in)
94787         Check for gettimeofday.
94788
94789 1999-12-20  Jim Meyering  <meyering@ascend.com>
94790
94791         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94792         autoconf-2.14a-1999-12-20.
94793
94794 1999-12-19  Jim Meyering  <meyering@ascend.com>
94795
94796         * m4/lstat-slash.m4: New file.
94797         * m4/jm-macros.m4: Use the new macro:
94798         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94799
94800 1999-12-07  Jim Meyering  <meyering@ascend.com>
94801
94802         * m4/perl.m4: Require that File::Compare be available, too.
94803         Too many systems seem to lack it.
94804
94805         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94806         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94807
94808 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94809
94810         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94811         problem with the QNX 4.25 shell, which doesn't propagate exit
94812         status of failed commands inside shell assignments.
94813
94814 1999-11-17  Jim Meyering  <meyering@ascend.com>
94815
94816         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94817
94818 1999-11-07  Jim Meyering  <meyering@ascend.com>
94819
94820         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94821
94822 1999-11-06  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94825         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94826
94827 1999-11-05  Jim Meyering  <meyering@ascend.com>
94828
94829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94830         configure.in of textutils, fileutils, and sh-utils into this one
94831         (shared between those packages) file.
94832         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94833         AC_STRUCT_ST_BLKSIZE.
94834
94835 1999-11-03  Jim Meyering  <meyering@ascend.com>
94836
94837         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94838         of AC_CHECK_TYPE checks includes unistd.h.
94839         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94840         Suggestion from Akim Demaille.
94841
94842 1999-10-30  Jim Meyering  <meyering@ascend.com>
94843
94844         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94845         m4-quoted string.
94846         * m4/ls-mntd-fs.m4: Likewise.
94847         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94848         * m4/jm-winsz1.m4: Likewise.
94849
94850         * m4/const.m4: Remove file, since the fix made it into the experimental
94851         version of autoconf.
94852         * m4/mktime.m4: Likewise.
94853
94854         * m4/check-type.m4: Remove file, now that the latest version of
94855         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94856
94857         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94858         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94859         AC_CHECK_TYPE.
94860
94861 1999-10-04  Jim Meyering  <meyering@ascend.com>
94862
94863         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94864
94865 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94866
94867         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94868         2.95.1 bug with HP-UX 10.20.
94869
94870 1999-09-17  Jim Meyering  <meyering@ascend.com>
94871
94872         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94873         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94874         due to missing strdup (against sh-utils-2.0).
94875
94876 1999-08-29  Jim Meyering  <meyering@ascend.com>
94877
94878         * m4/jm-macros.m4: Require jm_BISON.
94879         * m4/bison.m4: New file.
94880
94881 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94882
94883         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94884         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94885
94886 1999-08-05  Jim Meyering  <meyering@ascend.com>
94887
94888         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94889         to avoid conflicts with `conftest' on 8+3 filesystems.
94890         Suggestion from Eli Zaretskii.
94891
94892 1999-08-04  Jim Meyering  <meyering@ascend.com>
94893
94894         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94895         fileutils and sh-utils (textutils's getline test was inadequate).
94896         (AM_FUNC_GETLINE): Run this test.
94897         (AC_CHECK_FUNCS): Check for getdelim.
94898         Reported by Bob Proulx.
94899
94900 1999-08-02  Jim Meyering  <meyering@ascend.com>
94901
94902         * m4/jm-macros.m4: Add a comment.
94903
94904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94905
94906         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94907         <inttypes.h> defines strtoumax as a macro (and not as a
94908         function).
94909
94910 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94911
94912         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94913         that we can shift, multiply and divide unsigned long long
94914         values; Ultrix cc can't do it.
94915
94916 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94917
94918         * m4/mktime.m4: New file, which is a preview of what should appear
94919         in the next public autoconf release.
94920
94921 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94922
94923         * m4/lfs.m4: Remove this file.
94924         * m4/largefile.m4: New file.  It contains the old contents of
94925         lfs.m4, except that all names with prefix AC_LFS have been
94926         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94927         compatible with future autoconf versions.  Also, some minor m4
94928         quoting problems have been fixed.
94929
94930 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94931
94932         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94933         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94934         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94935         and simplify the shell code.
94936
94937 1999-08-01  Jim Meyering  <meyering@ascend.com>
94938
94939         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94940         m4.
94941
94942 1999-07-20  Jim Meyering  <meyering@ascend.com>
94943
94944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94945
94946 1999-07-15  Jim Meyering  <meyering@ascend.com>
94947
94948         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94949
94950 1999-05-22  Jim Meyering  <meyering@ascend.com>
94951
94952         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94953
94954 1999-05-20  Jim Meyering  <meyering@ascend.com>
94955
94956         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94957         Add a colon after each `then' in case $4 is empty.
94958
94959 1999-05-16  Jim Meyering  <meyering@ascend.com>
94960
94961         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94962
94963 1999-05-10  Jim Meyering  <meyering@ascend.com>
94964
94965         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94966
94967         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94968         AC_FUNC_MKTIME.
94969
94970 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94971
94972         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94973
94974 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94975
94976         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94977         not CPPFLAGS, so that linking works correctly in IRIX.
94978
94979 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94980
94981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94982
94983 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94984
94985         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94986         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94988         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94989         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94990
94991         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94992
94993 1999-04-20  Jim Meyering  <meyering@ascend.com>
94994
94995         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94996         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94997         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94998
94999 1999-04-18  Jim Meyering  <meyering@ascend.com>
95000
95001         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95002         * m4/jm-macros.m4: Use it.
95003
95004 1999-04-06  Jim Meyering  <meyering@ascend.com>
95005
95006         * m4/strftime.m4: Remove test for %f.
95007
95008 1999-03-29  Jim Meyering  <meyering@ascend.com>
95009
95010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95011         superset of the AC_TYPE_* checks in the textutils, fileutils,
95012         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95013         AC_TYPE_PID_T.
95014
95015 1999-03-28  Jim Meyering  <meyering@ascend.com>
95016
95017         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95018         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95019         replaced e.g., in the *.sh files of the sh-utils.
95020
95021 1999-03-20  Jim Meyering  <meyering@ascend.com>
95022
95023         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95024         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95025         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95026
95027 1999-03-19  Jim Meyering  <meyering@ascend.com>
95028
95029         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95030
95031 1999-03-12  Jim Meyering  <meyering@ascend.com>
95032
95033         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95034
95035 1999-03-07  Jim Meyering  <meyering@ascend.com>
95036
95037         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95038         declared.
95039
95040 1999-02-17  Jim Meyering  <meyering@ascend.com>
95041
95042         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95043         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95044
95045 1999-02-07  Jim Meyering  <meyering@ascend.com>
95046
95047         * m4/group-member.m4: New file -- extracted from sh-utils'
95048         configure.in.
95049
95050         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95051         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95052
95053 1999-02-06  Jim Meyering  <meyering@ascend.com>
95054
95055         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95056         * m4/fnmatch.m4: Likewise.
95057         * m4/getgroups.m4: Likewise.
95058         * m4/lstat.m4: Likewise.
95059         * m4/malloc.m4: Likewise.
95060         * m4/putenv.m4: Likewise.
95061         * m4/realloc.m4: Likewise.
95062         * m4/regex.m4: Likewise.
95063         * m4/stat.m4: Likewise.
95064         * m4/strftime.m4: Likewise.
95065         Suggestion from Alain Magloire.
95066
95067         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95068         * m4/fnmatch.m4: Likewise.
95069         * m4/getgroups.m4: Likewise.
95070         * m4/getline.m4: Likewise.
95071         * m4/lstat.m4: Likewise.
95072         * m4/malloc.m4: Likewise.
95073         * m4/memcmp.m4: Likewise.
95074         * m4/putenv.m4: Likewise.
95075         * m4/realloc.m4: Likewise.
95076         * m4/regex.m4: Likewise.
95077         * m4/stat.m4: Likewise.
95078         * m4/strftime.m4: Likewise.
95079         Suggestion from Alain Magloire.
95080
95081         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95082         an argument.
95083
95084         * m4/regex.m4: Add a run-time Test for proper operation of
95085         re_compile_pattern.
95086
95087 1999-01-31  Jim Meyering  <meyering@ascend.com>
95088
95089         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95090
95091 1999-01-30  Jim Meyering  <meyering@ascend.com>
95092
95093         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95094
95095         * m4/jm-mktime.m4: Make this a wrapper around the official
95096         AM_FUNC_MKTIME rather than my private copy, now that the official one
95097         is up to date.
95098         * m4/mktime.m4: Remove file.
95099
95100         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95101         * m4/uptime.m4: Likewise.
95102         * m4/uintmax_t.m4: Likewise.
95103
95104 1999-01-28  Jim Meyering  <meyering@ascend.com>
95105
95106         * m4/jm-macros.m4: Use jm_AFS.
95107         * m4/afs.m4: New file (from fileutils' configure.in).
95108
95109         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95110         * m4/chown.m4: Likewise.
95111         * m4/d-ino.m4: Likewise.
95112         * m4/d-type.m4: Likewise.
95113         * m4/fnmatch.m4: Likewise.
95114         * m4/getgroups.m4: Likewise.
95115         * m4/gettext.m4: Likewise.
95116         * m4/jm-mktime.m4: Likewise.
95117         * m4/jm-winsz2.m4: Likewise.
95118         * m4/lcmessage.m4: Likewise.
95119         * m4/ls-mntd-fs.m4: Likewise.
95120         * m4/malloc.m4: Likewise.
95121         * m4/memcmp.m4: Likewise.
95122         * m4/putenv.m4: Likewise.
95123         * m4/realloc.m4: Likewise.
95124         * m4/st_mtim.m4: Likewise.
95125         * m4/strftime.m4: Likewise.
95126
95127 1999-01-16  Jim Meyering  <meyering@ascend.com>
95128
95129         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95130         (ARGMATCH_DIE_DECL): Define.
95131
95132 1999-01-12  Jim Meyering  <meyering@ascend.com>
95133
95134         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95135         Reported by Lars Hecking.
95136
95137 1999-01-10  Jim Meyering  <meyering@ascend.com>
95138
95139         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95140         gross kludge.
95141         * m4/inttypes_h.m4: Likewise.
95142         * m4/lstat.m4: Likewise.
95143         * m4/malloc.m4: Likewise.
95144         * m4/readdir.m4: Likewise.
95145         * m4/realloc.m4: Likewise.
95146         * m4/st_dm_mode.m4: Likewise.
95147         * m4/stat.m4: Likewise.
95148         * m4/utimbuf.m4: Likewise.
95149         * m4/utimes.m4: Likewise.
95150
95151         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95152         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95153         comments in config.h.in are meaningful.
95154
95155         * m4/jm-macros.m4: Require autoconf-2.13 here.
95156
95157         * m4/regex.m4: By default, don't use the included regex.c on systems
95158         with glibc 2.  Suggestion from Uli Drepper.
95159
95160 1999-01-02  Jim Meyering  <meyering@ascend.com>
95161
95162         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95163
95164 1998-12-18  Jim Meyering  <meyering@ascend.com>
95165
95166         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95167         Based on a suggestion from Lars Hecking.
95168
95169 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95170
95171         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95172
95173 1998-11-16  Jim Meyering  <meyering@ascend.com>
95174
95175         * m4/lfs.m4: Double-quote the `uname...` expression.
95176
95177 1998-11-14  Jim Meyering  <meyering@ascend.com>
95178
95179         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95180         * m4/stat.m4: Likewise.
95181
95182 1998-11-03  Jim Meyering  <meyering@ascend.com>
95183
95184         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95185         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95186
95187 1998-10-18  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95190
95191 1998-10-17  Jim Meyering  <meyering@ascend.com>
95192
95193         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95194         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95195         calls for those previously hard-coded headers.  Instead, take a new
95196         parameter.
95197         (jm_CHECK_DECLARATIONS): Reflect interface change.
95198         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95199         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95200
95201         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95202
95203 1998-10-14  Jim Meyering  <meyering@ascend.com>
95204
95205         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95206         instead of "TZ=America/Vancouver".  From Paul Eggert.
95207
95208 1998-10-11  Jim Meyering  <meyering@ascend.com>
95209
95210         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95211         This adds a test for a recently added compatibility fix for mktime.c.
95212         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95213
95214 1998-09-27  Jim Meyering  <meyering@ascend.com>
95215
95216         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95217
95218         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95219         ../configure.in, including a change from Gordon Matzigkeit to allow
95220         cross-compiling for the Hurd.
95221
95222         * m4/glibc.m4: New file/macro to test for the GNU C Library
95223         versions 1 and 2.  From Gordon Matzigkeit.
95224         Indent.
95225
95226 1998-09-21  Jim Meyering  <meyering@ascend.com>
95227
95228         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95229
95230 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95231
95232         Port nanosecond-resolution times to UnixWare 2.1.2 and
95233         pedantic Solaris 2.6.
95234
95235         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95236         AC_STRUCT_ST_MTIM.
95237         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95238         Generate name of ns member, instead of just 1 or undef.
95239         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95240
95241 1998-08-15  Jim Meyering  <meyering@ascend.com>
95242
95243         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95244         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95245         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95246         instead of jm_TYPE_SSIZE_T.
95247
95248 1998-08-12  Jim Meyering  <meyering@ascend.com>
95249
95250         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95251
95252 1998-08-02  Jim Meyering  <meyering@ascend.com>
95253
95254         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95255         in acconfig.h manually.
95256
95257 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95258
95259         * m4/st_mtim.m4: New file.
95260
95261 1998-07-28  Jim Meyering  <meyering@ascend.com>
95262
95263         * m4/utimes.m4: Undef stat.
95264
95265 1998-07-25  Jim Meyering  <meyering@ascend.com>
95266
95267         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95268         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95269
95270 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95271
95272         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95273         uid and gid actually remain unchanged.
95274
95275 1998-07-07  Jim Meyering  <meyering@ascend.com>
95276
95277         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95278
95279 1998-07-04  Jim Meyering  <meyering@ascend.com>
95280
95281         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95282         to prove that this macro can be used in packages without regex.c.
95283
95284 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95285
95286         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95287         is to be used.
95288
95289 1998-07-03  Jim Meyering  <meyering@ascend.com>
95290
95291         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95292
95293         * m4/gettext.m4: New file -- from gettext-0.10.35.
95294         * m4/lcmessage.m4: Likewise.
95295         * m4/progtest.m4: Likewise.
95296
95297         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95298         * m4/jm-macros.m4: Require the new macro.
95299
95300 1998-06-29  Jim Meyering  <meyering@ascend.com>
95301
95302         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95303         for the definition of NGROUPS (used in a system header included
95304         by sys/mount.h).
95305
95306 1998-06-28  Jim Meyering  <meyering@ascend.com>
95307
95308         * m4/ls-mntd-fs.m4: New file.
95309         * m4/fstypename.m4: New file.
95310
95311         * m4/jm-macros.m4: Require the new macro.
95312         * m4/jm-glibc-io.m4: New file.
95313
95314 1998-05-19  Jim Meyering  <meyering@ascend.com>
95315
95316         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95317         * m4/lchown.m4: New file.
95318
95319         * m4/Makefile.am.in: New file.
95320         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95321
95322 1998-05-14  Jim Meyering  <meyering@ascend.com>
95323
95324         * m4/Makefile.am (EXTRA_DIST): Add them.
95325         * m4/jm-macros.m4: New file.
95326         * m4/utimbuf.m4: New file.
95327
95328 1998-05-12  Jim Meyering  <meyering@ascend.com>
95329
95330         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95331
95332 1998-05-11  Jim Meyering  <meyering@ascend.com>
95333
95334         * m4/isc-posix.m4: New file.
95335
95336 1998-05-10  Jim Meyering  <meyering@ascend.com>
95337
95338         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95339
95340 1998-05-09  Jim Meyering  <meyering@ascend.com>
95341
95342         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95343         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95344         with automake.
95345
95346         * m4/ssize_t.m4: New file.
95347         * m4/mktime.m4: Remove file -- the new automake has this now.
95348
95349 1998-04-26  Jim Meyering  <meyering@ascend.com>
95350
95351         * m4/assert.m4: New file.
95352         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95353
95354 1998-04-05  Jim Meyering  <meyering@ascend.com>
95355
95356         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95357         (jm_PREREQ): Use it here.
95358
95359 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95360
95361         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95362         in acconfig.h.
95363
95364 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95365
95366         * m4/prereq.m4: New file.
95367         * m4/error.m4: New file.
95368         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95369
95370 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95371
95372         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95373         cache-check for the same variable -- that defeated the purpose of
95374         the test; the test program was never run.  This was a problem only
95375         on systems with losing getline functions -- HP-UX 10.20 is one.
95376         Reported by Bjorn Helgaas.
95377
95378 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95379
95380         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95381
95382 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95383
95384         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95385
95386         * m4/const.m4: New file.  Use an initializer in this declaration
95387         typedef int charset[2]; const charset x;
95388         Reported by Bob Glickstein.
95389
95390 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95391
95392         * m4/chown.m4: Fix reversed types on -1 args to chown.
95393         From Kaveh Ghazi.
95394
95395 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95396
95397         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95398         Add lseek and memchr.
95399
95400         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95401         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95402         have a 20-character limit on names.
95403
95404 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95405
95406         * m4/inttypes_h.m4: New file.
95407         * m4/uintmax_t.m4: New file.
95408         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95409
95410
95411         -----
95412
95413         Local Variables:
95414         coding: utf-8
95415         End:
95416
95417         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95418
95419         Copying and distribution of this file, with or without
95420         modification, are permitted provided the copyright notice
95421         and this notice are preserved.